Recommendation systems are often described as models that learn what people like from what they click, watch or buy. That description leaves out an important part of the system: the model decides what people get to see in the first place.

Imagine two videos that might interest a user. The current recommender places one near the top of the page and never shows the other. The first video gets a click. The second gets no interaction. When we train the next model, we have evidence about the first video but almost none about the second.

A missing click is not the same as a negative preference when the item was never shown.

This is what makes recommendation data different from a conventional supervised learning dataset. The serving system helps determine which labels become observable. Over time, its decisions change the distribution of data available for future training.

Implicit feedback is not preference

Most production recommendation systems rely heavily on implicit signals: clicks, watch completion, dwell time, purchases, saves and skips. These signals are valuable because they are available at scale. But each measures behavior in a particular context, not preference directly.

A click may indicate interest, but it can also reflect position, presentation or curiosity. Long dwell time may mean someone was engaged or simply left a tab open. A purchase is a stronger signal than a click, but it is still affected by price, availability and what alternatives were shown.

There are several sources of bias worth distinguishing.

Exposure bias: We primarily observe responses to items the system chose to display.

Position bias: Items near the top of a ranking receive more attention even when they are not more relevant.

Selection bias: The users, items and interactions in the training data may not represent the population we ultimately care about.

Popularity bias: Popular items receive more exposure and interaction data, creating an advantage that can compound over time.

These biases are related, but they require different interventions. Cleaning incorrect labels or removing duplicates will not correct a dataset whose observations were systematically selected by the previous model.

The feedback loop

Consider how a recommendation system evolves.

  1. The model ranks items using the interaction data available today.
  2. Users interact with the items they are shown.
  3. Those interactions become tomorrow's training data.
  4. The updated model changes which items receive exposure.

The process repeats.

Popular items illustrate how this can compound. An item receives more exposure, collects more interactions and consequently gets more evidence supporting its ranking. A new or niche item may be equally relevant to a particular user, but without exposure it has little opportunity to demonstrate that relevance.

This is not necessarily a model failure in the conventional sense. The model may be fitting its observed training data quite well. The problem is that the training data does not provide an unbiased view of the alternatives.

In statistical terms, the distribution of observed interactions is conditioned on the historical serving policy.

If we observe that a user clicked an item, we should distinguish:

[ P(\text{click}\mid\text{item is shown}) ]

from the broader question of how likely the user would have been to engage with that item under a different recommendation policy.

We can estimate the first quantity from ordinary interaction logs. The second requires additional assumptions or data about what users might have done under alternatives they did not see.

Collaborative filtering inherits the exposure history

Collaborative filtering uses interaction patterns to discover similarities between users and items. It is powerful because it can identify relationships that are difficult to express through explicit item attributes.

But those interaction patterns are shaped by the serving system.

Suppose two items are frequently consumed together. That may indicate a genuine relationship in user preferences. It may also reflect the fact that the recommendation system routinely presents them together.

A collaborative filtering model cannot automatically distinguish these explanations.

One practical response is to introduce alternative sources of information.

Content-based retrieval uses item attributes such as text, embeddings, categories or other features to identify potentially relevant candidates. It can help surface new items that have little interaction history.

But content-based systems have their own limitations. They may repeatedly recommend similar items, miss unexpected relationships or inherit exposure bias when trained on historical engagement labels.

Hybrid systems are useful because the retrieval approaches have different strengths and failure modes. The objective is not simply to combine more sophisticated models. It is to prevent any one source of historical evidence from determining everything the user can discover.

Exploration and learning from alternative decisions

If we only display items that the current model already believes are relevant, how do we learn whether something else would work better?

We need some opportunity to observe alternatives.

This is the exploration problem.

A system can deliberately allocate a small amount of traffic to exploring less-certain items or alternative rankings. Randomization provides information that the existing policy would not otherwise collect.

The tradeoff is that exploration can reduce immediate engagement. Showing an uncertain item may be less effective than showing a well-established favorite. But without exploration, the system may remain permanently uncertain about valuable parts of the item catalog.

The amount and type of exploration should depend on the application. A content discovery system and a system making consequential recommendations have very different tolerances for uncertainty and experimentation.

The key architectural point is that exploration is not only a ranking decision. It is also an investment in the quality of future training data.

Counterfactual evaluation

Once we recognize that historical data was collected under a particular policy, we can ask a more useful question:

How would a different recommendation policy have performed on the same population?

This is the motivation behind counterfactual evaluation.

