Parameter-efficient Tuning for Large Language Model without Calculating Its Gradients

Feihu Jin, Jiajun Zhang, Chengqing Zong

Abstract

Fine-tuning Large Language Models (LLMs) typically requires significant GPU memory to store activations and gradients, even when using Parameter-Efficient Fine-Tuning (PEFT) techniques. This paper introduces a novel gradient-free tuning method that adapts LLMs to specific tasks without backpropagating through the full-scale model. By training PEFT modules on a Small Language Model (SLM) and a pruned "Bridge Model," the method successfully transfers task-specific knowledge to the LLM. Experimental results on the SuperGLUE benchmark demonstrate that this approach achieves performance parity with standard PEFT while reducing memory consumption by up to 7.1×.

Introduction

Adapting Large Language Models (LLMs) to downstream tasks is notoriously resource-intensive. Standard "Parameter-Efficient Fine-Tuning" (PEFT) methods—such as LoRA, Adapters, or Prefix Tuning—only update a small fraction of the model's weights. However, they still require backpropagation through the entire network to calculate gradients, necessitating the storage of activations and gradients for the full model. This "memory wall" often makes it impossible to adapt state-of-the-art models (e.g., 30B+ parameters) on consumer-grade hardware.

The authors propose a gradient-free alternative that achieves the benefits of PEFT without the heavy memory overhead of gradient computation on the large model itself.

Methodology

The proposed "Plug-in" method follows a three-stage pipeline to transfer task-specific knowledge into an LLM:

  1. Small Model Training: Standard PEFT modules (like LoRA or Adapters) are first trained on a much smaller language model (SLM) for the target task.
  2. Bridge Model Construction: To bridge the architectural gap, a "Bridge Model" is created by pruning the target LLM. Using Fisher Information, the authors identify and retain only the most critical weights, significantly reducing the model's dimensionality (e.g., by a factor of 16).
  3. Alignment and Fine-tuning: Linear projection modules ($W_{plug}$ and $W_{down}$) are employed to align the internal dimensions of the SLM and the Bridge model. The PEFT modules are then fine-tuned alongside the Bridge model, allowing them to adapt to the LLM's specific "knowledge style" without running backpropagation on the full LLM.
  4. Inference: Finally, the trained PEFT modules and projection layers are "plugged" into the frozen, full-scale LLM for inference.
The training and inference pipeline of the proposed gradient-free tuning method.

Experimental Setup

The method was evaluated on the SuperGLUE benchmark, which includes eight diverse natural language understanding tasks such as BoolQ, RTE, and ReCoRD. The authors tested the approach across the GPT-2 series (Base to XL) and the T5 series (Base to XXL/11B).

Key Results

The "Plug-in" method demonstrates a remarkable ability to maintain performance while drastically reducing resource requirements.

  • Performance Parity: The method achieved results nearly identical to standard PEFT methods. For example, on GPT2-XL, the LoRA Plug-in scored 78.3 on the RTE task, compared to 79.4 for standard LoRA.
  • Memory Efficiency: This is the core advantage. The method achieved up to 5.7× memory reduction compared to standard PEFT and up to 7.1× reduction compared to full fine-tuning. For GPT2-XL (1.5B parameters), memory usage dropped from ~50GB with LoRA to ~10.4GB, enabling training on a single consumer GPU like an RTX 3090.
Accuracy vs. Memory Usage on GPT2-XL, comparing the proposed method with standard fine-tuning and PEFT techniques.

Discussion and Key Insights

The success of this method rests on the scale invariance of tasks. The authors observed a 75% cosine similarity between PEFT modules learned by small and large models on the same task, suggesting that task-specific features are not entirely dependent on model scale. The Bridge model acts as an effective proxy, retaining essential knowledge of the LLM while remaining small enough for efficient optimization.

Conclusion and Future Work

By moving the learning phase to a combination of an SLM and a Bridge model, the massive memory cost of storing gradients for billions of parameters is bypassed. While the multi-stage pipeline adds some complexity and requires access to model weights for pruning, it provides a viable path for adapting massive models on limited hardware. Future work may explore applying this to 100B+ parameter models and refining layer-matching strategies for deeper architectures.

Summary updated

BibTeX
@inproceedings{jin2023parameter,
  author = {Feihu Jin and Jiajun Zhang and Chengqing Zong},
  title = {{Parameter-efficient Tuning for Large Language Model without Calculating Its Gradients}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.22},
}
Figure