Home Knowledge Base A contextual bandit

A contextual bandit is a reinforcement learning framework where an agent makes decisions based on context (features/state) available at decision time, receives a reward for its choice, but doesn't observe what would have happened with other choices. It sits between simple multi-armed bandits (no context) and full RL (sequential decisions).

How Contextual Bandits Work

Examples

Key Algorithms

Contextual Bandits vs. Full RL

AspectContextual BanditFull RL
StateSingle observationSequential states
ActionsOne decisionSequence of decisions
ConsequenceImmediate rewardDelayed rewards
ComplexityModerateHigh

Contextual bandits are the sweet spot for many real-world decision problems — they handle personalization and context while being simpler and more data-efficient than full reinforcement learning.

contextual banditreinforcement learning

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.