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

Stochastic Bandits with ReLU Neural Networks

Kan Xu, Hamsa Bastani, Surbhi Goel, Osbert Bastani

Abstract

This paper introduces the first algorithm to achieve the optimal $\tilde{O}(\sqrt{T})$ regret guarantee for stochastic bandits utilizing one-layer ReLU neural networks. By leveraging the inherent piecewise linear structure of ReLU activations, the proposed methods—OFU-ReLU and its practical variant OFU-ReLU+—transform a complex non-linear bandit problem into a manageable linear bandit problem in a higher-dimensional feature space. Unlike previous approaches based on Neural Tangent Kernel (NTK) theory, which suffer from poor scaling in high-dimensional settings, this direct parameter estimation approach maintains the "gold standard" $\sqrt{T}$ regret scaling.

Introduction

Contextual bandits are fundamental to modern personalized systems, such as recommendation engines and clinical decision support. While linear models are theoretically robust with $\sqrt{T}$ regret, they often fail to capture the non-linear complexities of real-world data. Neural networks, particularly those with Rectified Linear Units (ReLU), offer a powerful alternative. However, theoretical guarantees for ReLU-based bandits have historically relied on NTK theory, which can lead to superlinear regret as the data dimensionality increases. This work addresses this gap by providing a new theoretical framework and algorithms that achieve optimal regret without NTK assumptions.

Methodology

The authors propose two primary algorithms: OFU-ReLU and OFU-ReLU+. The core strategy involves a two-phase execution:

  1. Exploration Phase: The algorithm initially performs random exploration to gather sufficient data to estimate the hidden parameters ($\Theta^*$) of the ReLU neurons.
  2. Linearization Phase: Once the parameter estimates reach a critical accuracy threshold, the algorithm "freezes" the ReLU indicator functions. Since a ReLU function is linear when active, the problem reduces to a linear bandit. The algorithm then employs a standard Upper Confidence Bound (UCB) approach.

A significant technical hurdle is the inability to distinguish the sign of a neuron's weight directly from the output. To resolve this, the authors developed a "Sign Flip" trick, projecting the problem into a $2kd$-dimensional feature space that accounts for potential sign errors.

For practical applications where the "gap" ($\nu^*$)—the distance between the optimal action and the ReLU switch-point—is unknown, the OFU-ReLU+ algorithm uses a geometric batching strategy to refine its estimates over time.

The batching strategy employed by OFU-ReLU+ to refine parameter estimates over time.

Experimental Results

The algorithms were evaluated using synthetic datasets where the ground truth is a one-layer ReLU network. The experiments compared OFU-ReLU against standard benchmarks, including NeuralUCB variants and the linear bandit baseline OFUL. The test environment featured a dimension $d=2$ with varying neuron counts ($k=3$ and $k=10$), and an action space of 1,000 randomly sampled arms.

Regret comparison between OFU-ReLU and benchmarks for d=2, k=10.

The results demonstrate that OFU-ReLU achieves significantly lower regret and faster convergence than its competitors. While NeuralUCB often requires thousands of steps to stabilize, the proposed method reaches the linear optimization regime in as few as 20 steps. Furthermore, the linear benchmark (OFUL) failed to account for the non-linear "kinks" in the reward function, resulting in high regret.

Discussion and Conclusion

This work provides a theoretical breakthrough by establishing the first $\tilde{O}(\sqrt{T})$ regret bound for one-layer ReLU bandits. The key insight is that ReLUs are locally linear; identifying the correct side of the activation "elbow" allows for efficient linear optimization. While the current proof is limited to one-layer networks and assumes a positive gap $\nu^*$, it sets a new standard for neural bandit theory. Future work will focus on extending these principles to multi-layer architectures and other piecewise linear activation functions like Leaky ReLU.

Summary updated

BibTeX
@inproceedings{xu2024stochastic,
  author = {Kan Xu and Hamsa Bastani and Surbhi Goel and Osbert Bastani},
  title = {{Stochastic Bandits with ReLU Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=2hidpjUPvV},
}
Figure