EMNLP Findings2025
DaMoC: Efficiently Selecting the Optimal Large Language Model for Fine-tuning Domain Tasks Based on Data and Model Compression
Wei Huang, Huang Wei, Yinggui Wang
Abstract
Large language models (LLMs) excel in general tasks but struggle with domain-specific ones, requiring fine-tuning with specific data. With many open-source LLMs available, selecting the best model for fine-tuning downstream tasks is challenging, primarily focusing on how to quickly identify the optimal LLM. We introduce a Data and Model Compression Framework (DaMoC) that addresses this challenge by: 1) Data Level: A systematic categorization of data filtering methodologies for LLMs is first established, classifying them into three distinct paradigms: (1) distribution-aware methods, (2) quality-aware methods, and (3) hybrid approaches considering both dimensions. Further, we enhance the density of key tokens in the text achieving token compression. Subsequently, we use an LLM to iterative rewrite the text to optimize its expression. 2) Model Level: We use layer similarity scores to assess each layer's importance and remove those with lower importance. Then, we introduce a sparse merging paradigm to preserve as much of the original model's capability as possible. Extensive experiments on four datasets, medical Q&A, financial Q&A, general Q&A, and reading comprehension, show that we can select the optimal LLM while saving approximately 20-fold in training time. Base Model PubMedQA BillSum Full LoRA Zero-shot One-shot Two-shot Full LoRA Zero-shot One-shot Two-shot Llama3.1-8B 0.5978(2) 0.6083(2) 0.4901(8) 0.5125(8) 0.5274(8) 0.7017(3) 0.6958(1) 0.5689(6) 0.5943(5) 0.6002(5) Qwen2.5-7B 0.5973(3) 0.6090(1) 0.5233(5) 0.5289(5) 0.5300(7) 0.7060(1) 0.6901(4) 0.5673(7) 0.5921(6) 0.5933(7) Gemma2-9B 0.5898(8) 0.6076(4) 0.5202(6) 0.5287(7) 0.5358(1) 0.7016(4) 0.6893(5) 0.5509(8) 0.5782(8) 0.5891(8) GLM4-9B 0.5914(5) 0.6046(6) 0.5253(4) 0.5318(3) 0.5341(4) 0.7021(2) 0.6948(3) 0.5798(3) 0.6012(3) 0.6161(1) Ministral-8B 0.5954(4) 0.6078(3) 0.5296(1) 0.5344(2) 0.5353(2) 0.6979(5) 0.6952(2) 0.5698(5) 0.5835(7) 0.5990(6) Phi-3-small-7B 0.6063(1) 0.6038(8) 0.5283(2) 0.5349(1) 0.5350(3) 0.6881(8) 0.6866(8) 0.5947(1) 0.6124(1) 0.6120(2) Yi1.5-9B 0.5911(7) 0.6065(5) 0.5171(7) 0.5288(5) 0.5319(5) 0.6957(6) 0.6871(7) 0.5801(2) 0.6033(2) 0.6057(3) Internlm2.5-7B 0.5914(5) 0.6043(7) 0.5261(3) 0.5302(4) 0.5303(6) 0.6936(7) 0.6874(6) 0.5772(4) 0.5985(4) 0.6007(4)
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
Builds on15
- BERTScore: Evaluating Text Generation with BERTTianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger et al.ICLR 2020 · 8,443 citations
- Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng et al.SOSP 2023 · 1,016 citations
- ZeRO: memory optimizations toward training trillion parameter modelsSamyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong HeSC 2020 · 852 citations
- A Survey on In-context LearningQingxiu Dong, Lei Li, Damai Dai, Ce Zheng et al.EMNLP 2024 · 479 citations
- LESS: Selecting Influential Data for Targeted Instruction TuningMengzhou Xia, Sadhika Malladi, Suchin Gururangan, Sanjeev Arora et al.ICML 2024 · 460 citations
Related papers
- Dodo: Dynamic Contextual Compression for Decoder-only LMsGuanghui Qin, Corby Rosset, Ethan C. Chau, Nikhil Rao et al.ACL 2024
- Dynamic Memory Compression: Retrofitting LLMs for Accelerated InferencePiotr Nawrot, Adrian Lancucki, Marcin Chochowski, David Tarjan et al.ICML 2024 · 106 citations
- Landmark-Guided Policy Optimization for Multi-Objective Language Model SelectionMarcio Monteiro, Weichen Li, Puyu Wang, Marius Kloft et al.ICML 2026
- COMI: Coarse-to-fine Context Compression via Marginal Information GainJiwei Tang, Shilei Liu, Zhicheng Zhang, Yujin Yuan et al.ICLR 2026 · 17 citations
- Pruning Large Language Models with Semi-Structural Adaptive Sparse TrainingWeiyu Huang, Yuezhou Hu, Guohao Jian, Jun Zhu et al.AAAI 2025 · 25 citations
