首页 > AI前沿 > Repurposing Pre-trained LLMs as High Fidelity Continuous Text Autoencoders

Repurposing Pre-trained LLMs as High Fidelity Continuous Text Autoencoders

arXiv机器学习 2026-09-23 10:32 5 阅读 查看原文

Next-token prediction has enabled highly fluent autoregressive language models, but it represents global structure only indirectly through sequential factorization.

In contrast, high-fidelity autoencoders have become a standard primitive in image generation, enabling generative models to operate over continuous latent spaces; text lacks a comparably faithful continuous representation.

We propose LLMAE

We propose LLMAE, a method for repurposing a pretrained decoder-only language model as a continuous text autoencoder by exposing an intermediate fixed-length latent bottleneck within its internal activations.

Instantiated with a parameter-efficient 270M Gemma 3 model

Instantiated with a parameter-efficient 270M Gemma 3 model, LLMAE uses structured attention masks, LoRA adaptation, and KL regularization to learn an autoencoding interface that leverages the generative prior of the original LLM.

Training and Performance

We train LLMAE to reconstruct text sequences up to 1024 tokens, significantly improving on this task to achieve near-perfect reconstruction.

Downstream Utility

Furthermore, we demonstrate the downstream utility of this representation by training a latent text diffusion model for detailed image captioning using the learned LLMAE autoencoder.

By mapping text into a fixed-length continuous latent space, our approach provides an effective substrate for downstream adaptation while benefiting from the fluency of the original LLM.