Showing posts with label MIT Technology Review. Show all posts
Showing posts with label MIT Technology Review. Show all posts

Thursday, January 21, 2016

The idiot gatekeeper and why we can't do better



I had to call the Inland Revenue (HMRC) this morning. After the automated intro you connect to a speech-recognition system which asks you why you are calling:
"Tell me in a few words what you are calling about."
Naturally it's both useless and annoying. It recognises speech at the level of individual keywords and can't handle any conceptual complexity. Many of the pre-programmed responses tell you to check a website or call some other number - at which point it hangs up. It's very unwilling to let you talk to a human being.

After three calls and being disconnected each time, I found the right series of lies to allow this idiot-gatekeeper to connect me to a human being. At which point I was able to transact some complications in the management of the tax on my late mother's estate.

Why is it so hard?

When we speak a meaningful sentence, it's not hard to create a useful knowledge representation of what was said - AI researchers have known how to parse sentences and create meaning-structures such as semantic nets for ages.  'Understanding' means doing something appropriate with the resulting semantic net - either use logical connections to derive consequences, or load associated semantic nets for things like problem reframing or context management.

Example:
"How much tax do I owe?"
could be translated into this semantic net:
[Parameter(caller)] - owes - [Variable(tax-amount)]
along with a processing script which says something like:
1. Identify 'caller' and add this information to the query semantic net.
2. Add in missing contextual information, eg an implicit 'for the previous tax year'.
3. Compute the variable 'tax-amount'.
4. Compute a semantic net like this:

   [Parameter(caller)] - owes - [Parameter(tax)] - for - [Parameter(prev-tax-year)]

5. Construct an English language version of the above and play it to the caller.
Developing the 'scripts', which encompass a bunch of stuff like inference, abduction, induction, conversation rules, pragmatics, ..., is harder than the knowledge representation and database loading.

Still, like I said, question-answering systems have been able to do something like this in toy domains for decades, so why can't the HMRC get it right?

If you listened to transcripts of what people actually say when they call the tax authorities you would wonder how trained people ever get it right: the confusions, mis-steps, misunderstandings; the clarificatory questions needed to get an intelligible query out of the caller, the open-endedness of the topics which prompted the call ... .

After knowledge engineers spent thousands of hours trying to hand-craft ever-increasing databases of semantic nets (or their equivalents) capturing all the everyday world issues underlying lay-people's queries, it eventually became clear that the task never ends and that it's all way too expensive.

---

In case you think that the idiot-savant 'new AI' of neural net 'deep learning' is going to:

  • solve the world's problems 
  • steer the Google car
  • answer all our tax queries 

I refer you to the current MIT Technology Review, where we see the superficial strengths and deep structural weaknesses of contemporary learning and statistical methods as applied to human speech ("How an AI Algorithm Learned to Write Political Speeches").
"Valentin Kassarnig at the University of Massachusetts, Amherst, .. has created an artificial intelligence machine that has learned how to write political speeches that are remarkably similar to real speeches.

"The approach is straightforward in principle. Kassarnig used a database of almost 4,000 political speech segments from 53 U.S. Congressional floor debates to train a machine-learning algorithm to produce speeches of its own.

"These speeches consist of over 50,000 sentences each containing 23 words on average. Kassarnig also categorized the speeches by political party, whether Democrat or Republican, and by whether it was in favor or against a given topic.

"Of course, the devil is in the details of how to analyze this database. Having tried a number of techniques, Kassarnig settled on an approach based on n-grams, sequences of “n” words or phrases. He first analyzed the text using a parts-of-speech approach that tags each word or phrase with its grammatical role (whether a noun, verb, adjective, and so on).

"He then looked at 6-grams and the probability of a word or phrase appearing given the five that appear before it. “That allows us to determine very quickly all words which can occur after the previous five ones and how likely each of them is,” he says.

"The process of generating speeches automatically follows from this. Kassarnig begins by telling the algorithm what type of speech it is supposed to write—whether for Democrats or Republicans. The algorithm then explore the 6-gram database for that category to find the entire set of 5-grams that have been used to start one of these speeches.

