AI GLOSSARY · AI CONCEPTS
Language model
Definition
A language model estimates probabilities or scores for linguistic units and sequences. Autoregressive models predict a next token from preceding context; masked models estimate hidden tokens using surrounding context. A large language model is a scaled-up member of this category.
Also called: language models, language modeling, language modelling, statistical language model, LM.
In plain language
One common kind of language model estimates which token could come next. Other models estimate hidden tokens from surrounding text. Given the start of a sentence, such as 'The water of Walden Pond is so beautifully', it scores possible next words: 'blue' or 'clear' rate far higher than 'refrigerator'. Speech recognition (per Wikipedia) and spelling correction (per Stanford's chapter 3) use this idea, and so do chat assistants. The limit is that the score reflects patterns in the text it learned from. A likely-sounding word is not a checked fact, so a fluent answer can still be wrong.
Technical definition
Language-modeling approaches include count-based n-gram models and neural models. Autoregressive models estimate a token conditional on earlier context, which can define sequence probabilities by chaining conditionals. Masked language models estimate hidden tokens from surrounding input and do not share the same left-to-right objective. NLTK also exposes unnormalized backoff scorers, so check whether a particular implementation returns normalized probabilities or other scores. Architecture, scale and instruction following are separate properties.
Worked examples in this catalogue
Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.
Guide · Illustrative, not executed
What Is an LLM? The Facts Agent Users Need
- What you see
- A guide distinguishing model behavior from the application, with an autoregressive Transformer decoder example, a contrasting BERT masked objective, and runtime context versus learned parameters.
- Why it exercises the concept
- It covers the large-scale neural version of a language model, as it behaves in an agent session. This entry is the broader term.
Skill by Skill Almanac · Illustrative, not executed
context-window-packer 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- Chooses which files fit one prompt's token budget and records what was kept, shrunk or dropped.
- Why it exercises the concept
- A language model reads its input as tokens within a limit. The skill works on that budget; it does not train or evaluate a language model.
Skill by Skill Almanac · Illustrative, not executed
local-model-sizing 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- Works out whether an open-weight language model will run on a given GPU, Mac or PC, with a script.
- Why it exercises the concept
- It is a practical step that involves picking a language model to run yourself. It estimates fit, not quality.
Skill by Skill Almanac · Illustrative, not executed
llm-eval-test-sets 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- Builds and validates an eval dataset for any LLM feature, with a checker for duplicates and missing grades.
- Why it exercises the concept
- Checking a language model's output needs test cases. The skill prepares those; it does not itself measure how well a model predicts words.
How it shows up when you use agents
Agent sessions run on a language model. The application, not the model, decides what to send and which tools to offer. This page is about the general idea; the large language model page covers the large neural kind that most agents use.
For an autoregressive model, the scoring task concerns possible next tokens; masked models use surrounding context instead. Stanford's n-gram chapter introduces next-word sequence modeling. A fluent reply has not thereby been checked against your repository or a source. When an agent states that a function exists, run the code or open the file.
Language models also exist at small scale and in older forms. An n-gram model counts word sequences; a neural model learns parameters. Text is split into tokens first, and tokens are what limits and costs are counted in. If you are choosing which model to run, the local-model-sizing skill estimates whether it fits your hardware, but fit says nothing about how well it answers.
Common confusions
- Language model versus large language model. A large language model is one kind of language model. The Stanford chapter introduces the simplest kind, the n-gram model, as a way to teach ideas that carry over to larger ones.
- Language model versus chatbot. A chatbot is an application that may use a language model. The model scores words; the application adds the conversation, tools and memory.
- Next-word prediction versus understanding. Next-token prediction is an autoregressive training objective, not the only language-modeling objective. Whether the result amounts to understanding is a separate question this entry does not settle.
- Causal versus masked. Hugging Face describes both: causal models predict the next token from the left only, and masked models fill in hidden tokens. They are different setups for training.
Related terms
Terms that mention Language model
204 terms mention this one
- Agent evaluation
- Agent harness
- Agent loop
- Agentic coding
- Agentic RAG
- AI agent
- AI agent marketplace
- AI assistant
- AI code review
- AI detector
- AI meeting assistant
- AI model
- AI music
- AI pair programming
- AI search engine
- AI tutor
- AI workflow
- AlphaGo
- AnythingLLM
- Autoencoder
- AutoGen (Microsoft)
- AutoGPT
- AUTOMATIC1111 (Stable Diffusion web UI)
- Autonomous agent
- Autoregressive model
- AWQ quantization
- Beam search
- BERT
- BERTScore
- Bolt.new
- Byte-pair encoding (BPE)
- Chain of thought
- Chainlit
- Character.AI
- Chatbot
- Chatbot Arena (LMArena)
- ChatGPT
- Chunking
- Code execution (tool)
- Code generation (AI)
- Coding agent
- Cohere
- Compute (AI)
- Computer vision
- Context engineering
- Context rot
- Core ML
- Data curation
- Deep learning
- DeepSeek
- Descript
- Diffusion model
- Diffusion transformer (DiT)
- Dify
- Direct preference optimization (DPO)
- DSPy
- ELIZA (chatbot)
- Embedding
- Encoder-decoder
- Expert system
- Explainable AI (XAI)
- Feedforward neural network
- Few-shot learning (FSL)
- Few-shot prompting
- Firecrawl
- Fireflies.ai
- FlashAttention
- FLOPS (floating-point operations per second)
- Flowise
- Gemma
- Generative adversarial network (GAN)
- Generative AI (gen AI)
- Generative model
- GGUF
- GLM (Zhipu)
- GPT (generative pre-trained transformer)
- GPT4All
- GPTQ
- GraphRAG
- Groq
- GSM8K
- HellaSwag
- Hierarchical Navigable Small World (HNSW)
- HuggingChat
- Image classification
- Imagen (Google)
- In-context learning (ICL)
- Inference
- Information extraction
- InstructGPT
- Instruction tuning
- JAX (library)
- KoboldCpp
- Kubeflow
- LangChain
- Langflow
- Large language model (LLM)
- Lemmatization
- Letta (MemGPT)
- Liquid neural network
- LiveCodeBench
- Llama (Meta)
- llama.cpp
- LlamaIndex
- LLM benchmark
- LLM gateway
- LLMOps
- llms.txt
- LM Studio
- Loss function
- Manus (AI agent)
- MCP resources
- Mem0
- Meta-prompting
- Mistral (models)
- MLOps
- MLX (Apple)
- MMLU (Massive Multitask Language Understanding)
- Model router (LLM routing)
- Monte Carlo tree search (MCTS)
- MT-Bench
- Multi-agent system
- Multi-head attention
- N-gram
- Named entity recognition (NER)
- Narrow AI
- Natural language processing (NLP)
- NeMo Guardrails
- Nemotron
- Neural network
- Neuromorphic computing
- Ollama
- One-shot learning
- Open-weights model
- OpenAI Agents SDK
- Otter.ai
- OWASP Top 10 for LLM Applications
- Perplexity (AI search)
- Phi (Microsoft)
- Pinecone (vector database)
- Positional encoding
- Pretraining
- Prompt
- Prompt chaining
- Prompt engineering
- PydanticAI
- Question answering (QA)
- ReAct prompting
- Reasoning model
- Recurrent neural network (RNN)
- Reinforcement learning
- Replika
- Reranking
- Reward model
- RLAIF (reinforcement learning from AI feedback)
- Reinforcement learning from human feedback (RLHF)
- Scalable oversight
- Scaling laws
- SDXL
- Self-hosted LLM
- Self-supervised learning
- Semantic caching
- SGLang
- Small language model (SLM)
- smolagents
- Sparse attention
- Speculative decoding
- Speech recognition
- Speech-to-text
- Superintelligence (ASI)
- Supervised learning
- SWE-bench
- Symbolic AI
- Synthetic data
- System prompt
- τ-bench (tau-bench)
- Temperature (LLM sampling)
- TensorFlow
- Text generation web UI
- Text summarization
- Text-to-SQL
- Time series forecasting
- Token
- Tokenization (NLP)
- Tokenizer
- Top-k sampling
- Top-p sampling
- Transformer
- Transformers library (Hugging Face)
- Tree of thoughts (ToT)
- Triton Inference Server
- TruthfulQA
- Types of AI
- Variational autoencoder (VAE)
- Vision model
- Vision transformer (ViT)
- Vision-language-action model (VLA)
- vLLM
- AI voice agent
- Web search tool
- Weights & Biases (W&B)
- Word2vec
- World model
- YOLO (object detection)
Guides that mention Language model
More in AI concepts
Sources
- Speech and Language Processing, chapter 3: N-gram Language Models (Jurafsky and Martin, draft of August 19, 2026), Stanford University (accessed 2026-11-24)
- Causal language modeling, Hugging Face (accessed 2026-11-24)
- Masked language modeling, Hugging Face (accessed 2026-11-24)
- Language model, Wikipedia (accessed 2026-11-24)
- nltk.lm: language models and StupidBackoff scores, NLTK (accessed 2026-11-24)
Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.
Review record
Last verified
Drafted by Claude (original draft); OpenAI Codex (bounded factual repairs); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .
Change log (7)
- : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
- : First version.
- : Verifier pass: attributed the plain-text uses, added the masked language modeling source, softened an absolute and dropped an unsourced tool sentence.
- : Targeted correction from source-supported early audit; complete exact-version review remains pending.
- : Volume1900 exists in a derived cache, but its query-level raw receipt was not located in this review. Stored as unknown pending provenance; not evidence of zero demand.
- : Bounded source repairs: Matched current LLM guide to its Transformer/BERT objective and runtime-context examples; removed stale universal decoding/API framing. Pending independent re-review.
- : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.