The History of Natural Language Processing

Matt George
Matt George

Fractional CTO · Founder of Injuria.ai

•19 min read•

The History of Natural Language Processing

Natural language processing is an interdisciplinary field of computer science, artificial intelligence, and linguistics concerned with the interactions between computers and human language. The primary objective of the field is to program computers to process, analyze, and generate large amounts of natural language data. The history of natural language processing spans more than seven decades, characterized by a transition from rule-based, symbolic approaches to statistical models, and finally to deep neural networks. The overarching constraint of the field has always been the complexity, ambiguity, and irregularity of human language, which resists simple mathematical formalization.

At its core, the discipline reflects a long-standing philosophical and scientific debate between rationalist and empiricist approaches to cognition. Rationalists argued that language is an innate human faculty governed by explicit rules, suggesting that computers could understand language if provided with the correct logical frameworks. Empiricists countered that language is learned through exposure to patterns, implying that machines should learn language by analyzing vast quantities of text. Over time, the empirical approach proved far more successful for computational applications, though the debate continues to influence how researchers interpret the internal mechanisms of modern artificial intelligence.

The earliest attempts at natural language processing focused heavily on machine translation, driven by Cold War intelligence needs and the desire to monitor foreign communications. These early systems relied on bilingual dictionaries and hand-coded grammatical rules. When these methods failed to scale to the complexities of unrestricted text, the field experienced a severe reduction in funding and enthusiasm. In the late 1980s, the introduction of machine learning algorithms and the availability of large digital text corpora shifted the focus to statistical methods. This era introduced techniques like hidden Markov models and n-gram language models, which calculated the probability of word sequences rather than attempting to parse rigid linguistic rules. The shift in methodologies reflected the increasing availability of computational power and digital text.

The 2010s marked another fundamental change with the adoption of deep learning. Researchers developed neural architectures that could represent words as dense vectors in continuous space, capturing semantic relationships mathematically. The subsequent invention of the Transformer architecture in 2017 removed the need for sequential data processing, allowing models to train on massive datasets in parallel. This led to the creation of large language models capable of generating human-like text, translating languages, and performing complex reasoning tasks, fundamentally altering human-computer interaction and the economics of artificial intelligence.

Origins and the Symbolic Era (1949 to 1980s)

The theoretical foundation for natural language processing was laid in the years immediately following World War II. In 1949, Warren Weaver, a researcher at the Rockefeller Foundation, drafted a memorandum titled "Translation"[1] in which he proposed using digital computers to translate human languages. Weaver suggested that techniques developed for cryptography and code-breaking during the war could be applied to language, treating Russian as a coded form of English. The following year, Alan Turing published "Computing Machinery and Intelligence"[2], proposing a criterion for machine intelligence based on natural language conversation, now known as the Turing Test.

These theoretical proposals quickly materialized into government-funded projects. On January 7, 1954, Georgetown University and IBM publicly demonstrated a machine translation system. The Georgetown-IBM experiment[3] successfully translated more than sixty Russian sentences into English using an IBM 701 mainframe computer. The system relied on a highly constrained vocabulary of 250 words and just six grammar rules, focusing primarily on the domains of chemistry and politics. The success of this demonstration led to optimistic predictions that machine translation would be solved within three to five years, prompting significant investment from the United States Department of Defense.

During this period, theoretical linguistics underwent significant changes that heavily influenced computer scientists. In 1956, Noam Chomsky published "Three models for the description of language"[4], introducing formal language theory and generative grammar. Chomskyan linguistics posited that natural languages could be described by formal, mathematical rules, specifically context-free grammars. Natural language processing researchers adopted this symbolic approach, attempting to encode the syntax and semantics of human language into complex, hand-crafted rule sets.

However, the complexity, ambiguity, and irregularity of natural language proved resistant to rigid symbolic logic. Words have multiple meanings depending on context, and grammatical rules are frequently broken in natural speech. By the mid-1960s, progress in machine translation had stalled. In 1966, the Automatic Language Processing Advisory Committee, formed by the United States government, released a highly critical report evaluating the state of the field titled "Language and Machines"[5]. The report concluded that machine translation was more expensive, less accurate, and slower than human translation, noting that the government had spent nearly 20 million dollars with little practical return. The publication caused a massive reduction in funding for machine translation research, initiating a period often referred to as the first artificial intelligence winter.

Despite the general downturn, a few pragmatic systems survived. The SYSTRAN company, founded in 1968, continued to develop rule-based translation software. Their systems were eventually adopted by the United States Air Force and the Commission of the European Communities, proving that while perfect translation was impossible, rough translations were still useful for intelligence and bureaucratic triage.

