Rethinking Kullback-Leibler Divergence in Knowledge Distillation for Large Language Models
Wu, Taiqiang, Tao, Chaofan, Wang, Jiahao, Zhao, Zhe, Wong, Ngai
–arXiv.org Artificial Intelligence
Kullback-Leiber divergence has been widely used in Knowledge Distillation (KD) to compress Large Language Models (LLMs). Contrary to prior assertions that reverse Kullback-Leibler (RKL) divergence is mode-seeking and thus preferable over the mean-seeking forward Kullback-Leibler (FKL) divergence, this study empirically and theoretically demonstrates that neither mode-seeking nor mean-seeking properties manifest in KD for LLMs. Instead, RKL and FKL are found to share the same optimization objective and both converge after a sufficient number of epochs. However, due to practical constraints, LLMs are seldom trained for such an extensive number of epochs. Meanwhile, we further find that RKL focuses on the tail part of the distributions, while FKL focuses on the head part at the beginning epochs. Consequently, we propose a simple yet effective Adaptive Kullback-Leiber (AKL) divergence method, which adaptively allocates weights to combine FKL and RKL. Metric-based and GPT-4-based evaluations demonstrate that the proposed AKL outperforms the baselines across various tasks and improves the diversity and quality of generated responses.
arXiv.org Artificial Intelligence
Jun-16-2024
- Country:
- Africa > Ethiopia
- Addis Ababa > Addis Ababa (0.04)
- Asia
- China > Hong Kong (0.04)
- Middle East > UAE
- Abu Dhabi Emirate > Abu Dhabi (0.04)
- North America
- Canada > Ontario
- Toronto (0.04)
- United States
- California > San Francisco County
- San Francisco (0.05)
- Illinois > Cook County
- Chicago (0.05)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- New York (0.05)
- Texas
- Dallas County > Dallas (0.04)
- Harris County > Houston (0.04)
- Roberts County > Miami (0.04)
- Travis County > Austin (0.04)
- California > San Francisco County
- Canada > Ontario
- Oceania
- American Samoa (0.04)
- Samoa (0.04)
- Pacific Ocean > North Pacific Ocean
- San Francisco Bay > Golden Gate (0.05)
- Africa > Ethiopia
- Genre:
- Research Report (1.00)
- Industry:
- Education (0.47)
- Technology: