News for hackers. Stuff that matters.
Re:King – man + woman is queen; but why? by DonaldFisk on Saturday January 07, 2017 @05:50PM (#13347146)
Why is this approach preferred to treating words as symbols connected to other symbols? E.g.

   (king (genl headOfState)
         (sex male))
   (woman (genl person)
          (minimumAge 18)
          (sex female))
What are the advantages of storing words as floating point vectors? I can see how inputting huge amounts of text into a simple algorithm might be less labour intensive than manually building (or using a more complex algorithm to build) a dictionary. However, at least you can use your dictionary for other purposes, and its contents are readily verifiable by non-technical people.
Re:King – man + woman is queen; but why? by paulsutter on Saturday January 07, 2017 @06:00PM (#13347185)
From a survey of Deep Learning published in Nature[1]:

"The issue of representation lies at the heart of the debate between the logic-inspired and the neural-network-inspired paradigms for cognition. In the logic-inspired paradigm, an instance of a symbol is something for which the only property is that it is either identical or non-identical to other symbol instances. It has no internal structure that is relevant to its use; and to reason with symbols, they must be bound to the variables in judiciously chosen rules of inference. By contrast, neural networks just use big activity vectors, big weight matrices and scalar non-linearities to perform the type of fast ‘intuitive’ inference that underpins effortless commonsense reasoning."

Pithy version:

"As of 2015, I pity the fool who prefers Modus Ponens over Gradient Descent." - Tomasz Malisiewicz [1]

Superlong version: https://plato.stanford.edu/entries/logic-ai/

[1] https://www.cs.toronto.edu/~hinton/absps/NatureDeepReview.pd...

[2] http://www.computervisionblog.com/2015/04/deep-learning-vs-p...

Re:King – man + woman is queen; but why? by DonaldFisk on Saturday January 07, 2017 @07:14PM (#13347463)
The first quote is simply not true. Symbols, even in Lisp, have properties (as well as values and possibly function values), i.e. they have deep structure. In general, symbols are explicitly linked to other symbols or algorithms. These links are the symbolic analogue of the vectors in word2vec, except that they are explicit so you can see what they mean, but you have to enter them manually or use a more complex machine learning algorithm.

The author of the computer vision blog post doesn't seem to know much about symbolic AI. Some of the comments point this out.

Re:King – man + woman is queen; but why? by paulsutter on Saturday January 07, 2017 @07:50PM (#13347557)
The various benchmarks are a great opportunity to demonstrate the superiority of the symbolic approach over the neural network based models. I encourage you to try, there's no better way to dispel the doubters.
Re:King – man + woman is queen; but why? by DonaldFisk on Saturday January 07, 2017 @08:35PM (#13347734)
I don't think they're suitable for the same tasks, so I don't consider the two approaches to be in competition with each other. It's also very difficult if you're one person with limited time up against companies the size of Google.

I'm busy on other things at the moment, but I intend to develop a rule-based system some time soon. I can rule out a neural network straight away because there's no data available, the rules are explicit, well documented, and have to be followed, and the system has to justify its reasoning.

That is not to say I wouldn't consider using a neural network for a perception task.

Re:King – man + woman is queen; but why? by nitrogen on Saturday January 07, 2017 @09:29PM (#13347908)
Is anybody working on using a neural network to build and update a symbolic graph, and vice versa? Or at least using a symbolic graph as an input to a NLP neural network, so the network could learn to rely on the symbolic graph when it is useful?
Re:King – man + woman is queen; but why? by rspeer on Saturday January 07, 2017 @11:19PM (#13348213)
Yes. ConceptNet [1] and distributional word embeddings go really well together, and can compare word meanings better than either one alone. Here's the preprint of the AAAI 2017 paper [2].

[1] http://www.conceptnet.io/

[2] https://arxiv.org/pdf/1612.03975v1.pdf

Re:King – man + woman is queen; but why? by barrkel on Sunday January 08, 2017 @12:03AM (#13348370)
This is ridiculously simplistic - take woman, for example. The distinction between woman and girl isn't nearly as simple as age. There's a sorites paradox in trying to find a dividing point of age, but actually woman connotes a bunch of other concepts probabilistically. It suggests independence and maturity vs childishness and cuteness. While girl is often used in the context not of children, but women as objects of courtship - girls on a night out, girlfriend etc. And a poem or song may play with the multiple meanings and ambiguities - where is Britney's Not a Girl in this symbolic analysis?

The only way you can get symbols to work is with weights. Follow this to its logical conclusion and I think you'll end up with a system isomorphic with the vector approach, with dimensions representing something like symbols.

Re:King – man + woman is queen; but why? by DonaldFisk on Sunday January 08, 2017 @02:47AM (#13348803)
It was a very simplified example. The Cyc database contains more realistic examples. Yes, I'd seriously consider augmenting symbols with numeric data. You could even store the vector obtained from word2vec as a property of the symbol if that's found to be useful in capturing nuance, but you can't store symbols on floating point vectors.
Re:King – man + woman is queen; but why? by barrkel on Sunday January 08, 2017 @04:14AM (#13349000)
Here's another example.

    The fat cat is sitting on a mat.
Only someone who has spent too much time away from people could possibly think that the meaning of this sentence is that somewhere, there is a fat cat sitting on a mat. It's a direct allusion to books used to teach reading to young children. It's a reference to simple sentences and simple words.

And even within the world of the sentence, it only has a vague meaning. What exactly makes the cat fat? Is it neutered or lazy or overfed? Why is it sitting on a mat - is the mat outside a door, is it waiting to be let in? What kind of a cat is it - could it be a big, dangerous cat? The sentence is laden with signifiers and unknowns. Western children are taught to consider sentences like these in the abstract, but it's not a natural way of thinking, because it's not practical in a life lived connected to the world.

Abstract hypotheticals are the hallmark of more disconnected concerns, and we teach our children this early, in part using silly, deliberately vague sentences like these, and discouraging curious questions that might resolve the ambiguities.

An AI system that's designed to handle abstract sentences like these is not one designed to understand human language, because humans don't reason like this unless they're thinking analytically - and even then, they do so blinkered with biases and errors.

Re:King – man + woman is queen; but why? by homarp on Sunday January 08, 2017 @09:44AM (#13349846)
>Only someone who has spent too much time away from people could possibly think that the meaning of this sentence is that somewhere, there is a fat cat sitting on a mat.

or someone who did not grow up using the English language.

Re:King – man + woman is queen; but why? by czep on Sunday January 08, 2017 @10:19AM (#13349987)
I grew up with English and when I read that sentence, to me it means that there is a fat cat sitting on a mat. Not sure what point was trying to be made here.
Re:King – man + woman is queen; but why? by barrkel on Sunday January 08, 2017 @03:56AM (#13348961)
The edge between a word and a symbol is where the number belongs - and arguably it should be a time series of numbers. In the vector view of the world, the dimensions of the vector are symbols - the number in a particular slot for a word vector is the number on the edge between the word and the symbol. But the "symbol" represented by a dimension may be a compound or quite abstract concept, it may not map trivially to a single word.
Re:King – man + woman is queen; but why? by coldtea on Sunday January 08, 2017 @08:08AM (#13349549)
>The distinction between woman and girl isn't nearly as simple as age. There's a sorites paradox in trying to find a dividing point of age

Or, you know, you can use a cut-off point, like 18 or so.

Re:King – man + woman is queen; but why? by barrkel on Sunday January 08, 2017 @08:18AM (#13349583)
If we're trying to assign meaning to words as used by humans, that's not even in the region of correct. It's not even wrong, it's on a different planet entirely.

Predicate calculus is an entirely parallel system that only has a representation in a strict subset of human language. A reverse mapping is hopeless and misguided.

I feel like this line of thought, that you can box up words with really concrete meanings that you can then reason about with logic systems is a kind of trap for people who've spent too much time in an analytic frame of the world. It's one where the smarter you are, the further down the road you can get without realising it's a dead end. At best, such a system could only augment.

Re:King – man + woman is queen; but why? by coldtea on Sunday January 08, 2017 @10:02AM (#13349906)
>If we're trying to assign meaning to words as used by humans, that's not even in the region of correct. It's not even wrong, it's on a different planet entirely.

It will totally be fine for 99% of applications. Marginal returns.

Re:King – man + woman is queen; but why? by stared on Saturday January 07, 2017 @05:53PM (#13347160)
In short, manual labelling rarely works for natural language processing (and top-down mathematical approach). See:

Peter Norvig, On Chomsky and the Two Cultures of Statistical Learning, http://norvig.com/chomsky.html

Also, we want something that is automatic. It means easily adjustable to other contexts (and languages), inferring information about neologisms (e.g. semantic meaning of emoji), etc.

Re:King – man + woman is queen; but why? by ilaksh on Saturday January 07, 2017 @10:48PM (#13348129)
Whether its symbolic or NN based or some other representation, the main thing people are missing here is the lack of symbol grounding. That is why we the open 3d environments based on virtual senses and motor outputs are the most likely to ultimately move forward in terms of things like NLP. See http://courses.media.mit.edu/2004spring/mas966/Harnad%20symb... or http://www.goertzel.org/papers/PostEmbodiedAI_June7.htm
Re:King – man + woman is queen; but why? by DonaldFisk on Saturday January 07, 2017 @06:27PM (#13347294)
What are non edge-case examples of the symbolic approach not working?

If my recollection is correct, Peter Norvig changed his views around the time he joined Google. Google have a particular way of doing things which doesn't include symbolic processing.

It should be possible to infer using a symbolic approach, or more simply just provide a new definition.

Re:King – man + woman is queen; but why? by ekidd on Saturday January 07, 2017 @07:07PM (#13347443)
> What are non edge-case examples of the symbolic approach not working? ... It should be possible to infer using a symbolic approach, or more simply just provide a new definition.

I've met some really really brilliant people who've been banging their head against that particular wall since the 1980s. The MIT AI Lab crew, for example, poured untold brainpower into symbolic inference. There was the whole "expert systems" movement. This all failed miserably, in disgrace, because nobody could ever get it to work, and "AI" became a dirty word. Later, there was Cyc, which was hyped on and off throughout the 90s. http://www.cyc.com/ After that, there were people who tried to reason over RDF tuples, which didn't work either: http://www.shirky.com/writings/herecomeseverybody/semantic_s...

This idea pops up every 5 or 10 years and wastes a generation of brainpower. It never works. And let me be clear: There have been some terrifyingly brilliant people who were convinced that it ought to work, and who spent years of their life on it.

Meanwhile, any joker who can code up Bayes theorem or single value decomposition can get some results in a couple of weeks. Probability and statistics get results (as do more advanced numeric techniques). Logic deduction fails. I'm not even sure I could explain why. But I encourage you to think long and deeply on what Norvig has written on this subject. Or just buy Norvig's two AI textbooks (written before and after he discovered the joys of probability, basically), do some exercises, and compare the results you get.

Re:King – man + woman is queen; but why? by srssays on Saturday January 07, 2017 @08:02PM (#13347606)
It's clear in hindsight. Natural language is the serialisation of human thought. Humans don't think symbolically in terms of rigorous logical statements. We stretch and play with definitions, sometimes making up a new definition on the spot, and relying on context and our shared experiences for the other person to figure out the meaning.

Statistics isn't sufficient for fully understanding natural language (for that, a computer would have to go out and experience the world in the first person). But it is necessary.

Re:King – man + woman is queen; but why? by rvense on Saturday January 07, 2017 @07:40PM (#13347535)
> I've met some really really brilliant people who've been banging their head against that particular wall since the 1980s.

The idea of breaking meaning into an inventory of discrete components like this is at least as old as Hjelmslev, I think even Saussure touches on it.

Part of it seems to me to be that you're breaking down words into words. Even if you write it in uppercase and call it a primitive, you don't have to spend too much time on cognitive linguistics to know that there's really nothing primitive about MAN or MONARCH...

Re:King – man + woman is queen; but why? by DonaldFisk on Saturday January 07, 2017 @08:07PM (#13347623)
At that point, you do need some sort of grounding, e.g. a human reading the text, or a neural network embedded in a robot. It isn't symbols all the way down.
Re:King – man + woman is queen; but why? by stared on Saturday January 07, 2017 @07:03PM (#13347430)
Well, AFAIK all practical systems for translation use data-centric approach, rather than any top-down one.

See also: Andrej Karpathy, The Unreasonable Effectiveness of Recurrent Neural Networks, http://karpathy.github.io/2015/05/21/rnn-effectiveness/, and try to replicate it with any formal semantics (good luck!).

Additionally, formal systems rarely incorporate for actual language, with some things being technically correct, but sounding weird, or things being incorrect, yet - prevalent (and a root for language evolution). See also: char2char translation (which accommodate for e.g. neologisms or typos).

Re:King – man + woman is queen; but why? by DonaldFisk on Saturday January 07, 2017 @08:05PM (#13347614)
But does the translation use word2vec or anything similar?

The original Altavista Babelfish (which used SYSTRAN) used rule-based machine translation. It has been replaced by Bing Translator, but my recollection of the Babelfish was that it was accurate enough to be usable, and better than Google Translate was when it was first released. Google Translate has improved a lot recently. My only problem with it is that it doesn't understand the meaning of the words it's translating.

Neural networks are perfectly suitable for perception, e.g. image recognition. No argument there.

Re:King – man + woman is queen; but why? by matt4077 on Saturday January 07, 2017 @08:35PM (#13347731)
> My only problem with it is that it doesn't understand the meaning of the words it's translating.

I think that's a fallacy that will haunt AI forever (or, more likely, will be the definitive civil rights struggle ca. March 25, 2035 6:25:45am to March 25, 2035 6:25:48am)

We tend to move the goalpost whenever AI makes advances. Where many people would have considered chess a pretty good measure of at least some aspect of intelligence, it seems like mundane number crunching once you know how it works.

It may be that we really mean consciousness when we say "intelligence", although if we ever find an easy formulation that creates a perfect "illusion" of consciousness, it may end up having some strong effects on people's conception of themselves that I don't necessarily want to witness.

Re:King – man + woman is queen; but why? by williamtrask on Sunday January 08, 2017 @08:42AM (#13349652)
thanks for sharing this... stirring thoughts. Did my best to paraphrase here (https://twitter.com/iamtrask/status/818090203990659072) but I really think we should spend more time on this as a society.
Re:King – man + woman is queen; but why? by barrkel on Saturday January 07, 2017 @11:53PM (#13348345)
I think a vector of weights in different dimensions constitutes meaning. Words don't have a single meaning; they're a shared implicit web of allusions and hints. We only understand one another to the degree that our allusions are shared - it's why nonnative speakers miss nuance, and it's why poetry is a thing.

If there are symbols, they're in the dimensions of the vector; but words only probabilistically suggest meaning, they don't categorically denote it.

Re:King – man + woman is queen; but why? by DonaldFisk on Sunday January 08, 2017 @02:30AM (#13348761)
Words with multiple meanings will have multiple vectors each depending on context, and if you train your system without taking that into account the vectors will be averaged and the individual meanings will be lost.

With a symbolic approach, the right thing is to use a different symbol for each meaning, and disambiguate based on context (which you could identify either statistically or by using rules).

Re:King – man + woman is queen; but why? by barrkel on Sunday January 08, 2017 @03:36AM (#13348918)
I feel that you don't appreciate how plastic language is, and how indirectly meaning is conveyed. New words and meanings become cultural shared knowledge on a weekly if not daily basis, and shades of meanings are added to existing words and phrases simply by being used in a milieu or by a sufficiently famous person. Symbols might be used as hidden variables representing concepts, but to fully represent how vague and allusive language is, you've got no choice but to make everything fractional. I don't see the result being anything other than isomorphic with a vector.

In particular, words are not repositories of meaning. They allude to concepts; new concepts are created and get forgotten on a regular basis. The connection between words and concepts waxes and wanes over time, and even the very timeline of a connection's strength can be used for allusion: using language to represent concepts that can only be coherently mapped by using previously-stronger allusions conveys a sense of being old-fashioned, while the reverse conveys future-thinking. Using allusions that are stronger within a milieu conveys social signalling information about group membership. Etc.

There's no way a human-maintained database is going to capture the subtlety here on anything like a timely basis. There's no universal truth, everyone's map is a little bit different, and the map is changing all the time.

Re:King – man + woman is queen; but why? by DonaldFisk on Sunday January 08, 2017 @05:15AM (#13349127)
Yet we've evolved to use symbols, which are short sequences of phonemes or glyphs, and to connect these together to form sentences, which are lists of symbols.

People who speak the same language are able to communicate perfectly well, almost all of the time, across continents and centuries. New words are rare compared to existing vocabulary and often soon disappear from use. New concepts can readily be mapped onto existing vocabulary. People are able to learn other languages and improve their own with the help of dictionaries and grammar books. Things like humour, cryptic crosswords, and social signalling are edge cases. And things like deception are unrelated to language understanding at the semantic level.

We're discussing the best way for computers to understand natural language and communicate with people, and in practice that's either going to use unambiguous language or it's going to need human help or verification.

Re:King – man + woman is queen; but why? by tpm on Sunday January 08, 2017 @09:25AM (#13349777)
We've evolved to use symbols to communicate (to transfer information), not to think using symbols. We use symbols as a way to transfer information over slow, lossy channels. Inevitably some information is going to get lost along the way, either because the symbols don't represent the meaning fully, or because if they would, they would be too long and cumbersome to use. Speed won over precision.

People who speak the same language are still prone to misunderstandings.

Re:King – man + woman is queen; but why? by spion on Sunday January 08, 2017 @08:23AM (#13349596)
Take the word "soon" in your example. How many unambiguous meanings does it have?

We may be overestimating our success in communication. Heck, I'm not even sure if my understanding of soon equals yours. Is it a century, a few decades, a few years? And why is it so different from the meaning when I use it to answer when lunch will be ready?

Re:King – man + woman is queen; but why? by barrkel on Sunday January 08, 2017 @08:19AM (#13349592)
in practice that's either going to use unambiguous language or it's going to need human help or verification.

The former doesn't exist in human languages (we'd otherwise have gotten rid of the lawyers long ago), and the latter is infeasible. There is a another way.

Re:King – man + woman is queen; but why? by coldtea on Sunday January 08, 2017 @08:10AM (#13349553)
>My only problem with it is that it doesn't understand the meaning of the words it's translating.

Wouldn't that mean it was an actual full AI?

Re:King – man + woman is queen; but why? by chewxy on Saturday January 07, 2017 @05:56PM (#13347174)
What you listed is called a logical form (and there can be many). A common logical form is CCG/DRS. But yet another representation structure that is a logical form that I don't see many people admit to it being a logical form is the RDF triple, used in freebase etc. You could represent the entire freebase in your notation.

There is work being done to merge the formal/structural semantics and distributional semantics. I have been working on that for over a year at my startup (not necessarily having successes, mind).

The benefit of using distributional semantics (word embeddings, etc) is GPU processing and libraries. My logical form parsing library uses dynamic programming and chart parsing with a LOT of tree pruning to parse a simple sentence, while distributed semantics merely require me to multiply 2 matrices/vectors together - something GPUs excel at.

Re:King – man + woman is queen; but why? by DonaldFisk on Saturday January 07, 2017 @06:53PM (#13347392)
The frames in my previous post could be implemented in a graph database, or RDF triples. It's similar to the representation used in Cyc.

I'm quite happy with a hybrid symbolic/statistical approach, which could be useful for disambiguating words and phrases in context.

I think the trick is to avoid generating the parse tree in the first place.

Today's hardware is pessimized for symbol and list processing. They can't be done on GPUs, and CPUs work better on contiguous data.