arXiv:2610.06243cs.LGOct 2026

Manuscript Offprint

arXiv:2610.06243

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

Muhammad Azeem Lodhi, Chao Zhou, Rebekka Burkholz

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

Fine-tuning Large Language Models (LLMs) has become one of the standard ways to adapt foundation models to downstream tasks. However, as model scale increases, the main bottleneck in training is often not the number of parameters alone, but the memory required to store optimizer states and activations. For a 7-billion-parameter model such as Llama-2 [24], model weights can fit comfortably for inference, but full fine-tuning with AdamW [16] requires substantially more memory because optimizer states must be maintained for all trainable parameters. This makes dense fine-tuning difficult on commodity hardware and pushes many practitioners toward lighter adaptation methods.

Parameter-efficient fine-tuning (PEFT) methods address this problem by freezing most of the pre-trained model and restricting learning to a small trainable subspace. Adapters [10], LoRA [11], QLoRA [5], and DoRA [15] have shown that strong downstream performance is often possible with far fewer trainable parameters. These methods are practical and effective, but they reduce memory by limiting what can change during training. This creates a different trade-off: the model becomes easier to adapt under tight memory budgets, but the adaptation capacity is tied to a fixed low-rank or adapter-based parameterization.

In this work, we study a different way to reduce memory: instead of keeping the same small subset of parameters trainable throughout optimization, we ask whether the trainable part of the model can move over time while a large input-side prefix remains frozen. This leads to RoSA (Rotational Sparse Adaptation), a fine-tuning framework that freezes the early layers, keeps an output-side anchor active, and rotates a trainable block through the later layers. The frozen prefix is not only a parameter-saving device. Since these layers do not receive updates, RoSA avoids storing optimizer states and gradients for them, and the backward pass does not need to continue through this prefix. In an optimized system implementation, the same fixed prefix could also be precomputed, cached, and compressed into reusable activations, reducing repeated forward computation; our current implementation does

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

Icy Blue = Permanently Frozen Orange = Active (Training) Grey = Inactive (Frozen temporarily) Frozen Embeddings

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.

not do this and still computes the full forward pass. At any training step, only one contiguous group of later layers is active together with the output-side anchor, so the instantaneous memory footprint remains small. Across training, different parts of the model are updated at different times.

RoSA can also be combined with sparse optimization inside the active block. In our default experimental instantiation, we use NanoAdam [27], which maintains optimizer states only for a selected subset of parameters within the active layers. This gives RoSA two separate mechanisms for reducing memory. Rotation limits how many layers are active at once, while sparse optimization limits how many parameters inside those layers require optimizer state. As a result, memory scales with the active part of the model rather than the full depth of the network.

Our goal is not to present RoSA as a competitor or replacement for LoRA and related PEFT methods, but rather as a complementary framework that operates on an entirely orthogonal axis of the design space. Because RoSA regulates when layers are updated rather than how the trainable parameters are represented, it acts as a versatile memory-reduction mechanism. It can be applied to dense fine-tuning to make it feasible on commodity hardware, or it can be seamlessly composed with PEFT methods like DoRA to reduce their already small VRAM footprints even further. This structural perspective also separates RoSA from prior block-wise approaches such as BAdam [17]. While BAdam functions as a block-coordinate optimizer—reducing memory by updating one parameter partition at a time—RoSA is a depth-aware scheduling framework built around a permanently frozen prefix, a rotating active layer group, and an always-active output anchor. Consequently, RoSA not only limits optimizer-state memory but also actively exploits the sequential structure of Transformers to shorten the backward path as the active block moves deeper in the network.

We evaluate RoSA on Llama-2-7B and show that it reduces peak VRAM from 78.5 GiB for full fine-tuning with AdamW to 34.9 GiB while reaching 79.61% average accuracy on eight commonsense reasoning benchmarks, close to the 79.99% full fine-tuning baseline. We further show that rotation yields additional memory reduction beyond sparse optimization alone, that RoSA is not highly sensitive to the exact active-group size, and that the method transfers beyond the original setting to other models such as Qwen-2.5-3B and Mistral-v0.1-7B, and to other tasks such as GSM8K. Rotating the active block also outperforms training a fixed subset of layers, even when the fixed subset contains twice as many layers, and at matched memory RoSA outperforms layer-wise importance sampling (LISA) by more than 8 points. Together, these results suggest that rotational training is a simple and effective way to trade time for memory while preserving much of the benefit of dense adaptation.

In summary, this paper makes three contributions. First, we introduce RoSA, a rotational fine-tuning framework that freezes a large input-side prefix and moves the trainable layer block over time instead of fixing a small trainable subspace throughout training. Second, we show that this prefix-plus-rotation design reduces memory in multiple ways: it removes optimizer states for frozen layers, restricts optimizer states to the active block, and shortens the backward path as the active block moves deeper. Third, we empirically evaluate RoSA across memory, accuracy, and training-time trade-offs: it reaches near-full-fine-tuning accuracy on Llama-2-7B while fitting within a 40 GB memory budget, remains stable across multiple rotation schedules and random seeds, transfers to Qwen-2.5-3B, Mistral-v0.1-7B, and GSM8K, composes with PEFT methods such as DoRA, and compares favorably with static layer subsets as well as with BAdam, LISA, and GaLore.

References (26)