Search This Blog

Sunday, March 13, 2016

Sedol vs. AlphaGo - Is this really "fair" or an "AI"...?

Sedol is beaten multiple times by AlphaGo.

Is this really a fair contest?

Looking here we see that twenty or more people worked on AlphaGo (or at least got their name on the paper).

Sedol is an early-thirties profession Go player with a wife and child.  Even if he spent full time on Go for twenty years that would only be 40,000 or so hours of "learning" to become the (or one of the) best Go players in the world.

If each person on the AlphaGo paper spent two years working on the project (which has been around for at least three years) the would have at least as much time into it.  Plus they have presumably a nearly unlimited amount of compute and historical Go information to work from.

Despite all the hype AlphaGo can't do anything else.  Much like a mechanical baseball throwing device you find at a batting cage.  Neither can really do anything but what they were designed for.

Are they "intelligent?"

I don't think so... I recently got a new dog from the pet store perhaps nine months ago.  The dog has learned a lot: like how to go in and out the dog door, run around the property and come home, where and from whence the food comes from, many things.

While you could argue this is merely "mimicry" of what the other dogs do I think you'd be wrong.

The dog only consumes about 1/2 cup of food per day - no team of scientists to shepherd her along, no giant bay of cheap PC clones to process what other dogs have done over the years.  Nothing like that.

Then there is the question of "insight."  If we attached a logger to the AlphaGo processor we can record every single step in the processing it used to beat Sedol (except if the Monte Carlo sampling choice were truly random).  While there might be many computations involved its certainly a finite, closed list of steps.

Will we find "insight" there?

Nope!

Perhaps there is insight on the part of the people who wrote the code - but the code is not writing itself.  AlphaGo is a simple machine programmed by clever individuals to accomplish one thing - beating the best human Go player.

The human coders also have decades of research to build upon - DeepBlue, Watson, and so forth.

Today Google and its might search engines are still fundamentally flawed: If I spend a lot of time searching for things I find dangerous or that I hate or never want to see again Google Ads happily displays these items to me every there is an opportunity.

On the other hand the dog generally knows if I am mad at her or just mad in general.

I think this is all really about sales: make it sound impressive and mysterious and people will buy it.

About thirty years ago I came up with the ultimate test for "AI."

At the time there was a program called "Prospector" often touted as "AI."

My thought was "ProctSpector" - an "AI" based proctologist that would perform a colonoscopy.

My gold standard of "turing test equivalent AI" was an AI researcher allowing him or her self to be examined (given a colonoscopy) by "ProctSpector."

(Of course, that would not necessarily really be "AI" either - but its certainly a lot more interesting than Go or chess.)

EDIT: QuantaMagazine: https://www.quantamagazine.org/20160329-why-alphago-is-really-such-a-big-deal/

Sunday, February 28, 2016

Debugging... (Part 1)

For a long time I have wondered why no one gives the process of debugging any serious academic credence.  Sure, there are lots of "proof" types around trying to prove that programs might be correct (if in fact the criteria for designing the program has no bugs), but really nothing I have seen in the last decade comes close to addressing "debugging."

By "debugging" I mean the process of correcting a program which performs in some way incorrectly.

So let's break this down:

For something to debug let's consider a basic Turing machine (see this for the Wikipedia description which works well for what I am about to describe).

The details, I think, are really not very important so long as the machine is logically consistent.

The key for this is the representation of a program (in this case a Turing machine program) as a set of tuples.  We can use the Wikipedia state table as an example (from Wikipedia):
Example: state table for the 3-state 2-symbol busy beaver reduced to 5-tuples
Current stateScanned symbolPrint symbolMove tapeFinal (i.e. next) state5-tuples
A01RB(A, 0, 1, R, B)
A11LC(A, 1, 1, L, C)
B01LA(B, 0, 1, L, A)
B11RB(B, 1, 1, R, B)
C01LB(C, 0, 1, L, B)
C11NH(C, 1, 1, N, H)
So what does this give us?

