LLM-Neo merges knowledge distillation with low-rank adaptation for efficient model compression
Smart fusion of Knowledge Distillation (KD) and LoRA creates memory-efficient model training
https://arxiv.org/abs/2411.06839
π― Original Problem:
Knowledge Distillation (KD) and Low-Rank Adaptation (LoRA) are two separate techniques for efficient LLM training, but both consume significant computational resources and lack parameter efficiency.
-----
π§ Solution in this Paper:
β LLM-Neo combines KD with LoRA by introducing a low-rank branch in the student model to inherit knowledge from the teacher model
β Uses weighted combination of cross-entropy loss from dataset and KL divergence between student-teacher models
β Optimizes using both supervised learning and knowledge distillation components through the low-rank branch
β Implements larger rank values (128) with learning rate around 2e-4 for optimal performance
-----
π‘ Key Insights:
β Larger rank values consistently yield better results
β Higher ranks require lower learning rates for stability
β Shows compatibility with memory optimization techniques like ZeRO-1/2
β Scales effectively with increased training data size
β Works well with LoRA variants like MoSLoRA
-----
π Results:
β Achieves 39.21 average score on Llama 3.1 benchmarks, 0.87 higher than LoRA
β Reduces GPU memory usage by 25% compared to traditional KD
β Maintains performance while significantly reducing training time
β Shows consistent improvement across Llama 2 and Llama 3.1 architectures










