In the standard theory of contextual bandits and reinforcement learning, we expect regret—the cumulative cost of making sub-optimal decisions—to grow indefinitely. Even the most efficient algorithms typically face a regret that grows logarithmically or as a square root of time. The intuition is simple: to be sure an action is sub-optimal, you must occasionally try it.
However, a series of recent works has shown that this "perpetual exploration" is not always necessary. Under certain geometric conditions, an agent can achieve constant regret, meaning the total error eventually stops growing entirely. This happens when the agent’s representation allows it to learn everything it needs to know about the environment by playing only the optimal actions.
The Geometry of Information
The core requirement for constant regret is a diversity condition known as the Hao-Lattimore-Szepesvári (HLS) condition. In linear contextual bandits, we assume the reward of an action is the inner product of a feature vector and an unknown parameter vector $\theta$.
As Matteo Papini, Andrea Tirinzoni, and their colleagues explain in Leveraging Good Representations in Linear Contextual Bandits, constant regret is possible if and only if the features of the optimal actions span the entire feature space.
To understand why, imagine the feature space as a 3D room. If the optimal actions only ever point along the floor (a 2D subspace), the agent will never learn anything about the "ceiling" (the third dimension). If a sub-optimal action points toward the ceiling, the agent remains uncertain about its true value and must keep testing it forever to ensure it hasn't missed a better reward. But if the optimal actions span all three dimensions, playing them provides enough information to resolve uncertainty in every direction. Once the agent is confident the "ceiling" actions are worse, it can stop playing them forever.
Selecting the Right Representation
In practice, we rarely know if our chosen features satisfy this spanning condition. In Leveraging Good Representations in Linear Contextual Bandits, the authors introduce LEADER, an algorithm designed for representation selection.
LEADER doesn't just pick one representation; it can combine multiple "mediocre" representations. Even if no single feature set satisfies the HLS condition, their union might. The algorithm dynamically evaluates which representations are providing the most useful information and shifts its strategy to favor those that allow for the fastest convergence to constant regret.
Learning Features for Constant Regret
While LEADER selects from a fixed set, Andrea Tirinzoni, Alessandro Lazaric, and others took this a step further with BANDITSRL in Scalable Representation Learning in Linear Contextual Bandits with Constant Regret Guarantees.
Instead of hoping a representation is "good," BANDITSRL explicitly trains a neural network to find one. It uses a proxy loss function that encourages a large minimum eigenvalue in the design matrix of optimal actions. By maximizing this eigenvalue, the model forces the learned features of optimal actions to span the space as broadly as possible, effectively "engineering" the HLS condition into the representation.
Extending to Reinforcement Learning
The transition from bandits to full Reinforcement Learning (RL) introduces more complexity because actions affect future states. In Reinforcement Learning in Linear MDPs: Constant Regret and Representation Selection, Matteo Papini and Aldo Pacchiano generalize the HLS condition to the UNISOFT (Universally Spanning Optimal FeaTures) condition.
In an MDP, it isn't enough for a single action to be informative; the entire sequence of features encountered while following the optimal policy must span the feature space. If the optimal path through an environment leaves certain "corners" of the state space unexplored, the agent is forced to deviate from that path occasionally to check if those corners contain a better policy. If UNISOFT holds, the optimal path itself provides a "complete education" on the environment’s dynamics, allowing the agent to achieve constant regret even in complex, multi-stage decision problems.