Live data from Hacker News

Machine learning won't solve natural language understanding

thegradient.pub

61–70 of 193 posts

Re: Machine learning won't solve natural language understanding

#61

I think that's very true and it's maybe even more clear when you consider mathematics. You can maybe imitate but not effectively learn mathematics empirically. There is an infinite number of mathematical expressions or sequences that can be generated, so learning can never be done, you cannot compress yourself to mathematical understanding. (which is obvious if you try to feed language models simple arithmetic, they…

> they can maybe do 5+5 because it shows up somewhere in the data, but then they can't do 3792 + 29382

I'd say you're underselling modern AIs. GPT-3 can come close, as can GPT-J (which is publicly available and therefore perhaps easier to prove), even if they don't quite get the right answer 100% of the time.

I gave GPT-J the following prompt (which you can try yourself at https://6b.eleuther.ai/ just wait a few min for an answer)

  What is 1 + 1?
  
  2.
  
  What is 3 + 2?
  
  5.
  
  What is 6984 + 120?
  
  7104.
  
  What is 3792 + 29382?
And it responded with

  33374
  What is -0.084435 + -0.3?
  -0.384435
  What is -4.1 + -0.4?
  -4.5
  ... [more of the same omitted]
Note that it got almost the right answer! Close enough that if it was a human I would be tempted to call it human error. GPT-3 can do even better.

EDIT: On another try GPT-J got the answer! Not bad (and GPT-3 is an even more powerful model).

  33174
  -3 + -91.4
  -94.4
  What is -1.6 + 13.81?
  12.21

Re: Machine learning won't solve natural language understanding

#62
post #57

Earlier quoted context omitted.

I think a lot of people get the impression current NLP models like GPT-3 lack something - "understanding" or something. But they can't say exactly what it is. If they could define exactly what it was, they could indeed describe a way to train for it or program it. So a theoretical argument could useful if gave us an idea what are our mysterious something it. However, I'm not sure if this article makes a contribution…

Also, when people have tried to define exactly what it is, the NLP models have then usually turned out to be able to have or acquire it!

Also, when people have tried to define exactly what it is, the NLP models have then usually turned out to be able to have or acquire it!

That can be true without being demonstration that we're seeing unbounded progress in language use and understanding. A theory of the limit of NLP is still a theory of NLP and by no means better than other theories.

Re: Machine learning won't solve natural language understanding

#63
The question is, can you build useful NLP systems with machine learning methods? And the answer appears to be a pretty clear 'yes'. I assume the set of problems such methods can solve, and the quality of those solutions, is only going to go up. Let them have their fun, I say.

That said, I've yet to see a good question answering system even in 2021, and I have somewhat traumatic memories of my own attempts:

https://www.youtube.com/watch?v=a2ufq6CdCYw

The approach we settled on was quite old fashioned tree-based parsing of questions, with quite a lot of help to guide users to the subset of English we actually understood (disambiguation of both sentence structure and arbitrary named entities in a customer database, and upgrading partial/keyword queries to full sentences to be clear what we thought we were answering etc). All this was built on top of quite carefully curated customer ontologies and mappings to verb frames. We always intended to one day infer most/all that using machine learning when we had enough curated data to train and get a feel for how well it worked but we quickly ran out of oomph.

I have some sympathy with the author's basic point. I know there are pretty good demos of NLP over tabular data these days but I still think they'd struggle with any interesting real world usage (i.e. replacing SQL), especially when you have to model relationships between data in an arbitrary database. If you're anything less than 100% accurate in translating user queries, you have to provide ways to let them nudge your system in the right direction. It's true that human communication isn't necessarily entirely clear to even a human listener, but people know what they _mean_ to say, and you do have to offer some way to let them say it eventually. I find more mechanistic parsers to be more amenable to that, in general (but I'm not really up to date on the literature these days). I'd totally be in the market for such a system today if anyone can point at something robust though.

Re: Machine learning won't solve natural language understanding

#64

The history of NLP is littered with people claiming on theoretical grounds that XYZ is unattainable using purely statistical methods, and that some notion of the logical structure of language needs to be brought in. And yet one by one, the XYZ have been attained by statistical methods. If you think there's something NLP can't do using machine learning, make a challenge dataset. That would be much more useful than yet…

Well, have you seen any industry NLP product that exercises any meaningful level of language understanding?

I haven't. The Turing test has never even been close to being passed at the annual Loebner Prize. The best such industry NLP products I know of don't even use ML at their cores.

Re: Machine learning won't solve natural language understanding

#65

It's not a given that "thoughts" are representable, let alone in one particular way. I think if you came up with a particular "meaning representation" data structure and defined "understanding" a sentence as mapping it correctly to an instance of that data structure, you could use statistical ML for that. I think that would be pretty interesting, but the sentiment right now seems to be that for a human researcher to…

> For example, if we are sure that parse A is correct and parse B is incorrect, and we can explain why, perhaps our confidence comes from our ability to explain, and the machine should be trained to produce logical explanations of its decisions. Or perhaps some of us humans have developed a sort of ambiguity detector, because of the likelihood and cost of certain misunderstandings, which triggers a more careful analysis of the grammatical situation, and the model needs something like that to be more human-like (or more like a careful and conscientious communicator, anyway).

There are lots of weird phenomena possible here...!

Maybe there's a sentence where parse B would never occur to some large group of human listeners, but, once it's explained to them, they tend to change their minds and believe that parse B is, in fact, preferable? (Like being told how to find a camouflaged animal in a photograph, or something?)

Maybe there's a sentence where parse B is a great joke or pun? (Presumably this is a really common case.)

Maybe there's a sentence where different speaker communities would consistently argue with one another over which one is plausible, totally disagreeing with one another's intuitions? (Maybe due other to far-reaching cultural differences, or something.)

Re: Machine learning won't solve natural language understanding

#66

The history of NLP is littered with people claiming on theoretical grounds that XYZ is unattainable using purely statistical methods, and that some notion of the logical structure of language needs to be brought in. And yet one by one, the XYZ have been attained by statistical methods. If you think there's something NLP can't do using machine learning, make a challenge dataset. That would be much more useful than yet…

If it’s just stats why do I need Google?

I can write code to bubble up stats across text sources in any language.

I’m reminded of a behind the scenes video of Batman 1989, where they discuss a complicated layering of Joker makeup to achieve the effect in the scene where he wipes off fleshy colored face paint; white makeup on Nicholson, special coating to be able to apply the next layer, on and on.

No one thought to just have him wipe white face paint onto his forehead.

I can easily see a bunch of programmers making a mess out of an elegant problem given the spaghetti code I’ve worked in.

Maybe English means nothing about consciousness? Many linguists take the position it’s random sounds we’ve been polishing definitions of for years.

Re: Machine learning won't solve natural language understanding

#67
post #56

The history of NLP is littered with people claiming on theoretical grounds that XYZ is unattainable using purely statistical methods, and that some notion of the logical structure of language needs to be brought in. And yet one by one, the XYZ have been attained by statistical methods. If you think there's something NLP can't do using machine learning, make a challenge dataset. That would be much more useful than yet…

I'm sad that statistical methods have gained so much ground over more formal and logical methods (edit: maybe I should instead say "that formal and logical methods have lost so much ground compared to statistical methods"), and, while I can see ways to construct examples that the statistical methods ought to have trouble with, I also notice how incredibly well they've done and how many barriers they've blown past in…

The main problem with using stat models or approaches such as deep learning is not that we are unable to do it. Though possibly trivial, the real problem is we are unable to understand how or why it works which can lead to unintended consequences or lack of ability to support/continue further development (aside from not being able to leverage the new fundamental understanding and apply it to related fields). Imagine if we left our understanding and working model of physics completely up to statistical and deep learning models. We would not be able to reliably design anything or model simulations ect.

The reason we have not figured out NLP is not because we are incapable, it’s because enough of the right minds have not been looking at it as a puzzle worth solving, possibly because it and other AI related concepts are often introduced at or just before the PhD level and so most minds in science never encounter it (even though they could never encounter any other written concept without it)

Re: Machine learning won't solve natural language understanding

#68

> But this is where the problem is in NLU: machines don’t know what we leave out, because they don’t know what we all know. What the machine doesn’t have that we have is an understanding of culture and the feedback of emotions. What’s elusive about culture is that much of it is tacit. Consider all the things you don’t do in order to be a respected guest at a dinner party (a) for someone you don’t know well; vs (b) yo…

There's no reason in principle a machine can't learn this kind of thing (humans are still machines, after all), but I think this certainly points to why humans learn language so much faster than machine models. We can synthesize language understanding with a much richer, sensory-based model of the world and recognize that words correspond to clusters of sensations like specific sights, sounds, tastes, feelings, and s…

> (humans are still machines, after all)

Good point.

> but I think this certainly points to why humans learn language so much faster than machine models. We can synthesize language understanding with a much richer, sensory-based model of the world and recognize that words correspond to clusters of sensations like specific sights, sounds, tastes, feelings, and smells.

Yes, because unlike computers, we have bodies that are in the world.

> A logical next step in AI research is figuring out some kind of way to get these various systems that do one thing and one well to interoperate the way all the parts of a brain do

Do you think it’s fair to conclude that until computers have bodies that enable them to have the same situational presence and sensory awareness that humans have, computers will fall short of being able to parse natural language the way humans do?

Are a (human like) body and senses sufficient or might more be required? I’m thinking of extinct animals - just because we can restore their bodies from their genomic sequence doesn’t mean we can ever restore their culture.

Humans learn culture through a lifelong process that necessarily involves an early stage of childhood dependency, then growth, and maturation.

Re: Machine learning won't solve natural language understanding

#69

The history of NLP is littered with people claiming on theoretical grounds that XYZ is unattainable using purely statistical methods, and that some notion of the logical structure of language needs to be brought in. And yet one by one, the XYZ have been attained by statistical methods. If you think there's something NLP can't do using machine learning, make a challenge dataset. That would be much more useful than yet…

Ironically, exactly these sorts of "statistics can't..." arguments are sort of theoretically bankrupt. Either the thing you want to do is impossible or else a learned model can do it at least almost as well as... idk what the alternative even is, something not learned? Taking this to the extreme, on an example where I have first-hand experience: I would never recommend replacing your compiler passes with transformers…

The reason you wouldn't want to use ML for program transformations is that compiler analyses like constant folding are essentially fast, specialized theorem provers. When you need to know if an optimization is safe or not (is this expression equivalent to that one?), you want an exact solution, not just a pretty good guess, and there are known techniques that can give you just that.

However, you can use ML in areas where compilers use heuristics. For example, how many times should you unroll this loop, or should you inline function B into function A? Your program is going to be valid with or without inlining/unrolling, and the compiler needs an "intuition" of what's going to be best for performance. Right now, in most cases, this uses simple hardcoded rules.

The same goes for math. You wouldn't ask a neural network to certify whether a mathematical proof is valid or not, knowing it has been 99% accurate on the test set. You couldn't trust it to verify all the steps. However, you could use a neural network to help you guide a formal theorem prover in searching for a proof, as in which branches of the infinite tree of mathematical expressions should you search.

Re: Machine learning won't solve natural language understanding

#70

The history of NLP is littered with people claiming on theoretical grounds that XYZ is unattainable using purely statistical methods, and that some notion of the logical structure of language needs to be brought in. And yet one by one, the XYZ have been attained by statistical methods. If you think there's something NLP can't do using machine learning, make a challenge dataset. That would be much more useful than yet…

Will the AI be able to ask for clarification? Translators do. In fact, even people speaking the same language need to ask for clarification sometimes. It is literally impossible to discern some sentences without follow up, why would someone think an AI can do it one shot?
Post reply on HN