BOTS: A Unified Framework for Bayesian Online Task Selection in LLM Reinforcement Finetuning

Qianli Shen, Daoyuan Chen, Yilun Huang, Zhenqing Ling, Yaliang Li, Bolin Ding, Jingren Zhou

Introduction

BOTS (Bayesian Online Task Selection) is a unified framework designed to dynamically select the most informative training tasks during Large Language Model (LLM) reinforcement finetuning. By combining direct evaluation results with "implicit" difficulty estimates and utilizing Thompson sampling, BOTS significantly improves training efficiency and final model performance, all while adding negligible computational overhead (<0.2%).

The Challenge of Task Selection in RFT

Reinforcement Finetuning (RFT) is essential for aligning LLMs with human reasoning and preferences. However, its success depends heavily on which tasks the model practices on during training.

Standard training often relies on uniform sampling, which is highly inefficient. The model wastes compute on tasks it has already mastered (too easy) or tasks that are currently impossible for it to solve (too hard). To maximize learning efficiency, a model should focus on the "Goldilocks zone"—tasks of moderate difficulty where the success probability is roughly 0.5.

Existing solutions to this problem are often too rigid (offline schedules that fail to adapt), too expensive (requiring extra "rollouts" just to check task difficulty), or incomplete (relying on only one type of evidence). BOTS introduces a method that is adaptive, accurate, and computationally "free."

The BOTS Framework

The BOTS framework treats task selection as a non-stationary multi-armed bandit problem, solved through a combination of Bayesian inference and lightweight interpolation.

Overview of the BOTS framework.
  1. Bayesian Foundation: Each task's difficulty is modeled as a Beta distribution. This allows the system to maintain a probabilistic "belief" about how likely the model is to succeed on a specific task, updating this belief continuously as the model evolves.
  2. Dual Evidence Fusion: BOTS updates its beliefs using two distinct sources:
  3. Explicit Evidence: Direct success/failure counts from tasks actually selected and evaluated in the current training batch.
  4. Implicit Evidence: For tasks not selected, BOTS estimates their difficulty using an ultra-lightweight interpolation plug-in.
  5. The Interpolation Plug-in: This is the core driver of BOTS's efficiency. It uses pre-computed scores from two reference models (one "weak," one "strong"). By observing how the current training model performs on a small batch, BOTS calculates a "capability coefficient" to estimate where the model stands relative to the references. This allows it to infer the difficulty of thousands of unselected tasks without running expensive rollouts.
  6. Thompson Sampling: To pick the next batch, BOTS samples from the posterior distributions. This naturally balances exploitation (picking tasks likely to be at the 0.5 difficulty mark) and exploration (trying tasks with high uncertainty to refine its estimates).

Datasets and Evaluation

The researchers evaluated BOTS using the GURU dataset, a well-curated cross-domain RL collection. They focused on three primary reasoning subsets:

  • Math: 54.4k problems (Skywork OR1, DAPO, DeepScaler).
  • Code: 18.1k challenges (LeetCode, TACO, LiveCodeBench).
  • Logic: 5.0k puzzles (Ordering Puzzles, ARC-AGI).

Evaluation was conducted on standard benchmarks including MATH500, AIME24, HumanEval, MBPP, and ARC-AGI.

Key Findings and Performance

Impact of implicit evidence weight on Effective Task Ratio and Math Performance.
  • The Power of Fusion: Implicit evidence is crucial for a "rapid cold start" (guiding the model when data is sparse), while explicit evidence is vital for long-term accuracy. Relying on only one leads to either slow learning or error accumulation.
  • Dynamic Curriculum: Heatmap and ratio analyses reveal that BOTS successfully filters out the 0% and 100% success rate tasks over time. This keeps the model's attention focused on the shifting frontier of its own capabilities (the Effective Task Ratio).
  • Performance Gains: Across all domains, BOTS consistently outperformed uniform sampling and offline curricula. For a 1.5B model in the math domain, it achieved a 28% acceleration in reaching target performance. In logic tasks, a 7B model saw a 50% acceleration, reaching the baseline's best performance in half the steps.
  • Zero-Cost Adaptivity: Because the interpolation plug-in uses simple vector operations and pre-existing "difficulty tags" from datasets like GURU, the "online" cost of selecting tasks is nearly zero. Wall-clock analysis showed that task selection adds less than 0.2% to the total training time.
  • Robustness: Even if the reference models aren't perfect (e.g., the training model becomes stronger than both), the system remains robust because it primarily needs a monotonic signal to track progression.

Limitations and Future Work

While highly effective, the current framework is designed for pass/fail (0/1) binary rewards. Extending this to continuous rewards (e.g., partial credit or scalar rewards from a critic model) is a logical next step. Additionally, parameters like the discount factor and evidence balance are currently fixed; future work could explore self-adaptive update rules that change these values based on training dynamics. Finally, the interpolation assumes a linear relationship between global capability and per-task success, whereas true LLM learning dynamics may be more complex.

Summary updated

BibTeX
@inproceedings{shen2026bots,
  author = {Qianli Shen and Daoyuan Chen and Yilun Huang and Zhenqing Ling and Yaliang Li and Bolin Ding and Jingren Zhou},
  title = {{BOTS: A Unified Framework for Bayesian Online Task Selection in LLM Reinforcement Finetuning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=rQXBw8fn3Z},
}
Figure