{"id": "http://arxiv.org/abs/2604.11748v3", "title": "LangFlow: Continuous Diffusion Rivals Discrete in Language Modeling", "abstract": "Continuous diffusion has been the foundation of high-fidelity, controllable, and few-step generation of many data modalities such as images. However, in language modeling, prior continuous diffusion language models (DLMs) lag behind discrete counterparts due to the sparse data space and the underexplored design space. In this work, we close this gap with LangFlow, the first continuous DLM to rival discrete diffusion, by connecting embedding-space DLMs to Flow Matching via Bregman divergence, alongside three key innovations: (1) we derive a novel ODE-based NLL bound for principled evaluation of continuous flow-based language models; (2) we propose an information-uniform principle for setting the noise schedule, which motivates a learnable noise scheduler based on a Gumbel distribution; and (3) we revise prior training protocols by incorporating self-conditioning, as we find it improves both likelihood and sample quality of embedding-space DLMs with effects substantially different from discrete diffusion. Putting everything together, LangFlow rivals top discrete DLMs on both the perplexity (PPL) and the generative perplexity (Gen. PPL), reaching a PPL of 30.0 on LM1B and 24.6 on OpenWebText. It even exceeds autoregressive baselines in zero-shot transfer on 4 out of 7 benchmarks. LangFlow provides the first clear evidence that continuous diffusion is a promising paradigm for language modeling. Homepage: https://github.com/nealchen2003/LangFlow", "published_at": "2026-04-13T17:21:41+00:00", "source_updated_at": null, "source_url": "https://arxiv.org/abs/2604.11748v3", "source_hash": "c3f139a77757c1fad3eac63b1c1f8fc0287ba6f605cb6fb96323a8ea856c33c4", "source_version": "v3", "full_text_available": true, "evidence_kind": "full_text_excerpt", "analysis_scope": "full_text_excerpt", "scope": "core", "topics": ["discrete-diffusion", "controllability"], "code_url": "https://github.com/nealchen2003/LangFlow", "has_code": true, "indexable": true, "authors": [], "related_ids": ["http://arxiv.org/abs/2609.04531v1", "http://arxiv.org/abs/2609.04010v1", "http://arxiv.org/abs/2609.00495v1"], "related_work": {"version": "related-work-v1", "status": "not_assessed", "reason": "missing_context", "items": []}, "review": null, "explanations": {}, "full_article_summary": {"format": "research_guide_v14", "analysis_scope": "full_article_map_reduce", "source_hash": "c3f139a77757c1fad3eac63b1c1f8fc0287ba6f605cb6fb96323a8ea856c33c4", "source_url": "https://arxiv.org/abs/2604.11748v3", "source_version": "v3", "revision_id": "77874a126966d75de3a3ab993521c66e28ee96daf5a1b7e791f53fa2e270996f", "canonical_text_hash": "93fde7c93632de0c8b854504075cc021bbbaf072d5429efd26b6506d0bb535be", "prompt_version": "full-article-research-guide-v14", "sections": {"verdict": {"ru": "LangFlow — убедительный метод непрерывной диффузии для языка: он связывает Flow Matching с предсказанием токенов, получает конкурентную perplexity и превосходит перечисленные базовые модели в ряде условий. Однако преимущество не универсально: остаются более низкая энтропия образцов и нерешённые вопросы масштабирования.", "en": "LangFlow is a credible continuous-diffusion method for language: it connects Flow Matching to token prediction, achieves competitive perplexity, and outperforms listed baselines under several conditions. The advantage is not universal, however: sample entropy is lower and scaling effects remain unresolved."}, "main_idea": {"ru": "Основная идея — обучать вероятности токенов с помощью cross-entropy как принципиальной Bregman-формулировки Flow Matching, а затем превращать их в непрерывный денойзер через ожидаемое embedding-представление токена. Это устраняет необходимость напрямую регрессировать embeddings и объединяет токеновую likelihood-цель с ODE-потоком.", "en": "The core idea is to train token probabilities with cross-entropy as a principled Bregman formulation of Flow Matching, then convert them into a continuous denoiser through the expected token embedding. This avoids direct embedding regression and couples token-likelihood training to the ODE flow."}, "claims": {"ru": "Метод заявляет четыре изменения относительно прежних подходов: conditioning по логарифмическому отношению шума к сигналу γ вместо произвольного времени; информационно-равномерное расписание шума; self-conditioning; и детерминированную ODE-оценку верхней границы NLL. На LM1B указана PPL 30.0, на OpenWebText — 24.6; против авторегрессионной модели превосходство заявлено на 4 из 7 zero-shot задач, против MDLM — на 3 из 7.", "en": "The method introduces four changes over prior approaches: conditioning on the log noise-to-signal ratio γ rather than an arbitrary time variable; information-uniform noise scheduling; self-conditioning; and deterministic ODE evaluation of an NLL upper bound. Reported perplexity is 30.0 on LM1B and 24.6 on OpenWebText; it beats the autoregressive model on 4 of 7 zero-shot tasks and MDLM on 3 of 7."}, "mechanism": {"ru": "Представление и состояние: токены переводятся в нормированные embeddings, масштабированные на √768; зашумлённое состояние имеет вид zγ=αγz+σγϵ, где γ=log(σ²/α²), а расписание является variance-preserving.\n\nАрхитектура: 130M DiT, 12 attention-слоёв, 12 голов, hidden size 768 и 128-мерное time/noise embedding. Добавлены self-conditioning projections и tokenwise log p(zγ|x) logit bias, причём bias наращивается за первые 5000 итераций; существенного увеличения числа параметров не заявлено.\n\nОбучение: выбирается γ по low-discrepancy или learnable Gumbel scheduler; модель предсказывает распределение токенов, оптимизируемое cross-entropy, при необходимости используя предыдущее предсказание как self-conditioning. Распределение шума стремится быть пропорциональным производной posterior entropy по γ; дополнительно оптимизируется scheduler loss. Cross-entropy интерпретируется как negative conditional log-likelihood факторизованного приближения к posterior токенов.\n\nДенойзинг и likelihood: вероятности токенов преобразуются в ожидаемый embedding. Euler ODE стартует с Gaussian noise и итеративно обновляет latent embedding; в конце выбирается argmax-токен. Детерминированность ODE поддерживает оценку likelihood через divergence-based NLL upper bound и оставляет возможность few-step distillation.\n\nВоспроизведение: (1) нормировать и масштабировать token embeddings; (2) сэмплировать γ и строить zγ; (3) обучать DiT предсказывать token probabilities cross-entropy с optional self-conditioning; (4) обучать entropy-based scheduler; (5) интегрировать Euler ODE от Gaussian noise; (6) сравнить PPL, entropy и zero-shot при фиксированном NFE.", "en": "Representation and state: tokens are mapped to normalized embeddings scaled by √768; the noisy state is zγ=αγz+σγϵ, with γ=log(σ²/α²) and a variance-preserving schedule.\n\nArchitecture: a 130M DiT with 12 attention layers, 12 heads, hidden size 768, and 128-dimensional time/noise embeddings. It adds self-conditioning projections and a tokenwise log p(zγ|x) logit bias, ramped over the first 5,000 iterations; no material parameter increase is reported.\n\nTraining: γ is sampled with a low-discrepancy or learnable Gumbel scheduler; the model predicts token probabilities and minimizes cross-entropy, optionally using a previous prediction for self-conditioning. Noise density is intended to be proportional to posterior-entropy reduction with respect to γ; a scheduler loss is also optimized. Cross-entropy is interpreted as the negative conditional log-likelihood of a factorized approximation to the endpoint token posterior.\n\nDenoising and likelihood: token probabilities are converted into an expected embedding. Euler ODE sampling starts from Gaussian noise and iteratively updates the latent embedding; the final token is selected by argmax. Deterministic ODE dynamics support a divergence-based NLL upper bound and leave room for few-step distillation.\n\nReproduction: (1) normalize and scale token embeddings; (2) sample γ and construct zγ; (3) train the DiT with token cross-entropy and optional self-conditioning; (4) train the entropy-based scheduler; (5) integrate the Euler ODE from Gaussian noise; (6) compare perplexity, entropy, and zero-shot results at fixed NFE."}, "evidence": {"ru": "На OWT при 1024 NFE LangFlow сообщает Gen. PPL 36.53 против 77.69 у Duo, 99.90 у SEDD Uniform и 104.85 у MDLM; при 64 NFE — 80.34 против 85.62 у Duo и 143.88 у MDLM. На LM1B Gen. PPL меняется от 179.60 при 16 NFE до 92.24 при 128 NFE; на OWT заявлены 36.53 при 1024 NFE и 80.34 при 64 NFE. Ablation self-conditioning снижает Gen. PPL с 154.2 до 81.5 и PPL с 49.0 до 30.0 на LM1B; Gumbel scheduler снижает generative PPL примерно с 1000 до 154.2. Авторы также сообщают превосходство над авторегрессионной моделью на 4 из 7 zero-shot задач и над MDLM на 3 из 7. Низкая entropy сохраняется: 5.25 против 5.55 у Duo при 1024 NFE и 5.51 против 5.57 при 64 NFE. Прямое превосходство не установлено на всех benchmark-задачах, а entropy не подтверждена как достаточная самостоятельная мера качества.", "en": "On OWT at 1024 NFE, LangFlow reports Gen. PPL 36.53 versus 77.69 for Duo, 99.90 for SEDD Uniform, and 104.85 for MDLM; at 64 NFE, it reports 80.34 versus 85.62 for Duo and 143.88 for MDLM. On LM1B, Gen. PPL ranges from 179.60 at 16 NFE to 92.24 at 128 NFE; on OWT, 36.53 is reported at 1024 NFE and 80.34 at 64 NFE. The self-conditioning ablation reduces Gen. PPL from 154.2 to 81.5 and PPL from 49.0 to 30.0 on LM1B; the Gumbel scheduler reduces generative PPL from about 1000 to 154.2. The authors also report beating the autoregressive model on 4 of 7 zero-shot tasks and MDLM on 3 of 7. Entropy remains lower: 5.25 versus Duo’s 5.55 at 1024 NFE and 5.51 versus 5.57 at 64 NFE. Universal superiority across benchmarks is not established, and entropy is not validated as a sufficient standalone quality metric."}, "applicability": {"ru": "Метод особенно применим к исследованиям непрерывной диффузии текста, где нужны token-level likelihood training, детерминированная генерация и возможность оценивать качество при разных NFE. Он подходит для моделей сопоставимого масштаба с указанной DiT-конфигурацией и для сравнений с masked/discrete diffusion и авторегрессионными baseline. ODE-структура также делает его перспективным для последующей distillation в few-step sampling.", "en": "The method is most applicable to continuous text-diffusion research requiring token-level likelihood training, deterministic generation, and evaluation across sampling budgets. It is suitable for models near the reported scale and DiT configuration, and for comparisons with masked/discrete diffusion and autoregressive baselines. Its ODE structure also makes it promising for later few-step sampling distillation."}, "limitations": {"ru": "Наблюдается более низкая entropy образцов, которую авторы связывают с глобальным frequency bias: отдельные частотные content words могут повторяться между предложениями. Возможны тонкие эффекты при больших масштабах, но они не разрешены представленными данными. MSE-регрессия embeddings приводит к коллапсу token representations, однако это показывает риск альтернативной цели, а не полностью характеризует все варианты дизайна. Превосходство ограничено конкретными наборами данных, масштабом 130M и указанными NFE; общая масштабируемость и универсальность не доказаны.", "en": "Generated samples have lower entropy, which the authors associate with global frequency bias: highly frequent content words may recur across separate sentences. Subtle effects at larger scales remain unresolved by the supplied evidence. MSE embedding regression collapses token representations, but this demonstrates a risk of that alternative objective rather than characterizing every possible design. The reported gains are limited to the stated datasets, 130M scale, and NFE settings; broad scalability and universality are not established."}, "next_action": {"ru": "Провести контролируемое исследование масштабирования и качества выборки: (1) обучить LangFlow и matched discrete/autoregressive baselines на двух-трёх размерах модели; (2) зафиксировать данные, optimizer и compute budget; (3) измерить PPL, zero-shot transfer, entropy и частотный bias при нескольких NFE; (4) отдельно сравнить uniform, entropy-based и Gumbel scheduling; (5) проверить, сохраняется ли преимущество при росте масштаба.", "en": "Run a controlled scaling and sampling-quality study: (1) train LangFlow and matched discrete/autoregressive baselines at two or three model sizes; (2) hold data, optimizer, and compute budget fixed; (3) measure perplexity, zero-shot transfer, entropy, and frequency bias at several NFE values; (4) separately compare uniform, entropy-based, and Gumbel scheduling; (5) test whether the advantage persists as scale increases."}}, "source_coverage": {"canonical_text_hash": "93fde7c93632de0c8b854504075cc021bbbaf072d5429efd26b6506d0bb535be", "covered_chunks": 9, "map_input_digest": "529da64287a99ca3db7d1a0fe16bd06c118890085da9b1ad4dbe8d7ca18ff06b", "prompt_version": "full-article-research-guide-v14", "revision_id": "77874a126966d75de3a3ab993521c66e28ee96daf5a1b7e791f53fa2e270996f", "total_chunks": 9}}, "resources": {"version": "paper-resources-v1", "source_hash": "c3f139a77757c1fad3eac63b1c1f8fc0287ba6f605cb6fb96323a8ea856c33c4", "evidence_kind": "full_text_excerpt", "availability": "not_checked", "limited": true, "items": [{"origin": "source_excerpt", "evidence": "tive perplexity (Gen. PPL), reaching a PPL of 30.0 on LM1B and 24.6 on\nOpenWebText. It even exceeds autoregressive baselines in zero-shot transfer on 4\nout of 7 benchmarks. LangFlow provides the first clear evidence that continuous\ndiffusion is a promising paradigm for language modeling. Homepage:\n\nhttps://github.com/nealchen2003/LangFlow\n\n### 1 Introduction\n\nDiffusion models (Sohl-Dickstein et al., 2015; Song & Ermon, 2019; Ho et al., 2020) have achieved\nremarkable success in generating data with continuous modalities, such as images (Dhariwal &\nNichol, 2021; Rombach et al., 2022), videos (Ho et al., 2022; Blattmann et al., 2023), ", "url": "https://github.com/nealchen2003/LangFlow", "kind": "code", "span": [1499, 2139], "evidence_hash": "f423b9e0f9aa031e39bf5e7d0a3f40af4e6f04accddc07fc79f696e8e6f54644"}, {"origin": "source_excerpt", "evidence": "\nθ\n(za, a)\n\n#\n\n### + LD\n\n2 ,\n\n(43)\n\nwhich concludes the proof.\n\n### C Experimental Details\n\nC.1\nModel architecture\n\nWe train AR, SEDD, MDLM, and Duo with the Duo codebase §, UDLM with its codebase ¶, and\nPlaid with its codebase ||. All retrained baselines are trained with their own default setups. The\n\n§https://github.com/s-sahoo/duo\n¶https://github.com/kuleshov-group/discrete-diffusion-guidance\n||https://github.com/igul222/plaid\n\n17\n\n## Page 18\n\nnetwork in AR, SEDD, MDLM, UDLM, and Duo is the same 130M modified DiT architecture, with\n12 attention layers, 12 heads, a hidden dimension of 768, and a time embedding of 128 dimension.\n\nO", "url": "https://github.com/s-sahoo/duo", "kind": "code", "span": [59001, 59641], "evidence_hash": "30a44abf6e30d89a339bad7f6bc28f5080abb475ca83b170b4591f0c43ff5f8e"}]}, "slug": "2604.11748-langflow-continuous-diffusion-rivals-discrete-in-language-modeling"}