Natural language understanding (NLU)

Natural language understanding is the part of natural language processing concerned with getting a computer to work out what text or speech actually means, not just which words it contains.

Natural language understanding, or NLU, is the branch of natural language processing that deals with machine reading comprehension: turning words into meaning a computer can act on. Its counterpart, natural language generation, goes the other way, turning meaning into words. NLU has long been regarded as one of the hardest problems in AI, because understanding language seems to require much of what understanding the world requires.

The difficulty lies in ambiguity and context. 'Book a table for two at eight' has to become a restaurant booking for two people at 8pm, not 8am, and a system has to know that 'book' here is a verb. In voice assistants and customer service bots, NLU is the step that identifies the user's intent and extracts the details. More ambitious systems use semantic parsers to translate sentences into formal representations a program can reason over.

Early systems worked in tightly limited worlds. Daniel Bobrow's STUDENT, written for his MIT doctorate in 1964, solved algebra word problems stated in simple English. Joseph Weizenbaum's ELIZA, in the mid-1960s, held conversations by matching keywords and filling in canned phrases, with no real understanding at all. Terry Winograd's SHRDLU, in 1971, understood instructions about a world of toy blocks and moved them with a simulated robot arm. Each impressed within its narrow world and broke outside it.

Benchmarks have tracked progress since. The GLUE benchmark, introduced in April 2018 by Alex Wang, Samuel Bowman and colleagues, bundled a range of existing NLU tasks into a single test. Scores rose so quickly, helped by pre-trained models such as BERT, that by May 2019 the same group released SuperGLUE, a harder successor, noting that performance on GLUE had already passed the level of non-expert humans.

Whether today's language models truly understand language is still argued over. They answer questions, follow instructions and resolve ambiguity far better than any earlier system, but they can also fail in ways no human reader would. Benchmark scores measure performance on particular tasks, not comprehension itself, and they tend to saturate quickly. For practical purposes, the useful question is whether a system interprets the requests that matter to you correctly and reliably.

Common questions

What is the difference between NLP, NLU and NLG?

Natural language processing (NLP) is the whole field of getting computers to work with human language. Natural language understanding (NLU) is the part concerned with interpreting meaning, and natural language generation (NLG) is the part concerned with producing text. A chatbot uses NLU to read your message and NLG to write its reply.

What are examples of natural language understanding?

Voice assistants working out what you want, customer service bots routing a complaint, search engines interpreting a question, and email systems sorting messages by topic all rely on NLU. Machine translation and question answering also depend on it.

Do large language models understand language?

They perform very well on many understanding tasks, often above non-expert human level on standard benchmarks, but researchers disagree about whether this amounts to understanding in a human sense. They can still misread unusual phrasings or fail on questions that require knowledge of the physical world.

How is natural language understanding measured?

Mostly through benchmarks: collections of tasks such as question answering, inference and sentiment classification with known correct answers. GLUE, introduced in 2018, and its harder successor SuperGLUE, from 2019, were influential examples. Because models quickly saturate such tests, new and harder benchmarks keep appearing.

Finding more

Search for "natural language understanding", "GLUE benchmark" or "semantic parsing" to explore how machines interpret language. The original papers on arXiv, proceedings of the Association for Computational Linguistics and university NLP courses are reliable sources. Treat claims that a system 'understands' language with care, and look for which tasks it was tested on and how.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.