Parameter-Efficient Fine-Tuning with Circulant and Diagonal Vectors

Xinyu Ding, Siyu Liao, Zhongfeng Wang · Submission to ICLR 2025 · Rejected

Introduction

Fine-tuning Large Foundation Models (LFMs) like LLaMA or Vision Transformers (ViT) is notoriously resource-intensive. While Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA (Low-Rank Adaptation) successfully reduce the number of trainable parameters, they still require significant memory and computational power.

A recent alternative, FourierFT, attempts to train models in the frequency domain to further reduce parameter counts. However, FourierFT relies on 2D Fast Fourier Transforms (FFTs) to reconstruct the weight change matrix ($\Delta W$), which is computationally expensive and memory-heavy. To address this, researchers introduce CDVFT (Circulant and Diagonal Vector based Fine-Tuning), a novel method that achieves high efficiency in both the number of parameters and the actual computational operations (FLOPs) required during training and inference.

Methodology: The CDVFT Approach

CDVFT factorizes the weight update matrix $\Delta W$ into a sequence of interleaved diagonal and circulant matrices. This approach relies on several key technical innovations:

  1. Vector-Based Representation: Instead of storing a full $d \times d$ matrix, diagonal and circulant matrices are each represented by a single vector of length $d$. This keeps the storage complexity strictly linear ($O(d)$).
  2. 1D FFT vs. 2D FFT: A unique property of circulant matrices is that their multiplication with a vector can be computed using a 1D FFT. CDVFT performs the entire forward and backward pass using 1D FFTs and element-wise products. This avoids the costly 2D FFTs used in FourierFT and eliminates the need to ever fully reconstruct the dense $\Delta W$ matrix.
  3. Block Partitioning: To handle non-square weight matrices common in models like LLaMA, the matrix is partitioned into square blocks. Each block is treated as a circulant matrix, allowing the method to scale to various layer architectures.
  4. Interleaved Structure: Following theoretical foundations, the authors show that any complex matrix can be approximated by factorizing it into interleaved factors. In practice, even a small number of factors (e.g., $m=2$) is sufficient for high performance.
Comparison of FourierFT and CDVFT architectures. FourierFT relies on 2D IDFTs and dense spectral matrices, while CDVFT uses a highly efficient loop of 1D DFTs and element-wise multiplications.

Experiments and Key Results

The researchers evaluated CDVFT across three major domains: Natural Language Understanding (GLUE benchmark with RoBERTa-base), Computer Vision (RESISC45 and CIFAR-100 with ViT-base), and Instruction Tuning (Alpaca and GSM8K with LLaMA2-7b).

Adapter complexity comparison on RoBERTa-base and ViT-base models. CDVFT (Ours) drastically reduces FLOPs compared to FourierFT while maintaining a parameter count much lower than LoRA.
  • RoBERTa (GLUE): CDVFT achieved an average score of 85.1, nearly identical to LoRA (85.2), but used 5.33x fewer parameters and an impressive 51.81x fewer FLOPs than FourierFT.
  • Vision Transformer (ViT): On image tasks, CDVFT required 10.7x fewer parameters than LoRA and achieved highly competitive accuracy on CIFAR-100 (91.1% vs 92.0% for LoRA), but with a fraction of the computational overhead.
  • LLaMA2-7b: On the MT-Bench (measuring conversational ability), CDVFT scored 5.42, outperforming both LoRA (5.20) and FourierFT (5.18) while using only ~1M trainable parameters compared to LoRA's ~33M.

Insights and Limitations

CDVFT proves that structured sparsity via circulant matrices is sufficient for high performance; you do not strictly need low-rank structures (like LoRA) or dense frequency representations (like FourierFT). By transforming matrix-vector multiplication into 1D FFT operations, the computational complexity drops from quadratic to log-linear, driving the massive FLOP reduction.

Interestingly, the rigid structure of circulant matrices appears to act as a beneficial regularizer. In some LLaMA experiments, larger block sizes—which inherently use fewer parameters—actually resulted in better scores by preventing overfitting during fine-tuning.

Limitations: While highly efficient, CDVFT does face challenges with non-square matrices. Block partitioning is less efficient for very "skinny" or "wide" matrices, as the number of blocks (and thus parameters) increases. Additionally, while the theoretical FLOP count is drastically lower, standard deep learning frameworks are highly optimized for dense matrix multiplication (GEMM). Achieving the full "wall-clock" speedup in practice will likely require the development of custom CUDA kernels tailored for block-circulant 1D FFT operations.

Summary updated

BibTeX
@misc{ding2025parameter,
  author = {Xinyu Ding and Siyu Liao and Zhongfeng Wang},
  title = {{Parameter-Efficient Fine-Tuning with Circulant and Diagonal Vectors}},
  year = {2025},
  eprint = {2505.00580},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.00580},
}
Figure