Glossary

Preference learning

Learning what people prefer from their choices, comparisons and feedback, either to align a model with human judgement or to adapt an agent to one user.

Preference learning is the task of inferring what people prefer from evidence such as choices, comparisons, ratings, corrections and stated likes or dislikes, and then using that knowledge to make better decisions. In AI the term covers two related jobs. At the model level, preference learning trains a language model to produce the kinds of answers people generally rate higher, which is how techniques such as RLHF and DPO work. At the agent level, it means learning an individual user’s preferences over time, such as their preferred tone, tools, diet or travel class, so the agent can adapt to that person without retraining anything.

Two kinds of preference learning

The two meanings share a name and some maths, but they solve different problems and live in different parts of the stack.

Aspect

Model alignment

Per-user preference learning

Whose preferences

Many people, aggregated

One user or one team

Evidence

Pairwise comparisons of model outputs

Conversations, choices, corrections, settings

Where it is stored

In the model’s weights

In memory, outside the model

How often it changes

Each training run

Every interaction

Typical methods

RLHF, DPO, reward models

Extraction into memory, profiles, ranking

Main risk

Reward hacking, sycophancy

Wrong inferences, stale preferences

Most teams building agents work with the second kind and inherit the first from their model provider. It helps to know both, because they fail in different ways and are often confused in discussions about personalization.

Preference learning for model alignment

Large language models are first trained to predict text, then tuned to follow instructions, then aligned to human preferences. The alignment step usually starts by showing human raters two responses to the same prompt and asking which is better. Thousands of these pairwise judgements form a preference dataset.

In reinforcement learning from human feedback, a separate reward model is trained on that dataset to predict which response a person would prefer. The comparisons are typically modelled with the Bradley-Terry approach, which turns pairwise wins into a score for each response. The language model is then optimised to produce responses the reward model scores highly, with a penalty for drifting too far from its starting behaviour.

Direct preference optimisation, introduced in 2023, skips the separate reward model and the reinforcement learning loop. It adjusts the model directly so that preferred responses become more likely than rejected ones. It is simpler to run and has become a common alternative. Variants replace human raters with a strong model acting as judge, an approach often called RLAIF, which uses the same idea as LLM as a judge evaluation.

Alignment-level preference learning captures what people prefer on average: helpful, clear, safe answers. It does not capture what you in particular prefer, and it cannot, because the preferences are baked into shared weights used by millions of people.

Why per-user preferences do not belong in weights

It is tempting to personalise by fine-tuning a model on each user’s data. In practice this rarely works well. Fine-tuning needs many examples, while a user may state a preference once. It is slow and costly to repeat every time a preference changes. Lightweight methods such as LoRA reduce the cost but still require a training run per user and a way to serve thousands of adapters. And updating weights risks catastrophic forgetting, where new training erodes behaviour the model had before.

Weights are also hard to inspect and harder to edit. If a user says “I’m no longer vegetarian”, there is no clean way to remove the old preference from a fine-tuned model. A memory store can replace the old fact in one write. This is the core of the argument in embeddings vs fine-tuning and in the case for memory over fine-tuning: preferences change too often and are too personal to live in weights.

How agents learn a user’s preferences

Per-user preference learning in agents is mostly a memory problem. The agent collects evidence, turns it into preference statements, stores them, and retrieves them when they matter. It is one part of the broader practice of user modeling.

Evidence comes in several strengths. Explicit statements such as “always send me the summary in bullet points” are the strongest. Corrections are nearly as strong, because a user editing or rejecting an answer shows exactly where the agent missed. Repeated choices are weaker individually but add up: a user who picks the aisle seat on seven bookings has a preference even if they never said so. Single implicit signals, such as reading one long article, are the weakest and should rarely be stored as preferences on their own.

An extraction step turns this evidence into compact statements, such as “prefers aisle seats” or “wants code examples in TypeScript”. These are stored as semantic memory, detached from the conversation where they appeared, and often summarised in a user profile that loads on every request. When a new statement conflicts with an old one, contradiction resolution decides which holds. At answer time, memory retrieval brings the relevant preferences into the prompt, where the model applies them through in-context learning rather than through changed weights.

A worked example

A sales copilot supports an account executive over several months. In the first week she rewrites three of its draft emails, shortening each to under 100 words and removing the opening pleasantries. In the second week she says, “Never mention discounts in a first email.” In the fourth week she switches all follow-ups from email to LinkedIn messages for one region.

A well-built preference memory now holds three items. A learned preference: short, direct emails without pleasantries, inferred from repeated edits. An explicit rule: no discounts in first emails, stated directly and marked as high importance. A scoped preference: LinkedIn rather than email for follow-ups in one region, which should not leak into other regions.

