Parameters Context Memory Training Data

LLMs interview question · Medium difficulty

What's the difference between parameters, context, memory, and training data?medium

Status
✓
Type
conceptual
Topic
parameters-context-memory-training-data
Frequency
common
Tags
parameters, context, memory, training-data
Answer

Training data is the text the model learned from and is not stored after training — only its influence on the weights remains. Parameters are the learned weights themselves, static at inference time. Context is the active input the model reads right now, cleared at the end of the session. Memory is application-managed information saved externally and retrieved into future conversations.

Explanation

These four terms get conflated constantly, but they're distinct layers. Training data is the large collection of text — web, books, code, conversations — used to train the model; after training it isn't stored anywhere retrievable, only its effect on the weights remains. Parameters are the learned weights of the network: they store patterns from training but not as a searchable database — knowledge is distributed across millions or billions of weights, and parameters don't change at inference time unless you fine-tune. Context is the current input given to the model during inference — user prompt, conversation history, system instructions, retrieved documents, tool outputs — and it's temporary, cleared at the end of the session; the model only "sees" what's in its current context window. Memory is user-specific information saved externally in a database or vector store and retrieved into future conversations; it's managed by the application, not the model itself, and is what enables personalization and recall across sessions without retraining.

Follow-upIf you wanted a model to remember a user's preference permanently, would you use context, memory, or fine-tuning?
Follow-upWhy can't training data be retrieved from a trained model directly?
Follow-upWhy is memory managed by the application rather than the model?