Glossary

User modeling

The process of building and updating a structured picture of a user's preferences, goals, knowledge and context, so a system can adapt to them.

User modeling (often spelled user modelling in British English) is the process of building and maintaining a structured representation of an individual user, covering their preferences, goals, knowledge, constraints and context, so that a system can adapt its behaviour to them. The representation itself is called a user model. In AI agents, the user model is what lets an assistant remember that you prefer short answers, that you are vegetarian, that you already finished step three of onboarding, or that you struggle with recursion, and act on that without being told again.

Where user modeling comes from

User modeling is older than large language models by several decades. Early work in the 1970s and 1980s built student models for intelligent tutoring systems, which tracked what a learner knew and where they made mistakes so the tutor could choose the next exercise. Adaptive hypermedia in the 1990s used similar models to reorder content for each reader. Recommender systems then turned user modeling into an industry, inferring taste from clicks, ratings and purchases at very large scale.

Those systems shared a few ideas that still hold. A user model is a hypothesis about the user, not a record of everything they did. It has a schema, whether that is a list of skills with mastery levels or a vector of genre preferences. And it is updated continuously, because people change. What is new with LLM agents is the input: instead of clicks and ratings, the main evidence is conversation, which is rich, ambiguous and full of facts stated once and never repeated.

What a user model contains

Most user models combine several kinds of information. Stable facts describe who the user is: their role, location, language, plan tier or allergies. Preferences describe how they like things done, such as tone, format, channel or dietary choices. Goals describe what they are trying to achieve, from a fitness target to a quarterly sales number. Knowledge and skills describe what they already understand, which matters for tutoring and support. Constraints describe what must not happen, such as a budget ceiling or a forbidden supplier. History records events: past orders, previous tickets, decisions made in earlier meetings.

These map naturally onto the memory types used in agent design. Stable facts, preferences and goals are semantic memory: general knowledge about the user, detached from when it was learned. History is episodic memory, tied to specific moments. A user profile is usually the compact, structured summary of the semantic part, the slice that is cheap enough to load into every prompt. The full user model is broader and includes the episodes and reasoning behind each belief.

Explicit and implicit modeling

Explicit modeling asks the user directly or reads what they state outright: a settings page, an onboarding questionnaire, or a sentence such as “I only fly economy”. Explicit data is reliable and easy to explain, but users rarely volunteer much of it, and forms go stale.

Implicit modeling infers the model from behaviour. If a user always rewrites the agent’s long answers into bullet points, the agent can infer a preference for brevity. If they keep asking about the same API, the agent can infer they are building with it. Implicit inference covers far more ground, and it is where preference learning techniques come in, but it is also where errors creep in. An inference made from one ambiguous remark can harden into a belief the user never held.

Good systems label which beliefs are stated and which are inferred, weight stated ones more heavily, and give inferred ones a way to be confirmed or overturned. Corrections from the user are the strongest signal of all, because they show where the model was wrong.

How LLM agents build user models

In an LLM agent, user modeling usually runs as an extraction step after each conversation or at intervals within it. A model reads the recent turns and pulls out candidate facts, preferences and events. Each candidate is then matched against what is already stored. Entity resolution decides whether “my manager”, “Sarah” and “S. Patel” are the same person. Contradiction resolution decides whether “moved to Berlin” replaces “lives in Toronto”. Importance scoring and memory consolidation decide what to keep, merge or drop.

At read time, the agent retrieves the parts of the model relevant to the current task through memory retrieval and places them in the prompt. Some designs load a small profile on every request and retrieve deeper history only when the query needs it. This keeps the context window lean while still letting the agent draw on years of interaction when it matters.

The alternative, appending the full conversation history, is a poor user model. It has no schema, it grows without bound, and it keeps every superseded fact alongside the current one. The model has to reconstruct who the user is from scratch on every call, which is slow, expensive and prone to error. This is the core argument in RAG vs agent memory and in summarisation vs memory: structure beats bulk.

A worked example

A learning copilot is helping a student through an introductory programming course. In week one the student says they have used Python before but never written a function. In week two they solve loop exercises quickly but fail three recursion problems. In week three they mention they learn best from diagrams and are preparing for an exam on 12 December.

A useful user model after week three holds a skill map (loops: strong; functions: developing; recursion: weak), a stated learning preference (diagrams), a goal with a date (exam on 12 December) and a short history of the recursion attempts. When the student asks for help with a tree traversal exercise in week four, the copilot retrieves the recursion weakness, the diagram preference and the exam date. It explains with a diagram, starts from a simpler recursive case, and suggests a revision plan that fits before the exam.

