arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.03626cs.CLcs.LG
收藏

基于神经压缩文本训练大语言模型(LLMs)

Training LLMs over Neurally Compressed Text

Google DeepMind(谷歌DeepMind);Anthropic(Anthropic公司)

Brian Lester, Jaehoon Lee, Alex Alemi, Jeffrey Pennington, Adam Roberts, Jascha Sohl-Dickstein, Noah Constant

AI总结:

针对强神经压缩文本难以训练大语言模型的问题,提出等信息窗口压缩技术,实现有效学习且推理更快,同时分析可学习性属性并给出优化建议。

摘要:

本文探索了在高度压缩文本上训练大语言模型(LLMs)的思路。标准子词分词器仅能以较小的压缩比压缩文本,而神经文本压缩器可实现高得多的压缩率。若能直接在神经压缩文本上训练LLM,将在训练与推理效率上具备优势,也更易处理长文本跨度。\n实现这一目标的主要障碍是,强压缩往往会生成不适合学习的不透明输出。我们尤其发现,通过算术编码(Arithmetic Coding)简单压缩的文本难以被LLM学习。\n为克服该问题,我们提出了等信息窗口(Equal-Info Windows)这一新型压缩技术:将文本分割为多个块,每个块压缩后的比特长度相同。采用该方法,我们证明了在神经压缩文本上的有效学习效果会随规模提升而改善,且在困惑度与推理速度基准上大幅优于字节级基线。\n尽管对于相同参数量训练的模型,我们的方法困惑度表现逊于子词分词器,但它具备序列长度更短的优势。更短的序列长度所需的自回归生成步骤更少,可降低延迟。最后,我们对影响可学习性的属性展开了广泛分析,并就如何进一步提升高压缩比分词器的性能给出了具体建议。

英文摘要:

In this paper, we explore the idea of training large language models (LLMs) over highly compressed text. While standard subword tokenizers compress text by a small factor, neural text compressors can achieve much higher rates of compression. If it were possible to train LLMs directly over neurally compressed text, this would confer advantages in training and serving efficiency, as well as easier handling of long text spans. The main obstacle to this goal is that strong compression tends to produce opaque outputs that are not well-suited for learning. In particular, we find that text naïvely compressed via Arithmetic Coding is not readily learnable by LLMs. To overcome this, we propose Equal-Info Windows, a novel compression technique whereby text is segmented into blocks that each compress to the same bit length. Using this method, we demonstrate effective learning over neurally compressed text that improves with scale, and outperforms byte-level baselines by a wide margin on perplexity and inference speed benchmarks. While our method delivers worse perplexity than subword tokenizers for models trained with the same parameter count, it has the benefit of shorter sequence lengths. Shorter sequence lengths require fewer autoregressive generation steps, and reduce latency. Finally, we provide extensive analysis of the properties that contribute to learnability, and offer concrete suggestions for how to further improve the performance of high-compression tokenizers.

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

↑