NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Stochastic Contextual Bandits with Long Horizon Rewards

Yuzhen Qin, Yingcong Li, Fabio Pasqualetti, Maryam Fazel, Samet Oymak

Introduction: The Curse of Memory in Sequential Decision-Making

In standard stochastic contextual bandit problems, the reward at any given time is assumed to depend solely on the immediate action and the current context. However, many real-world applications exhibit significant temporal dependencies. In fields like education, marketing, and natural language processing, a single outcome is often the cumulative result of a sequence of past interactions. For instance, a student's performance in a course is influenced by the entire curriculum they followed previously, not just the most recent lesson.

This paper addresses the challenge of non-Markovian rewards, where the current reward $r_t$ depends on a history of $h$ past actions and contexts. As the horizon $h$ (the "memory") of the system grows, traditional learning approaches suffer from an exponential or high-polynomial explosion in regret. The authors propose a framework to solve this "curse of memory" by leveraging the assumption that only a sparse subset of these $h$ past events actually influences the current reward.

Figure 1: Illustration of the long-horizon reward dependence model, where the reward at time $t$ is influenced by a window of past actions and contexts of length $h$.

Methodology: Doubling Lasso and AD-Lasso

The authors model the reward as a linear combination of past interactions: $r_t = \langle \sum_{i=0}^{h-1} w_i x_{t-i, a_{t-i}}, \theta \rangle + \epsilon_t$. Here, $w$ is an $s$-sparse weight vector of length $h$, and $\theta$ is the unknown parameter vector for the arms. The primary challenge is that the data possesses a circulant/Toeplitz structure because the history at time $t$ is a shifted version of the history at $t-1$. This structure violates the Restricted Isometry Property (RIP) required for standard low-rank matrix recovery.

To overcome this, the authors introduce two primary algorithms:

  1. Doubling Lasso: Designed for the "data-poor" regime ($T < h$), this algorithm uses a doubling trick to progressively estimate the direction of $\theta$ by increasing the history window it considers.
  2. Adaptive Doubling Lasso (AD-Lasso): For the "data-rich" regime ($T \geq h$), this algorithm uses a warm start from the Doubling Lasso and then estimates the entire sparse interaction vector $\phi = w \otimes \theta$ using block-sparse recovery techniques.

Both algorithms utilize a "chucking" method for data splitting, ensuring that non-overlapping segments are used to maintain the independence of measurements required for Lasso-based estimation.

Key Insights: Why Low-Rank Methods Fail

A significant theoretical contribution of this work is the proof that circulant design matrices are inherently ill-suited for low-rank matrix recovery. Even if the underlying reward structure is rank-1 (represented by $\theta w^T$), standard nuclear norm or factorization methods fail because the sensing process is not isometric.

By reframing the problem as a block-sparse recovery task rather than a low-rank one, the authors can bypass the polynomial dependence on $h$. They provide a new technical result extending the RIP to circulant matrices formed by dependent sub-Gaussian vectors, which allows for regret bounds that scale with the sparsity $s$ and dimension $d$, rather than the horizon length $h$.

Empirical Results

The proposed AD-Lasso algorithm was validated through synthetic numerical experiments with a horizon of $h=1000$. The experiments compared AD-Lasso against several baselines, including Sparse-Alternating Gradient Descent (SA-GD) and Matching Pursuit variants.

Figure 2: Empirical regret performance of the proposed algorithm across different weight distributions ($w_1$ and $w_2$), demonstrating sub-linear regret growth.

Key findings include:

  • Horizon Independence: The theoretical regret bounds—$\tilde{O}(d\sqrt{sT})$ for the data-poor regime and $\tilde{O}(\sqrt{sdT})$ for the data-rich regime—were empirically supported, showing no polynomial dependence on $h$.
  • Robustness: AD-Lasso significantly outperformed SA-GD. While simpler heuristics like Single-Weight Matching Pursuit (SW-MP) performed well when weights were highly concentrated ("spiky"), AD-Lasso proved much more robust when weights were distributed ("flat"), successfully learning complex dependence patterns.

Conclusion and Future Work

This paper provides a robust theoretical and algorithmic foundation for handling long-horizon dependencies in contextual bandits. By exploiting sparsity, the authors demonstrate that it is possible to learn efficiently even when the system's memory is vast. Future research directions include extending this linear model to non-linear reward functions (e.g., via neural networks) and adapting the framework for dynamic environments where the sparsity pattern may shift over time.

Summary updated

BibTeX
@inproceedings{qin2023stochastic,
  author = {Yuzhen Qin and Yingcong Li and Fabio Pasqualetti and Maryam Fazel and Samet Oymak},
  title = {{Stochastic Contextual Bandits with Long Horizon Rewards}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i8.26140},
}
Figure