Guiding Text Generation with Constrained Beam Search in đ¤ Transformers
Related stories
How to generate text: using different decoding methods for language generation with Transformers
Making Grid Beam Search Less Greedy
arXiv:2609.39368v1 Announce Type: new Abstract: A common formalism for constraining the output of autoregressive text generation models involves lexical constraints, words or phrases which are requir...
DiffusionGemma: 4x faster text generation
Faster Text Generation with Self-Speculative Decoding
Assisted Generation: a new direction toward low-latency text generation
Train and Fine-Tune Sentence Transformers Models
Hyperparameter Search with Transformers and Ray Tune
Suffix-Constrained Greedy Search Algorithms for Causal Language Models
arXiv:2603.01243v3 Announce Type: replace Abstract: Large language models (LLMs) are powerful tools that have found applications beyond human-machine interfaces and chatbots. Beside free-form generat...
HiFlow: Hierarchical Feedback-Driven Optimization for Constrained Long-Form Text Generation
The paper introduces LoopWeaver, a hierarchical workflow for constrained longâform text generation that addresses the multiâobjective optimization problem of balancing global structure, local coherence, and constraint satisfaction. LoopWeaver consists of two offline preferenceâoptimization stages: constraintâaware planning to produce structured plans, and feasibility filtering to remove invalid plans, followed by a shared deterministic reward that generates preference pairs for both planâlevel and generationâlevel direct preference optimization (DPO). During inference, the system remains feedâforward, generating and revising a complete plan, filtering it, and then producing text segments conditioned on the current subâplan and running narrative, achieving improved constraint accuracy and text quality across four LongGenBenchâstyle scenarios on multiple openâsource backbones.