Fast Non-Episodic Finite-Horizon RL with K-Step Lookahead Thresholding
cs.LG, stat.ML
Submitted: 2026-01-31
Updated: 2026-06-13
Journal ref: Proceedings of the 43rd International Conference on Machine Learning, PMLR 306:140964-140992, 2026
Code: https://github.com/AminHP/gym-anytrading
License: http://creativecommons.org/licenses/by-nc-nd/4.0/
The gist: Online reinforcement learning in non-episodic, finite-horizon MDPs remains underexplored and is challenged by the need to estimate returns to a fixed terminal time.
Terminology
Abstract
Online reinforcement learning in non-episodic, finite-horizon MDPs remains underexplored and is challenged by the need to estimate returns to a fixed terminal time. Existing infinite-horizon methods, which often rely on discounted contraction, do not naturally account for this fixed-horizon structure. We introduce a modified Q-function: rather than targeting the full-horizon, we learn a K-step lookahead Q-function that truncates planning to the next K steps. To further improve sample efficiency, we introduce a thresholding mechanism: actions are selected only when their estimated K-step lookahead value exceeds a time-varying threshold. We provide an efficient tabular learning algorithm for this novel objective, proving it achieves fast finite-sample convergence: it achieves minimax optimal constant regret for K=1 and O(((K-1),C K-1) sqrt SAT (T)) regret for any K at least 2. We numerically evaluate the performance of our algorithm under the objective of maximizing reward. Our implementation adaptively increases K over time, balancing lookahead depth against estimation variance. Empirical results demonstrate superior cumulative rewards over state-of-the-art tabular RL methods across synthetic MDPs and RL environments: JumpRiverswim, FrozenLake and AnyTrading. Code is provided on github.
Sources
- REGAL: A Regularization based Algorithm for Reinforcement Learning in Weakly Communicating MDPs
- Mastering the exploration-exploitation trade-off in Bayesian Optimization
- Improved Analysis of UCRL2 with Empirical Bernstein Inequality
- reBandit: Random Effects based Online RL algorithm for Reducing Cannabis Use
- Model-Based Reinforcement Learning for Atari
- FinRL-Meta: A Universe of Near-Real Market Environments for Data-Driven Deep Reinforcement Learning in Quantitative Finance
- Proximal Policy Optimization Algorithms
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks