# LoGRA: Scaling LLM Reinforcement Learning with Low-Rank Gradient Sketches

LoGRA cuts RL post-training memory by storing low-rank gradient sketches

Shaokun Zhang, Yifan Zhang, Jian Hu, Yueying Li, Hao Zhang, Binfeng Xu and 2 more · arXiv · 2026-10-5

- **Problem** RL post-training needs far more memory than the weights, because gradients and Adam's optimizer states grow with them. So a 7B model can fit on a machine that cannot train it.
- **Method** LoGRA projects each weight-gradient product onto a fixed random matrix, so only a low-rank sketch is stored. It also scales each update using a predicted KL estimate.
- **Results** LoGRA cuts average training memory by up to 45.7% on reasoning tasks without hurting performance.

## Why RL memory is the bottleneck

RL post-training needs far more memory than the weights because gradients and optimizer states grow alongside them. For a 7B Qwen model, the BF16 weights take approximately 14 GB, while Adam's two FP32 moment buffers add another 56 GB. These buffers come before any gradients or activations are counted, so a machine that can run a model may still not be able to train it.

Parameter-efficient methods such as LoRA freeze pretrained weights and learn small low-rank adapters, so fewer parameters need gradients and optimizer states. Gradient compression takes a different route: it keeps the weight matrices trainable and stores gradients and optimizer states in compact form.

The authors ask whether reward-driven learning needs a full gradient at all. LoGRA applies this idea by accumulating sketches during backpropagation, so full gradients for the selected weight matrices are never built or stored. The same compact representation then synchronizes the rollout policy, which extends the savings from training memory to communication.

The authors evaluate LoGRA on reasoning tasks with models from 1.5B to 27B parameters.

## Storing a sketch instead of the gradient

Standard gradient accumulation keeps a full d-by-k buffer for each weight matrix before the update is applied. LoGRA instead draws a random projection A of size r by k and keeps only the sketch S, equal to G times A transposed. Here r is much smaller than min(d, k), so S stores d times r values rather than d times k. A's entries are independent random signs scaled by one over the square root of r, and A stays fixed while a batch accumulates.

LoGRA doesn't compute the full gradient and then compress it; it projects the inputs of the weight-gradient product before multiplying by the backward derivatives.

Each microbatch adds its projected contribution straight into S in fp32, so the code never forms the full gradient. For d equal to k equal to 4096 and r equal to 64, the fp32 accumulator drops from 64 MiB to 1 MiB. Weights, cached projections, and activations still take memory, so the saving applies to the accumulator alone.

To apply the update, LoGRA multiplies the sketch back by A, giving a d-by-k matrix with the shape of W. Because S has only r columns, every column of S A combines those r columns, so the update has rank at most r. The authors stress that S A approximates the full gradient and doesn't recover it exactly. An optimizer may first adjust S into U, and for plain SGD U equals S.

The weight step becomes W minus alpha times eta times U A, with alpha set to one when predicted KL control is off.

The rollout engine regenerates A from its seed, so only the scaled factor and the seed travel to it.

## Predicted KL sets the step size

A sketch alone doesn't bound how far the policy moves, because a small step in parameter space can still shift next-token probabilities a lot. Following the trust-region motivation of TRPO, the authors measure the change with KL divergence between the current and proposed policies. The update applied to each compressed matrix is D\_W = -eta U A, and the step is theta plus alpha times D.

Alpha controls the step size without changing the direction of the proposal.

At each context, it compares the current model's vocabulary distribution with the distribution of the proposed updated model. Both distributions are evaluated on the same context and at the same temperature T, where a higher T gives a flatter distribution. The average KL over the examined contexts is approximated as alpha squared times q(D), where q(D) is the estimate for the unscaled proposal.

The authors estimate q(D) by examining how the proposal changes the scores assigned to candidate next tokens. The predicted KL is one over twice \|P\| times T squared, summed over the contexts of the variance of the score-change rates. The variance is weighted by the current token probabilities p(s), so it measures how differently the token scores change.

The appendix derives this formula and the quadratic step-size dependence, so the main text only states the result.

Since predicted KL scales with alpha squared, the square root of the ratio delta over q(D) gives the scale that meets the budget. The authors cap this scale at a chosen alpha max, so alpha equals the minimum of alpha max and the square root of delta over q(D). The realized KL can differ from the prediction, because the estimate is a local approximation.

## Main results at 1.5B and 7B

