用代码生成测试大模型的压缩能力,检验其真正的智能水平。
The KoLMogorov Test: Compression by Code Generation
- 让大模型生成最短代码来复现数据序列,以检验其推理与规划能力。
- 现有顶尖模型在真实与合成数据上压缩表现不佳,表明仍有巨大提升空间。
- 该测试适合评估和训练模型,且难以被作弊或数据污染干扰。
压缩是智能的核心。理论上最优的数据压缩方式是找到能输出该序列并终止的最短程序,即柯尔莫戈洛夫压缩,但此方法不可计算。当前代码生成大模型难以逼近这一理想,因其缺乏足够的推理、规划与搜索能力。本文提出柯尔莫戈洛夫测试(KoLMogorov Test, KT),将压缩视为智能的评测标准。在KT中,模型需在推理时根据输入数据序列生成最短可执行代码。该测试具有无限多样本、强基线、不可作假的压缩指标及低预训练数据污染风险等优势。我们使用音频、文本、DNA数据及随机合成程序生成序列进行评估。当前主流模型如GPT4-o与Llama-3.1-405B在自然与合成序列上表现不佳。在合成数据上,我们训练出压缩率低于以往方法的模型;但合成数据上的改进难以泛化到真实数据,表明实现更大突破仍需新方法。
原文摘要 · Abstract (English)
Compression is at the heart of intelligence. A theoretically optimal way to compress any sequence of data is to find the shortest program that outputs that sequence and then halts. However, such 'Kolmogorov compression' is uncomputable, and code generating LLMs struggle to approximate this theoretical ideal, as it requires reasoning, planning and search capabilities beyond those of current models. In this work, we introduce the KoLMogorov-Test (KT), a compression-as-intelligence test for code generating LLMs. In KT a model is presented with a sequence of data at inference time, and asked to generate the shortest program that produces the sequence. We identify several benefits of KT for both evaluation and training: an essentially infinite number of problem instances of varying difficulty is readily available, strong baselines already exist, the evaluation metric (compression) cannot be gamed, and pretraining data contamination is highly unlikely. To evaluate current models, we use audio, text, and DNA data, as well as sequences produced by random synthetic programs. Current flagship models perform poorly - both GPT4-o and Llama-3.1-405B struggle on our natural and synthetic sequences. On our synthetic distribution, we are able to train code generation models with lower compression rates than previous approaches. Moreover, we show that gains on synthetic data generalize poorly to real data, suggesting that new innovations are necessary for additional gains on KT.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。