Agentic reinforcement learning

Agentic reinforcement learning trains a language model by letting it attempt multi-step tasks in an environment, such as browsing, running code or using tools, and rewarding it for the outcome, so it learns to plan and act.

Earlier reinforcement learning for language models scored a single answer to a single prompt, whether by a reward model trained on human preferences or by checking a maths result. Agentic reinforcement learning scores a whole episode of actions. A September 2025 survey of more than 500 works put the difference formally: conventional reinforcement learning for LLMs treats generation as a single-step decision, while agentic RL treats the model as an agent making a sequence of decisions in an environment it can only partly see.

A training loop needs an environment, such as a web browser, a code repository with tests or a simulated desktop. The model receives a task, takes an action such as running a search or editing a file, sees the result and decides what to do next, until it finishes or runs out of steps. The outcome is scored, for example by whether the tests pass or the final answer is correct, and a reinforcement learning algorithm adjusts the model to make successful sequences of actions more likely.

Labs described training several agent models this way in 2025. OpenAI said in February 2025 that its deep research agent, powered by a version of o3, was trained with end-to-end reinforcement learning on hard browsing and reasoning tasks, learning to plan multi-step research, backtrack and react to new information. In May 2025 it said codex-1, its software engineering model, was trained with reinforcement learning on real-world coding tasks in a variety of environments and learned to keep running tests until they passed. The Kimi K2 technical report, from July 2025, described a large pipeline for creating agentic training data and a reinforcement learning stage that combined real and synthetic environments.

It is harder than single-answer training. Each episode can involve many steps and tool calls, so it is slow and expensive to run. Building environments that resemble real work takes effort, and the reward has to measure success rather than something a model can game: DeepSeek noted in January 2025 that rewards produced by a model invited reward hacking, which is why many teams prefer checks such as tests that pass or fail.

When a lab says an agent was trained with RL in environments, it means this method. How useful the result is depends heavily on whether the training environments look like the tasks people actually give the agent.

Common questions

What is agentic reinforcement learning?

It is reinforcement learning in which a language model acts over many steps, using tools, browsing or running code, and is rewarded for the final outcome of the whole task. It teaches the model to plan, use tools and recover from mistakes rather than only to give a good single answer.

How is agentic RL different from RLHF?

RLHF rewards individual responses according to a model of human preferences, mainly to make a chatbot helpful and well behaved. Agentic RL rewards whether a multi-step task was completed in an environment, such as code passing its tests. The two can be used on the same model at different stages.

What is an environment in agentic RL?

An environment is the setting the model acts in during training, such as a browser, a code repository, an operating system or a simulated customer. It carries out the model's actions, shows the results, and supplies or enables the reward at the end of each attempt.

Finding more

Search for "agentic reinforcement learning survey", "RL environments for LLM agents" or "end-to-end RL agent training" to see methods and examples. Survey papers and technical reports on arXiv and labs' own announcements of agent models are the primary sources. Look for details of the environments and how rewards were scored, since those decide what an agent actually learns.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.