NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AdaDHP: Fine-Grained Fine-Tuning via Dual Hadamard Product and Adaptive Parameter Selection

Han Liu, Changya Li, Xiaotong Zhang, Feng Zhang, Fenglong Ma, Wei Wang, Hong Yu

Introduction

Fine-tuning Large Language Models (LLMs) for specific downstream tasks is computationally intensive. Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA (Low-Rank Adaptation) and $(IA)^3$ have emerged to mitigate these costs. However, LoRA often requires manual tuning of rank and layer selection, while $(IA)^3$ is limited by its coarse, single-dimension scaling of activations.

AdaDHP (Adaptive Dual Hadamard Product) addresses these limitations by introducing a fine-grained scaling mechanism that operates on both rows and columns of weight matrices, combined with an automated, importance-based parameter selection strategy. It achieves state-of-the-art performance on NLU and mathematical reasoning tasks using significantly fewer trainable parameters than LoRA—often as little as 0.05% of the total model weights.

Methodology

Dual Hadamard Product (DHP)

The core innovation of AdaDHP is the Dual Hadamard Product. Unlike LoRA, which adds a low-rank update matrix to the weights, AdaDHP scales the pretrained weight matrix $W \in \mathbb{R}^{d \times d}$ using two trainable vectors, $l_l \in \mathbb{R}^d$ and $l_r \in \mathbb{R}^d$. The adapted weight matrix $W'$ is computed as:

$$W' = l_l \odot W \odot l_r^T$$

where $\odot$ denotes the Hadamard (element-wise) product. This formulation allows the model to scale $W$ along both rows and columns simultaneously. This is mathematically equivalent to a rank-1 LoRA update applied as a scaling factor, providing a more precise, fine-grained transformation than scaling just one dimension.

Comparison of PEFT architectures: (a) LoRA, (b) (IA)^3, and (c) the proposed AdaDHP.

Adaptive Parameter Selection

To further enhance efficiency and prevent overfitting, AdaDHP employs an adaptive selection mechanism. Instead of training all introduced vectors throughout the entire process, the method identifies and prunes unimportant parameters based on two metrics:

  1. Sensitivity: How much the loss function changes relative to the parameter.
  2. Uncertainty: The variability of that sensitivity over training steps.

Using a cubic budget schedule, the algorithm starts by training all parameters and gradually prunes the least important ones, eventually focusing the training budget only on the most critical weights for the target task.

Integration of DHP blocks within a standard Transformer layer, targeting weight matrices in both MHSA and FFN blocks.

Experimental Evaluation

NLU Performance

On the T5-base model across 17 NLU tasks (including GLUE and SuperGLUE), AdaDHP achieved an average score of 86.1 using only 203K trainable parameters. In contrast, LoRA required 3.8M parameters to reach a lower average score of 85.3. This represents a significant improvement in both performance and parameter efficiency.

Mathematical Reasoning

When applied to larger models like Llama-7B and Llama2-7B, AdaDHP consistently matched or outperformed LoRA on math benchmarks such as GSM8K and SVAMP. Notably, on Llama2-7B math tasks, AdaDHP with multiple vector pairs ($k=16$) surpassed LoRA with $r=32$ while maintaining a lower parameter count.

Key Insights

  • Granularity Matters: By scaling both rows and columns, AdaDHP captures more complex transformations than $(IA)^3$ while remaining more parameter-efficient than LoRA.
  • Surgical Updates: Visualization of importance scores reveals that AdaDHP naturally focuses on the later layers of the decoder and specific attention heads, confirming that it "discovers" the most task-relevant parts of the architecture automatically.
  • Dynamic Pruning as Regularization: The adaptive selection process prevents overfitting, particularly on smaller datasets where dense PEFT methods often struggle.

Conclusion

AdaDHP represents a significant advancement in PEFT, offering a fine-grained and adaptive approach to model adaptation. By utilizing the Dual Hadamard Product and automated parameter selection, it achieves state-of-the-art results with exceptional efficiency. Future work will explore combining AdaDHP with quantization techniques to further reduce the memory footprint during the backward pass.

Summary updated

BibTeX
@inproceedings{liu2025adadhp,
  author = {Han Liu and Changya Li and Xiaotong Zhang and Feng Zhang and Fenglong Ma and Wei Wang and Hong Yu},
  title = {{AdaDHP: Fine-Grained Fine-Tuning via Dual Hadamard Product and Adaptive Parameter Selection}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure