Manuscript Offprint

arXiv:2610.33766

StateWise: Teaching Language Models to Track and Obey Evolving Constraints in Multi-Turn Dialogue

Samarth Varshney, Ritu Yadav

ABSTRACT

Users of conversational assistants rarely state all requirements up front: they add constraints, amend them, withdraw them, digress, and return. Instruction-tuned large language models (LLMs) degrade in this regime in two ways—active constraints stop being honored as turns accumulate (persistence failure), and withdrawn constraints keep being enacted (relapse)—and the only existing repair we are aware of is an external ledger that re-injects a compiled specification at every turn. To tackle this, we propose StateWise, a self-improving approach that teaches a single LLM to maintain its own revisable constraint state. We formalize evolving-constraint dialogue as edit trajectories over a typed state with tombstones for revoked constraints, so that persistence and relapse are measured by executable checkers and ground-truth states are compiled for free. StateWise first fine-tunes the LLM on two complementary skills, summarizing a dialogue into its constraint state and responding conditioned on that state; it then self-trains on trajectories the model itself generates, keeping only turns that pass an exact round-trip check against the compiled state. This recipe teaches 7–8B models to track the state almost perfectly but, surprisingly, not to obey it: on Llama-3.1-8B every supervised variant roughly doubles relapse, and on Qwen2.5-7B none reduces it. We therefore add a preference stage on self-generated relapse contrasts, in which the rejected response enacts a revoked rule and the chosen response passes the round-trip check. Experiments on two backbones with held-out constraint families and unseen phrasings show that StateWise cuts relapse by 8–22 points relative to supervised self-training, lifts conversation success by 8–19 points over the backbone, and beats an oracle compiled-ledger baseline on relapse with no inference-time scaffolding. We also characterize the recipe’s cost on cumulative-constraint and single-turn benchmarks and study weight interpolation as a mitigation.

1 INTRODUCTION

Conversational assistants are asked to follow instructions that evolve. A user asks for a summary in bullet points, then wants it under a hundred words, then drops the bullets, digresses to an unrelated question, and returns to the summary expecting the word limit to still hold and the bullets to be gone. Multi-turn instruction following is now benchmarked at scale: Multi-IF (He et al., 2024) extends IFEval (Zhou et al., 2023) to three turns and finds accuracy falling with every turn; SysBench (Qin et al., 2025) measures the instability of system-message adherence; EvolIF (Jia et al., 2026) constructs evolving dialogues with constraint changes and reports deficiencies in failure recovery. A parallel line isolates a specific pathology: when a user withdraws a constraint, the model often keeps enacting it, a failure that ReBIND (Zhu, 2026) names revocation inertia and shows rising from 0.01 to 0.40 for an 8B model as the constraint load grows.

Training-side work has addressed adjacent problems. Reinforcement learning with verifiable rewards improves single-turn multi-constraint following (Pyatkin et al., 2025); label-free variants derive rewards from the instructions themselves (Ren et al., 2026); curriculum RL with abstention rewards mitigates the lost-in-conversation gap for information revealed across turns (Laban et al., 2026; Li et al., 2026). None of these trains the model to hold a revisable constraint state across edits. To our knowledge the only published repair for relapse is inference-time: ReBIND keeps an external ledger with tombstones and compiles the net specification into every request, at roughly 1.5×1.5 \times delivery cost and only for code.

We propose StateWise, a self-improving approach that teaches a single LLM to maintain its own revisable constraint state. Our design follows a recipe proven effective for label-free domain adaptation: SimRAG (Xu et al., 2025) fine-tunes one LLM on complementary skills, uses the same model to synthesize training data, and keeps only examples that survive a round-trip consistency check. StateWise transposes this recipe to evolving-constraint dialogue. The complementary skills are constraint-state summarization and state-conditioned response generation; the unlabeled resource is single-turn verifiable constraints, which we compose into scripted ADD/AMEND/REVOKE trajectories; and the round-trip check is exact equality between the model's emitted state and the compiled ground truth, together with executable checkers and a relapse guard. Because the state is compiled from the edit history, every training signal and metric in this paper is verifiable without human annotation.

The recipe teaches the state and, surprisingly, fails to teach obedience to it. On Llama-3.1-8B-Instruct the self-improved model emits the correct state, including the correct tombstones, for 92% of in-distribution turns, and then enacts the revoked rule anyway at more than twice the backbone's rate. On Llama the same doubling of relapse appears in every supervised variant we trained, with or without state supervision, and even single-turn constraint training raises relapse: making a model better at obeying constraints makes withdrawn constraints stickier. Rejection-sampling SFT removes relapsed examples from the training set but supplies no signal against relapse. We therefore add a second self-improvement stage that turns the round-trip check into a preference signal: the model's own relapsed generations become rejected responses, its round-trip-clean generations become chosen responses, and a short DPO run on these self-labeled contrasts cuts relapse by 8–22 points, to below the backbone and below an oracle compiled-ledger system, on two backbones, two training seeds and unseen phrasings. Ablations show that the relapse-specific contrast is necessary (preference pairs about active constraints alone raise relapse) and that label-shuffled pairs do nothing, so the gain is the signal, not the extra training.

Our contributions are summarized as follows:

• We formalize evolving-constraint dialogue as edit trajectories over a typed constraint state with tombstones, with executable metrics for persistence and relapse (the latter restricted to constraints whose chance-satisfaction rate is measured to be low), and show with a preregistered inference-only diagnostic that an 8B model fails on both and that prompting it to write its own state makes it worse.

• We propose StateWise, a self-improving two-stage recipe with a verifiable round-trip filter and a relapse-contrastive preference stage, requiring no proprietary model and no human dialogue annotation, and we report the negative intermediate result that motivates the preference stage: tracking a state and obeying it are separable skills, and self-training with a filter teaches only the first.

• Experiments on two backbones, held-out constraint families, unseen phrasings and public benchmarks, all under gates fixed before the runs, show relapse reductions of 8–22 points relative to supervised self-training and conversation-success gains of 8–19 points over the backbone; we also report the recipe’s cost on cumulative-constraint and single-turn benchmarks and show that weight interpolation with the backbone removes that cost at the price of the relapse gain, exposing a controllable trade-off.

References (21)