RoSA: Rotational Sparse Adaptation for Memory-Efficient Fine-Tuning

Muhammad Azeem Lodhi, Chao Zhou, Rebekka BurkholzNeurIPS 2026

TL;DR

Fine-tuning Large Language Models (LLMs) usually forces a tough choice: pay a massive GPU memory tax to update the whole model, or settle for training a tiny, fixed slice of parameters using adapters like LoRA. This paper introduces RoSA (Rotational Sparse Adaptation), a clever scheduling framework that permanently freezes early layers while rotating a "spotlight" of active training through deeper layers over time. By decoupling instantaneous memory cost from cumulative learning capacity, RoSA achieves near-full fine-tuning accuracy while fitting comfortably on commodity 40 GB GPUs.

What Problem Does This Paper Address?

If you want to fine-tune a 7-billion-parameter model like Llama-2, fitting the weights on a GPU isn't the real headache—it's the memory needed for optimizer states (like AdamW's momentum trackers) and activations during backpropagation. Full fine-tuning easily balloons to nearly 80 GiB of VRAM.

Standard Parameter-Efficient Fine-Tuning (PEFT) methods—like LoRA or DoRA—solve this by freezing the base model and training tiny low-rank adapter matrices. While practical, this permanently locks your model's learning capacity into a small, fixed subspace throughout training. The authors ask a refreshingly orthogonal question: instead of changing how trainable parameters are represented, what if we regulate when different layers are allowed to learn?

Methods

RoSA treats a Transformer’s depth not as a monolith, but as a sequential pipeline with distinct zones:

  1. Rotational Block Scheduling: The model is partitioned into three regions:
  2. A permanently frozen prefix near the input (e.g., embeddings and Layers 0–7 in Llama-2-7B).
  3. An always-active output anchor (the final layer and output head) to maintain a stable interface for predictions.
  4. Rotatable middle-to-upper layers divided into consecutive groups (e.g., 8 layers per group). Only one group is active per epoch alongside the anchor. When the spotlight moves to the next group, the old group's optimizer states are deleted from VRAM (and initialized from scratch if revisited in a later cycle).
  5. Truncated Backpropagation: Because everything below the active block is frozen, gradients don't need to flow all the way back to the input. As the active group rotates deeper toward the output, the backward pass gets progressively shorter and faster.
  6. In-Block Sparse Optimization: To shrink memory even further, RoSA pairs layer rotation with NanoAdam, a sparse optimizer that only maintains optimizer states for a small fraction (e.g., 20%) of weights inside the active block, refreshing this selection mask every 600 steps based on weight magnitude. Because RoSA is just a layer schedule, it can also wrap around LoRA or DoRA instead of dense weights.
Figure 1: RoSA training schedule. RoSA freezes a large input-side prefix, keeps an output-side anchor active, and rotates one consecutive trainable group through the later layers. Freezing the prefix removes optimizer states and parameter gradients for early layers, shortens the backward path, and enables future activation caching for the fixed prefix.

Datasets

The authors evaluate RoSA across existing, standard LLM benchmarks (no new datasets are introduced):

  • Commonsense Reasoning: An 8-task suite comprising BoolQ, PIQA, SIQA, HellaSwag, WinoGrande, ARC-Easy, ARC-Challenge, and OpenBookQA.
  • Mathematical Reasoning: GSM8K.

These tasks are tested across three foundation models: Llama-2-7B, Qwen-2.5-3B, and Mistral-v0.1-7B.

Key Insights and Ideas

  • The "Reasoning Hump" in Gradients: Tracking layer-wise gradient norms during full fine-tuning reveals that adaptation pressure is highly uneven. Early layers (2–7) remain remarkably quiet, while a pronounced "hump" of gradient activity emerges in middle layers (8–18), alongside consistent activity at the final layer. Freezing the quiet prefix sacrifices almost nothing while saving massive memory.
Layer-wise gradient norms across Llama-2-7B showing quiet early layers, an active middle "reasoning hump," and a busy output layer.
  • Instantaneous Cost vs. Cumulative Capacity: At any single step on Llama-2-7B, RoSA tracks optimizer states for only ~7.4% of model parameters. Yet across a full run, the rotating mask updates ~18.8% of the network (1.26 billion parameters)—vastly more expressive capacity than LoRA's <1%, without blowing the memory budget.
  • Motion Beats Static Capacity: Training a static block of 16 layers (Layers 8–23) performs worse than rotating an 8-layer block across depth. Revisiting layers in a second rotation cycle lets earlier layers realign to the updated features of deeper layers without loss spikes, despite cold-starting the optimizer states.

Key Results

  • Breaking the 40 GB Barrier: On Llama-2-7B commonsense reasoning, RoSA cuts peak VRAM from 78.5 GiB (full AdamW) and 46.3 GiB (full-model NanoAdam) down to 34.9 GiB, while scoring 79.61% average accuracy—virtually tied with full fine-tuning (79.99%) and beating LoRA (77.61%).
Figure 2: Peak VRAM usage. Full fine-tuning with AdamW and full-model sparse optimization remain above the 40 GB budget, while RoSA fits within it and preserves strong per- formance.
  • Speedups in Deeper Stages: Because truncated backpropagation shortens the backward graph as the active block moves up the network, later rotation groups run up to 27% faster per iteration. A 1-cycle RoSA run finishes in 3.5 hours (reaching 79.10%) compared to 4.37 hours for full fine-tuning.
  • Outperforming Layer-Wise Baselines: At matched memory (~30.9 GiB), RoSA beats random layer-wise importance sampling (LISA) by 8.45 percentage points (78.50% vs. 70.05%).
  • Stacking with PEFT: Combining RoSA with DoRA on Qwen-2.5-3B drops peak VRAM from 16.42 GB to 12.87 GB (and down to 9.44 GB in later rotation stages) while slightly improving accuracy (81.83% vs. 81.58%).

Limitations and Future Work

  • Uncached Forward Passes: In theory, because the input prefix never changes, you could run the data through Layers 0–7 once, cache the activations, and skip those layers during forward passes too. The authors didn't implement this yet because uncompressed activations take ~200 GiB per $10^5$ sequences; making this practical will require fast, library-level INT8/FP8 activation compression.
  • Wall-Clock Time for Multi-Cycle Runs: While single cycles are fast, squeezing out the last half-percent of accuracy with a 2-cycle schedule requires 6 epochs (6.5 hours vs. 4.37 hours for dense training), making RoSA best suited when VRAM—not raw wall-clock speed—is your primary bottleneck.
  • Scale and Scope: Experiments top out at 7B models and do not yet explore instruction tuning, multimodal setups, or stacking RoSA with orthogonal memory savers like activation checkpointing or 4-bit QLoRA quantization.

Summary updated

Abstract

Parameter-efficient fine-tuning (PEFT) reduces the cost of adapting foundation models by focusing training on a small parameter subset. Complementary to this idea, we introduce RoSA (Rotational Sparse Adaptation), which narrows adaptation to a subset of layers at a time. RoSA freezes lower layers close to the input throughout training and rotates a trainable block over later layers, progressively increasing the number of frozen layers close to the input. This design reduces optimizer-state memory, shortens backpropagation, and even forward propagation if activations at the last frozen layer are cached. Because RoSA is orthogonal to the choice of trainable parameterization, it can be combined with PEFT methods or sparse optimizers within each active block. Experiments across multiple LLM architectures and tasks show that RoSA reduces peak memory while maintaining strong fine-tuning performance.
BibTeX
@inproceedings{lodhi2026rosa,
  author = {Muhammad Azeem Lodhi and Chao Zhou and Rebekka Burkholz},
  title = {{RoSA: Rotational Sparse Adaptation for Memory-Efficient Fine-Tuning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=QZlXiCc3kK},
}
Figure