Inferensys

Glossary

Bandit Feedback

A learning signal where only the reward for the chosen action is observed, leaving the outcomes of all other unchosen actions unknown.
Stylish WeWork-like workspace with hot desks and document wall, professional searching through enterprise knowledge base on a mounted ultrawide display, warm industrial pendants overhead.
PARTIAL INFORMATION LEARNING

What is Bandit Feedback?

Bandit feedback is the defining learning signal in reinforcement learning where only the reward for the executed action is observed, leaving counterfactual outcomes unknown.

Bandit feedback is a learning signal where the environment reveals only the reward for the specific action taken by the agent, completely concealing the outcomes of all unchosen alternatives. This creates a fundamental partial information problem distinct from supervised learning, where the correct label is always provided. The agent must infer the value of unexplored actions solely from historical interactions.

This mechanism drives the exploration-exploitation trade-off, as the agent must deliberately sacrifice immediate optimal performance to gather data on uncertain actions. Techniques like inverse propensity scoring and doubly robust estimation are required for off-policy evaluation, correcting for the inherent selection bias in logged data where popular actions are over-represented.

PARTIAL INFORMATION

Key Characteristics of Bandit Feedback

Bandit feedback defines the core information constraint in online learning: the algorithm only observes the outcome of the action it took, not the counterfactual outcomes of the actions it didn't take.

01

The Fundamental Information Asymmetry

Unlike supervised learning where a true label exists for every input, bandit feedback creates a severe information bottleneck. The environment only reveals the reward for the chosen arm. The outcomes of all other actions remain permanently unknown. This transforms the learning problem from a static function approximation task into a sequential decision-making problem under uncertainty, where the agent must actively manage its own data collection strategy.

02

Counterfactual Blindness

The defining consequence of bandit feedback is the inability to answer the question: What would have happened if I had chosen differently? This counterfactual gap means:

  • You cannot compute a true loss gradient across all actions
  • You cannot directly observe if a better option was missed
  • All evaluation of unchosen actions relies on statistical estimation This blindness is why off-policy evaluation methods like Inverse Propensity Scoring are critical for safe model iteration.
03

Logged Bandit Data Structure

A single record of bandit feedback is a tuple containing exactly four elements:

  • Context (x): The feature vector describing the decision point
  • Action (a): The specific arm selected by the logging policy
  • Reward (r): The observed scalar outcome (click, conversion, revenue)
  • Propensity (p): The probability with which the action was chosen Crucially, this record contains no information about the rewards of actions a' ≠ a. The propensity score is essential for later debiasing.
04

Partial Labeling vs. Full Labeling

Bandit feedback is often called partial label feedback to distinguish it from the full-information setting:

  • Full Information: After a decision, you observe the reward for every possible action (e.g., weather prediction where the true outcome eventually materializes)
  • Bandit Feedback: You observe the reward for only the action taken (e.g., showing an ad; you never know if the other ad would have been clicked) Most real-world personalization systems operate under strict bandit feedback.
05

The Data Collection Policy Problem

Because the algorithm controls its own data generation, the logging policy directly determines the quality and coverage of the training data. A purely exploitative policy creates a rich-get-richer feedback loop where popular items receive all the impressions and new items never get a chance. This is why explicit exploration strategies like epsilon-greedy or Thompson Sampling are not optional optimizations—they are required to ensure the feedback mechanism doesn't collapse into a self-reinforcing bias.

06

Delayed and Compound Rewards

Bandit feedback is often complicated by temporal separation between action and outcome:

  • Immediate: A click happens within milliseconds
  • Delayed: A purchase happens days after the initial recommendation
  • Compound: The reward is a long-term metric like customer lifetime value (LTV) that aggregates many decisions Delayed rewards require credit assignment mechanisms to attribute the final outcome back to the specific decision that influenced it, often using temporal difference learning.
BANDIT FEEDBACK

Frequently Asked Questions

Explore the core mechanics of partial feedback in reinforcement learning, where algorithms must learn optimal actions from incomplete information.

Bandit feedback is a learning signal in sequential decision-making where only the reward for the chosen action is observed, while the outcomes of all other unchosen actions remain unknown. This creates a fundamental information asymmetry: the algorithm receives a scalar reward signal for the arm it pulled, but receives zero data about what would have happened had it selected a different option. Unlike supervised learning, where the correct label is provided for every input, bandit feedback forces the agent to grapple with partial observability. The mechanism works by logging a tuple of (context, action, reward, probability) for each decision event. This logged data is then used in off-policy evaluation methods like Inverse Propensity Scoring (IPS) to estimate the value of actions that were not taken, enabling the system to learn an optimal policy despite the missing counterfactuals.

LEARNING PARADIGM COMPARISON

Bandit Feedback vs. Supervised Feedback

Structural differences between the partial-information feedback of contextual bandits and the full-information feedback of supervised learning.

FeatureBandit FeedbackSupervised Feedback

Information Completeness

Partial: only reward for chosen action observed

Full: correct label provided for every input

Counterfactual Outcomes

Unknown for unchosen actions

Not applicable; all outcomes are known

Data Collection Process

Interventional: agent's choices affect data distribution

Observational: data collected independently of model

Primary Bias Type

Selection bias from logging policy

Sampling bias from static dataset

Evaluation Method

Off-policy evaluation with IPS or doubly robust estimators

Holdout validation with standard metrics

Label Availability

Only for actions taken by the system

For all instances in the training set

Causal Structure

Action influences both reward and future context

No causal link between prediction and label

Typical Domain

Recommendation, advertising, clinical trials

Image classification, regression, NLP

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.