Suppose our historical system chose to display item (i) to user (u) with some probability:

[ \pi_{\text{old}}(i\mid u) ]

We would like to evaluate a new policy without necessarily deploying it to everyone.

One approach is inverse propensity weighting (IPW). Rather than treating every observed interaction equally, we weight observations to account for how likely the historical policy was to produce them.

For an appropriately logged contextual recommendation setting, a simplified importance-weighted estimator is:

[ \hat V(\pi_{\text{new}})

\frac{1}{N} \sum_{n=1}^{N} r_n \frac{\pi_{\text{new}}(i_n\mid u_n)} {\pi_{\text{old}}(i_n\mid u_n)} ]

Here, (r_n) is the observed reward or engagement signal. The ratio adjusts for the difference between the new and historical policies.

The intuition is straightforward: an observation should count differently depending on how likely we were to observe it under the policy that collected the data.

However, this works only under important assumptions. We need accurate logging of the historical selection probabilities, sufficient coverage of the choices the new policy might make and control of the relevant decision context. Very small historical probabilities can create large weights and unstable estimates.

For ranked lists, the problem is more complicated because displaying an entire slate of items creates interactions between position, exposure and user behavior.

Counterfactual methods are useful, but they are not substitutes for careful experiment design or prospective validation.

Offline metrics and online experiments

Recommendation systems are commonly evaluated offline using ranking metrics such as Precision@K, Recall@K, mean reciprocal rank (MRR) and normalized discounted cumulative gain (nDCG).

These metrics answer useful questions.

MRR emphasizes the position of the first relevant result. nDCG accounts for relevance across ranked positions, giving greater weight to results near the top.

But offline metrics have a limitation: relevance labels often come from historically observed interactions. A model that is particularly good at reproducing the previous system's decisions may perform well on those labels without improving user experience under a new serving policy.

That is why online evaluation matters.

Randomized A/B experiments allow us to compare policies under actual serving conditions. But the choice of metric and experiment duration is important.

A new recommendation experience may initially generate curiosity or novelty-driven engagement. Some effects may diminish as users become familiar with it. Conversely, a new policy might take time to improve recommendations as it gathers better interaction data.

A short-term click-through-rate improvement is therefore not necessarily a durable improvement in user value.

Depending on the product, I would consider retention, repeat engagement, catalog coverage, diversity and longer-term satisfaction alongside immediate interaction metrics.

The purpose is not to replace short experiments with long ones everywhere. It is to be explicit about what the experiment measures and whether that outcome supports the decision we want to make.

Data quality must include data provenance

When reviewing recommendation training data, checking missing values, duplicates, schema consistency and feature distributions is necessary but insufficient.

I also want to understand how the observations were generated.

Which model or ranking policy produced the exposure? What candidates were available? What was displayed and at what position? Which interactions were recorded? Were some choices randomized? Did instrumentation or the user interface change during the collection period?

These details affect how the data can be interpreted.

A training record containing a user, item and click label tells us what happened. Adding the serving context helps explain the conditions under which it happened.

For more rigorous evaluation and learning, I would treat the serving policy version, exposure information, position and selection probabilities where available as important parts of the data lineage.

The same principle applies to monitoring. A change in the distribution of clicks might reflect a change in user preferences, but it could also result from an updated ranking policy, a UI change or a shift in available content.

Without that context, we risk interpreting a change caused by the system as a change in the user.

Beyond recommendation systems

The relationship between model decisions and future training data appears in other ML applications.

A fraud detection system may receive confirmed labels primarily for transactions selected for investigation. A hiring model may learn from outcomes for candidates who passed earlier screening decisions. In healthcare, observed treatment outcomes depend partly on which patients received particular treatments.

The causal structures differ, but they share an important property: the observations are affected by prior decisions.

The training data contains outcomes selectively observed under earlier system decisions. More data collected through the same selection process may preserve the bias.

Recommendation systems make this problem especially visible because the feedback loop is continuous and often operates at very large scale.

What I take away

When designing recommendation systems, I think data quality needs to extend beyond the contents of individual records.

We need to understand what the serving system exposed, how users responded, which alternatives were never observed and how those decisions shape subsequent training data.

This affects how we design retrieval, exploration, logging, offline evaluation and online experiments.

A recommendation system does not merely learn from user behavior. It helps create the behavior it will learn from next.

That feedback loop is part of the system architecture and needs to be designed and evaluated as carefully as the model itself.