Really a simple set of data representing the operation of the Busy Beaver program (I don't think, at least for the moment, we really even care here what the program actually does):

{ S1, A, 0, 1, R, B }
{ S2, A, 1, 1, L, C}
{ S3, B, 0, 1, L , A }
{ S4, B, 1, 1, R, B }
{ S5, C, 0, 1, L, B }
{ S6, C, 1, 1, N, H }

S here uniquely identifies the row as a state.  Of course, we still need more:

Some kind of tape and head, for example.  Here we can consider a simple, infinitely extensible (in both directions) array of tuples:

{ H, Header n }
{ T1, Vn-1 }
{ T2, Vn }
{ T3, Vn + 1 }
...

In this case the location of the Turing machine head (tagged with H) is represented by tuple n (T tags tuple rows, V is the specific tape value).  We can insert new tuples as needed or move the "Header" by changing its value.  I think we really only care that the implementation is logically consistent with what Turing machines are supposed to do.

We also need to know the current state:

{ S, s }

Where s is the current state.

So given a description as above we can construct a representation of the operation of the Turing machine:

The Program part does not change:

Program = {
  { S1, A, 0, 1, R, B },
  { S2, A, 1, 1, L, C},
  { S3, B, 0, 1, L , A },
  { S4, B, 1, 1, R, B },
  { S5, C, 0, 1, L, B },
  { S6, C, 1, 1, N, H },
}

Operationally we only care about what things look like at each given step, or cycle.  So we can imagine a representation that looks something like this:

Operation = {
  { Cycle, 1,
    { S, s },
    { H, n },
    { T1, Vn-1 },
    { T2, Vn },
    { T3, Vn + 1 } },
  { Cycle, 2,
    { S, s },
    ... }
  }
}

Each cycle of the machine appends new information to Operation.

Again, exactly how we represent this is unimportant.

So finally, when I say we are going to talk about debugging I am going to represent the problem of "debugging" as follows:

First, I have the expectation that there is some agreed and correct representation of Operation.  I may only be interested in some specific Cycle or Cycles that represent an "answer", I may be interested in an entire set of Operation Cycles, or I may be interested in whatever the pattern is so long as the machine does not Halt.

I require that I can represent the Cycle or Cycles with specific patterns, e.g., something like the following if I have a specific structure in mind.

 { Cycle, c,
    { S, s },
    { H, n },
    { T1, Vn-1 },
    { T2, Vn },
    { T3, Vn + 1 } },
   ... }

In this case I have an expected answer, say adding 2 + 2 so I would expect to see a specific pattern representing 4.  What that pattern is is not important.  What is important is that I can describe the resultant pattern unambiguously.

