arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.13992cs.CL
收藏

KoLMogorov测试:通过代码生成实现压缩

The KoLMogorov Test: Compression by Code Generation

Meta AI (FAIR)(Meta AI(FAIR));Tel Aviv University(特拉维夫大学)

Ori Yoran, Kunhao Zheng, Fabian Gloeckle, Jonas Gehring, Gabriel Synnaeve, Taco Cohen

AI总结:

本文提出KoLMogorov-Test,通过让代码生成LLM编写最短程序复现序列来衡量智能,并发现旗舰模型表现有限且合成提升难以泛化。

摘要:

压缩处于智能的核心。理论上,压缩任意数据序列的最优方式是找到输出该序列后停止的最短程序。然而,这种“Kolmogorov压缩”是不可计算的,而代码生成LLM难以逼近这一理论理想,因为它需要超越当前模型能力的推理、规划和搜索能力。在本工作中,我们提出KoLMogorov-Test(KT),这是一种面向代码生成LLM的“压缩即智能”测试。在KT中,模型在推理时获得一个数据序列,并被要求生成能够产生该序列的最短程序。我们指出KT在评估和训练方面的若干优势:可轻松获得数量几乎无限、难度各异的问题实例,已有强大基线,评估指标(压缩)无法被钻空子,并且预训练数据污染极不可能发生。为评估当前模型,我们使用音频、文本和DNA数据,以及由随机合成程序生成的序列。当前旗舰模型表现不佳——GPT4-o和Llama-3.1-405B在我们的自然序列和合成序列上都表现吃力。在我们的合成分布上,我们能够训练出压缩率低于以往方法的代码生成模型。此外,我们表明合成数据上的提升很难泛化到真实数据,这说明要在KT上取得进一步提升,需要新的创新。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