Inferensys

Glossary

Multi-Armed Bandit (MAB)

A simplified reinforcement learning framework where an agent sequentially selects among a fixed set of actions to maximize cumulative reward, commonly applied to channel selection problems where the agent must balance exploring unknown frequencies and exploiting known good ones.
Developer demonstrating multi-agent tool use, agent tool selection interface on laptop, casual tech demo moment.
REINFORCEMENT LEARNING FRAMEWORK

What is Multi-Armed Bandit (MAB)?

A foundational sequential decision-making framework for balancing exploration and exploitation in fixed action sets.

A Multi-Armed Bandit (MAB) is a simplified reinforcement learning framework where an agent sequentially selects one action from a fixed set of k independent options to maximize cumulative reward over time, without modeling environmental state transitions. The agent must solve the exploration-exploitation trade-off by deciding whether to try poorly understood actions to gather information or repeatedly select the action with the highest known empirical mean reward.

In dynamic spectrum access, each frequency channel is modeled as an independent 'arm' of the bandit. A cognitive radio agent applies MAB algorithms like Upper Confidence Bound (UCB) or Thompson Sampling to select transmission channels, balancing the need to probe potentially vacant frequencies against the reliability of known idle channels, all while minimizing collisions with returning primary users.

ALGORITHMIC FRAMEWORKS

Key MAB Algorithms for Spectrum Access

Multi-Armed Bandit algorithms provide a mathematically elegant framework for balancing the exploration of unknown spectrum opportunities with the exploitation of known high-quality channels. The following algorithms represent the core strategies deployed in cognitive radio decision engines.

01

Upper Confidence Bound (UCB)

A deterministic algorithm that selects channels based on an optimistic estimate of potential reward. UCB calculates an upper confidence bound for each channel's expected quality by adding an exploration bonus proportional to the uncertainty of the estimate.

  • Mechanism: Selects the channel maximizing μ̂ᵢ + √(2 ln(t) / nᵢ), where μ̂ᵢ is the empirical mean reward and nᵢ is the number of times channel i has been selected.
  • Key Property: Provides a logarithmic regret bound, meaning the cumulative performance loss grows slowly over time.
  • Spectrum Application: Ideal for stationary primary user traffic patterns where channel statistics remain constant, such as TV white space access.
O(log t)
Regret Bound
02

Thompson Sampling

A Bayesian probabilistic algorithm that maintains a posterior distribution over each channel's reward probability and selects channels by sampling from these distributions. Channels with higher uncertainty are naturally explored through the sampling process.

  • Mechanism: For each channel, sample a value from its Beta distribution (parameterized by success and failure counts) and select the channel with the highest sample.
  • Key Property: Achieves state-of-the-art empirical performance and is provably asymptotically optimal for Bernoulli bandits.
  • Spectrum Application: Excels in non-stationary environments where primary user activity patterns shift, as the posterior naturally adapts to changing statistics.
Asymptotically Optimal
Performance Guarantee
03

ε-Greedy

The simplest MAB strategy that selects the empirically best channel with probability 1-ε and explores a random channel with probability ε. Despite its simplicity, it remains widely deployed due to minimal computational overhead.

  • Mechanism: With probability ε, uniformly randomly select any available channel; otherwise, select the channel with the highest historical average reward.
  • Key Property: Constant per-step complexity of O(1), making it suitable for resource-constrained cognitive radio hardware.
  • Spectrum Application: Effective when paired with an annealing schedule that decays ε over time, transitioning from exploration-dominated to exploitation-dominated behavior as the agent learns the spectrum environment.
O(1)
Per-Step Complexity
04

EXP3 (Exponential-weight for Exploration and Exploitation)

An algorithm designed for the adversarial bandit setting where channel rewards may be deliberately degraded by a jammer or interferer. EXP3 maintains a probability distribution over channels and updates weights exponentially based on observed rewards.

  • Mechanism: Assigns each channel a weight that is multiplied by exp(γ * estimated_reward) after each selection, then samples channels according to the normalized weight distribution.
  • Key Property: Achieves a high-probability regret bound of O(√(TK log K)) against an adaptive adversary, where K is the number of channels and T is the time horizon.
  • Spectrum Application: Critical for anti-jamming cognitive radio and contested electromagnetic environments where an intelligent adversary actively attempts to degrade secondary user performance.