Shift to Natural Language Understanding

Despite the funding cuts, researchers continued to develop symbolic systems, shifting focus from translation to natural language understanding and dialogue within restricted domains. In 1966, Joseph Weizenbaum at the Massachusetts Institute of Technology created ELIZA[6], a program that simulated a Rogerian psychotherapist. ELIZA used pattern matching and substitution rules to respond to user input, demonstrating that a relatively simple script could create the illusion of understanding.

Terry Winograd developed SHRDLU between 1968 and 1970 (and published his thesis on it in 1971)[7], a program capable of understanding complex English commands within a simulated environment of geometric blocks. SHRDLU integrated syntax, semantics, and reasoning, allowing a user to ask the computer to "pick up a big red block" and the system would execute the command in the simulation. While successful, its capabilities were limited to its highly restricted micro-world and could not scale to general language.

To handle more complex grammatical structures, William Woods introduced Augmented Transition Networks. In his 1970 paper "Transition Network Grammars for Natural Language Analysis"[8], Woods described a method for parsing sentences by modeling grammar as a series of states and transitions, augmented with memory registers to handle linguistic agreements like pluralization. Woods applied this framework to build the LUNAR system in 1972, which allowed geologists to query a database of Apollo moon rock samples using natural English. In the 1970s, researchers like Roger Schank developed Conceptual Dependency theory, attempting to map natural language sentences into a universal representation of underlying semantics, though these systems also struggled with the manual labor required to encode knowledge.

The Statistical Turn and Corpus Linguistics (Late 1980s to 2000s)

By the late 1980s, the limitations of rule-based systems became undeniable. Hand-coding rules for every linguistic edge case was computationally intractable and practically impossible. The field experienced a methodological shift toward empirical, statistical methods, driven by the increasing availability of digital text and advances in computational power.

A major catalyst for this shift was the application of hidden Markov models to speech recognition. During the 1970s, the Defense Advanced Research Projects Agency funded the Speech Understanding Research program, which led to the development of the Harpy system at Carnegie Mellon University. Harpy successfully used a graph-search algorithm to recognize speech from a thousand-word vocabulary. Building on this, researchers like Lawrence Rabiner published highly influential tutorials demonstrating that hidden Markov models could effectively capture the probabilistic nature of speech signals, as detailed in "A tutorial on hidden Markov models and selected applications in speech recognition"[9]. A hidden Markov model represents a system as a Markov process with unobserved states, using transition probabilities between states and emission probabilities for the observed outputs.

Natural language processing researchers adapted these probabilistic models to text processing. Instead of asking whether a sentence was grammatically correct according to a set of rules, statistical models asked how probable a sentence was based on frequencies observed in real-world data. This was operationalized through n-gram language models, which calculate the probability of a word based on the sequence of the preceding n minus 1 words. To handle the sparsity problem, where valid word sequences might not appear in the training data, researchers developed smoothing techniques like Kneser-Ney smoothing to assign non-zero probabilities to unseen events.

The Rise of Annotated Corpora

This era saw the rise of corpus linguistics and the creation of standardized datasets. The Penn Treebank was first released in 1992, though the foundational paper describing it was published in 1993[10], a massive corpus of English text annotated with part-of-speech tags and syntactic structures. The initial release contained over 4.5 million words of text, primarily from the Wall Street Journal. The availability of the Penn Treebank provided the ground truth necessary to train and evaluate machine learning algorithms. Researchers could now use supervised learning techniques to train models for tasks like part-of-speech tagging, parsing, and named entity recognition. This led to the development of highly accurate statistical parsers, such as those created by Michael Collins and Eugene Charniak in the late 1990s, which used probabilistic context-free grammars to determine the most likely syntactic structure of a sentence.[46]

Machine translation also underwent a statistical transformation. In 1993, researchers at the IBM Thomas J. Watson Research Center introduced the IBM alignment models in their paper "The Mathematics of Statistical Machine Translation"[11]. These models treated translation as a cryptography problem, using statistical techniques and the expectation-maximization algorithm to find the most probable target sentence for a given source sentence based on parallel corpora. A parallel corpus consists of texts translated into multiple languages, such as the proceedings of the Canadian Parliament. The IBM researchers developed five distinct mathematical models, progressively adding complexity to account for word reordering and varying sentence lengths. Statistical machine translation quickly outperformed rule-based systems.

The development of the BLEU[12] (Bilingual Evaluation Understudy) score in 2002 provided an automated metric for evaluating translation quality by measuring n-gram overlap with human reference translations, accelerating the iteration cycle for research. Similarly, in 2004, Chin-Yew Lin introduced the ROUGE[13] (Recall-Oriented Understudy for Gisting Evaluation) metric, which became the standard for evaluating automatic text summarization systems. Open-source toolkits like Moses[14], released in 2007, democratized access to statistical machine translation technology.

