arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.05078cs.LGcs.AIcs.ITmath.IT
收藏

基于预训练Transformer的压缩:关于字节级多模态数据的研究

Compression via Pre-trained Transformers: A Study on Byte-Level Multimodal Data

Chandar Research Lab. MILA - Quebec AI Institute Polytechnique Montréal(Chandar 研究实验室,魁北克人工智能研究所,蒙特利尔理工学院);Google DeepMind(谷歌DeepMind)

David Heurtel-Depeiges, Anian Ruoss, Joel Veness, Tim Genewein

AI总结:

本研究通过大规模实证,发现数百万参数的预训练Transformer在压缩文本、图像和音频字节数据时,能超越gzip、LZMA2乃至领域专用压缩器,并探究了模型规模与多模态训练的影响。

摘要:

基础模型是强大的数据压缩器,但考虑到其参数规模时,其压缩比劣于标准压缩算法。简单地减少参数数量并不一定有帮助,因为这会恶化预测,从而影响压缩效果。我们进行了一项大规模实证研究,以寻找预训练普通Transformer能够实现有竞争力压缩比的甜点区域。为此,我们在165GB的原始字节序列上训练模型,这些序列来自文本、图像或音频数据(以及这三者的所有可能组合),然后压缩来自每种模态的1GB分布外(OOD)数据。我们发现,相对较小的模型(数百万参数)可以优于标准的通用压缩算法(gzip、LZMA2),甚至优于特定领域的压缩器(PNG、JPEG-XL、FLAC)——即使考虑了参数规模也是如此。例如,我们在OOD音频数据上实现了最低压缩比0.49(而FLAC为0.54)。我们进行了广泛的消融实验和超参数扫描,以研究模型和数据集规模的影响,并调查了单模态与多模态训练的效果。我们发现,即使是小模型也可以训练好在多种模态上表现良好,但与大规模基础模型不同,向未见模态的迁移通常较弱。

英文摘要:

Foundation models are strong data compressors, but when accounting for their parameter size, their compression ratios are inferior to standard compression algorithms. Naively reducing the parameter count does not necessarily help as it deteriorates predictions and, accordingly, compression. We conduct a large-scale empirical study to find a sweet spot where pre-trained vanilla transformers can achieve competitive compression ratios. To this end, we train models on 165GB of raw byte sequences of either text, image, or audio data (and all possible combinations of the three) and then compress 1GB of out-of-distribution (OOD) data from each modality. We find that relatively small models (millions of parameters) can outperform standard general-purpose compression algorithms (gzip, LZMA2) and even domain-specific compressors (PNG, JPEG-XL, FLAC) $\unicode{x2013}$ even when accounting for parameter size. We achieve, e.g., the lowest compression ratio of 0.49 on OOD audio data (vs. 0.54 for FLAC). We conduct extensive ablations and hyperparameter sweeps to study the impact of model- and dataset scale, and we investigate the effect of unimodal versus multimodal training. We find that even small models can be trained to perform well on multiple modalities, but unlike large-scale foundation models, transfer to unseen modalities is generally weak.

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

↑