COLING 2025main3 citations

META-LORA: Memory-Efficient Sample Reweighting for Fine-Tuning Large Language Models

Weicheng Li, Lixin Zou, Min Tang, Qing Yu, Wanli Li, Chenliang Li

Abstract

Supervised fine-tuning (SFT) is widely adopted for tailoring large language models (LLMs) to specific downstream tasks. However, the substantial computational demands of LLMs hinder iterative exploration of fine-tuning datasets and accurate evaluation of individual sample importance. To address this challenge, we introduce Meta-LoRA, a memory-efficient method for automatic sample reweighting. Meta-LoRA learns to reweight fine-tuning samples by minimizing the loss on a small, high-quality validation set through an end-to-end bi-level optimization framework based on meta-learning. To reduce memory usage associated with computing second derivatives, we approximate the bi-level optimization using gradient similarity between training and validation datasets, replacing bi-dimensional gradient similarity with the product of one-dimensional activation states and their corresponding gradients. Further memory optimization is achieved by refining gradient computations, selectively applying them to the low-rank layers of LoRA, which results in as little as 4% additional memory usage. Comprehensive evaluations across benchmark datasets in mathematics, coding, and medical domains demonstrate Meta-LoRA’s superior efficacy and efficiency. The source code is available at https://github.com/liweicheng-ai/meta-lora.

BibTeX
@inproceedings{li-etal-2025-meta,
    title = "{META}-{LORA}: Memory-Efficient Sample Reweighting for Fine-Tuning Large Language Models",
    author = "Li, Weicheng  and
      Zou, Lixin  and
      Tang, Min  and
      Yu, Qing  and
      Li, Wanli  and
      Li, Chenliang",
    editor = "Rambow, Owen  and
      Wanner, Leo  and
      Apidianaki, Marianna  and
      Al-Khalifa, Hend  and
      Eugenio, Barbara Di  and
      Schockaert, Steven",
    booktitle = "Proceedings of the 31st International Conference on Computational Linguistics",
    month = jan,
    year = "2025",
    address = "Abu Dhabi, UAE",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.coling-main.568/",
    pages = "8504--8517"
}
META-LORA: Memory-Efficient Sample Reweighting for Fine-Tuning Large Language Models · COLING 2025