Efficient Near-Optimal Algorithm for Online Shortest Paths in Directed Acyclic Graphs with Bandit Feedback Against Adaptive Adversaries

Arnab Maiti, Zhiyuan Fan, Kevin G. Jamieson, Lillian J. Ratliff, Gabriele Farina · DOI

Abstract

We present the first computationally efficient algorithm for the online shortest path problem in Directed Acyclic Graphs (DAGs) that achieves near-minimax optimal regret against adaptive adversaries under bandit feedback. The proposed method integrates Follow-the-Regularized-Leader (FTRL) using Tsallis-1/2 entropy with a novel implicitly biased loss estimator and a centroid-based graph decomposition technique. Our algorithm provides high-probability regret guarantees, significantly advancing the state-of-the-art for several combinatorial problems such as extensive-form games, multi-task bandits, and resource allocation games.

Introduction

In the online shortest path problem, a learner sequentially selects a path through a graph and incurs a loss. Under bandit feedback, only the total loss of the chosen path is observed, rather than individual edge losses. This setting presents two primary challenges:

  1. Combinatorial Complexity: The number of possible paths in a DAG can be exponential relative to the number of edges, making naive arm-based algorithms computationally intractable.
  2. Adaptive Adversaries: Most efficient algorithms are designed for oblivious adversaries. Adaptive adversaries, who adjust future losses based on the learner's history, require "high-probability" guarantees that are significantly harder to establish.

This work bridges these gaps by providing an algorithm that is both polynomial-time and theoretically optimal, even against adaptive adversaries.

Methodology

The core of the approach rests on three technical pillars:

FTRL with Tsallis Entropy

The algorithm employs the Follow-the-Regularized-Leader (FTRL) framework with a Tsallis-1/2 entropy regularizer. While standard in bandit literature, its efficient application to the flow polytope of a graph is a key technical hurdle addressed here.

Implicitly Biased Loss Estimator

To handle adaptive adversaries without explicit exploration (which is often computationally expensive in combinatorial spaces), the authors develop a new importance-sampling-inspired loss estimator. This estimator enables "implicit exploration," allowing for high-probability bounds.

Centroid-Based Decomposition

To achieve optimal regret, path lengths must be controlled. The authors transform the input DAG into a compressed DAG ($G^\dagger$) using a centroid-based decomposition of the graph's spanning tree. This ensures that every path in the transformed graph has a length logarithmic in the total number of paths, without a significant increase in the edge count.

Key Results and Applications

The algorithm achieves a high-probability regret bound of $\tilde{O}(\sqrt{|E|T \log |\mathcal{X}|})$, where $|E|$ is the number of edges, $T$ is the number of rounds, and $|\mathcal{X}|$ is the number of paths. This matches the lower bound of $\Omega(\sqrt{dT \log(N)/\log(d)})$ up to logarithmic factors.

Comparison of the proposed algorithm with existing literature. The table highlights that this work is the first to achieve efficiency, high-probability guarantees against adaptive adversaries, and near-optimal regret simultaneously.

The performance improvements are particularly notable in specific combinatorial structures:

  • Hypercubes: Regret improved from $O(d^2\sqrt{T})$ to $O(d\sqrt{T})$.
  • Extensive-Form Games: Regret reduced from $O(|Z|^2\sqrt{T})$ to $O(\sqrt{|Z|T \log(N)})$, where $|Z|$ is the number of terminal states.
  • Other Applications: The framework also sets new benchmarks for multi-task multi-armed bandits, $m$-sets, and Colonel Blotto games.

Conclusion

This paper provides a unified algorithmic framework for regret minimization on DAGs that is both efficient and robust against adaptive adversaries. While the use of the Ellipsoid method for optimization ensures polynomial time complexity, future work may explore more practical first-order methods for large-scale applications. Additionally, extending these guarantees to arbitrary combinatorial sets remains an open question.

Summary updated

BibTeX
@misc{maiti2025efficient,
  author = {Arnab Maiti and Zhiyuan Fan and Kevin G. Jamieson and Lillian J. Ratliff and Gabriele Farina},
  title = {{Efficient Near-Optimal Algorithm for Online Shortest Paths in Directed Acyclic Graphs with Bandit Feedback Against Adaptive Adversaries}},
  year = {2025},
  eprint = {2504.00461},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.00461},
}
Figure