The main comparison trains each model with three seeds for 20,000 updates at 1.5B and 7B. Each batch holds 128 prompts with one response per prompt, and LoGRA uses rank-256 RowAdam with mismatch subtraction. Peak Pass@4 rises from 80.33% for Dense to 82.47% for LoGRA at 1.5B. At 7B the two methods are close, with 72.33% Pass@1 for LoGRA compared to 72.48% for Dense.

These peaks use updates 0 to 200, so compression did not cost peak accuracy at 7B. The 1.5B gain is not a claim of a gain in general.

Average per-update memory fell from 9.18 to 7.18 GiB at 1.5B, a 21.8% reduction. At 7B, average memory dropped from 31.82 to 17.29 GiB, a 45.7% reduction. The peak saving is smaller: peak memory went from 9.19 to 8.66 GiB at 1.5B. At 7B, peak memory went from 31.85 to 22.26 GiB, so the average saving grows with model size.

Update rates stayed similar where both methods finished training. LoGRA ran 55.44 updates per hour at 1.5B, compared to 54.28 for Dense. At 7B the rates were 25.73 for LoGRA and 25.28 for Dense. The authors therefore frame the systems benefit as lower memory and feasibility at 27B, not as speed. At 27B, LoGRA averaged 51.54 GiB per GPU, with a seed-averaged peak of 53.88 GiB, while Dense ran out of memory.

## Long 27B training on one node

The long run trains Qwen3.8-27B on the Reasoning-Gym Hard mixture, which holds 38,948 training prompts across eight tasks. The authors use 193 hard held-out problems across those eight tasks to track progress. They set out to show that LoGRA with predicted-KL stays stable on a 27B model for over 1,000 steps on a single node. Because the direct KL probe is costly, the authors estimate q(D) with a finite-difference probe rather than the JVP-based estimator in Equation 6.

The run uses rank-256 sketches, and the predicted-KL budget is annealed over training. Every 20 steps, the authors evaluate the model with the macro-averaged verifier score and track response length and truncation rate.

Over the same trajectory, mean response length drops from 8,312 to 4,705 tokens. The truncation rate falls from 34.72% to 12.95%, which the authors read as learning without runaway response-length growth. All panels in Figure 4 describe one training trajectory, so this is a single run rather than a set of seeds.

## Which design choice matters, and how LoGRA compares with LoRA

Projection rank moves results most in the design study on Qwen2.5-Math-1.5B with DAPO-Math-7.5k. Increasing rank from 4 to 256 improves MATH-500 pass@1 by 3.02 to 3.95 percentage points across configurations. The ordering of these three projections changes across ranks, so refreshing shows no consistent benefit.

They use one fixed-basis rank-64 trajectory, with 4,096 prompts split into 32 minibatches of 128 responses. Projection rank therefore affects single-minibatch reconstruction far more than basis refreshing or projection distribution.

The LoRA comparison uses rank-256 configurations of Qwen2.5-Math-1.5B on DAPO-Math-7.5k over the first 300 training steps. The authors conclude that gradient compression is an option when training memory is the limiting resource, not a proven accuracy or speed gain.

## Does KL control help long runs?

The authors test whether predicted-KL step control helps long-horizon learning, using Qwen2.5-Math-1.5B on DAPO-Math-7.5k. Each setting has two seeds, and these KL-controlled settings don't subtract mismatch or use realised-KL feedback.

MATH-500 pass@1 and response length are plotted over the first 800 logged steps, with four responses per problem every five steps. Averaging raw evaluations over steps 700 to 800 within each run, then across seeds, pass@1 is 70.30% without KL control. The large constant budget reaches 63.43%, while the small constant budget reaches 71.03%.

The large constant budget degrades, which the authors link to the trust-region motivation of TRPO. Annealing achieves the highest mean tail accuracy among the KL-controlled settings.

The no-control baseline also remains stable in these runs. The annealed runs were collected separately and start from a different initial budget.

## What the results cover and what they leave open

The accuracy comparisons at 1.5B and 7B rest on three seeds, while the KL-control study uses only two seeds per setting. The 27B result is a single training trajectory, so the paper reports no spread across seeds for it. The 27B run also stops at 200 updates for the main comparison, with the dense baseline out of memory at its first Adam-state allocation.

Refreshing the projection gave no consistent benefit at the ranks tested, and the authors offer a short-horizon explanation without testing it directly. Refreshed Gaussian projections reached 67.42% at the same rank, and the paper doesn't test a longer training horizon. The LoRA comparison doesn't establish an accuracy or speed advantage for either method.