When she asks the copilot to draft outreach to a new prospect in another region, it retrieves the first two items and ignores the third. The draft is short, skips the pleasantries and leaves out the discount. Without preference learning she would make the same three edits on every draft, which is the kind of repeated friction that makes users stop trusting an assistant.

Getting preference learning right

Scope matters. A preference can apply to a user everywhere, to one project, to one customer, or to one channel. Storing “prefers LinkedIn” without its scope produces wrong behaviour in every other context. Good systems record the scope alongside the preference.

Confidence matters too. An inference from one edit should be held loosely and confirmed or dropped as more evidence arrives. Some agents ask, briefly, when an inferred preference would change an important action: “You’ve shortened my last few drafts. Should I keep emails under 100 words?” Confirmation turns a weak inference into an explicit rule.

Preferences change, so the store needs a way to retire them. Recency weighting helps newer preferences win at retrieval, but replacing superseded preferences at write time is what prevents memory drift, where old and new preferences sit side by side and the agent alternates between them.

Finally, preferences differ from instructions about how the agent should work. “Use British spelling” is a user preference. “Always check the CRM before drafting” is closer to procedural memory, a learned way of doing the job, and is often better kept in the system prompt or a skill file than mixed with personal tastes.

Limits and risks

Learned preferences can be wrong, and wrong preferences are sticky. An agent that infers a dislike from one ambiguous remark may quietly avoid an option the user would have wanted, and the user may never learn why. Showing users what the agent believes about them, and letting them edit it, is the most reliable fix.

Over-personalisation is a second risk. An agent that always gives people what they preferred before can narrow their options, which matters in recommendations, news and learning. A third is manipulation: if preferences can be injected through documents or other users’ messages, an attacker can steer the agent’s behaviour, a form of memory poisoning. Recording the source of each preference and trusting direct user statements over third-party content limits this.

Where Exabase fits

Exabase handles the per-user side of preference learning as part of its memory layer; it does not train or fine-tune models. Exabase Memory takes conversations through the Memory API, and the M-1 engine extracts facts, preferences and events automatically, so preference statements are captured without writing your own extraction prompts. You can also write a preference directly with infer set to false when your app collects it through a settings page.

As preferences change, M-1 resolves contradictions and consolidates related memories, so an updated preference replaces the old one rather than competing with it. Immutable memories protect explicit rules that should never be changed by the self-organising process. To keep preferences scoped, give each user, project or customer its own Base; memories in one Base are invisible to every other.

At answer time, memory search uses hybrid semantic and keyword matching with a recency bias, and optional query expansion and reranking, to return the preferences relevant to the current task. The agent memory solution describes the full pattern, and Exabase vs OpenAI memory compares it with memory built into a chat product.

What is preference learning?

Preference learning is the task of inferring what people prefer from choices, comparisons, ratings and feedback. In AI it refers both to aligning models with general human preferences, as in RLHF and DPO, and to agents learning an individual user’s preferences over time.

How is preference learning used in RLHF?

Human raters compare pairs of model responses and pick the better one. A reward model learns to predict those choices, and the language model is optimised to produce responses the reward model scores highly. DPO reaches a similar result without a separate reward model.

What is the difference between RLHF and DPO?

RLHF trains a reward model on preference data and then uses reinforcement learning to optimise the language model against it. DPO optimises the language model directly on the preference pairs, which is simpler and avoids the reinforcement learning loop.

How do AI agents learn user preferences?

Agents extract preferences from what users say, correct and choose, store them as memories, and retrieve them when they are relevant. The model applies the retrieved preferences through its prompt, so no retraining is needed.

Should I fine-tune a model to personalise it for each user?

Usually not. Per-user fine-tuning needs many examples, is slow to update, is hard to edit when a preference changes, and can cause catastrophic forgetting. Storing preferences in memory is cheaper, faster to update and easier to inspect.

How do you handle preferences that change?

Record when each preference was stated, resolve conflicts when a new preference contradicts an old one, and weight retrieval towards recent information. Asking users to confirm inferred preferences also reduces errors.

Does Exabase learn user preferences?

Yes, at the memory level. Exabase Memory extracts preferences from conversations, resolves contradictions as they change, and returns the relevant ones through memory search. It does not fine-tune or train your model.

Related pages: User modeling, Personalization, User profile, RLHF, Fine-tuning, Importance scoring, Memory vs fine-tuning, Personal AI assistants, Agent memory solution, Email assistants use case

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.