Showing posts with label Natural language Understanding. Show all posts
Showing posts with label Natural language Understanding. Show all posts

Wednesday, June 01, 2016

Google's war on folders

In the beginning, the search model for the Internet was (nested) folders:
Yahoo = "Yet Another Hierarchical Officious Oracle"
Remember, the intent is to find something in a vast space of candidates. The simplest way is to give that thing a label ('the filename') and put it in a folder which groups similar items by some salient property ('the folder'). Folders are nested ad libitum.

Folder-nesting is essentially set-inclusion, sometimes termed an 'isa-hierarchy'; a related idea is that of 'inheritance'.

Given an isa-hierarchy (a tree structure), a language to describe it is most simply effected by labelling the branches in order:
"Dropbox/mydata/camping/camping-list.docx"
where the language syntax is pretty much isomorphic to the semantic structure.

It was a small shock when Gmail introduced arbitrary labels to replace folders. The semantic space became somewhat more complex, as the set of all subsets of a collection of labels constitutes a lattice.

A simple Google search on keywords is not dissimilar to a search on labels (plus a fancy ordering relation wherein lies the magic).

Then came Google Photos, where all those carefully-named folders on your hard-drive ('My-Pictures/Holiday-in-the-Dordogne-July-2014') vanished, and Google used metadata and AI scene recognition to organise your photos along many dimensions: people, places, things-in-the-picture, etc.

In real life and in ordinary conversation, people do not restrict themselves to labels to refer to things.
"That famous joke by that dead middle class comedian"
doesn't get a useful hit from Google today, although many British people might hazard a guess.
"That famous joke by Bob Monkhouse"
nails it, top of the list - but it's really labels at work here.

As Google augments its bottom-up, neural-net phrase-recognisers with stable and ubiquitous semantic/pragmatic models, the clunky, manual world of the folder hierarchy will finally be put to rest.

Google tried to bring a version of search to the personal hard-drive once before, but it never really took off: too much noise and not enough signal in the results.

But next time around?

Folders: archaic, inflexible, labour-intensive .. and doomed.

Tuesday, October 07, 2014

The web of deceit

Did I mention that I'm surrounded by electronic devices which do whatever they want and have minds of their own? Sick of living in their autistic machine-world, I can now preview an X-Lab development which will transform our lives.

Initially running on a chromecast-like device plugging into a USB slot, the new module will have speech capabilities ('you can converse with it') and will communicate with its attached device using CTP (Communication Things Protocol).

Version 1.0 will be painfully honest, as in this sample dialogue.
You (to Sky Box): "Why have you gone into automated standby?"

Module: "I'm doing a software upgrade."

You: "But my favourite programme's just about to come on, can't you delay?"

Module: "No."
This is clearly not going to go down too well.

Subsequent versions will model the user and simulate emotion.
You (to Sky Box): "Why have you gone into automated standby?"

Module: "I'm feeling terrible."

You: "But my favourite programme's just about to come on, can't you delay?"

Module: "You know, I would if I could but honestly, I'm so sick I'm about to faint. I will do the best I can when I feel better to search down your programme and record it for you."

(It won't of course).
Same useless outcome, but you feel guilty rather than incandescent.

Naturally, CTP is a crude protocol: the module doesn't really know what the attached device is actually doing, especially if it's malfunctioning. The X-lab module will spend most of its time justifying and lying to you, to overcome its own confusion.

Strange to think that biology addressed the self-same problem a hundred thousand years ago.

Wednesday, June 05, 2013

Google now wants to *understand* your queries

From Singularity Hub.
"In an interview with Singularity Hub, Ray Kurzweil provides an update about his first two months as Director of Engineering at Google. During the interview Kurzweil revealed that his team is collaborating with other groups at Google to enable computers to understand and speaking language just like humans. Kurzweil also tells us how Larry Page personally recruited him to join Google to pursue the goal of creating machines that can think and reason like the human brain.

Speaking with Singularity Hub Founder Keith Kleiner, Ray explained that ”My project is to get the Google computers to understand natural language, not just do search and answer questions based on links and words, but actually understand the semantic content. That’s feasible now.” To successfully do this will involve employing technologies that are already at Google like the Knowledge Graph, which has 700 million different concepts and billions of relationships between them. His team will also develop software as part of a system that will be “biological inspired” and can learn in a way analogous to the way the human brain is designed, that is, in a hierarchical structure."
Here's the interview (six minutes or so).


Kurzweil comes across as a nice guy, but judging from the reviews of his recent book, he is neither a tremendously deep thinker nor fantastically well-read in the sprawling field of AI. Still, Google has plenty of smart people to help him out.

Automated Natural Language Understanding Systems of human-equivalent ability currently don't exist and are astonishingly hard to design. Example: if you write a Google query:

"Why is the sky blue?"

Google today will search for web pages which have these words (or equivalent terms) closely spaced within their text and will then serve you a prioritised list. This is not understanding. To understand the query, Google would have to translate the query into an internal 'mentalese', something like

"Query(Reason(Colour(Sky,Blue)), Asker(<YOU>))"   *

and then know what to do with each of the emboldened words. Google therefore needs mini-theories for each of the concepts associated with them.

To answer the query, Google would have to have read the pages of the web (not a problem, it's already stored them) and translate those also into' mentalese'. Now it has to figure out how to use this mountain of unreliable and inconsistent conceptual information (theory piled upon theory) to answer your question.

Finally, Google really needs a theory of you. What did you intend by the question? Is it a physics answer you want and if so, how much science do you know already? Are you an artist - do you want a poetical answer? Are you a cultural historian - do you want to know the different explanations people have come up with. And so on.

If Google succeeded, it would be emulating a veritable army of call-centre workers, each of whom knew everything published on the Internet, and a lot about you personally. These are the 'guys' you'd be dealing with every time you pointed your browser/app at Google.

I would be impressed .. and a little nervous.

---

* A note for experts.


"Query(Reason(Colour(Sky,Blue)), Asker(<YOU>))"  seems like a relatively innocuous term in first-order predicate calculus (FOPC): nothing in fact could be further from the truth. FOPC is a highly-constrained declarative formal language much loved in AI because of its assumed tractability for automated theorem proving. Unfortunately it's a straitjacket when it comes to describing how humans linguistically interact.

"Query" is like a question-mark, semantically interpreted in the domain of Pragmatics (cf Speech-Act Theory). Pragmatics is founded upon agents with states of mind, beliefs and intentions - all completely absent from FOPC.

"Reason" is worth a Ph.D. thesis of its own. It's a cousin to the idea of "proof", formalised in metamathematics (cf Gödel's Incompleteness Theorem). Proofs (and reasons) look a little bit syntactic - formulae which justify other formulae via chains of inference. In fact the concept is clearly a semantic one (think of the way Standard ML manipulates proofs). There are some arguments omitted in the "Reason" term shown here, as all reasons start from some set of grounding assumptions - but what are they?

"Colour(Sky, Blue)" is a formula of FOPC but we need its denotation not to be TRUE or FALSE but, like Situation Semantics, to be a semantic object which connects the sky to a colour. Queries in general will require at least temporal, intentional and modal operators which are not present in FOPC.

<YOU> is a deictic signifier but that is the least of it: the reference is to an agent with a state of mind, namely you - with what you know and what you want clearly implicated. Another Ph.D. thesis in waiting.

To the Google team led by Ray Kurzweil I therefore commend Dorothy's famous remark: "Toto, I've a feeling we're not in Kansas any more."