Non-stationary Contextual Bandit Learning via Neural Predictive Ensemble Sampling

Zheqing Zhu, Yueyang Liu, Kuang Xu, Benjamin Van Roy · Submission to ICLR 2024 · Rejected

TL;DR

Real-world recommendation systems constantly change, but standard contextual bandits either waste effort learning temporary fads or fail to scale with deep neural networks. This paper introduces Neural Predictive Ensemble Sampling (NeuralPES), a scalable deep-learning algorithm that couples neural ensembles with sequence modeling to prioritize gathering enduring information rather than transient noise.

What Problem Does This Paper Address?

Contextual bandits are workhorses for personalized recommendations, online advertising, and dynamic content placement. However, real-world user preferences are inherently non-stationary—shifting due to seasonality, social trends, or serendipity.

Most existing non-stationary bandit algorithms rely on heuristics such as sliding windows, exponential reward discounting, or change-point detection. These heuristics suffer from a fundamental flaw: excessive exploration of short-lived information. They treat all uncertainty equally, spending valuable exploration budget resolving details about an action whose value may vanish tomorrow. While recent information-theoretic formulations (like predictive sampling) formalize the concept of seeking "lasting information," they are computationally intractable and cannot scale to high-dimensional feature spaces and modern deep learning pipelines.

Methods

NeuralPES addresses scalability and non-stationarity simultaneously by combining deep ensemble sampling with predictive sequence modeling. The architecture consists of three core components:

  1. Reward Model Ensemble: An ensemble of $M$ neural networks where each particle is split into shared/base feature representations ($b(\psi; c, a)$) and a linear top layer ($w_{m, t}$) trained on a replay buffer of recent interactions.
  2. Sequence Model Ensemble: An ensemble of recurrent models (1-layer GRUs) trained to forecast future top-layer parameters ($w_{m, t+2}$) from historical parameter trajectories.
  3. Predictive Model Ensemble: Networks taking the Hadamard product of the predicted future weights and current context representations ($\hat{w}_{m, t+2} \odot b(\psi; c, a)$) as input to estimate upcoming rewards. Sampling across this ensemble prioritizes actions whose information value persists across time.

To maintain performance over long horizons, the authors also incorporate:

  • Plasticity Regularization: Penalizes weight drift away from initializations ($\|w - w_0\|_2$) to prevent catastrophic forgetting and preserve continual learning capacity.
  • Interval/Batched Updates: Updates model weights every $K$ steps rather than per interaction, avoiding the prohibitive $\mathcal{O}(d^2)$ or $\mathcal{O}(d^3)$ matrix inversions seen in algorithms like NeuralUCB.
       [Historical Weights w_{t-L:t}]
                     │
                     ▼
         [Sequence Model (GRU)] ──► Forecasts Future Weights (w_{t+2})
                                                   │
  Context-Action ──► [Base Network b(ψ)] ──────────┴──► [Predictive Model] ──► Action Selection

Datasets

The authors evaluated NeuralPES against stationary and sliding-window baselines across synthetic and real-world benchmarks:

  • Synthetic AR(1) Contextual Logistic Bandit: 10 actions, feature dimension $d=10$, where parameters drift following an autoregressive process $\theta_{t+1, i} = \gamma_i \theta_{t, i} + W_{t+1, i}$.
  • Microsoft News Dataset (MIND): 1-week chronological stream of real user click logs (10,000 sampled users, 100-dimensional entity/click embeddings) exhibiting natural day-of-week seasonality.
  • KuaiRec Short-Video Dataset: A 2-month dataset aggregated into 12-hour bandit decision rounds with 1,588-dimensional user features and 283-dimensional video features.

Key Insights and Ideas

  • Information Durability Over Immediate Uncertainty: In stationary settings, Thompson Sampling balances current reward against learning about current parameters. In non-stationary environments, learning about parameters that fluctuate rapidly is wasted effort. Theoretical bounds show that LinPS (the linear idealization of NeuralPES) scales with mutual information conditioned on the future: $I(\theta_3; \theta_2 \mid \theta_1)$. If parameters are pure i.i.d. noise, regret drops to zero because the agent correctly chooses not to explore.
  • Sequence Modeling Alone Fails: In ablation experiments, omitting the Predictive Model (directly greedily following sequence model forecasts) led to performance collapses. Because real-world drift is noisy and unpredictable, the predictive model is critical for filtering out unhelpful parameter forecasts.
  • Regenerative Regularization Prevents Saturation: Continual gradient updates in non-stationary streams degrade neural plasticity. Regularizing parameters back toward their initialization maintained steady performance over long runs (e.g., the 2-month KuaiRec test).

Key Results

Across all benchmarks, NeuralPES outperformed both stationary and sliding-window variants of Neural Ensemble, Neural LinUCB, and Neural Linear:

Benchmark Best Baseline NeuralPES
AR(1) Bandit (Avg Reward) $0.5741 \pm 0.0029$ (Window Neural Linear) $0.5850 \pm 0.0023$
MIND 1-Week (Avg CTR) $0.1513 \pm 0.0012$ (Window Neural Ensemble) $0.1552 \pm 0.0013$
KuaiRec 2-Month (Avg Rating) $1.3187 \pm 0.0023$ (Window Neural Ensemble) $1.3421 \pm 0.0016$

Limitations and Future Work

  • No Action-Driven State Transitions: The bandit framework assumes agent decisions do not impact future user contexts or transition dynamics, making it unsuitable for full reinforcement learning problems where actions influence environment states.
  • Simple Sequence Modeling: The sequence forecaster relies on a simple GRU. The authors note that transformer/attention-based sequence models could likely improve parameter trajectory forecasting.
  • Compute Overhead: While it bypasses matrix inversions, managing three distinct sets of neural network ensembles introduces training overhead compared to single-model heuristic baselines.

Summary updated

BibTeX
@misc{zhu2023non,
  author = {Zheqing Zhu and Yueyang Liu and Kuang Xu and Benjamin Van Roy},
  title = {{Non-stationary Contextual Bandit Learning via Neural Predictive Ensemble Sampling}},
  year = {2023},
  eprint = {2310.07786},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.07786},
}
Figure