Autoregressive Pre-Training on Pixels and Texts

Yekun Chai, Qingyi Liu, Jingwu Xiao, Shuohuan Wang, Yu Sun +1 more
4/16/2024
cs.CLcs.CV

Official code: ernie-research/pixelgpt (10 stars, MIT, last commit 2025-06-06).

Abstract

The integration of visual and textual information represents a promising direction in the advancement of language models. In this paper, we explore the dual modality of language--both visual and textual--within an autoregressive framework, pre-trained on both document images and texts. Our method employs a multimodal training strategy, utilizing visual data through next patch prediction with a regression head and/or textual data through next token prediction with a classification head. We focus on understanding the interaction between these two modalities and their combined impact on model performance. Our extensive evaluation across a wide range of benchmarks shows that incorporating both visual and textual data significantly improves the performance of pixel-based language models. Remarkably, we find that a unidirectional pixel-based model trained solely on visual data can achieve comparable results to state-of-the-art bidirectional models on several language understanding tasks. This work uncovers the untapped potential of integrating visual and textual modalities for more effective language modeling. We release our code, data, and model checkpoints at \url{https://github.com/ernie-research/pixelgpt}.

View on arXivView PDF

Code Implementations(1)

MIT

[EMNLP'24] Autoregressive Pre-Training on Pixels and Texts

101Shell, PythonApr 23, 20241 years agoMIT

Cite this paper

@article{chai2024autoregressive,
  title  = {Autoregressive Pre-Training on Pixels and Texts},
  author = {Yekun Chai and Qingyi Liu and Jingwu Xiao and Shuohuan Wang and Yu Sun and Hua Wu},
  year   = {2024},
  eprint = {2404.10710},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.10710v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.10710.svg)](https://codeofpaper.com/paper/2404.10710)

Discussion