"The algorithm then chooses one of these 5-grams at random to start its speech. It then chooses the next word from all those that can follow this 5-gram. “Then the system starts to predict word after word until it predicts the end of the speech,” he says."
Here's a sample (as boring and content-free as you would expect).
“Mr. Speaker, for years, honest but unfortunate consumers have had the ability to plead their case to come under bankruptcy protection and have their reasonable and valid debts discharged. The way the system is supposed to work, the bankruptcy court evaluates various factors including income, assets and debt to determine what debts can be paid and how consumers can get back on their feet. Stand up for growth and opportunity. Pass this legislation.”
Only good for filibusters, I would think.

Please don't anyone tell the HMRC.

Wednesday, January 06, 2016

For once, the yeuk factor is real



From the MIT Technology Review today.
" ...  MIT Technology Review estimates that about 20 pregnancies of pig-human or sheep-human chimeras have been established during the last 12 months in the U.S."
So how does that work?
"By modifying genes, scientists can now easily change the DNA in pig or sheep embryos so that they are genetically incapable of forming a specific tissue. Then, by adding stem cells from a person, they hope the human cells will take over the job of forming the missing organ, which could then be harvested from the animal for use in a transplant operation.

“We can make an animal without a heart. We have engineered pigs that lack skeletal muscles and blood vessels,” says Daniel Garry, a cardiologist who leads a chimera project at the University of Minnesota. While such pigs aren’t viable, they can develop properly if a few cells are added from a normal pig embryo. Garry says he’s already melded two pigs in this way and recently won a $1.4 million grant from the U.S. Army, which funds some biomedical research, to try to grow human hearts in swine."
OK, there's a yeuk factor there, but surely if the objectives are good .. ?
"The worry is that the animals might turn out to be a little too human for comfort, say ending up with human reproductive cells, patches of people hair, or just higher intelligence. “We are not near the island of Dr. Moreau, but science moves fast,” NIH ethicist David Resnik said during the agency’s November meeting. “The specter of an intelligent mouse stuck in a laboratory somewhere screaming ‘I want to get out’ would be very troubling to people.”
Oh yes, the screaming mouse.
"... Desperately ill people on organ waiting lists might someday order a chimera and wait less than a year for their own custom organ to be ready. “I really don’t see much risk to society,” he says.

"Before that can happen, scientists will have to prove that human cells can really multiply and contribute effectively to the bodies of farm animals. That could be challenging since, unlike rats and mice, which are fairly close genetically, humans and pigs last shared an ancestor nearly 90 million years ago.

"To find out, researchers in 2014 decided to begin impregnating farm animals with human-animal embryos, says Pablo Ross, a veterinarian and developmental biologist at the University of California, Davis, where some of the animals are being housed. Ross says at Davis he has transferred about six sets of pig-human embryos into sows in collaboration with the Salk Institute and established another eight or 10 pregnancies of sheep-human embryos with Nakauchi. Another three dozen pig transfers have taken place outside the U.S., he says.

"These early efforts aren’t yet to make organs, says Ross, but more “to determine the ideal conditions for generating human-animal chimeras.” The studies at Davis began only after a review by three different ethics committees, and even then, he says, the university decided to be cautious and limit the time the animals would be allowed to develop to just 28 days (a pig is born in 114 days).

"By then, the embryonic pig is only half an inch long, though that’s developed enough to check if human cells are contributing to its rudimentary organs.

“We don’t want to grow them to stages we don’t need to, since that would be more controversial,” says Ross. “My view is that the contribution of human cells is going to be minimal, maybe 3 percent, maybe 5 percent. But what if they contributed to 100 percent of the brain? What if the embryo that develops is mostly human? It’s something that we don’t expect, but no one has done this experiment, so we can’t rule it out.”
So run that past me again ...
 “My view is that the contribution of human cells is going to be minimal, maybe 3 percent, maybe 5 percent. But what if they contributed to 100 percent of the brain? What if the embryo that develops is mostly human? It’s something that we don’t expect, but no one has done this experiment, so we can’t rule it out.”
If a pig-embryo can have its kidney developmental genes knocked out, so growing kidneys constructed from stem cells from a specific person - so that less than a year later there's a non-rejectable transplant available. Well,  it's going to happen.

My question: are we happy to eat the bacon sandwich made from the rest of the pig?