NLP Foundations

35 beliefs (35 IN, 0 OUT)

NLP Foundations covers the structural, historical, and conceptual substrate on which modern language modeling is built. The topic spans the full arc of NLP's evolution through three major paradigms — symbolic and rule-based systems from the 1950s through the early 1990s, statistical and machine-learning methods in the 1990s and 2000s, and neural and deep-learning architectures from roughly 2015 onward (nlp-three-paradigms-timeline, nlp-evolution-driven-by-three-resisted-paradigm-shifts). This progression is not merely academic; it explains why the input representation layer, including both subword tokenization strategies and positional encoding schemes, remains an actively contested design space with no single convergent winner (input-representation-remains-actively-contested-design-space). The topic also fixes the canonical processing pipeline — tokenization, stemming or lemmatization, part-of-speech tagging, parsing, named entity recognition, semantic role labeling, and textual entailment — and situates each step within a hierarchy from characters up through tokens, sentences, parses, and finally application-level tasks (nlp-standard-pipeline-order, nlp-pipeline-hierarchy). Understanding this scaffolding matters because even as neural networks have rendered many intermediate pipeline steps unnecessary for high-resource tasks (neural-nlp-eliminated-feature-engineering), the foundational concepts still govern how models receive and structure input.

Several claims form a tightly connected cluster around tokenization's unique epistemic position. Subword tokenization via BPE or WordPiece uses statistical frequency-based merging rules rather than linguistic grammars, producing variable-granularity tokens that differ fundamentally from both compiler lexer tokens and classical word-level NLP tokens (subword-tokenization-bridges-lexical-and-neural-worlds, bpe-tokenization-procedure, lexer-vs-llm-tokenization). A compiler-theory analogy illuminates this separation of concerns — a finite-state lexer handles local symbol recognition while a pushdown parser handles recursive structure — but the parallel is conceptual rather than mechanistic, since tokenization is not strictly finite-state and the model's core computation is not a pushdown automaton (compiler-theory-illuminates-tokenizer-model-separation-v2). Tokenization is a prerequisite preprocessing step that precedes all downstream structural analysis (tokenization-preprocessing-precedes-structural-analysis), yet its difficulty varies enormously across languages: trivial for space-delimited English but a significant challenge for Chinese, Japanese, and Thai (tokenization-trivial-space-delimited-hard-cjk, word-segmentation-critical-spaceless-languages). This cross-linguistic gap reveals a persistent generalization barrier, because techniques that appear universal often embed language-specific assumptions like space delimitation or capitalization (cross-linguistic-assumptions-create-generalization-barrier). BPE and Unigram Language Model are the two major subword algorithms, implemented in HuggingFace's Rust-based tokenizers library and the C++ sentencepiece library respectively (bpe-and-ulm-subword-tokenization-algorithms, tokenizers-rust-sentencepiece-cpp-implementations).

The historical narrative threads through several causal and contextual claims. The neural turning point is dated to 2003, when Bengio et al. showed a multi-layer perceptron language model outperforming the best n-gram model (bengio-2003-mlp-outperformed-ngram-neural-turning-point), but the field's acceptance lagged: deep learning was met with skepticism at Socher's ACL 2012 tutorial before achieving dominance by 2015, a roughly three-year paradigm shift (deep-learning-nlp-skepticism-2012-dominance-2015). Chomsky's theoretical emphasis on corner cases and the poverty-of-the-stimulus argument actively discouraged the data-driven approaches that later proved successful (chomsky-resisted-data-driven-nlp), and the revolution ultimately overcame both that institutional resistance and the established statistical methods (neural-nlp-revolution-overcame-institutional-resistance). Earlier statistical milestones, such as HMM-based part-of-speech tagging marking the rule-based-to-statistical transition (hmm-pos-tagging-transition), and the CoNLL shared tasks' progressive increase in linguistic abstraction from shallow parsing in 1999 to semantic parsing in 2019 (conll-shared-tasks-progressed-increasing-abstraction-1999-2019), provide the statistical-era context. At the task level, NLP is classified as AI-complete (nlp-classified-ai-complete), its four major processing tasks are speech recognition, text classification, NLU, and NLG (nlp-four-major-tasks), and NLG and NLU are framed as inverse operations (nlg-and-nlu-are-inverse-operations). Parsing itself split into dependency (word-to-word relations) and constituency (PCFG-based phrase trees) approaches (dependency-vs-constituency-parsing), and the neural era reframed parsing as language modeling and grammar induction as sequence-to-sequence learning (parsing-as-language-modeling-choe-charniak-2016). Supporting infrastructure beliefs note that rule-based systems remain useful for low-resource languages and post-processing (rule-based-nlp-still-useful), that Koskenniemi's two-level morphology underpins computational word-form analysis (koskenniemi-two-level-morphology-1983), that lemmatization and stemming are distinct segmentation techniques (lemmatization-vs-stemming), and that word, sentence, and text chunking are three separate segmentation tasks (text-segmentation-three-distinct-tasks-taxonomy). The canonical pedagogical references are Jurafsky and Martin, Manning and Schütze, and Eisenstein (canonical-nlp-textbooks). One practical caveat is that training large NLP models can emit over 250 tons of CO2, equivalent to five or more cars over their lifetimes (strubell-250-tons-co2-large-nlp-training). Finally, natural language's inherent ambiguity means a typical sentence may admit thousands of syntactically valid parses, most nonsensical to humans (nlp-sentence-ambiguity-thousands-of-parses), which motivates the statistical and neural approaches that dominate the current paradigm.

All beliefs in this topic group carry an IN status; none have been retracted or marked OUT. This means the knowledge base currently treats every claim here as active and unchallenged, with no internal contradictions flagged at the TMS level. The beliefs function largely as independent factual or interpretive premises rather than a strictly derived hierarchy, though several are thematically interlocking — for instance, the tokenization cluster (procedure, compiler parallel, cross-linguistic barrier, implementation details) and the paradigm-shift narrative (2003 turning point, 2012 skepticism, 2015 dominance, Chomsky resistance) each form a small sub-narrative whose individual beliefs support and contextualize one another.