CrossSpectra: Exploiting Cross-Layer Smoothness for Parameter-Efficient Fine-Tuning

Yifei Zhang, Hao Zhu, Junhao Dong, Haoran Shi, Ziqiao Meng, Piotr Koniusz, Han YuNeurIPS 2025

TL;DR

CrossSpectra is a novel parameter-efficient fine-tuning (PEFT) method that treats all transformer layers as a single, continuous 3D tensor rather than independent blocks. By operating in the frequency domain and exploiting the "smoothness" created by skip connections, it achieves performance comparable to or better than LoRA while using up to 275x fewer parameters.

What Problem Does This Paper Address?

As Large Language Models (LLMs) grow to hundreds of billions of parameters, fine-tuning them for specific tasks becomes a massive storage and computational burden. Current "gold standard" methods like LoRA (Low-Rank Adaptation) reduce this burden by training small, low-rank matrices for each layer.

However, the authors identify a major inefficiency: LoRA treats every layer independently. This means the number of trainable parameters grows linearly with the model's depth ($L$). If you have a 100-layer model, you have 100 sets of LoRA weights. The authors argue this is redundant because transformer layers are highly correlated. Because of skip connections, the "gradient signal" flows smoothly through the model, meaning adjacent layers often need very similar adaptations.

Methods

The authors introduce CrossSpectra, which moves fine-tuning from the spatial domain (matrices) to the spectral domain (frequencies).

CrossSpectra Architecture
  1. Unified 3D Representation: Instead of $L$ separate adaptation matrices, CrossSpectra stacks all Query, Key, and Value (QKV) adaptations into one massive 3D tensor ($d \times d \times 3L$).
  2. 3D Fourier Transform: They apply a 3D Discrete Fourier Transform to this tensor. Based on their theoretical proof that skip connections induce "smoothness," they hypothesize that most of the important information lives in the low-frequency components.
  3. Selective Truncation & Sparsity: They only train a tiny subset of these spectral coefficients. Specifically, they keep $\kappa_1$ sparse coefficients within each layer's frequency space and truncate the cross-layer dimension to just $\kappa_2$ frequencies.
  4. The Forward/Backward Loop: During the forward pass, an inverse FFT (iFFT) reconstructs the spatial weights for computation. During the backward pass, gradients are projected back into this sparse spectral subspace, which acts as an implicit regularizer, preventing the model from learning "noisy," high-frequency changes that don't generalize.

Key Insights and Ideas

  • Skip Connections are "Smoothers": The paper provides a mathematical proof showing that skip connections create Lipschitz-continuous gradient fields. This is the "secret sauce"—it explains why we can get away with sharing information across layers.
  • The 70% Rule: Empirical analysis showed that nearly 70% of adaptation energy is concentrated in low-frequency components. High-frequency components are mostly noise.
Energy Distribution Across Frequencies
  • Sub-linear Scaling: Because CrossSpectra truncates the layer dimension in the frequency domain, the parameter count doesn't have to grow linearly with model depth. This makes it uniquely suited for the "ultra-deep" models of the future.
  • Joint QKV Optimization: By treating Q, K, and V matrices together in one tensor, the model captures shared architectural context that layer-wise methods miss.

Datasets

The researchers evaluated CrossSpectra across a wide variety of modalities and tasks:

  • Natural Language Understanding (NLU): The GLUE benchmark (including CoLA, SST-2, MNLI, etc.) using RoBERTa-large.
  • Commonsense Reasoning (CSR): 8 benchmarks (e.g., BoolQ, HellaSwag, ARC) using LLaMA2-7B and 13B.
  • Arithmetic Reasoning (AR): GSM8K, MAWPS, SVAMP, and AQuA using LLaMA2-7B.
  • Image Classification (IC): 7 datasets (e.g., StanfordCars, EuroSAT, GTSRB) using CLIP ViT-B/32.

Key Results

  • Massive Efficiency: CrossSpectra achieved a 275x parameter reduction compared to LoRA and a 5,250x reduction compared to full fine-tuning. For a typical transformer, it requires only 8 KB of memory for adaptations, compared to LoRA’s 2.2 MB.
  • Superior Performance: On LLaMA2-7B commonsense reasoning tasks, CrossSpectra averaged 82.73% accuracy using only 0.02% of the model's parameters. In contrast, LoRA achieved 77.61% while using 0.84% of the parameters.
  • Instruction Tuning: When fine-tuning LLaMA-7B, CrossSpectra matched baseline performance using only 0.36% of LoRA's parameter count.
  • Computational Overhead: While 3D FFTs sound expensive, the authors show the cost is negligible (e.g., 0.05s to 0.41s) compared to the actual attention mechanism's cost.

Limitations and Future Work

  • Component Scope: Currently, CrossSpectra only targets attention weights (QKV). The authors acknowledge that extending this to Feed-Forward Networks (FFNs) could yield even more gains but might increase complexity.
  • Manual Frequency Selection: The sparsity patterns (which frequencies to keep) are currently chosen manually or via uniform sampling. The authors suggest that adaptive frequency sampling—letting the model learn which frequencies are most important for a specific task—is a promising next step.
  • Extreme Scaling: While tested up to 13B parameters, verifying these spectral patterns in trillion-parameter models remains an open research direction.

Summary updated

BibTeX
@inproceedings{zhang2025crossspectra,
  author = {Yifei Zhang and Hao Zhu and Junhao Dong and Haoran Shi and Ziqiao Meng and Piotr Koniusz and Han Yu},
  title = {{CrossSpectra: Exploiting Cross-Layer Smoothness for Parameter-Efficient Fine-Tuning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=rJ5ky9C3ue},
}
Figure