ELF: Embedded Language Flows

Keya Hu, Linlu Qiu, Yiyang Lu, Hanhong Zhao, Tianhong Li +3 more
5/11/2026
cs.CLcs.AIcs.LG

No official code found. Best implementation: Xrenya/ELF (3 stars, MIT, PyTorch, last commit 2026-05-19). 2 more below.

Abstract

Diffusion and flow-based models have become the de facto approaches for generating continuous data, e.g., in domains such as images and videos. Their success has attracted growing interest in applying them to language modeling. Unlike their image-domain counterparts, today's leading diffusion language models (DLMs) primarily operate over discrete tokens. In this paper, we show that continuous DLMs can be made effective with minimal adaptation to the discrete domain. We propose Embedded Language Flows (ELF), a class of diffusion models in continuous embedding space based on continuous-time Flow Matching. Unlike existing DLMs, ELF predominantly stays within the continuous embedding space until the final time step, where it maps to discrete tokens using a shared-weight network. This formulation makes it straightforward to adapt established techniques from image-domain diffusion models, e.g., classifier-free guidance (CFG). Experiments show that ELF substantially outperforms leading discrete and continuous DLMs, achieving better generation quality with fewer sampling steps. These results suggest that ELF offers a promising path toward effective continuous DLMs.

View on arXivView PDF

Code Implementations(3)

Xrenya/ELFCommunity25%
PyTorchMIT

ELF: Embedded Language Flows (Unofficial PyTorch port)

30PythonMay 13, 20265 months agoMIT
diffusion-language-modelsflow-matchingpytorch

Layered study of ELF: Embedded Language Flows (Hu et al. 2026, arxiv:2605.10938). Continuous flow matching in a pretrained embedding space with weight-tied unembedding for final-step discretization.

10TeX, PythonMay 14, 20265 months ago
MIT

Unofficial implement of ELF: Embedded Language Flows (arXiv:2605.10938) with torch

00PythonMay 14, 20265 months agoMIT

Similar Papers

Cite this paper

@article{hu2026elf,
  title  = {ELF: Embedded Language Flows},
  author = {Keya Hu and Linlu Qiu and Yiyang Lu and Hanhong Zhao and Tianhong Li and Yoon Kim and Jacob Andreas and Kaiming He},
  year   = {2026},
  eprint = {2605.10938},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.10938v1}
}

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/2605.10938.svg)](https://codeofpaper.com/paper/2605.10938)

Discussion