O(√T)
Adversarial Regret
05

Contextual Bandit (LinUCB)

Extends the standard MAB framework by incorporating side information or context features before each channel selection. LinUCB models the expected reward as a linear function of the observed context vector, enabling generalization across similar spectrum states.

  • Mechanism: Maintains a ridge regression estimate of the coefficient vector θ and selects the channel maximizing xᵀθ̂ + α√(xᵀA⁻¹x), where x is the context and A is the covariance matrix.
  • Key Property: Leverages feature-based generalization to make informed decisions about channels never previously selected, dramatically reducing cold-start exploration.
  • Spectrum Application: Enables context-aware spectrum access where the agent conditions decisions on time of day, detected interference patterns, or geolocation data to predict channel quality before sensing.
O(d²)
Per-Step Complexity
06

Restless Bandit (Whittle Index)

Models each channel as an independently evolving Markov chain that changes state even when not selected, capturing the realistic behavior of primary user activity that continues regardless of secondary user observation. The Whittle index policy provides a computationally tractable heuristic.

  • Mechanism: Computes a scalar index for each channel representing the marginal value of activating that channel in its current state, then selects channels with the highest indices.
  • Key Property: Asymptotically optimal under an indexability condition and decouples the N-channel problem into N independent single-channel problems.
  • Spectrum Application: The most realistic MAB variant for dynamic spectrum access because it correctly models primary user ON/OFF activity evolving as a continuous-time process independent of secondary user sensing actions.
Indexable
Optimality Condition
MULTI-ARMED BANDIT ESSENTIALS

Frequently Asked Questions

Clear, technical answers to the most common questions about applying the Multi-Armed Bandit framework to dynamic spectrum access and cognitive radio challenges.

A Multi-Armed Bandit (MAB) is a simplified reinforcement learning framework where an agent must repeatedly choose among a finite set of fixed actions (arms) to maximize cumulative reward over time, without any notion of state transitions. The name derives from the analogy of a gambler facing a row of slot machines (one-armed bandits), each with an unknown and potentially different payout distribution. In the context of dynamic spectrum access, each arm represents a candidate frequency channel, and the reward corresponds to successful transmission throughput or signal-to-noise ratio. The agent's core challenge is the exploration-exploitation trade-off: it must decide whether to pull the arm with the highest known reward (exploit) or try other arms to discover potentially better channels (explore). Unlike full Markov Decision Processes (MDPs), MAB problems assume actions do not influence future environmental states, making them computationally lightweight and ideal for real-time channel selection in cognitive radios.

ALGORITHMIC COMPARISON

MAB vs. Full Reinforcement Learning for Spectrum Access

A feature-level comparison of Multi-Armed Bandit approaches against full Markov Decision Process (MDP) and Deep RL methods for dynamic spectrum access decisions.

FeatureMulti-Armed Bandit (MAB)Full RL (MDP-based)Deep RL (DQN/PPO)

State Modeling

Stateless; only action-reward history

Full state transitions (e.g., channel occupancy)

High-dimensional state (raw IQ, spectrograms)

Action Space

Fixed set of K channels

Discrete or continuous channel/power selection

Continuous or large discrete action spaces

Transition Dynamics

No state transitions; i.i.d. reward assumption

Explicit P(s'|s,a) transition probabilities

Implicitly learned via neural network

Exploration Mechanism

ε-greedy, UCB, Thompson Sampling

ε-greedy, Boltzmann, or optimism in face of uncertainty

Entropy regularization, parameter noise

Computational Complexity

O(K) per decision; minimal memory

O(|S|² × |A|) for value iteration

GPU-accelerated; high training cost

Handles Non-Stationarity

Requires Environment Model

Convergence Guarantees

Regret bounds proven (e.g., O(log T) for UCB)

Optimal policy for known MDP

No formal guarantees; empirical only

Typical Spectrum Application

Channel selection with stationary primary user patterns

Optimal sensing-scheduling with known PU statistics

Anti-jamming, multi-agent spectrum sharing

Sample Efficiency

High; learns from few interactions

Moderate; requires model estimation

Low; requires millions of samples

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.