压缩与代码智能之间的真实关系是否线性?
Is Compression Really Linear with Code Intelligence?
AI总结:
本文通过评估多种开源代码LLM在多语言多任务基准上的表现,发现代码智能与压缩效率之间存在对数关系,挑战了此前线性假设。
摘要:
理解数据压缩与大语言模型(LLMs)能力之间的关系,特别是在代码智能领域至关重要。先前研究假设压缩与一般智能之间存在线性关系,但忽视了代码的多样性及评估现代代码LLM的公平性问题。本文通过评估多种开源代码LLM在多语言多任务基准上的表现,引入了轻量且透明的训练方法'Format Annealing',以公平评估预训练模型的代码能力。通过新的大规模代码验证集(源自GitHub),发现代码智能与每字符位数(BPC)之间存在基本对数关系。这一发现修正了线性假设,认为线性关系可能是对数曲线在特定条件下尾部的观察结果。本文提供了更细致的压缩与代码智能发展的理解,并贡献了一个稳健的代码领域评估框架。
英文摘要:
Understanding the relationship between data compression and the capabilities of Large Language Models (LLMs) is crucial, especially in specialized domains like code intelligence. Prior work posited a linear relationship between compression and general intelligence. However, it overlooked the multifaceted nature of code that encompasses diverse programming languages and tasks, and struggled with fair evaluation of modern Code LLMs. We address this by evaluating a diverse array of open-source Code LLMs on comprehensive multi-language, multi-task code benchmarks. To address the challenge of efficient and fair evaluation of pre-trained LLMs' code intelligence, we introduce \textit{Format Annealing}, a lightweight, transparent training methodology designed to assess the intrinsic capabilities of these pre-trained models equitably. Compression efficacy, measured as bits-per-character (BPC), is determined using a novel, large-scale, and previously unseen code validation set derived from GitHub. Our empirical results reveal a fundamental logarithmic relationship between measured code intelligence and BPC. This finding refines prior hypotheses of linearity, which we suggest are likely observations of the logarithmic curve's tail under specific, limited conditions. Our work provides a more nuanced understanding of compression's role in developing code intelligence and contributes a robust evaluation framework in the code domain.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。