Paper Reading AI Learner

How Much Knowledge Can You Pack into a LoRA Adapter without Harming LLM?

2025-02-20 12:31:03
Sergey Pletenev, Maria Marina, Daniil Moskovskiy, Vasily Konovalov, Pavel Braslavski, Alexander Panchenko, Mikhail Salnikov

Abstract

The performance of Large Language Models (LLMs) on many tasks is greatly limited by the knowledge learned during pre-training and stored in the model's parameters. Low-rank adaptation (LoRA) is a popular and efficient training technique for updating or domain-specific adaptation of LLMs. In this study, we investigate how new facts can be incorporated into the LLM using LoRA without compromising the previously learned knowledge. We fine-tuned Llama-3.1-8B-instruct using LoRA with varying amounts of new knowledge. Our experiments have shown that the best results are obtained when the training data contains a mixture of known and new facts. However, this approach is still potentially harmful because the model's performance on external question-answering benchmarks declines after such fine-tuning. When the training data is biased towards certain entities, the model tends to regress to few overrepresented answers. In addition, we found that the model becomes more confident and refuses to provide an answer in only few cases. These findings highlight the potential pitfalls of LoRA-based LLM updates and underscore the importance of training data composition and tuning parameters to balance new knowledge integration and general model capabilities.

Abstract (translated)

大型语言模型(LLMs)在许多任务上的表现受到预训练期间学习的知识以及存储在模型参数中的知识的限制。低秩适应(LoRA)是一种用于更新或领域特定适应的流行且高效的训练技术,适用于LLMs。在这项研究中,我们探讨了如何使用LoRA将新事实融入到LLM中而不损害先前学到的知识。我们通过使用不同数量的新知识对Llama-3.1-8B-instruct进行了基于LoRA的微调实验。我们的实验证明,在训练数据包含已知和新事实混合的情况下,可以获得最佳结果。然而,这种方法仍然可能有害,因为在这样的微调之后,模型在外部分数回答基准上的表现下降了。当训练数据偏向某些实体时,模型倾向于回归到少数过度表示的答案上。此外,我们发现该模型在极少数情况下变得更加自信并拒绝提供答案。 这些研究结果强调了基于LoRA的LLM更新可能存在的潜在问题,并突显了训练数据组成和调整参数的重要性,以平衡新知识的集成与整体模型能力之间的关系。

URL

https://arxiv.org/abs/2502.14502

PDF

https://arxiv.org/pdf/2502.14502.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot