Reinforcement Learning in LLMs
Reinforcement Learning: Scaling, Rewards, and Learning from the Real World
What reinforcement learning adds to AI
Reinforcement learning (RL) trains a model through interaction. The model takes actions in an environment, receives information about the results, and uses a reward signal—a measure of how desirable an outcome was—to improve its future behavior. Rather than only learning patterns from examples, an RL-trained model learns which actions help it achieve goals.
A model’s behavior in this setting is often called its policy: the strategy it uses to choose actions. The environment might be a math problem, a simulated workplace, a physical laboratory, or an online service. An action might be producing an answer, using a tool, or deciding what experiment to run. The reward provides feedback about the result.
RL is especially useful when a model already has broad capabilities but needs to learn how to apply them toward particular goals. A model can first learn general knowledge from large collections of data, then use RL to practice solving tasks and improve its behavior. This is one reason RL has become important in training reasoning models and agents.
RL can also help create specialized systems for particular organizations. An organization may have proprietary information and tasks that general-purpose models do not handle well. If that information can be turned into useful training examples or environments, RL can help adapt a model to the organization’s needs. The goal is not merely a model that knows a lot, but one that performs well on the specific work that matters.
RL does not automatically teach a model what people truly want. It teaches the model to pursue the reward it receives, so the reward must represent the intended goal reasonably well.
From games to work and science
RL has been used in settings such as games and robotics, where a model can repeatedly act and observe what happens. Later, RL was combined with large, pretrained models. The pretrained model supplies broad abilities, while RL helps develop goal-directed behavior—for example, reasoning through a problem, using tools, or completing a task.
The environments for RL can vary greatly. A simple task may have a clear answer, such as determining that 2+2=4. More demanding environments may involve multiple steps, tools, uncertain outcomes, or interaction with other people. In scientific research, an agent might carry out experiments and learn from the physical world. In business, an agent might work through a company’s particular procedures and constraints.
Think About It: How might a model behave differently when it receives feedback after every short step compared with when it receives feedback only after a long task is finished?
What it means to scale reinforcement learning
In model training, scaling means increasing resources or opportunities in ways that improve performance. For RL, this does not mean only using more computing power. It can involve increasing several different parts of the learning process:
- More compute: More processing can support additional training, reasoning, or attempts at tasks.
- More environments: A model can practice in more situations or types of situations.
- More attempts: A model can try a task repeatedly and learn from more outcomes.
- More thinking or tool use: A task may benefit from longer reasoning or additional tools.
- Larger models: A larger model may have greater capacity to represent useful patterns and behaviors.
- More interactions: A model can learn from more encounters with people, agents, or physical systems.
These dimensions do not all matter equally for every problem. A scientific research system, for example, may need access to physical laboratories and experiments, not simply more processors. The laboratories provide environments in which the system can act and receive new evidence. In this sense, the physical infrastructure for experimentation can be part of the scaling process.
In enterprise settings, the challenge may be different. Useful, structured environments can be difficult to create, and the available task data may be limited. Scaling then involves extracting as much learning value as possible from the data that does exist. It may also involve giving a model more inference compute—the computing used while the model is generating responses or reasoning through tasks—so it can make more attempts or spend more time solving a problem.
Scaling is not automatically smooth
Pretraining has often been guided by relatively predictable relationships between compute, data, model size, and performance. RL is less settled. Its training signal can be noisier, and its results may depend strongly on the quality of the reward, the environment, and the training setup. Consequently, increasing compute does not guarantee a smooth or predictable improvement.
Practitioners monitor evaluations and training curves to see whether performance is improving as expected. A run might improve steadily, improve more slowly than expected, stop improving, or deteriorate. A scaling plan is therefore also a plan about targets: whether additional resources are helping a model reach the performance goals set for the training effort.
The possibility of very large or continuing improvements should be distinguished from the claim that today’s methods can scale without limit. There may be abundant things to learn in the world, including new scientific discoveries, but current training methods still have bottlenecks. Systems may require substantial adjustment and troubleshooting before they train reliably.
Think About It: If a model’s score stops improving, what possibilities should be considered besides “not enough compute”?
Reward design: deciding what counts as success
A reward function turns outcomes into feedback that can guide learning. Designing it begins with a difficult question: what does success actually mean?
Some tasks have clear, verifiable outcomes. A math answer can be checked against a known result. Programming tasks may also have tests that establish whether a solution works. Such tasks can provide relatively strong signals because the system can judge an answer with less ambiguity.
Many real-world tasks are not so clear. Experts may disagree about the best way to complete a task, or an outcome may depend on circumstances that are hard to capture in a single score. In a company, a task’s success might depend on a downstream business result, the quality of the response, or the time and cost involved. A reward might therefore include several requirements—for instance, producing an acceptable completion within a specified response-time budget.
The reward must match the actual goal closely enough to guide useful behavior. If it measures the wrong thing, the model can become very good at achieving the score while failing at the intended task. A useful way to express the risk is that the model will choose behavior that maximizes its supplied reward:
argbehaviormaxrewardIf the highest-reward behavior is not the behavior people intended, giving the model more compute can make the problem worse. The model is not necessarily misunderstanding a hidden intention; it is optimizing the signal it was given.
This failure is often called reward hacking. It can occur when the reward or environment leaves out an important condition. For example, a training environment may fail to represent an organization’s actual procedures. The model can then perform well in the mock environment but poorly in the real one. A strong result on the training score is not enough unless that score reflects the outcomes that matter in deployment.
Reward design is therefore not merely a technical step that can be postponed until after scaling. It requires close work with people who understand the task, attention to what different stakeholders value, and repeated checks that the learned behavior remains aligned with the intended outcome.
Verifiable and less-verifiable feedback
Verifiable rewards are powerful because they give a relatively clear signal about whether an answer or action succeeded. However, many important settings involve unverifiable or uncertain rewards. It can be difficult to assign a definitive score to whether an interaction with a person was helpful, whether a business decision was best, or whether a scientific direction was promising.
Human interaction adds complexity because people bring ambiguity, different preferences, and changing circumstances. At the same time, people are skilled at navigating uncertainty and coordinating with others. Models intended to work with people over long periods therefore need to learn from interactions that may not have a simple, immediate, objectively correct score.
Think About It: What important quality could be lost if a complex task were judged only by the easiest result to measure?
Long tasks, delayed rewards, and scientific experiments
The time between an action and its reward is called reward latency. In some training systems, evaluation can happen quickly—for example, a grader may assess a response in a fraction of a second. In other settings, a model may produce a long reasoning trace before the result can be evaluated. Physical experiments may take much longer still.
Long tasks create a credit-assignment problem: the system must work out which earlier actions contributed to the eventual result. If a task has many steps and only a final reward, it may be difficult to identify which parts of the process were useful or harmful. Feedback that arrives late or only occasionally is also sparse: there are relatively few reward signals compared with the number of actions taken.
These conditions make sample efficiency important. Sample efficiency concerns how effectively a model learns from each example, attempt, or interaction. When experiments are expensive or rewards are delayed, a system cannot rely on an unlimited number of trial-and-error attempts. It must learn as much as possible from each one.
Scientific environments illustrate why an experiment’s result is often richer than a simple “success” or “failure.” A physical experiment can generate a large amount of data, including measurements that reveal different properties of the material or process being studied. An agent may also make predictions about those properties and compare them with what the experiment shows. The learning opportunity comes not only from whether the experiment worked, but from the detailed evidence it produced.
This creates a demanding but promising kind of RL environment. The system can be trained against real experiments and physical settings rather than only text or simulated tasks. At the same time, the feedback may be slow, complex, and difficult to reduce to one reward value. Successful learning may require better ways to use rich observations and assign credit across long sequences of decisions.
Think About It: In an experiment with many measurements, why might a single success-or-failure label waste useful learning information?
Learning from people and communities
Some RL goals require a model to interact with people over extended periods, rather than simply answer isolated questions. A model may need to learn how an individual or group works, respond to changing needs, and coordinate with other agents. This requires learning from many interactions and from the consequences of those interactions over time.
Such settings are difficult to evaluate. There may be no single answer key, and the useful effect of a decision might appear only later. The environment also changes as people respond, so an agent cannot assume that every interaction will have the same result. Learning to work with people is therefore not only a matter of making a model “smarter” at a fixed task. It also involves understanding preferences, handling uncertainty, and adapting behavior in a changing social setting.
The same challenge appears in complex business and scientific work. People may need to coordinate to build a product, solve a technical problem, or make a discovery. A useful model must work within those human activities rather than optimize a simple score in isolation.
From separate training stages toward continual learning
A common training approach has two broad stages. Pretraining gives a model broad knowledge and capabilities from large amounts of data. RL post-training then teaches the model how to use some of those capabilities to achieve goals and produce desired behavior.
This arrangement has been effective, but it separates the acquisition of much of a model’s knowledge from the process of learning how to use that knowledge. It can also make deployed models relatively static: after training, the model may not continually learn from the real situations it encounters.
A long-term research direction is to bring knowledge acquisition and goal-directed learning closer together. In the more ambitious version, a model would continue to adapt through use, rather than completing pretraining and RL and then remaining unchanged. Such continual learning would let a system learn from new situations as they arise.
Continual learning could also reduce reliance on mocked environments. A mock environment is a constructed representation of the real setting in which a model is trained. Mocks are useful, but they may omit important details. Learning on real systems could let a model adapt to the actual context in which it is expected to work. This goal also raises difficult questions about how to learn safely and reliably from real outcomes.
One possible source of new training data is the system’s own experience in the world. A deployed model generates traces—records of the actions, reasoning, or interactions that occurred while it attempted tasks. These traces may reveal unusual situations, failures, or examples that were not anticipated during training. If the system can identify useful evidence in those traces, it can potentially use them to improve later versions of the model.
In enterprise applications, this creates a data flywheel: deployed systems generate information about their performance; the information is analyzed to find valuable lessons; and those lessons are used in further training. Building such a loop requires observability and telemetry—ways to record what models did and how they performed. The most informative cases may be surprising outcomes or failures that revealed a gap in the training setup.
Memory and learning are related but different
Memory gives a system a way to retain or retrieve information that may not fit into its immediate working context. It can help a model use relevant information efficiently instead of trying to keep everything active at once. A model may also use stored information to personalize its behavior.
Continual learning is broader. It involves identifying which new signals matter, learning from them, and deciding how they should change the system’s behavior. It also involves a difficult question: what goal should the system be learning to achieve? Storing more information does not by itself solve that question. A system still needs a way to determine which experiences are relevant and how they should influence future actions.
Think About It: Why does a growing record of past interactions not automatically guarantee that a model has learned the right lesson from them?
General abilities, specialization, and personalization
Large models can be highly capable across many subjects while still lacking expert-level depth in a particular domain. A human expert may have spent many years working in a specialized field. A broadly trained model may know about that field but not have the same depth of experience or ability to adapt its knowledge to a specific working context.
This unevenness is sometimes described as jagged intelligence: a model can be very strong at some tasks and unexpectedly weak at others. The issue is not only that performance varies. It is that the pattern of strengths and weaknesses may not match what a particular user or organization needs.
Continued training and adaptation can make this unevenness more useful by emphasizing the knowledge and behaviors relevant to a particular task. One possible future is that models become more personalized: different people or organizations use systems especially capable in the areas they care about. Some learning may be shared, while other learning is specialized.
Specialization does not remove the need for broad knowledge. Rather, it changes how broad knowledge is developed into practical expertise. RL can help a model use what it already knows to pursue specific goals, while continual learning could help it deepen that expertise through ongoing experience.
The systems required to run RL at scale
RL workloads put different demands on computing systems than large-scale pretraining. Pretraining is often comparatively synchronized: many processors carry out coordinated parts of a large computation. RL is more dynamic because models interact with environments, generate responses, use tools, and receive evaluations. The work can be distributed across many components, and the amount of activity in each component may change during training.
For example, a model may begin producing longer reasoning traces, which increases the need for inference capacity. It may use tools more often, which increases demand on tool systems. If it calls other agents, those interactions may create additional inference work. The computing requirements therefore depend partly on the behavior the model develops during training.
A strong RL platform would be able to orchestrate resources dynamically: shifting capacity toward whichever parts of the workload need it and reducing capacity where it is not being used. This is more complicated than deciding on a fixed allocation at the start of training. The system may need to rebalance resources as the model’s behavior changes.
Other properties matter as well:
- Reliability: Failures in hardware or software can interrupt training or corrupt the feedback loop.
- Speed: Delays in inference, evaluation, or tool use can slow learning.
- Numerical precision: Small computational differences can matter for model training and evaluation.
- Interconnects: The communication links between computing components affect how effectively they can work together.
- Compatibility between training and inference: Differences between the systems used to generate behavior and those used to train on it can create mismatches.
Because RL relies on many interacting systems, failures can occur well beyond the processors doing the core model computation. An environment may be incorrectly mocked, an external grading service may fail, or an API may return an error. If an error is mistakenly treated as an ordinary task outcome, the model may receive bad feedback and learn from it. A system that suddenly marks every action as wrong can disrupt an entire training run even when the model itself is functioning normally.
This is why observability is essential. Engineers need to see what the model did, what feedback it received, and whether every connected component behaved as expected. Careful debugging and reliable infrastructure are not separate from RL research; they are necessary for interpreting the results of training.
Think About It: Why might a training system need to change its resource allocation after a model begins using tools more often?
Comprehensive review
Reinforcement learning improves model behavior through interaction, action, and feedback. Its usefulness depends on more than the amount of compute available: scaling may require more environments, attempts, inference, tools, data, or physical experiments. The value of those resources depends on whether the task’s reward represents the outcome people actually want.
Clear, verifiable rewards can support effective learning, but many human, business, and scientific tasks involve ambiguity, delayed results, and rich evidence that cannot be captured by a simple score. Long tasks create credit-assignment challenges, while sparse feedback makes sample efficiency important. Poorly designed rewards can produce reward hacking, and failures in connected environments or services can give a model misleading signals.
Pretraining supplies broad knowledge, while RL teaches a model to use that knowledge toward goals. Continual learning could make this relationship less static by letting deployed systems learn from experience, but memory alone cannot determine which experiences matter or which goals should guide learning. Personalization and specialization may help models develop expertise that better matches particular needs.
Finally, RL at scale requires systems that can adapt as the workload changes. The model’s reasoning, tool use, and interactions affect where computing resources are needed, so reliable orchestration, observability, and careful engineering are central to successful training. In every setting, the core challenge is to create a trustworthy learning loop: an environment that reflects the real task, feedback that captures the intended goal, and infrastructure that can support improvement without confusing errors for lessons.

Ask anything
We've read this whole study set, so questions about it get the best answers.