Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test

Akinori F. Ebihara, Taiki Miyagawa, Kazuyuki Sakurai, Hitoshi Imaoka
1/29/2025
cs.LGcs.AI

Official code: Akinori-F-Ebihara/FIRMBOUND (3 stars, MIT, last commit 2025-05-20).

Abstract

Time-sensitive machine learning benefits from Sequential Probability Ratio Test (SPRT), which provides an optimal stopping time for early classification of time series. However, in finite horizon scenarios, where input lengths are finite, determining the optimal stopping rule becomes computationally intensive due to the need for backward induction, limiting practical applicability. We thus introduce FIRMBOUND, an SPRT-based framework that efficiently estimates the solution to backward induction from training data, bridging the gap between optimal stopping theory and real-world deployment. It employs density ratio estimation and convex function learning to provide statistically consistent estimators for sufficient statistic and conditional expectation, both essential for solving backward induction; consequently, FIRMBOUND minimizes Bayes risk to reach optimality. Additionally, we present a faster alternative using Gaussian process regression, which significantly reduces training time while retaining low deployment overhead, albeit with potential compromise in statistical consistency. Experiments across independent and identically distributed (i.i.d.), non-i.i.d., binary, multiclass, synthetic, and real-world datasets show that FIRMBOUND achieves optimalities in the sense of Bayes risk and speed-accuracy tradeoff. Furthermore, it advances the tradeoff boundary toward optimality when possible and reduces decision-time variance, ensuring reliable decision-making. Code is publicly available at https://github.com/Akinori-F-Ebihara/FIRMBOUND

View on arXivView PDF

Code Implementations(1)

MIT

A pytorch implementation of Finite-horizon average a posteriori Risk Minimizer for optimal BOUNDary (FIRMBOUND, ICLR2025).

30PythonJan 27, 20251 years agoMIT

Similar Papers

Cite this paper

@article{ebihara2025learning,
  title  = {Learning the Optimal Stopping for Early Classification within Finite Horizons via Sequential Probability Ratio Test},
  author = {Akinori F. Ebihara and Taiki Miyagawa and Kazuyuki Sakurai and Hitoshi Imaoka},
  year   = {2025},
  eprint = {2501.18059},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.18059v1},
  journal = {ICLR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.18059.svg)](https://codeofpaper.com/paper/2501.18059)

Discussion