# Cost-Aware Learning

*Clara Mohri, Amir Globerson, Haim Kaplan, Tomer Koren, Yishay Mansour*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151093) · [OpenReview](https://openreview.net/forum?id=d1T390yy1T) · [alphaXiv](https://www.alphaxiv.org/abs/2604.28020) · [Open on the map](../papers.html#p151093)

Category: [LLM Post-Training: RL & Distillation](../pcat/18.md) › [LLM Alignment Optimization](../pgroup/232.md) · Type: new method · Keywords: cost-aware optimization, sampling strategies, reinforcement learning, language model alignment, gradient norm proxy

Areas: [RL for LLMs & Agents](../areas/llm-rl.md) › LLM Policy Optimization › Trust-Region Policy Optimization

## Summary
Cost-Aware Learning introduces Cost-Aware SGD and Cost-Aware GRPO to minimize sampling costs while achieving target error, reducing token usage in LLM policy optimization.

## Explained to a 5-year-old
Imagine you have a big puzzle where each piece costs different amounts of time to look at. You want to finish the puzzle quickly but also not waste too much time on the expensive pieces. The new idea is to decide which pieces to look at based on how helpful they are and how expensive they are. This helps the computer learn faster by focusing on the most helpful cheap pieces first. They also use a trick that works well for teaching computers to make decisions, like improving language models. This helps train big language models using fewer words, saving computer power.

## Explained to a 5-year-old, longer
When we teach a computer to do something, we often need to look at many small pieces of information. Some pieces are cheap to look at, like simple questions, while others are expensive, like long answers. The goal is to finish learning well without spending too much time or money on the expensive pieces. A new idea is to decide which pieces to study based on how useful they are and how expensive they are. This helps the computer learn faster by focusing on the most helpful cheap pieces first. The researchers also proved that this idea works well in theory, giving guarantees about how much it can improve. They found that a simple measure called advantage magnitude can tell how useful a piece is, even without calculating hard numbers. They applied this idea to a special kind of learning used for language models, where longer sequences cost more. In experiments, the new method used far fewer words to train the models while still getting good results. The models performed as well as or better than the old methods, even though they looked at less data. This makes it possible to train very large language models on less powerful computers. Overall, the approach saves time and resources while keeping the quality of learning high.

## For a technical reader
The paper addresses optimization problems where evaluating different components of the objective function incurs heterogeneous computational costs. It proposes a sampling strategy that selects components based on a trade-off between their estimated gradient magnitude and their evaluation cost, and provides theoretical bounds on the resulting cost-efficiency. The authors demonstrate that the gradient magnitude can be approximated by the advantage estimates used in policy-gradient reinforcement learning, enabling a practical variant for language-model alignment. Empirical evaluations on LLMs of 1.5 B, 4 B, and 8 B parameters show a substantial reduction in token consumption during policy optimization while preserving or improving task performance. The approach thus offers a way to train large models more economically, making high-quality alignment feasible on tighter hardware budgets.

## Problem
Learning from finite-sum objectives where different components have varying sampling costs, and the goal is to achieve a target error while minimizing total cost.

## Method
The approach designs a sampling distribution that balances gradient norms and component costs, provides theoretical bounds on cost improvement, and uses advantage magnitude as a proxy for gradient norms in policy gradient settings.

## Results
The approach significantly reduces token consumption during policy optimization while maintaining or improving baseline accuracy.

## Contributions
A cost-aware sampling framework with theoretical analysis and a practical application to LLM policy optimization, along with a proxy for gradient norms based on advantage magnitude.

## Practical relevance
By cutting token usage, the method enables more efficient training of large language models under computational budgets.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151093)
