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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Qi, Du, Tianqi, Huang, Haotian, Wang, Yifei, Wang, Yisen
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916308032946176
author Zhang, Qi
Du, Tianqi
Huang, Haotian
Wang, Yifei
Wang, Yisen
author_facet Zhang, Qi
Du, Tianqi
Huang, Haotian
Wang, Yifei
Wang, Yisen
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2407_00935
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Look Ahead or Look Around? A Theoretical Comparison Between Autoregressive and Masked Pretraining
Zhang, Qi
Du, Tianqi
Huang, Haotian
Wang, Yifei
Wang, Yisen
Machine Learning
Computation and Language
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.
title Look Ahead or Look Around? A Theoretical Comparison Between Autoregressive and Masked Pretraining
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2407.00935