From PEFT to DEFT: Parameter Efficient Finetuning for Reducing Activation Density in Transformers

Bharat Runwal, Tejaswini Pedapati, Pin-Yu Chen

Abstract

Large Language Models (LLMs) are computationally expensive to deploy. While Parameter-Efficient Fine-Tuning (PEFT) reduces training costs, it does not improve inference efficiency. We introduce Density-Efficient Fine-Tuning (DEFT), which induces activation sparsity during fine-tuning by adding a specialized density loss. This approach allows models to maintain high accuracy while significantly reducing the number of active neurons. Our adaptive variant, ADA-DEFT, further optimizes performance by enabling layer-wise skipping. Evaluated on Flan-T5 models, DEFT achieves up to a 90% reduction in activation density and significant runtime savings, paving the way for efficient inference on sparsity-aware hardware.

Introduction

The inference costs of Large Language Models (LLMs)—in terms of latency, energy, and memory—remain a major hurdle for widespread deployment. While PEFT methods like LoRA reduce the number of trainable parameters, they do not inherently make the resulting model faster during inference.

This research targets activation density: the percentage of non-zero values in intermediate layers, specifically Multi-Layer Perceptron (MLP) blocks. By inducing sparsity in these activations, we can leverage specialized hardware to skip computations, leading to faster and more energy-efficient models.

Methodology: The DEFT Framework

The core innovation is the Density Loss ($L_{density}$), which is integrated into the standard fine-tuning objective.

Differentiable Sparsity

To handle the non-differentiable nature of the $l_0$ norm, we use smooth approximations. For models with ReLU activations, a scaled tanh function is used, while for GeLU-based models like Flan-T5, a specialized $\hat{l}_0$ approximation is employed.

DEFT and ADA-DEFT

DEFT combines density loss with PEFT modules. Surprisingly, fine-tuning less than 2% of the model's parameters is sufficient to steer the entire frozen backbone into a sparse state. Adaptive DEFT (ADA-DEFT) introduces learnable weights for each layer, allowing entire MLP blocks to be skipped if their density contribution is negligible.

Overview of the DEFT and ADA-DEFT mechanisms, illustrating activation patterns and layer skipping.

Experimental Setup

We evaluated DEFT on standard benchmarks including GLUE and SQuAD v1.1, using architectures such as RoBERTa-Large and various scales of Flan-T5 (Base, XL, and XXL).

Key Results

Our experiments demonstrate that models can tolerate significant activation sparsity without substantial performance degradation.

Activation Density Reduction

On the 11-billion parameter Flan-T5 XXL, DEFT reduced decoder activation density by 90.60% compared to standard PEFT. This sparsity translates to an estimated 8% to 15% reduction in energy consumption on specialized ASIC hardware.

Runtime and Memory Savings

ADA-DEFT achieved an 8.75% runtime reduction and 16.78% memory saving in Flan-T5 XL by skipping unimportant layers.

Runtime comparison of ADA-PEFT and ADA-DEFT across different Flan-T5 model sizes, showing consistent savings.

Performance Stability

On the GLUE benchmark, DEFT with Adapters achieved an average score of 88.06, slightly outperforming standard PEFT (87.91) while being significantly sparser.

Conclusion and Future Work

DEFT demonstrates that activation sparsity can be effectively induced during fine-tuning with minimal impact on accuracy. While current speedups require sparsity-aware hardware, the method offers a promising direction for reducing the environmental and computational footprint of LLMs. Future work will explore DEFT on even larger models and its impact on generative robustness.

Summary updated

BibTeX
@inproceedings{runwal2025from,
  author = {Bharat Runwal and Tejaswini Pedapati and Pin-Yu Chen},
  title = {{From PEFT to DEFT: Parameter Efficient Finetuning for Reducing Activation Density in Transformers}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i19.34227},
}
Figure