During the 1990s and 2000s, researchers also developed foundational lexical resources and algorithms for information retrieval. In 1995, George Miller and colleagues at Princeton University published WordNet[15], a large lexical database of English that grouped words into sets of cognitive synonyms called synsets. Latent Semantic Analysis[16], introduced in 1990, applied singular value decomposition to term-document matrices, allowing computers to extract and represent the contextual usage of words. Software libraries such as the Natural Language Toolkit[17], originally released in 2001, provided accessible tools for text processing and statistical analysis, standardizing the implementation of tokenization, stemming, and classification algorithms.[47]

The Neural Network Renaissance and Word Embeddings (2010 to 2017)

While statistical methods dominated the 1990s and 2000s, they relied heavily on feature engineering. Researchers had to manually define the features that algorithms would use to make predictions. Traditional statistical models represented words as sparse, high-dimensional vectors using one-hot encoding. In this format, every word is an independent entity, and the mathematical representation fails to capture semantic similarity between words like "dog" and "canine."

The theoretical solution to this problem was proposed in 2003 by Yoshua Bengio and colleagues in their paper "A Neural Probabilistic Language Model"[18]. Bengio introduced a feed-forward neural network that learned a distributed representation of words simultaneously with the probability function of word sequences. This approach allowed the model to generalize to unseen sequences by using the learned similarities between words. However, training these neural networks was computationally expensive, and the method did not gain widespread adoption until hardware caught up.

In the early 2010s, the success of deep neural networks in computer vision prompted researchers to apply artificial neural networks to language at scale. A foundational development in neural natural language processing was the introduction of highly efficient dense word embeddings. In 2013, Tomas Mikolov and his team at Google introduced Word2Vec[19], a set of neural network models designed to learn continuous vector representations of words from large datasets. Word2Vec used two architectures, Continuous Bag-of-Words and Skip-Gram, to predict words based on their context. The training process forced words with similar meanings to map to proximate points in a continuous vector space, typically using 300 dimensions. In addition, the vectors captured complex semantic relationships, famously illustrated by the algebraic operation where the vector for "King" minus "Man" plus "Woman" results in a vector closest to "Queen." In 2014, researchers at Stanford University released GloVe[20] (Global Vectors for Word Representation), an alternative model that combined the benefits of global matrix factorization and local context window methods. Stanford CoreNLP was first released in 2010[21], integrating various statistical and early neural tools into a unified pipeline.

Sequence Modeling and Attention

With words represented as dense vectors, researchers applied Recurrent Neural Networks to sequence modeling tasks. These networks process input data sequentially, maintaining a hidden state that acts as a memory of previous inputs. This architecture was well-suited for language, where the meaning of a word depends on the preceding context. In 2010, Tomas Mikolov demonstrated that recurrent neural network language models[22] could significantly outperform traditional n-gram models. To address the vanishing gradient problem that plagued standard recurrent networks during backpropagation, researchers adopted the Long Short-Term Memory[23] architecture, originally proposed by Sepp Hochreiter and Jürgen Schmidhuber in 1997. These networks used gating mechanisms (input, output, and forget gates) to control the flow of information, allowing the network to retain context over much longer sequences. Concurrently, researchers like Yoon Kim demonstrated that Convolutional Neural Networks, traditionally used for images, could be adapted for text classification by applying filters over sequential word vectors.

The application of Long Short-Term Memory networks led to breakthroughs in machine translation. In 2014, Ilya Sutskever and colleagues at Google introduced the sequence-to-sequence framework. The model used one network, the encoder, to read the source sentence and compress it into a fixed-length vector, and a second network, the decoder, to generate the target sentence from that vector. While effective for short sentences, the fixed-length vector became an information bottleneck for longer texts. To solve this, Dzmitry Bahdanau and colleagues introduced the attention mechanism[24] in 2014. Attention allowed the decoder to dynamically calculate alignment scores and focus on different parts of the source sentence during each step of the translation process, significantly improving the translation of long and complex sentences.

The Transformer Architecture and Pre-training (2017 to 2022)

The sequential nature of recurrent neural networks presented a major computational constraint. They could not be trained in parallel because each step required the output of the previous step. This prevented researchers from fully utilizing the parallel processing capabilities of modern Graphics Processing Units.

