Context-weighted Discrete Flow Matching

Daniil Cherniavskii, Daniel Severo, Karen Ullrich
7/23/2026
cs.LG
diffusion-flow

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Discrete flow matching provides a flexible framework for generative modeling on discrete structures. However, the standard factorized training objective exposes the model to targets of varying difficulty, mixing well-conditioned, predictable tokens with ambiguous, high-entropy ones.

Show full abstract

We empirically demonstrate that the uncertainty over the value of each token is closely related to the density of available context in its neighborhood. Motivated by this observation, we propose a simple modification to the underlying continuous-time Markov chain (CTMC) that incorporates local context information. Our context-weighted sampler improves generation quality with negligible computational overhead, while our scaled cross-entropy loss function reweights the training signal from different tokens and reduces generative perplexity by up to 63% on OpenWebText. Moreover, our approach matches a strong semi-autoregressive block diffusion baseline in quality while retaining the ability to perform generation in any order. These results highlight the role of local context as an important factor in discrete generative modeling and show that simple context-aware modifications can significantly improve both sampling and training efficiency.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{cherniavskii2026contextweighted,
  title  = {Context-weighted Discrete Flow Matching},
  author = {Daniil Cherniavskii and Daniel Severo and Karen Ullrich},
  year   = {2026},
  eprint = {2607.21427},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.21427v1}
}

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

Discussion