The pattern might represent all the Cycles, or only a subset (for example a program that repeats an answer over and over could potentially also be correct if I am only looking for the specific value represented by a pattern of Cycles.  The pattern might also be Operation = ∅.  Here we use ∅ to represent unknown content, in this case Cycles, i.e., we don't know what the output of the program will be.

If I don't have a representation for Operation then I will say that instead of debugging a program I am writing (or creating a program).

We can think of writing a program as "debugging"  an empty Program = (equal to) ∅ if Operation =/= (not equal to)  ∅.  For Program we use ∅ to represent an unknown set states.

So to summarize there are four cases:

Program = ∅, Operation =  ∅ - We don't know what we are doing.

Program = ∅, Operation =/=  ∅ - We know what we want to see as output (at least at some point) but don't have a means to get there, i.e., we are writing a program from scratch.

Program =/= ∅, Operation =  ∅ - We don't know what the program we have will do.  We can likely enter the next case (below) by operating the program to create the situation where Operation =/=  ∅.

Program =/= ∅, Operation =/=  ∅ - We have a program and some data but we don't know if the two are coherent.  We use coherent to describe a state where we must, if we can, perform or check the operations to determine if what we see in Operation is actually the result of the Program.

We define "debugging" as aligning Program with Operation such that there is coherence between the two.

Note that if Operation is invalid or inconsistent we are no longer debugging the program but instead constructing a description of a programming result, i.e., effectively creating or repairing a specification for a Program.

Monday, December 28, 2015

Are Theranos and Holmes Really That "Out There?"


In the 1970's some quack from a company called RSI called me in my office at One Chase Manhattan Plaza.  I was involved in using Unix (from Bell Labs) for data and word processing work and we needed a database.

This "quack" had some "relational database" program for sale he'd written himself that ran under PDP-11 Unix that was based on a a document he had seen from IBM Research in San Jose about something called "System R."

Meanwhile I was taking a class in San Jose from two guys (Bob Epstein and Mark Hoffman) who worked for a company called Britton Lee that sold a relational database database machine.  I liked Hoffman and had some discussions about working with him and Epstein but I wasn't interested in living in California.

(In the 1970's IBM dominated the database world and there were only non-relational network "mainframe" databases.  They cost tens or hundreds of thousands of dollars and were intense, complex OS-360-based tools.  The database market was huge and totally non-relational.  No one, and I mean no one, believed that "relational" database operations could ever be as fast as network database operations.  It was considered heresy to even suggest it.)

The "quack" turned out to be Larry Elison.  

Hoffman and Epstein quit Britton Lee and started Sybase which contributed source code to Microsoft's (presumably for their SQL) and reached a billion in sales on its own.

Was this crew any different than Theranos and Holmes?

I think not... 

IBM was one of the biggest companies on the planet in the 1970's, network databases were all that there would ever be, OS 360 was the best operating system there ever would be (probably using CICS).

Would relational databases ever take over?

No way!!!!!

How would UNIX ever replace IBM?

We used to joke about it at Usenix conferences in Toronto Canada. 

"Ha ha, someday mainframes would run Unix" I remember joking with a guy named Mark Kreiger from a company called UniPress around 1978 or '79.  I eventually had a job working on fixing code Gosling had left behind at CMU.

But apparently some venture capitalists did believe.

And these companies where a great success.

How many failed along the way?  Probably too many to count.

How many billions of 2015 dollars were lost?

Plenty.

But in those days no one cried and blubbered like they do now.

The market decided who was a winner and who was not.

Instead the socialist WSJ tells us how bad Theranos is...

But, in fact, if their ideas are really good, they will win...

If not, someone will buy up the used junk, equipment and technology and use it for something else.


Sunday, November 22, 2015

Gotta love modern Educayshun...


The "Risk" of the Cure...

(Republished because Google says "www.tattoodonkey.com" is somehow using this blog (which only Google can write to) to potentially take over my computer...  Apparently some old linked image is a "problem")
I came across the statistic at MedPageToday that in 2006 binge drinking cost the USA $224 billion (yes billion with a 'B') USD. Surprisingly, at the same site (you may have to register to see these articles but I can assure you its well worth it) I came upon this statistic for skin cancer (melanoma) in the USA: $3.5 billion USD.

Now in terms of death rates, let's say (and I am rounding and fiddling a bit here) that about 8,500 people died of melanoma in 2006.  Melanoma statistics are tracked by the CDC.  The exact cause of melanoma is not known but UV exposure and moles are thought to be risk factors.  There is a steady increase in the diagnosis of melanoma of about some 150 cases or so each year (from 2000 to 2006).

On the alcohol side death rates for "binge drinking" per se are harder to pinpoint.  Its thought that about 40% of teenagers engage in some form of binge drinking and that about one quarter of all teenage alcohol deaths involve drinking of some kind.  It seems from this site and others that the death rate of teenagers using alcohol is similar to (maybe 12 per 100,000 for teenage drivers).  The exact effect of binge drinking versus simply "drinking" is hard to pinpoint.

So, to look at this another way, binge drinking impacts our society in a way very similar to melanoma in terms of the death rate.

But the cost of binge drinking to society as whole is much larger.

Both articles associate the cost of "lost work and productivity" with the lions portion of these costs.

Though interestingly almost $22 billion dollars are spent annually on the "justice system" costs of teenage drinking.  Almost seven (x 7) times the entire cost of melanoma.

Now melanoma in terms of public awareness gets a boost from all the sunscreen commercials.

One of my children is an absolute sunscreen Nazi with respect to her children.  Little Suzy and Jr. are not allowed so much as out of the house without a healthy dose of the stuff (UV 50 of course).

Why?

Because the medical establishment beats the "sun causes skin cancer" drum very hard and loud in my child's ear.

Now things like lightning kill some 750 people a year (about 10% of the melanoma or teenage car crash numbers).  In general, for 2009 death rates looked like this according to this site:

Cause of Death in US            Number

All causes                           2,436,652

Cardiovascular diseases        779,367
Malignant neoplasms            568,668
Drug induced                          37,485
Suicide                                    36,547
Motor vehicle accidents         36,284
Septicemia (infections)          35,587
by Firearms                            31,224
Accidental poisoning             30,504
Alcohol induced                     23,199
Homicide                                16,591
HIV                                          9,424
Viral Hepatitis                          7,652
Cannabis (Marijuana)                     0

So melanoma and "binge drinking" are somewhere above lightning strikes and below Viral Hepatitis.

But think about the "lost work" and "justice system" costs of this table and how they would scale up for various other causes of death.

Think that if teenage drunk driving costs $22 billion USD a year in "justice system" costs what does 31,224 firearms deaths cost?  Or 36,284 motor vehicle deaths?

The New York City police budget is $3.9 billion USD annually - about the same cost as melanoma in the entire US - there were about 500 or so murders in NYC in 2008.

Annual Homeland Security budget: about $56 billion USD.

Imagine the "lost work" aspects of all of this...

Now obviously everyone dies and older people are far more likely to die in a given year than a teenager.  So the top several causes of death are always going to be something related to older folks.

The top two causes of death are much larger by a factor of five or more than all the rest of the causes combined.

Is it even possible to tell what's going on here?

Well, for one thing, cardiovascular disease and cancer (malignant neoplasms), kill older people far, far more often than younger people.

Things like car accidents, which are proven to decrease as the maximum speed limit decreases, kill across the spectrum but are often associated with young, inexperienced drivers.

Some things, like preventable medical errors, which kill an estimated 195,000 per year are not even listed above. (Some estimates take this as high as a million deaths per year.)

Binge drinking and melanoma are not even blips on the overall death rate radar...

In 1900 Tuberculosis and Influenza where the number two and number three causes of death behind  cardiovascular disease.  Yet these diseases affected everyone and in all age groups.  Today tuberculosis is barely a blip on the death rate chart (see this) and influenza has dropped off to a rate near car accidents.  Cancer in 1900 was about four times today's cancer rate.

In 2000, cancer is number two.

I think the answer is no on a couple of levels...

For one, today people are sold emotional "bills of goods" in terms of their healthcare.  A good example of this is "sunscreen."

Most of these "death rates" at the top are old people.  So if you cured all cardiovascular disease tomorrow then they would die of cancer, or some other problem.  But in any case they would still die.

The question would be what would be the "cost" of this death?

Then there is the question of "cost" to society...

It seems that "lost productivity" only matters when your in the work force - it means nothing if you are retired.

"Cost of death" is all over the place in terms of how its measured in various literature and by various agencies.

To me is seems like the "lightning strike" rule (which I just made up) would be a good one:

If fewer deaths occur due to some cause than lightning strikes its probably not something for society to get all wound up about - period.  (Obviously if its increasing at some exponential rate, say SARS which only had a few deaths but if it increased exponentially would be a problem.)

If, like melanoma, the death rate is increasing at less than the lightning strike rate, particularly if its relatively steady and significantly less, then maybe its not such a big emergency...  I am quite certain that 150 deaths per year ether way is well under the error rate of reporting for all kinds of "rates."

Then there is the "convenience death rule" (which I also just made up).  If something like a 65 mph (higher) versus 55 mph death rate (lower) is something people gladly accept for the convenience of getting somewhere quicker than I think that needs to come out of the "death rate" picture.  (Personally I have never met anyone who would rather drive at 55 mph than 65 mph in order to reduce their chance of a death.)

What I don't like is the fact that makers of "sunscreen" are exploiting the "melanoma bandwagon" for profit.  Shielding young children from the sun reduces their natural vitamin D production which may have other, negative effects on their health.  Since we don't know the down side personally I'd risk one of the 150 melanoma deaths per year on my child against the benefits of not slavering them full of chemicals every time they went outside for ten or fifteen years.

There is always "risk."

The problem is we don't ever hear about the opposite "risk" of taking the supposed cure.

I have yet to see any sort of meaningful science on the cost of death after removing a primary cause, i.e., if no one dies of tuberculosis anymore what does it cause to die of something else.

I also see nothing on "risk" of the supposed cure (though if you watch TV and see drug ads you realize that "liver failure" becomes a significant option for treating, say, eczema or incontinence).

Tuesday, October 27, 2015

As long as I am bitching...

It's no secret that Tim Cook is destroying Apple...

Here's the latest El Capitan OS X numbers:


When Steve Jobs was involved things look substantially better.

This has been a steady, certain decline.

iOS 9 is constantly annoying me these days with "notifications."

Apple is obsessed with "consumerism" to make their numbers.

Sadly its meant that Windows has been "catching up..."

Some of the latest versions are halfway decent now.  And the new Micro$oft tablet's looking pretty good...

I predicted this here on my very blog...

Not too much longer and the world will run out of iPhone customers - everybody who want's one will have one.



Theranos, E-Cigs and the WSJ...

For many years I have read the Wall Street Journal.  As far back as the days I lived in Levittown, NY and rode the commuter train (late 1970's) to work.  You had to make sure that you didn't touch your good clothes after reading the paper because the ink came off on your hands (probably some deadly combination of lead and carbon...).

The Journal was good for news: no videos, no cartoons, no nonsense - something that you worked hard to read and understand...  Kind of like the old Forbes magazine - a hefty tome in the 1970's it took days of ardent effort to slog through the detailed, precise reporting.  And well worth the effort, too...

But all this appears to be changing.

Lately the WSJ is full of videos and silly reporting.

One that comes to mind is the recent FDA/Theranos "disaster" where the WSJ has reported on a variety of "misdeeds" by Theranos in its quest to change the face of medical testing forever.

Here's the FDA list of problems.

A while back the WSJ reported various "problems" at Theranos and that the FDA was there for a "surprise inspection."  The implications, of course, were that there were festering problems...

You can see Elizabeth Holmes of Theranos, a woman who, gasp, left college, to found this company, defend rational behavior.

WSJ Video

If you watch you whole video you'll get a good idea of what's going on.

Today the WSJ published a post on "deficiencies" listed by the FDA (see this).

Theranos isn't even a public company.

So why does the WSJ care so much?

Its really hard to tell - why is this news?

Not enough "feel good" videos to post?

This is a simple product in the sense that its just a pin-prick of blood.  Then they run tests and tell you the results.

Not too complex.

Theranos runs the tests elsewhere - not attached to you - so all you are doing is putting a drop of blood into a slim, small, shallow "needle."  My dog steps on my foot and draws hundreds of times more blood - maybe he's a medical device...?

Of course, the real magic is that they don't need vials full of blood - no doubt leading to the demise of many well established industry leaders - which is why there's so much "trouble..."

And for the FDA, well a small container is a "medical device" apparently.  It needs testing and tracking and all the rest.

Theranos isn't the only strange WSJ target...

They don't like e-cigarettes too much either (they simply ignore them).

Another game changer, millions of people no longer using "combustion tobacco" and the WSJ just yawns.

No doubt e-cigs represent too much of a change for the established "big tobacco" folks.

I find this all very sad.

The FDA, the WSJ, all out to kill off the betterment of mankind...

Do you really think the kind of container you put the blood in, as long as its clean of course, really matters?

After all, people shoot heroin for years and don't necessarily suffer from "unclean" equipment.

Clearly the FDA should be worried about cars, they kill a lot of people and they transport medical patients - perhaps in a dangerous way.  Ace bandages, bandaids, who know what sort of lethal problems could arise...

Food is another problem - vitamins, mineral, supplements.  Fortunately there are laws that are supposed to all us to use those... (well, sort of, as long as no one wants to step in and lie they way to changing the truth.

Soon, I guess, there will be yet another subscription to cancel.

I can always watch news videos on YouTube - I don't need an expensive WSJ subscription for that.