MNLP-L01: Overview

In short

What is NLP, how did deep learning and large language models change it, and where do other languages come in?

NLP builds algorithms that model human language. It used to need a separate method and hand-built features for every task; neural networks replaced that with a few general architectures that learn their own features, at the price of needing lots of data and failing in ways that are hard to trace. Large language models (LLMs) now do whole tasks end to end, but they learn mostly from English web text, so they work best on English and other languages with plenty of web text.

The course splits the problem in two. Multilingual NLP builds one system that works for many languages. Crosslingual NLP moves information or knowledge from one language to another.

No sample exam question covers this lecture. Expect statements on that split, and on what deep learning and LLMs do and do not do.

What NLP models, and why it is hard

Information can be sorted in two ways:

  • Structured (tables, databases) against unstructured (language, images and video).
  • Continuous signals (spoken language and audio, images and video) against discrete signals (written language).

So written text is unstructured and discrete; speech and video are unstructured and continuous.

Language is people’s medium of choice for complex information: a limited set of words can express an almost unlimited amount of it. Every child learns one, so it looks easy, yet decades of NLP research show it is hard to model formally.

Who did not press charges against Clarkson?

In an example used by Blunsom (2017), a news item says “the BBC producer allegedly struck by Jeremy Clarkson will not press charges”, and only a later sentence names “producer Oisin Tymon”. To answer, a reader has to work out that the two phrases are the same person. People do this without noticing; a program has to be built to do it.

Natural language processing

A field at the intersection of computer science, artificial intelligence and linguistics. Its goal is to algorithmically and formally model aspects of human language such as word formation (morphology), sentence structure (grammar), sentence meaning, and document or discourse structure.

The tasks NLP serves

NLP techniques serve concrete end-user tasks, such as text categorization (sorting documents into classes), summarization, machine translation and question answering. That is why much of the IT industry (Google, Microsoft, Amazon, Bloomberg and others) invests in them. In industry that means matching web ads to users, analysing reviews, speech recognition and synthesis, translating web pages and dialog agents.

Question answering differs from retrieval in what goes in and what comes out. In document retrieval (Information Retrieval) the user types keywords, and even a well-formed question is chopped into words: “When was the Cuba Crisis?” becomes {cuba, crisis} after stop-word removal. The system returns a ranked list of documents. In question answering the user types a well-formed question and gets back the actual answer, or a short list of them: “1962” for “When was the Cuba Crisis?”, or “Warsaw” for “What is the capital of Poland?“.

Named entity recognition (NER) finds names, since names are strong signals of what a text is about. The usual entity types are persons, organisations, dates and locations: “President [Biden] has received the French prime minister [Macron]”, with both names tagged as persons. A news site can use it to link each mention of a person to that person’s topic page. NER seems trivial for English, though it still makes silly mistakes, and is much harder for other languages.

Summarization keeps the most important content so a reader can browse quickly. It works on a single document or several. Systems traditionally used frequency-based term weights borrowed from information retrieval to decide what is important.

Sentiment analysis estimates the attitude a text expresses, such as a product review. The categories can be simple (positive or negative) or fine-grained (“X likes Y about Z”: a person likes some aspect of a product or entity). It requires NER, which finds who X is and what Z is, and works at both the sentence and the document level. A five-star review can be uninformative, or hide a real complaint in one sentence, which is why the sentence level matters.

Machine translation (MT) matters because roughly half of all web pages are in languages other than English. It translates from any language into any other, typically one sentence at a time, and needs both “understanding” of the source sentence and the ability to generate sentences in the target language. Neural MT often reaches impressive quality, and it can also fail spectacularly: a Dutch sentence meaning “Peter R. de Vries may not be present at Holleeder’s questioning” came out as “Peter R. de Vries may not be Holleeder during questioning”.

From feature engineering to neural networks

Before deep learning, every application needed its own approach. Each combined a machine learning method (support vector machines, decision trees, generative Bayesian models, discriminative maximum-entropy models) with hand-built features:

  • word classes: part-of-speech (POS) tags, morphology
  • syntactic features: parse trees
  • semantic features: named entities, taxonomies, argument roles (who did what to whom)

Machine learning’s job was to weigh how important each feature is for making correct predictions. The features themselves came from people.

