TrajCFG: Token-Wise Classifier-Free Guidance via Denoising Trajectory Feedback

Jingyu Liu, Hao Jiang, Yikang Ding, Huafeng Shi, Xu Yang +4 more
10/9/2026
cs.CV

No confident code implementation found for this paper.

Abstract

Classifier-free guidance (CFG) typically applies a shared scale to all latent tokens, although their velocity predictions evolve differently during sampling. We introduce Trajectory-Adaptive Classifier-Free Guidance (TrajCFG), a training-free method for flow-matching models that adapts token-wise guidance using historical changes in guided velocity direction. TrajCFG maps this feedback to bounded scales, assigning stronger guidance to larger directional changes and weaker guidance to more consistent directions. It combines adjacent-step and interval-normalized longer-span feedback, reusing standard CFG predictions without additional model evaluations. Controlled diagnostics and ablations examine the roles of directional feedback, token-wise allocation, and history-span fusion. Experiments on text-to-video, image-to-video, text-to-audio-video, text-to-image, and image-to-3D generation show improvements over base samplers across multiple backbones. For text-to-video generation, TrajCFG improves VBench Total scores by 0.30-0.75 points over the strongest evaluated baseline on each of three backbones. These results support historical directional feedback as a broadly applicable signal for fine-grained guidance allocation. The project page is available at https://jyliu-98.github.io/trajcfg-project-page/.

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. Any repos shown below are weak matches — 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{liu2026trajcfg,
  title  = {TrajCFG: Token-Wise Classifier-Free Guidance via Denoising Trajectory Feedback},
  author = {Jingyu Liu and Hao Jiang and Yikang Ding and Huafeng Shi and Xu Yang and Xiaoqiang Liu and Guoxin Zhang and Pengfei Wan and Kun Gai},
  year   = {2026},
  eprint = {2610.14153},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.14153v1}
}

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

Discussion