Research
RoSA: Enhancing Parameter-Efficient Fine-Tuning via RoPE-aware Selective Adaptation in Large Language Models
Overview Research area: Parameter-Efficient Fine-Tuning (PEFT) of large language models, with a focus on exploiting architectural properties of Rotary Position Embeddings (RoPE) and layer-wise importa
- arXiv
- 2511.21733
- Published
- 2025-11-21
- Authors
- Dayan Pan, Jingyuan Wang, Yilong Zhou, Jiawei Cheng, Pengyue Jia, Xiangyu Zhao
AI summary
Overview
- Research area: Parameter-Efficient Fine-Tuning (PEFT) of large language models, with a focus on exploiting architectural properties of Rotary Position Embeddings (RoPE) and layer-wise importance heterogeneity.
- Technical level: Advanced (assumes familiarity with transformer internals, RoPE, LoRA-style adapters, attention head structure, and gradient-based optimization).
- Scope: The paper proposes RoSA, a PEFT framework combining a RoPE-aware Attention Enhancement module with a Dynamic Layer Selection strategy, and evaluates it against eight baseline methods on fifteen benchmarks across three backbone LLMs and four model scales.
What This Paper Is About
Most PEFT methods (LoRA, DoRA, AdaLoRA, and others) apply the same kind of trainable adaptation uniformly across all model components and all layers. The authors argue this ignores two things: the special role that RoPE plays in shaping which attention dimensions matter, and the fact that different transformer layers contribute unequally to a task. The goal of RoSA is to place trainable parameters only where they are functionally important — inside the low-frequency dimensions of RoPE-rotated query/key states, and inside the layers whose LayerNorm gradients indicate they matter most.
Key Contributions
- A RoPE-aware PEFT module (RoAE). The authors state they are the first among PEFT works to explicitly target the distinctive low-frequency attention components induced by RoPE, applying targeted enhancement to those functionally key dimensions rather than adapting all dimensions generically.
- A combined framework, RoSA. The RoAE module is paired with a Dynamic Layer Selection (DLS) strategy that adaptively identifies and updates the most impactful layers based on the gradient norms of LayerNorm parameters, allocating parameters both dimension-wise and layer-wise.
- Extensive empirical validation. Experiments on fifteen public benchmark datasets, three backbone models, and tasks covering commonsense and arithmetic QA show RoSA outperforming mainstream PEFT baselines under comparable trainable parameter scales.
- Released code. The authors provide code at https://github.com/Applied-Machine-Learning-Lab/RoSA to support reproducibility.
Main Findings
- Commonsense QA (Qwen2.5-7B): RoSA reaches a micro-average of 85.9 with 0.261% trainable parameters, compared with AdaLoRA at 85.6 (0.396%), C3A at 85.0 (0.665%), and LoRA at 84.3 (0.527%).
- Commonsense QA (Llama 3.1-8B): RoSA reaches 84.4 with 0.329% parameters; the next best reported baseline is C3A at 83.9 (0.674%), with LoRA at 83.7 (0.520%) and DoRA at 83.8 (0.537%).
- Commonsense QA (Gemma 2-9B): RoSA reaches 86.2 with 0.363% parameters; the best baseline is C3A at 85.5 (0.699%) and LoRA at 85.4 (0.581%).
- Arithmetic QA (Qwen2.5-7B): RoSA reaches a micro-average of 80.1 with 0.261% parameters, versus C3A at 78.7 (0.665%), DoRA at 78.1 (0.546%), and LoRA at 77.7 (0.527%).
- Statistical significance: The paper reports that improvements marked with an asterisk are statistically significant under a two-sided t-test with p < 0.05 relative to the best baseline.
- Scaling behavior: On Commonsense QA with Qwen2.5 at 0.5B, 1.5B, 3B, and 7B, RoSA scores 53.7, 75.5, 82.0, and 85.9, versus AdaLoRA at 53.5, 75.1, 81.1, 85.6 and C3A at 53.1, 74.9, 81.2, 85.0 — RoSA leads at every scale.
- Ablation results (Commonsense, Qwen2.5-7B): Full RoSA 85.9; RoSA-RoAEonly (DLS disabled) 84.8; RoSA-RoAE0.5 (r_low set to 0.5) 85.6; RoSA-Lr128 (LoRA on Q/K, no RoAE) 83.9; RoSA-Lr64 (LoRA with similar trainable parameters to RoSA) 80.7. The authors conclude each component contributes and that focusing on a compact low-frequency subspace is more effective.
- Layer selection ratio sensitivity: RoSA performs best when k_ratio is approximately 0.5; increasing the ratio slightly degrades performance, which the authors interpret as evidence that updating fewer layers leads to more efficient optimization.
Methodology in Plain English
The authors start from an observation about RoPE. RoPE rotates pairs of dimensions in the query and key vectors, and because its rotation frequencies decrease geometrically with dimension index, the higher-indexed dimensions within each half encode low-frequency, smoother positional patterns. Visualizations of LLaMA-2-7B Q-state activations show that these low-frequency dimensions produce denser and stronger activations than high-frequency ones, and that this intensity varies across layers.
RoSA acts on that structure in two ways.
First, the RoPE-aware Attention Enhancement (RoAE) module takes each attention head vector, splits it into the two halves RoPE uses, extracts the last (d_h · r_low)/2 dimensions from each half, and concatenates them into a compact low-frequency vector. A separate trainable branch — a low-rank projection of the hidden state followed by a SiLU activation — produces a context-aware adaptation signal. That signal is multiplied element-wise into the extracted low-frequency components (scaled by α), and the enhanced components are written back into their original positions. For models using Grouped-Query Attention, an additional projection aligns the query-head and key-head dimensions so the same signal can serve both.
Second, the Dynamic Layer Selection (DLS) strategy periodically estimates each layer's importance by taking the L2 norm of the gradients of that layer's two LayerNorm parameter sets (attention and FFN). At intervals of u steps after a warmup phase, it either selects the top-k_ratio fraction of layers by score (with probability p_exploit) or selects layers randomly (exploration). Gradients in unselected layers are set to zero so they are not updated.
Training uses cross-entropy loss on Commonsense15K and Math10K. Experiments run on NVIDIA GeForce RTX 3090 hardware with PyTorch and Transformers, using AdamW at a learning rate of 1e-3. The default hyperparameters are r_low = 0.25, α = 0.1, low-rank projection dimension 128, k_ratio = 0.5, u = 40 steps, and p_exploit = 0.8.
Why This Matters
- Impact on research: The paper reframes PEFT as a question of where parameters should go rather than only how few can be used. By tying adaptation to a specific architectural mechanism (RoPE's frequency structure) and to a measurable layer-importance signal (LayerNorm gradient norms), it offers a template for other mechanism-aware and structure-aware adaptation methods. The DLS design is described as model-agnostic and integrable into existing PEFT pipelines.
- Real-world applications:
- Task-specific adaptation of open-weight LLMs (Qwen2.5, Llama 3.1, Gemma 2) in settings where full fine-tuning hardware is unavailable.
- Mathematical and arithmetic question answering, where RoSA leads the reported average on the seven arithmetic benchmarks using Qwen2.5-7B.
- Commonsense reasoning assistants and question-answering systems built on the eight evaluated commonsense benchmarks.
- Serving many task-specific model variants from one base checkpoint when trainable-parameter and storage budgets are tight (RoSA uses 0.261%–0.363% trainable parameters in the main tables).
- Industry relevance: The reported pattern — top accuracy at a smaller trainable-parameter fraction than AdaLoRA, C3A, LoRA, or DoRA — is directly relevant to teams that fine-tune and store many adapters per base model. The experiments run on RTX 3090 hardware, which indicates the approach targets commodity GPU setups rather than large clusters.
Future Directions
- Better importance signals. DLS currently relies on LayerNorm gradient norms as a proxy. The paper does not test alternative or combined importance metrics, leaving room to examine whether a different signal selects layers more reliably.
- Extending beyond Q/K low-frequency dimensions. RoAE targets only the low-frequency components of query and key states. Whether the same frequency-aware treatment is beneficial for other modules (for example, FFN or value projections) is not reported.
- Interaction with other PEFT families. The authors state that the projection module in RoAE can be flexibly replaced by other emerging PEFT methods and that RoSA can be combined with other fine-tuning techniques. None of those combinations are evaluated in this paper.
- Deeper hyperparameter and cost analysis. The paper reports a sensitivity study only for the layer selection ratio k_ratio and an implicit look at r_low via the RoSA-RoAE0.5 ablation. Training time, memory overhead, and sensitivity to α, u, and p_exploit are not reported.
Target Audience
- PEFT and LLM efficiency researchers who want a mechanism-aware alternative to uniformly applied LoRA-style adaptation.
- Practitioners fine-tuning LLMs on limited GPU hardware, since the experiments use RTX 3090 GPUs and report trainable-parameter fractions between 0.001% and roughly 0.7% across compared methods.
- Graduate students and engineers studying transformer internals, particularly readers interested in how RoPE's frequency structure shapes attention activations and layer-wise behavior.
- Ablation- and methodology-focused readers who want to see how a RoPE-targeted module compares against LoRA variants at matched parameter budgets (the RoSA-Lr64 and RoSA-Lr128 settings).
Authors’ abstract
Fine-tuning large language models is essential for task-specific adaptation, yet it remains computationally prohibitive. Parameter-Efficient Fine-Tuning (PEFT) methods have emerged as a solution, but current approaches typically ignore the distinct roles of model components and the heterogeneous importance across layers, thereby limiting adaptation efficiency. Motivated by the observation that Rotary Position Embeddings (RoPE) induce critical activations in the low-frequency dimensions of attention states, we propose RoPE-aware Selective Adaptation (RoSA), a novel PEFT framework that allocates trainable parameters in a more targeted and effective manner. RoSA comprises a RoPE-aware Attention Enhancement (RoAE) module, which selectively enhances the low-frequency components of RoPE-influenced attention states, and a Dynamic Layer Selection (DLS) strategy that adaptively identifies and updates the most critical layers based on LayerNorm gradient norms. By combining dimension-wise enhancement with layer-wise adaptation, RoSA achieves more targeted and efficient fine-tuning. Extensive experiments on fifteen commonsense and arithmetic benchmarks demonstrate that RoSA outperforms existing mainstream PEFT methods under comparable trainable parameters. The code is available to ease reproducibility at https://github.com/Applied-Machine-Learning-Lab/RoSA.