In 2017, researchers at Google Brain and the University of Toronto published "Attention Is All You Need"[25], introducing the Transformer architecture. The Transformer discarded recurrence entirely, relying solely on a self-attention mechanism to model the relationships between all words in a sequence simultaneously. The self-attention mechanism computes a weighted sum of all words in a sentence for each target word, using mathematical constructs called Queries, Keys, and Values. Because the model processes all words at once, it requires positional encoding to retain information about word order. This parallelization allowed researchers to train models on vastly larger datasets than was previously possible.

The Transformer enabled a new methodology: unsupervised pre-training followed by supervised fine-tuning. Previously, models were trained from scratch for specific tasks using labeled datasets. In 2018, researchers at the Allen Institute for Artificial Intelligence introduced ELMo[26] (Embeddings from Language Models), which generated contextualized word representations using bidirectional recurrent networks. To standardize evaluation across multiple natural language understanding tasks, researchers introduced the GLUE[27] benchmark in 2018.

Shortly after, researchers at Google released BERT[28] (Bidirectional Encoder Representations from Transformers). BERT pre-trained a deep Transformer encoder on a massive corpus of unlabeled text using a masked language modeling objective, where the model learned to predict missing words based on their surrounding context. The base model contained 110 million parameters and achieved unprecedented performance across a wide range of benchmarks, establishing pre-training as the standard approach. The success of BERT led to numerous optimized variants, including RoBERTa, which modified the pre-training hyperparameters and removed the next-sentence prediction task, and ALBERT, which reduced memory consumption through parameter sharing.

Autoregressive Scaling and Unified Frameworks

Concurrently, OpenAI pursued an autoregressive approach with the Generative Pre-trained Transformer series. While BERT used the encoder part of the Transformer to understand context bidirectionally, the OpenAI models used the decoder part to predict the next word in a sequence. The release of GPT-2 in 2019 demonstrated that language models could perform zero-shot learning, completing tasks without any explicit fine-tuning simply by predicting the most likely continuation of a prompt.

In 2020, OpenAI released GPT-3[29], a model with 175 billion parameters. GPT-3 demonstrated that massive scaling of model size and training data led to emergent abilities, such as few-shot learning, where the model could perform tasks it was not explicitly trained for simply by reading a few examples in the prompt.

This era also saw the consolidation of software infrastructure. The Hugging Face Transformers[30] library, introduced in 2018 (originally as pytorch-pretrained-bert) and renamed in 2019, provided an open-source repository of pre-trained models and standardized programming interfaces, drastically reducing the barrier to entry for researchers and developers. Researchers also explored unified text-to-text frameworks, such as Google's T5[31] (Text-to-Text Transfer Transformer), which framed every natural language problem, including translation, summarization, and classification, as a text generation task.

The drive to scale models was formalized by the discovery of scaling laws. In 2020, Jared Kaplan and colleagues at OpenAI published research showing that language model performance scales predictably with compute, dataset size, and parameter count, as detailed in "Scaling Laws for Neural Language Models"[32]. This finding triggered an industry-wide race to build massive computing clusters and harvest internet-scale datasets.

Large Language Models and Modern Applications (2022 to Present)

The release of ChatGPT[33] by OpenAI on November 30, 2022, marked a turning point in the public adoption and commercialization of natural language processing. ChatGPT was based on the GPT-3.5 architecture but was fine-tuned using Reinforcement Learning from Human Feedback. The theoretical foundation for this alignment technique was established in the 2017 paper "Deep reinforcement learning from human preferences"[34] by Paul Christiano and colleagues, which demonstrated how human feedback could optimize reinforcement learning systems without explicit reward functions.

The specific application to language models, detailed in the InstructGPT[35] paper by Long Ouyang and colleagues, involved three steps: supervised fine-tuning on human demonstrations, training a reward model based on human rankings of artificial intelligence responses, and using the Proximal Policy Optimization algorithm to optimize the language model against that reward. This alignment technique made the model significantly better at following instructions and maintaining conversational context, transforming the underlying predictive engine into a highly capable digital assistant.

The success of ChatGPT initiated intense competition among technology companies. In March 2023, OpenAI released GPT-4[36], a multimodal model capable of processing both text and images, which exhibited human-level performance on various professional and academic benchmarks. To evaluate these increasingly capable systems, researchers developed comprehensive testing suites. The Measuring Massive Multitask Language Understanding[37] benchmark, introduced by Dan Hendrycks and colleagues in 2020, became the industry standard for assessing a model's knowledge across dozens of academic subjects.

