arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.00935cs.LGcs.CL

向前看还是向周围看?自回归预训练与掩码预训练的理论比较

Look Ahead or Look Around? A Theoretical Comparison Between Autoregressive and Masked Pretraining

Peking University(北京大学);Sun Yat-Sen University(中山大学);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院)

Qi Zhang, Tianqi Du, Haotian Huang, Yifei Wang, Yisen Wang

AI总结:

本文从理论上比较自回归与掩码两种生成式自监督预训练范式,揭示二者在分类和生成任务上的优劣,并提出多样性增强自回归目标与变长掩码目标以互补改进。

摘要:

近年来,生成式自监督学习(SSL)范式的兴起在视觉、语言和多模态领域展现出令人瞩目的性能。尽管生成式 SSL 目标的多样化设计使其在下游任务中表现出不同特性,但对这些差异的理论理解仍基本未被探索。本文首次在两种主流生成式 SSL 范式——自回归 SSL 与掩码 SSL——之间建立理论比较。通过构建理论框架,我们阐明了自回归 SSL 和掩码 SSL 在分类与内容生成这两类主要评估任务中的优势与局限。研究结果表明,在分类任务中,与自回归 SSL 中目标 token 的固定位置相比,掩码 SSL 中目标 token 的灵活性促进了更多样本间连接,从而产生更优的聚类性能。在内容生成任务中,测试样本长度灵活,而掩码 SSL 中未掩码文本长度固定(自回归 SSL 的条件文本长度则是灵活的),这种错位阻碍了其生成性能。为了相互借鉴优势并缓解弱点,我们提出了多样性增强的自回归目标和变长掩码目标,显著提升了自回归 SSL 的分类性能以及掩码 SSL 的生成性能。代码可在 https://github.com/PKU-ML/LookAheadLookAround 获取。

英文摘要:

In recent years, the rise of generative self-supervised learning (SSL) paradigms has exhibited impressive performance across visual, language, and multi-modal domains. While the varied designs of generative SSL objectives lead to distinct properties in downstream tasks, a theoretical understanding of these differences remains largely unexplored. In this paper, we establish the first theoretical comparisons between two leading generative SSL paradigms: autoregressive SSL and masked SSL. Through establishing theoretical frameworks, we elucidate the strengths and limitations of autoregressive and masked SSL within the primary evaluation tasks of classification and content generation. Our findings demonstrate that in classification tasks, the flexibility of targeted tokens in masked SSL fosters more inter-sample connections compared to the fixed position of target tokens in autoregressive SSL, which yields superior clustering performance. In content generation tasks, the misalignment between the flexible lengths of test samples and the fixed length of unmasked texts in masked SSL (vs. flexible lengths of conditional texts in autoregressive SSL) hinders its generation performance. To leverage each other's strengths and mitigate weaknesses, we propose diversity-enhanced autoregressive and variable-length masked objectives, which substantially improve the classification performance of autoregressive SSL and the generation performance of masked SSL. Code is available at https://github.com/PKU-ML/LookAheadLookAround.

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

↑