Invariance-Based Dynamic Regret Minimization

Margherita Lazzaretto, Jonas Peters, Niklas Pfister

Abstract

We consider stochastic non-stationary linear bandits where the linear parameter connecting contexts to the reward changes over time. Existing algorithms in this setting localize the policy by gradually discarding or down-weighting past data, effectively shrinking the time horizon over which learning can occur. However, in many settings historical data may still carry partial information about the reward model. We propose to leverage such data while adapting to changes, by assuming the reward model decomposes into stationary and non-stationary components. Based on this assumption, we introduce ISD-linUCB, an algorithm that uses past data to learn invariances in the reward model and subsequently exploits them to improve online performance. We show both theoretically and empirically that leveraging invariance reduces the problem dimensionality, yielding significant regret improvements in fast-changing environments when sufficient historical data is available.

Introduction

In dynamic environments like online recommendation systems or algorithmic trading, the underlying reward patterns—the "rules of the game"—are constantly shifting. Traditional machine learning often assumes stationarity, but real-world applications frequently encounter non-stationary settings where the relationship between context and reward drifts over time.

Standard approaches to non-stationary linear bandits typically rely on "forgetting" mechanisms, such as sliding windows or discount factors, to prioritize recent observations. While effective at adapting to change, these methods are inherently wasteful. If a significant portion of the reward model remains stable while only a small part changes, discarding historical data forces the agent to repeatedly re-learn the stable components from scratch. This leads to high cumulative regret, particularly in environments that change faster than the agent can adapt.

The ISD-linUCB Framework

To address this inefficiency, we introduce the Invariant Subspace Decomposition (ISD) framework. The core idea is to decompose a time-varying reward model into a stationary (invariant) component and a non-stationary (residual) component. By identifying what stays the same, we can leverage historical data to simplify the online learning task.

Our proposed algorithm, ISD-linUCB, operates in two distinct phases:

  1. Offline Phase (Learning Invariance): Using a pool of historical data ($T_0$), the algorithm identifies two orthogonal subspaces: an Invariant Subspace ($S^{inv}$), where the feature-reward relationship is constant, and a Residual Subspace ($S^{res}$), where the relationship varies over time.
  2. Online Phase (Adaptive Learning): During online interaction, the agent utilizes the pre-learned invariant parameters to handle the stable portion of the reward. It then applies a standard Upper Confidence Bound (UCB) approach to learn only the remaining parameters within the lower-dimensional residual subspace.
Architecture of the ISD-linUCB algorithm, showing the decomposition of reward prediction into invariant and residual components.

By focusing online adaptation exclusively on the changing components, the "effective" dimensionality of the learning problem is reduced from the total feature space $p$ to the residual dimension $p^{res}$.

Experimental Evaluation

We evaluated ISD-linUCB through synthetic simulations designed to test its performance across varying degrees of non-stationarity.

  • Setup: Environments were simulated with a total dimension $p=10$, while the residual dimension $p^{res}$ varied between 2 and 8.
  • Data: The algorithm was provided with varying amounts of historical data ($T_0 \in \{1000, 3500, 8000\}$) to assess how the quality of subspace estimation impacts online performance.
  • Baselines: We compared ISD-linUCB against standard LinUCB and non-stationary variants, including Sliding-Window LinUCB (SW-linUCB) and Discounted LinUCB (D-linUCB).

Key Insights and Results

The theoretical and empirical results highlight several advantages of the invariance-based approach:

  • Improved Regret Scaling: Theoretically, the regret of ISD-linUCB scales with $\tilde{O}(p^{res}\sqrt{T})$ rather than $\tilde{O}(p\sqrt{T})$. When $p^{res} \ll p$, this represents a substantial performance gain.
  • Dimensionality as a Buffer: Non-stationarity is most problematic when it affects the entire feature space. By confining the change to a small subspace, ISD-linUCB effectively lowers the complexity of the online task.
  • The Utility of "Stale" Data: While historical data may be biased for predicting current rewards, it remains unbiased for identifying the invariant structure. This allows "old" data to serve as a powerful tool for dimensionality reduction.
  • Robustness to Rapid Change: ISD-linUCB excels in fast-changing environments where traditional "forgetting" algorithms fail because they cannot collect enough recent data to estimate the full $p$-dimensional parameter set.

Conclusion and Future Work

ISD-linUCB demonstrates that identifying invariant structures can significantly improve performance in non-stationary bandit problems. However, the method currently assumes a linear decomposition and relies on the quality of offline exploration.

Future research could extend this framework to non-linear models or Reinforcement Learning (RL), where transition dynamics might also contain invariant components. Additionally, integrating ISD-linUCB with sliding windows could provide a more robust solution for environments with continuously drifting residual components.

Summary updated

Abstract

We consider stochastic non-stationary linear bandits where the linear parameter connecting contexts to the reward changes over time. Existing algorithms in this setting localize the policy by gradually discarding or down-weighting past data, effectively shrinking the time horizon over which learning can occur. However, in many settings historical data may still carry partial information about the reward model. We propose to leverage such data while adapting to changes, by assuming the reward model decomposes into stationary and non-stationary components. Based on this assumption, we introduce ISD-linUCB, an algorithm that uses past data to learn invariances in the reward model and subsequently exploits them to improve online performance. We show both theoretically and empirically that leveraging invariance reduces the problem dimensionality, yielding significant regret improvements in fast-changing environments when sufficient historical data is available.
BibTeX
@misc{lazzaretto2026invariance,
  author = {Margherita Lazzaretto and Jonas Peters and Niklas Pfister},
  title = {{Invariance-Based Dynamic Regret Minimization}},
  year = {2026},
  eprint = {2603.03843},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.03843},
}

Loading related content...

Figure