Without the user model, the copilot treats the student as new each session. It might explain recursion with dense prose, assume knowledge the student lacks, or ignore the deadline entirely. The difference comes from a few hundred tokens of well-chosen context, not from a larger model.

Keeping the model current

User models decay if nothing maintains them. People change jobs, move house, switch tools and abandon goals. A model that cannot tell old from new suffers memory drift, where outdated beliefs accumulate and compete with current ones. Recency weighting helps at retrieval time, but it only ranks stale beliefs lower; resolving contradictions when new facts arrive is what removes them.

Granularity matters too. A model that stores “likes Italian food” learns less than one that stores “orders vegetarian pasta most Fridays”. Too much detail and the model becomes a noisy log; too little and it cannot support useful adaptation. Most teams start with a small schema covering the decisions their agent makes, then add fields when they find a decision the model cannot support.

Privacy and control

A user model is personal data by definition, and often sensitive personal data. Regulations such as GDPR give users rights over it, including access and erasure, which is why the right to be forgotten is a design requirement for memory systems rather than an afterthought. The GDPR implications for AI agents extend to inferred beliefs, not only to facts the user typed.

Three practices make user models easier to govern. Keep each user’s model isolated, so a retrieval bug cannot leak one person’s details into another’s session; memory isolation handles this at the storage layer. Keep an audit trail of when each belief was created and changed, so you can explain why the agent behaved as it did. And let users see and correct what the system believes about them, which improves accuracy as well as trust.

Where Exabase fits

Exabase provides the memory substrate a user model is built on; the decisions about what your product does with that model remain your own logic. Exabase Memory takes raw conversations through the Memory API and the M-1 engine extracts facts, preferences and events automatically. It organises them into a structure of concepts and memories, resolves contradictions as facts change, and consolidates related facts over time, so a user who moves from Toronto to Berlin has one current city rather than two.

Each user can have their own Base, an isolated environment for their memories, files and search index, so one user’s model is never visible to another. Every memory carries creation and modification timestamps, which gives you the history behind each belief. Immutable memories let you protect facts the user stated explicitly from being changed by the self-organising process.

To use the model, retrieve memories with hybrid semantic and keyword search and a recency bias, or call the ask endpoint with a question such as “which plan is this user on?” and get an answer back. A Worker can update memories on a schedule from new documents or external data, such as a CRM export. The agent memory solution covers the full setup, and Exabase vs Honcho and Exabase vs Memobase compare approaches built specifically around user modeling.

What is user modeling?

User modeling is the process of building and maintaining a structured representation of a user’s preferences, goals, knowledge, constraints and history. Systems use this user model to adapt their behaviour, from recommending products to explaining a concept at the right level.

What is the difference between a user model and a user profile?

A user profile is usually the compact, structured summary of who a user is, small enough to load into every prompt. A user model is broader: it includes the profile plus the history, inferences and evidence behind each belief, and the rules for updating them.

How do AI agents build user models?

Most agents run an extraction step that reads conversations and pulls out facts, preferences and events. Each new item is matched against existing memories, deduplicated, and checked for contradictions. At answer time, the agent retrieves the relevant parts of the model and places them in the prompt.

What is the difference between explicit and implicit user modeling?

Explicit modeling uses what the user states directly, such as settings or sentences like “I only fly economy”. Implicit modeling infers beliefs from behaviour, such as repeated choices or corrections. Explicit data is more reliable; implicit data covers more ground but needs a way to be confirmed or overturned.

Why is chat history not enough for user modeling?

Raw history has no structure, keeps outdated facts beside current ones, and grows until it no longer fits the context window. The agent has to reconstruct the user on every call. A structured model holds only the current, relevant beliefs and costs far fewer tokens.

How do you keep a user model up to date?

Resolve contradictions when new facts arrive, so newer facts replace older ones rather than sitting beside them. Weight retrieval towards recent information, consolidate duplicates, and let users correct what the system believes.

Is user modeling a privacy risk?

A user model is personal data and needs the same care as any other. Isolate each user’s data, keep an audit trail of changes, support deletion requests, and let users see and correct what is stored about them.

Related pages: User profile, Personalization, Preference learning, Semantic memory, Entity memory, Contradiction resolution, Chat history is not a user profile, Personal AI assistants, Agent memory solution

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.