NeurIPS 2026QuestionsPapersAreasAboutMarkdown

LoopWeaver: Weaving Feedback Loops into Hierarchical Generation under Constraints

Yifan Zhu, Guanting Chen, Bing Wei, Haoran Luo

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: LLM Reasoning, Memory & RAG › Test-Time Scaling and Optimization · Type: new method · Keywords: constrained text generation, hierarchical planning, feedback loops, multi-objective optimization, natural language generation

Summary

LoopWeaver introduces a hierarchical, feedback-driven closed-loop optimization framework that jointly balances global structure, local coherence, and constraints in long-text generation.

Explained to a 5-year-old

When we write long stories, we need to follow rules and keep the story organized. The computer program watches how it's writing and uses what it learned to fix mistakes. It splits the work into two parts: planning the big picture and writing the small details. By talking back and forth between planning and writing, it makes the story better and follows the rules. This helps make stories that are both interesting and correct.

Explained to a 5-year-old, longer

When we write a long text, we want it to be organized and follow certain rules. Large language models are computer programs that help us write. They have to balance many things at once, like making the story make sense and keeping the rules. Old ways of writing just follow a fixed plan, which can miss some problems. The new idea is to make the writing process like a loop where the computer checks its work. First, it plans the big structure of what will be written. Then it writes the details, but after each step it looks back at the plan. If something doesn't fit the rules, it changes the plan or the writing. This back-and-forth helps both the overall shape and the small parts become better. It also makes sure the final text follows all the given constraints. By doing this, the computer can create longer texts that are both coherent and correct. This method works for many different kinds of writing tasks.

For a technical reader

The paper addresses the difficulty of generating long texts that must satisfy multiple constraints while staying coherent. Existing pipelines treat planning and generation as separate, static steps, which limits their ability to optimize both globally and locally. The proposed solution models generation as a hierarchical closed-loop system where planning and generation iteratively exchange feedback. It incorporates constraint-aware planning, feasibility filtering, and reward-based optimization to propagate corrections across stages. This unified feedback-coupled approach yields measurable gains in text quality and constraint adherence across various models.

Problem

Generating long texts that satisfy multiple constraints while maintaining global structure and local coherence is a difficult multi-objective optimization problem for large language models.

Method

The approach models generation as a hierarchical, feedback-driven closed-loop optimization, integrating constraint-aware planning, feasibility filtering, and reward-based preference optimization to propagate feedback between planning and generation stages.

Results

The approach achieves significant improvements in text quality and constraint satisfaction across various models.

Contributions

It introduces a unified feedback-coupled optimization paradigm that enables iterative feedback between planning and generation, addressing the lack of cross-stage collaboration in prior work.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction