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

TL;DR

This paper tackles the challenge of learning in complex decision-making scenarios where rewards depend on a long history of past actions, not just the immediate one. They introduce new algorithms for contextual bandits that efficiently learn from this long-term dependency by exploiting sparsity, achieving theoretical guarantees that avoid the curse of horizon length.

What Problem Does This Paper Address?

Many real-world decision-making problems, from recommending educational courses to managing complex systems, involve rewards that are influenced by a sequence of past actions and contexts, not just the most recent one. This "long-horizon dependency" makes traditional bandit algorithms, which typically assume immediate rewards, insufficient. Learning efficiently in such scenarios is crucial for applications in areas like reinforcement learning and natural language processing, where long sequences of interactions are common. The authors specifically address the problem of learning in contextual linear bandits where the reward at any given time step can depend on up to $h$ previous actions and their associated contexts. A key challenge is that this dependency can be sparse, meaning only a small subset ($s$) of these past actions actually influence the reward, and the structure of this dependency (e.g., circulant matrices) can complicate standard learning techniques.

Methods

The paper introduces two novel algorithms designed for different data regimes:

  • Data-Poor Regime ($T < h$): An algorithm that leverages a "doubling trick" to gradually learn the reward dependence structure and arm parameters. It focuses on estimating the direction of the parameter vector, which is sufficient for making good decisions even without fully learning the entire structure.
  • Data-Rich Regime ($T \ge h$): An adaptive algorithm that first uses the data-poor approach for an initial phase and then switches to a more efficient method that learns the entire parameter vector.

Both algorithms are designed to avoid polynomial dependence on the horizon $h$, a significant theoretical contribution. A key technical innovation is the development of new analysis techniques for circulant matrices with dependent entries, extending existing Restricted Isometry Property (RIP) results. This analysis is crucial for understanding how to effectively learn from data with long-range temporal dependencies.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and algorithm design, with experimental validation presented through simulations rather than real-world datasets.

Key Insights and Ideas

  • Sparsity is Key for Long Horizons: The paper strongly emphasizes that exploiting the sparsity of the reward dependence is critical for efficient learning over long horizons. Without this, learning becomes computationally intractable.
  • Circulant Matrices are Tricky: Standard low-rank matrix recovery techniques struggle with the circulant structure that arises from the problem's temporal dependencies. This necessitates specialized analytical tools.
  • Learning Direction is Enough (Sometimes): In data-poor settings, learning the direction of the reward parameter vector is sufficient for good decision-making, rather than learning the exact vector itself. This is a clever way to bypass the need for extensive data.
  • Adaptive Algorithms Shine: The proposed adaptive algorithm, which transitions from a data-poor to a data-rich strategy, demonstrates the benefit of tailoring the learning approach to the available data.

Key Results

The paper provides theoretical guarantees in the form of regret upper bounds:

  • Data-Poor Regime: $\tilde O(d\sqrt{sT} + \min\{q, T\})$, where $q$ is adaptive to the reward dependence pattern.
  • Data-Rich Regime: $\tilde O(\sqrt{sdT})$.

Crucially, these bounds are horizon-independent (up to logarithmic factors), meaning they do not grow polynomially with the horizon $h$. This is a significant improvement for problems with long-term dependencies. Experimental results show that their proposed algorithm (AD-Lasso) outperforms existing methods, especially when the reward dependence is highly sparse.

Limitations and Future Work

The authors acknowledge that their theoretical analysis of circulant matrices with dependent entries is a step forward but suggests that stronger theoretical guarantees for low-rank estimation in such settings would be beneficial. They also point to several promising future directions:

  • Nonlinear Dependencies: Extending the framework to handle nonlinear reward dependencies on past actions.
  • Varying Sparsity: Developing algorithms where the sparsity pattern itself can change over time.
  • Beyond Bandits: Applying these concepts to more complex scenarios like reinforcement learning and control problems with long-term non-Markovian structures.

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