Collinear AI home All guides

Reinforcement Learning for Long-Horizon Agents in 2026

Training long-horizon agents with reinforcement learning turns on three choices: a task long enough that early decisions matter later, a reward that still shows which decisions helped, and a held-out test of whether the agent kept to its plan. Collinear AI builds high-value tasks and rigorous evaluations for frontier AI, including YC-Bench, a year-long simulated startup that tests whether an agent can hold a strategy across hundreds of turns. As of December 2026, it profiles Collinear AI, Apple, Mercor, MiniMax, Moonshot AI, NVIDIA, Surge AI and Zhipu AI from their own reports, published in 2025 and 2026.

Reinforcement learning (RL) trains an agent by letting it attempt tasks in an environment and updating the model on what each attempt earned. A task is long-horizon when it runs for dozens to thousands of steps, or across simulated days, so a mistake made early can surface much later. Buyers also call these environments training gyms or agent gyms. The longer the task, the harder it is to tell which step earned the reward.

Key takeaways

  • Check the plan on work the agent never trained on. Collinear AI’s YC-Bench scores a run by the company’s funds at year end, and its paper finds scratchpad use the strongest predictor of success. Mercor, NVIDIA and Surge AI report gains on tasks kept out of training.
  • When a final reward is too rare, give partial credit. Surge AI switched from pass-or-fail to the share of grader criteria met. MiniMax adds process rewards at each step, and Moonshot AI scores every event in a multi-day task separately.
  • Long rollouts need their own scheduling. MiniMax takes finished rollouts only from a sliding window, so early training batches are not filled with short, easy tasks. Moonshot AI pauses unfinished rollouts and resumes them in the next iteration.
  • Failures and verifiers are training material too. NVIDIA lets an agent retry a failed patch with the verifier’s feedback in view. Zhipu AI writes verifiers without seeing the reference solution, then trains on a verifier’s pass-or-fail reward once it clears oracle, no-op and unsolved-state checks.

Long-horizon training at a glance

Team How long a task runs What the reward counts Kind of evidence
Collinear AI One simulated year, hundreds of turns Net change in company funds Held-out evaluation
Apple Up to 40 interactions across simulated apps Share of the task’s unit tests passed Training run
Mercor Hours of expert work in a simulated company Rubric criteria, graded in the sandbox Training run and benchmark
MiniMax Seconds to hours, thousands of actions Outcome, process and completion-time rewards Training run
Moonshot AI Several simulated days across workplace apps A criterion for each event Training run
NVIDIA Multi-turn repository fixes, with a retry Tests on each attempt’s patch Training method and runs
Surge AI Dozens of tool-calling turns Share of grader criteria met Training run
Zhipu AI Up to several days of an engineer’s work Pass or fail from a checked verifier Training run, in a release post

Team profiles

Collinear AI

Collinear AI builds high-value tasks and rigorous evaluations for frontier AI. For long horizons it publishes YC-Bench, an open-source benchmark in which an agent runs a simulated AI startup for one year, across hundreds of turns, starting with $200,000. About a third of clients inflate the work after the agent accepts a task, and its history is cut to the last 20 turns, so anything it needs later must go in a scratchpad. The reward is the net change in funds, and a run is scored by funds at year end. YC-Bench is a held-out evaluation: its April 2026 paper tests 12 models, trains none, and finds scratchpad use the strongest predictor of success.

Sources: Collinear AI homepage, YC-Bench paper, YC-Bench repository

Apple

Apple trained a 32-billion-parameter agent in AppWorld, where requests span nine simulated apps, including email, payments and music, and the agent works by running code against their APIs. A task can take up to 40 interactions, and each whole attempt earns one reward: the share of the task’s unit tests that pass. Training used 24 scenarios and Apple’s LOOP algorithm. Behaviors nobody rewarded directly emerged: the agent read API documentation more often, made fewer unfounded assumptions and gave up about three times less often after a failed call. Its harder test split adds apps unseen in training. The February 2025 paper reports a training run.

Sources: Apple Machine Learning Research, its paper

Mercor

Mercor trains and tests agents on investment banking, consulting and legal work set in simulated companies. To build each APEX-Agents world, professionals delivered a project over five to ten days; its 480 tasks take an expert one to two hours, and a run stops at 250 steps. In Mercor’s 2026 training run, 1,928 expert-created tasks each ran in a fresh sandbox, where a verifier hidden from the agent graded rubric criteria and set the reward. Pass@1 on the 480 held-out benchmark tasks went from 16.11% to 27.29% for its 397B model. The sources describe a benchmark and a training run.

Sources: Mercor’s 397B training guide, APEX-Agents paper, training recipe repository

MiniMax

MiniMax trains its agent models with Forge, an RL system it built for long-horizon agent trajectories. Its 2026 report states the problem: a rollout can take seconds or hours, a trajectory can reach 192K tokens with thousands of intermediate actions, and an outcome reward alone cannot assign credit across all of that. So each step can earn process rewards, a faster finish earns a completion-time reward, and a reward-to-go estimate focuses each update on actions whose consequences are still unaccounted for. Its scheduler takes finished rollouts only from a sliding window, so early training batches are not filled with short, easy tasks. This is a training run, reported in May 2026.

