arXiv:2610.10738cs.CLOct 2026

Manuscript Offprint

arXiv:2610.10738

Lossy Compressive Text Autoencoders

Vinko Sabolčec, Angelos Katharopoulos, David Grangier

Vinko Sabolčec, Angelos Katharopoulos, David Grangier

Apple

Our work explores learning a compressed latent representation of text, at the intersection of data compression and representation learning. We propose an autoencoder architecture that performs residual downscaling and upscaling of hidden representations along the time axis, with a residual low-dimension discrete bottleneck. We analyze our approach for different quantization methods, training objectives, and datasets. For different levels of compression, we evaluate the similarity between the original and reconstructed text both at the surface-level (BLEU) and at the semantic-level (LLM-based judge). Additionally, we evaluate our models on downstream question-answering and semantic text similarity benchmarks. Our approach results in compressed representations which are on par with lossless text compression algorithms at 2.24 bits per byte on web text data, while having good reconstruction and downstream task performance.

VS: Work done while interning at Apple.

AK: Work done while at Apple.

Correspondence: Vinko Sabolčec: vinko.sabolcec@epfl.ch; David Grangier: grangier@apple.com

1 Introduction

The ability to represent information efficiently is at the heart of both data compression and artificial intelligence. Whether the goal is compression per se or generating the next-token prediction using a model trained on a large corpus, the underlying challenge is the same: learning to represent data in a way that preserves its essential meaning in the smallest possible space (Delétang et al., 2024). While the current language models (LMs) have demonstrated the ability to learn highly useful representations, these representations are often massive in scale compared to the raw information they represent. Furthermore, compression is usually treated as a separate utility which remains disconnected from the structure of the representation space.

In this work, we explore the joint goal of representation learning and data compression using neural models. While there is existing work focusing on compression, such as lossless text compressors using entropy coding on the next-token probability distribution (Bellard, 2024; Tacconelli, 2026) and context compression for faster inference (Zaheer et al., 2021; Li et al., 2026), or representation learning, such as embedding (Zhang et al., 2025) or sequence-to-sequence models (Duquenne et al., 2023), these methods treat representation learning and data compression as disconnected tasks. On the other hand, we explore a paradigm of learning expressive representations that are compressed by design. In other words, we ask: how can we train a general-purpose lossy text reconstruction model that preserves semantic information while achieving a high compression rate?

In summary, we make the following contributions:

  • We propose a Transformer-based (Vaswani et al., 2023) text autoencoder (AE) architecture that performs residual downscaling and upscaling of hidden representations along the time axis, uses a residual bottleneck projection, and quantization to produce compressed latent representations. We achieve 2.24 bits per byte compression rate using a 4.3B parameter autoencoder model on web text data which, to the best of our knowledge, is the highest compression rate for a text autoencoder model in literature.

  • We explore different quantization methods, training objectives, and datasets for autoencoder models with compressed latent representations and analyze their effects on the trained models, as well as evaluate the text reconstructions and representations on downstream question-answering and semantic

text similarity tasks. We find that there is a reconstruction-representation trade-off, with our text autoencoder models favoring reconstruction over representation.

• We show that common text similarity metrics, such as BLEU (Papineni et al., 2002), Rouge (Lin, 2004), chrF (Popović, 2015), and BERTScore (Zhang et al., 2020), do not reliably measure semantic similarity between two texts, and we introduce and evaluate an LLM judge based on an adaptation of Multidimensional Quality Metrics (MQM; Lommel et al. 2024; Strandvik 2025).