Dense has no measured throughput at 27B, because it fails before completing an update.

## Paper info

- **Authors**: Shaokun Zhang, Yifan Zhang, Jian Hu, Yueying Li, Hao Zhang, Binfeng Xu, Jan Kautz, Yi Dong
- **Venue**: arXiv · Preprint
- **First published**: 2026-10-5
- **Added**: 2026-10-20
- **Updated**: 2026-10-6
- **Version**: v2
- **arXiv**: 2610.06647
- **Category**: cs.CL
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2610.06647v2) · [PDF ↗](https://arxiv.org/pdf/2610.06647v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Shaokun Zhang, Yifan Zhang, Jian Hu, Yueying Li, Hao Zhang, Binfeng Xu, Jan Kautz, Yi Dong (2026). LoGRA: Scaling LLM Reinforcement Learning with Low-Rank Gradient Sketches. arXiv:2610.06647v2. https://arxiv.org/abs/2610.06647v2

**BibTeX**

```
@misc{zhang2026logra,
  title = {{LoGRA: Scaling LLM Reinforcement Learning with Low-Rank Gradient Sketches}},
  author = {Shaokun Zhang and Yifan Zhang and Jian Hu and Yueying Li and Hao Zhang and Binfeng Xu and Jan Kautz and Yi Dong},
  year = {2026},
  eprint = {2610.06647},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.06647v2}
}
```

## Other paper commentary

- [Thinking Inertia: LLMs Keep Thinking When Told Not To](https://refivu.com/en/papers/42bed0d5-260c-4bc9-9e41-a01f312aefdb-thinking-inertia-llms-keep-thinking-when-told-not.md)
- [In-Context Learning for Robots: Methods and Applications](https://refivu.com/en/papers/1959d5d6-622e-402b-9b12-43fc55497afc-in-context-learning-for-robots-methods-and-applications.md)
- [Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models](https://refivu.com/en/papers/acf2f583-364d-425a-bf01-6f0683cbe84f-beyond-the-imitation-game-quantifying-and-extrapolating-the.md)
- [Finetuned Language Models Are Zero-Shot Learners](https://refivu.com/en/papers/3dedf278-64d7-4653-93ff-bf4504ae70ac-finetuned-language-models-are-zero-shot-learners.md)
- [Scaling Instruction-Finetuned Language Models](https://refivu.com/en/papers/6f9b141d-190c-4397-9e41-4f796f4ef56e-scaling-instruction-finetuned-language-models.md)
- [LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale](https://refivu.com/en/papers/263598fd-8186-4bb8-858a-0eba8ecdb369-llm-int8-8-bit-matrix-multiplication-for-transformers.md)
- [YuE2: Unifying Symbolic and Audio Music Generation at Frontier Quality](https://refivu.com/en/papers/ecbae6d0-7b9f-4e95-b4e7-bb41e58fd807-yue2-unifying-symbolic-and-audio-music-generation-at.md)
- [VisionHOPE: Visual Backbones as Self-Modifying Learning Systems](https://refivu.com/en/papers/e5713b15-02fd-4883-8432-3a93aa4463b6-visionhope-visual-backbones-as-self-modifying-learning.md)
- [The Tasteful Agent: Measuring and Improving Taste in Long-Horizon Tasks](https://refivu.com/en/papers/51ca75de-e1a2-40e9-85fd-8a0bf3905a45-the-tasteful-agent-measuring-and-improving-taste-in.md)
- [RealCompanion: Benchmarking Human Understanding from Reasoning over Longitudinal Real-World Conversations](https://refivu.com/en/papers/919bd630-767e-45e3-8cce-94d716b20f9c-realcompanion-benchmarking-human-understanding-from.md)
- [Has GPT-6-Astra Achieved Embodied Intelligence?](https://refivu.com/en/papers/097774ed-6bdf-4e1b-809e-956c5d62a60d-has-gpt-6-astra-achieved-embodied-intelligence.md)
- [AgentGarten: Code Worlds for Evolving Agents](https://refivu.com/en/papers/01ba62df-ac45-4380-9eaa-9088dfb2b6ff-agentgarten-code-worlds-for-evolving-agents.md)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/b85545ae-a4d6-4afa-b0bd-967680590ff5-logra-scaling-llm-reinforcement-learning-with-low-rank)