Neural networks now hold the state of the art for all NLP applications. Their advantages: strong performance, very little or no feature engineering (the network learns its own representations), and a limited repertoire of network types that applies to most, perhaps all, NLP tasks. Their disadvantages: they require large amounts of training data, their errors are difficult to trace, and they can get it spectacularly wrong.

The same success shows up across AI: computer vision, handwriting recognition, speech recognition, robotics, information retrieval. Insights transfer between these fields because the network types are uniform and few features are specific to one application.

What large language models changed

LLMs originated within NLP and now dominate the research landscape. They are used in two ways:

  • carrying out traditional NLP tasks end to end: question answering, document summarization, machine translation
  • substituting or supplementing human effort: annotating data with labels, evaluating outputs (LLM as a judge), mimicking human dialog

Four LLMs translate one Amharic sentence

The sentence (Amharic, an Ethiopian language: the course does not name it, but the script and grammar are Amharic) says that the embassy in South Sudan asked for an investigation into the attack in which Ethiopian peacekeepers were killed. GPT-5.6 Terra, Gemini 3.6 Flash and Claude Sonnet 4.6 all translate it correctly, in slightly different words: “The embassy in South Sudan called for an investigation into the attack in which Ethiopian peacekeeping soldiers were killed.”

Mistral Small 3.2 gives: “The Ethiopian embassy in Khartoum, where the Ethiopian peacekeepers were detained, is closed.” A different place, detained instead of killed, an embassy closing instead of asking for an investigation: a fluent translation of an event the source does not describe.

Why LLMs are weaker outside English. LLMs are trained mostly on Internet resources, and English makes up about half of that material, with Chinese, German, Spanish and Japanese far behind. So most state-of-the-art models are English-centric. General models that are also multilingual, such as Llama 3.1 and DeepSeek, do better on high-resource languages (those with plenty of data). Models built specifically to be multilingual, such as Aya-Expanse, tend to lag behind. The course does not say behind what; the natural reading, used in this note, is behind general models such as Llama 3.1 and DeepSeek.

Multilingual against crosslingual

The rest of the course is organised around this split.

Multilingual means one system that handles many languages. The questions are about building it so that it is not tied to any one language:

  • NER for multiple languages: how to build a system that can be trained without being language-specific?
  • Language-independent parsing: how to find language-independent, or universal, features of sentence structure?
  • Sentence or document classification across languages: again, how to build a system that can be trained without being language-specific?

Crosslingual means information or knowledge has to cross from one language into another. The guiding question: how does knowledge transfer across languages, for example between English, which has the most data, and Chinese?

  • Machine translation: how to make information understandable across languages?
  • Crosslingual question answering: how to extract information from resources written in other languages?
  • Crosslingual unlearning: how to manipulate information across languages?
  • Crosslingual reasoning: how to combine information that comes from different languages?

The split

Multilingual: one system works for multiple languages without being language-specific; NER, parsing and classification for many languages. Crosslingual: information or knowledge crosses between languages; MT, crosslingual QA, crosslingual unlearning, crosslingual reasoning, and knowledge transfer from one language to another.

Classification across languages is multilingual

“Sentence/document classification across languages” is listed as a multilingual scenario. Its question is how to train one classifier without making it language-specific. The word “across” in the name does not make it crosslingual. The crosslingual scenarios are the ones whose question is about information or knowledge moving from one language to another.

Later lectures fill in both halves: MNLP-L06 - Contextual Embeddings tests whether a multilingual model (mBERT) fine-tuned in one language works in another (zero-shot crosslingual transfer), and MNLP-L07 - Crosslingual NLP adds explicit crosslingual training signals and covers machine translation.

What to be able to answer

  • Where text, speech and tables fall on structured/unstructured and continuous/discrete.
  • QA against IR: what goes in, what comes out.
  • NER is harder outside English; sentiment analysis needs NER and works per sentence and per document; MT works sentence by sentence.
  • Pre-deep-learning NLP (one approach per application, ML weighing hand-built features) against deep learning (no feature engineering, few architectures, data-hungry, opaque).
  • The two uses of LLMs, and why they are English-centric.
  • Which scenario is multilingual and which crosslingual (classification across languages is multilingual).

Model answers are in the exam questions below.

Exam questions

Flashcards