Google responded by integrating its PaLM and Gemini models into its search and workspace products. In 2024, Google published "Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context"[38], detailing a model capable of processing up to two million tokens of text, audio, and video simultaneously, effectively solving the long-context retrieval problem. Meanwhile, Anthropic developed the Claude series of models, emphasizing safety protocols. To reduce the reliance on expensive human annotators, Anthropic introduced "Constitutional AI"[39] in 2022, a method where the model critiques and refines its own outputs based on a predefined set of ethical principles, replacing human feedback with artificial intelligence feedback during the reinforcement learning phase.

The open-source community also rapidly advanced. In February 2023, Meta released the LLaMA[40] (Large Language Model Meta AI) family of models. Unlike proprietary models hidden behind application programming interfaces, the weights for LLaMA were made available to researchers. Meta continued this strategy, releasing the highly capable Llama 3[41] series in 2024, which matched the performance of closed-source models on many benchmarks. This sparked a wave of open-source innovation, with developers creating efficient fine-tuning techniques to train large models on consumer-grade hardware. The most prominent of these techniques was detailed in the 2021 paper "LoRA: Low-Rank Adaptation of Large Language Models"[42] by Edward Hu and colleagues, which demonstrated how freezing the pre-trained model and injecting trainable rank decomposition matrices could reduce the number of trainable parameters by a factor of ten thousand without sacrificing performance.

Modern Constraints and Significance

The modern state of natural language processing is defined by massive computational and data constraints. Training frontier models requires tens of thousands of specialized accelerators, such as Nvidia H100 Graphics Processing Units, consuming megawatts of power and costing hundreds of millions of dollars. To manage computational costs during inference, researchers increasingly utilize sparse architectures. The foundational concept was outlined by Noam Shazeer and colleagues in their 2017 paper "Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer"[43]. This architecture routing input tokens to specialized sub-networks, or "experts," allowing the total parameter count to scale massively while keeping the active parameters per token relatively low.

In addition, researchers have identified a data wall, as the supply of high-quality, human-generated text on the internet is finite and nearing exhaustion. In 2022, researchers at DeepMind published the Chinchilla[44] paper, demonstrating that many previous large language models were significantly undertrained relative to their size, and that compute-optimal training requires scaling data and parameters in equal proportions, specifically recommending 20 tokens of training data for every model parameter.

Modern natural language processing systems are no longer confined to academic benchmarks. They are integrated into software development, legal analysis, customer service, and scientific research.[48] However, the reliance on statistical prediction means these models are prone to hallucination, generating plausible but factually incorrect information. To mitigate this, researchers increasingly rely on techniques like Retrieval-Augmented Generation[45], which grounds the model's output in external document retrieval. The lack of grounded reasoning and the opacity of neural network decision-making remain active areas of research. The field has evolved from the rigid symbolic logic of the 1950s to the probabilistic fluency of the 2020s, fundamentally altering the relationship between humans and machines by enabling computers to parse, generate, and interact through natural language.

Sources (48)
  1. Wikipedia: "Translation"
  2. "Computing Machinery and Intelligence"
  3. Wikipedia: Georgetown-IBM experiment
  4. IEEE
  5. "Language and Machines"
  6. ACM Digital Library
  7. dspace.mit.edu: SHRDLU
  8. ACM Digital Library
  9. IEEE
  10. Penn Treebank
  11. "The Mathematics of Statistical Machine Translation"
  12. BLEU
  13. ROUGE
  14. Moses
  15. ACM Digital Library
  16. Wikipedia: Latent Semantic Analysis
  17. Natural Language Toolkit
  18. "A Neural Probabilistic Language Model"
  19. Word2Vec
  20. GloVe
  21. Stanford CoreNLP
  22. recurrent neural network language models
  23. direct.mit.edu: Long Short-Term Memory
  24. attention mechanism
  25. "Attention Is All You Need"
  26. ELMo
  27. GLUE
  28. BERT
  29. GPT-3
  30. Hugging Face Transformers
  31. jmlr.org
  32. "Scaling Laws for Neural Language Models"
  33. ChatGPT
  34. "Deep reinforcement learning from human preferences"
  35. InstructGPT
  36. GPT-4
  37. Measuring Massive Multitask Language Understanding
  38. "Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context"
  39. "Constitutional AI"
  40. LLaMA
  41. Llama 3
  42. "LoRA: Low-Rank Adaptation of Large Language Models"
  43. "Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer"
  44. Chinchilla
  45. Retrieval-Augmented Generation
  46. Slav Petrov, Coarse-to-Fine Natural Language Processing (Springer Science & Business Media, 2011)
  47. Steven Bird, Ewan Klein, Edward Loper, Natural Language Processing with Python ("O'Reilly Media, Inc.", 2009)
  48. Masato Hagiwara, Real-World Natural Language Processing (Simon and Schuster, 2021)