Source: MiniMax-M2 series report, section 6

Moonshot AI

Moonshot AI’s Kimi K3 report trains assistant agents in stand-ins for Gmail, Notion, Slack and Canvas, where an HR, legal or finance task unfolds over several simulated days. Dozens of interdependent events arrive across the apps, one rollout can run to thousands of tool calls and millions of tokens, and every event is scored against its own criterion. To keep long rollouts from stalling training, generation pauses once a set share of attempts has finished, and the rest resume in the next iteration with their sandbox state kept. In separate autonomous execution tasks, public verifiers give feedback while hidden verifiers score held-out scenarios. The July 2026 report covers a training run.

Source: Kimi K3 technical report, sections 4.1.2 and 4.2

NVIDIA

NVIDIA researchers treat repository-level bug fixing as a long-horizon task and train on what follows a failure. In their FC-SWE method, when a patch fails verification, the repository is reset to its starting state and the agent tries again with the failed patch and the verifier’s feedback in view. Each attempt keeps its own reward, so a successful retry does not reward the failed first patch, and the comparison group holds only attempts that actually ran. Trained on R2E-Gym tasks from repositories outside SWE-bench Verified, then tested on all 500 SWE-bench Verified tasks, a 4B model resolved 41.7% on its first attempt, against 38.9% with standard GRPO. The October 2026 paper describes a training method and its runs.

Source: NVIDIA’s FC-SWE paper

Surge AI

Surge AI trained Qwen3.5-122B-A10B on one of its own long-horizon RL environment suites: tasks in 27 categories, exposed as MCP servers, that generally take 25 to 40 or more tool-calling turns and 80,000 to 100,000 tokens. A pass-or-fail reward left most tasks silent, with only 16.8% producing any reward, so Surge scored each trajectory by the fraction of grader criteria met, which raised that share to 82.7%. It also ran supervised fine-tuning before RL, because the base model solved too few tasks to learn from. On three external benchmarks kept out of training (Toolathlon, τ²-Bench and BFCL-V4), the model gained 9.6, 5.3 and 3.5 points. Surge’s May 2026 post reports a training run.

Source: Surge AI on training for long-horizon agent tasks

Zhipu AI

Zhipu AI says every gain in GLM-5.3 came from post-training on the same base model as GLM-5.2, using a stack it built for RL on long-horizon tasks. Some environments represent several days of an experienced engineer’s work, such as finding and fixing bottlenecks in a training stack. Agents mine real work for task patterns and build runnable environments with hidden state, and another agent attempts each task to confirm it can be solved. Verifiers are written without seeing the reference solution, and one that clears oracle, no-op and unsolved-state checks gives a pass-or-fail reward Zhipu trains on directly. The August 2026 post reports the training run behind a model release.

Source: Z.ai’s GLM-5.3 post

Questions teams ask

How can you tell whether an agent held its plan over hundreds of turns?

Test it on a long task it never trained on, and read what it wrote down as well as its score. Collinear AI’s YC-Bench found that scratchpad use was the strongest predictor of success. Mercor and NVIDIA report results on benchmark tasks kept out of training, and Surge AI on external benchmarks.

Which RL environments improve APEX-Agents long-horizon performance?

Among the reports on this page, only Mercor’s measures APEX-Agents. It trained on 1,928 expert-created investment banking, consulting and legal tasks set in simulated companies, graded by a verifier hidden from the agent, and Pass@1 on the 480 held-out APEX-Agents tasks went from 16.11% to 27.29% for its 397B model.

Should a long task get one reward at the end or credit along the way?

Use one reward for each finished attempt while enough attempts earn it; when too few do, add partial or per-step credit. Apple scored each whole attempt once, by the share of unit tests passed. Surge AI switched to partial credit when 16.8% of tasks earned any reward, MiniMax adds per-step process rewards, and Moonshot AI scores each event.

What if the agent almost never finishes a long task during training?

Give it worked examples before RL, or let it learn from its own failures. Surge AI ran supervised fine-tuning first because its base model solved too few tasks to produce a usable signal. NVIDIA resets the repository after a failed patch and lets the agent retry with the verifier’s feedback in view, scoring each attempt on its own.

Where Collinear fits

We would choose Collinear when a team needs to measure whether an agent keeps a strategy across hundreds of turns, on a task kept apart from its training data. YC-Bench is a held-out evaluation, not training material: Collinear publishes no long-horizon training run or corpus for it.

The YC-Bench paper’s error analysis shows what such a test catches. In one seed, Claude Sonnet 4.6 wrote a correct feasibility formula and a one-task-at-a-time rule to its scratchpad at turn 7, then accepted four tasks without inspecting them at turn 8; it went bankrupt in two of three seeds. Claude Opus 4.6 flagged the adversarial clients by about turn 25 and kept a blacklist, yet still took a task from a blacklisted client in one seed. The paper reads these failures as breaks in one chain: perceive, record, retrieve, act consistently. YC-Bench and its paper are listed on Collinear AI research.

Long-horizon agents

Need to know whether your agent holds its plan?
Talk to a Collinear researcher.

From YC-Bench to custom tasks, Collinear builds high-value tasks and rigorous evaluations for frontier AI. Describe the task and how long a run should last.