Introduction
This paper, presented at NeurIPS 2025, introduces CURLTRAC, a novel curriculum learning strategy designed to help agents—ranging from simple robots to Large Language Models (LLMs)—operate under strict trajectory constraints. By adaptively tightening constraints during training, CURLTRAC enables LLMs to compress long Chain-of-Thought (CoT) reasoning into concise, direct answers, achieving over a 12x inference speedup on consumer hardware without sacrificing accuracy.
Problem Statement: The Challenge of Trajectory Constraints
In real-world deployments, agents often face strict resource or safety limits. A robot might need to reach a destination within a specific energy budget, or an LLM might need to solve a math problem using fewer than 10 tokens to minimize inference costs.
Standard Reinforcement Learning (RL) struggles with these trajectory-level constraints. Training with strict limits from the outset often leads to a "sparse reward" problem: because the agent fails almost every initial attempt, it never receives the feedback necessary to learn. Conversely, training without constraints results in "lazy" agents that use excessive resources unavailable at deployment.
Methodology: The CURLTRAC Framework
CURLTRAC (Curriculum for Trajectory-Constrained agents) addresses these challenges through an adaptive teacher-student framework that maintains the agent at an optimal "sweet spot" of intermediate difficulty:
- Performance-Based Tightening: A teacher component monitors the agent's success rate and sets a performance threshold (typically $\beta = 0.5$).
- Constraint Optimization: The teacher solves an optimization problem to find the strictest possible constraint ($\alpha_t$) that still allows the agent to maintain the target success rate.
- Binary Search Efficiency: Utilizing the monotonic nature of success relative to constraint difficulty, the system uses binary search to adjust difficulty levels rapidly.
- Zero-Overhead Updates: By maintaining a rolling buffer of previous rollouts, the curriculum adjusts without requiring additional, expensive data collection.
Theoretical analysis on a binary-tree MDP demonstrates that CURLTRAC reduces sample complexity from exponential ($O(2^H)$) to polynomial ($O(H^3)$) compared to training with target constraints from the start.
Experimental Setup
The researchers evaluated CURLTRAC across diverse domains to test its generalizability:
- Synthetic RL: A BinaryTree environment for theoretical validation and PuddleGrid, where agents must navigate a grid while minimizing "lava" costs.
- Mathematical Reasoning: Benchmarks including SVAMP and GSM8K.
- Models: Fine-tuning of Qwen2.5-Math-1.5B and MetaMath-Llemma-7B using the RLOO (Reinforcement Learning from Online Outcomes) trainer.
Results and Discussion
Massive Speedups and Compression
On an Apple M1 Pro, a CURLTRAC-trained Qwen model reduced inference time from 7.5 seconds to 0.6 seconds per query—a 12.5x improvement. In the SVAMP math task, average response length dropped from 138 tokens to just 3 tokens, while maintaining a 74% accuracy rate, comparable to the unconstrained base model.
The Emergence of Implicit Reasoning
A key finding is how LLMs adapt to tightening constraints. Rather than simply truncating their output, models learn "implicit reasoning." They internalize intermediate algebraic steps, eventually jumping directly from the problem statement to the final calculation as training progresses.
CURLTRAC consistently outperformed baselines, including "Target" training (which failed due to sparse rewards) and "Soft-RL" (which uses penalty terms but often fails to meet hard constraints).
Conclusion
CURLTRAC provides a robust method for training efficient, constraint-aware agents by maintaining them at a critical learning threshold. While current work focuses on static deployment constraints, future research may explore "Matryoshka-style" models that can dynamically adjust reasoning length at test-time. Furthermore, the internal mechanics of how these models internalize reasoning during compression remains a significant open question for the interpretability community.
Summary updated