When people talk to a retrieval-augmented assistant (a language model that looks up documents before answering), they rarely state everything they want in one message. "I'm vegetarian" comes in turn one, "no nuts" in turn three, and "actually dairy is fine now" in turn five. Each answer has to respect every rule still in force. Two things currently go wrong. Dense retrievers, which match queries to documents by embedding similarity, tend to return exactly the documents that mention the thing the user ruled out. The model then writes fluent replies that quietly break an earlier rule. We propose that the assistant keep a small formal record of the user's live constraints, which we call a constraint ledger. Each turn is translated into logic and added to the ledger, with retractions removed. A symbolic solver then uses the ledger to filter retrieved documents and to veto draft replies before they are shown to the user.
The open question is whether the formal part earns its cost. A plain-language running list of constraints, kept by the language model itself, might do just as well. Our central claim is narrow and testable. A natural-language ledger should match the symbolic one when few constraints interact. It should fall away as the number of interacting constraints grows and when constraints are retracted, mirroring the sharp accuracy drop at four or more reasoning steps that FOLIO documents for single-turn logic. The second ingredient targets the main weakness of translating language into logic, which is a translation that runs without error but means the wrong thing. We catch these by sampling two independent formalizations of each turn and asking the solver whether they are logically equivalent. When they disagree, the assistant asks the user a clarifying question instead of guessing.
What exists and what is missing
The pieces exist separately, each in a single-turn or closed-book setting.
On retrieval, NS-IR shows that dense retrievers fall into a co-occurrence trap on negated queries. It fixes this by translating a single query and its candidate documents into first-order logic and reranking, raising MAP on its NegConstraint set from 36.3 (BGE) to 53.3. It never handles constraints spread over turns, coreference, or retraction. NS-IR motivates our retrieval filter and supplies the evidence that semantic similarity alone fails here.
On reasoning, Logic-LM, LINC, and LTRAG translate whole puzzles into solver code. LTRAG adds retrieval of worked translation examples and repair examples, reaching 56.71% on AR-LSAT with GPT-4o against Logic-LM's 43.04%. These systems supply our formalization method, which we reuse. LTRAG also states the constraint we design around: it can fix code that crashes but not silent semantic errors.
Two pieces of conversational RAG work are closest to ours. CMT-RAG keeps a session-level graph of sub-questions and evidence for multi-hop fact lookup. That graph records what was asked, not which rules are jointly satisfiable, so a turn-two assumption that invalidates a turn-six answer goes unnoticed. RECOR finds that 63% of retrieval failures sit in later turns because the links between turns are implicit, but it proposes no mechanism to make those links explicit.
On dialogue consistency, detection and repair are post-hoc and closed-book. Entailment-based coherence scoring treats history as premise and response as hypothesis. Red Teaming for contradictory dialogues explains contradictions and then rewrites them using two extra models. Model-generated contradiction mining shows that detectors trained on human errors drop to 54% on model errors, and that human agreement on model contradictions is only 30%.
That last finding shapes our evaluation. Labels for "did the system violate a constraint" should come from a solver over gold rules, not from annotators. The interactive clarification idea is borrowed from CORGI, which asks users for missing rules when a proof fails. We trigger the question on formalization disagreement instead, and do it with a generative model over open documents rather than templates.
Research Program
The ledger. The ledger is a set of typed logical formulas, each tagged with the turn that introduced it. At each user turn, a formalizer model reads the new turn, the current ledger rendered back into plain language, and a few retrieved worked examples in the style of LTRAG. It then emits additions, retractions, or nothing. Retraction is an explicit operation, so "dairy is fine now" deletes a formula rather than appending a contradictory one. A summary-based memory has no comparably clean operation for this.
The agreement check. We sample two formalizations at different temperatures or with different example sets. The solver (Z3) then checks whether each one implies the other. If they are equivalent, the update is committed. If they are not, the assistant either takes a third sample to break the tie or asks the user a short clarifying question generated from a distinguishing case the solver produces, such as "Should a recipe with eggs but no milk count?" Only the agreement check addresses silent errors, since both samples run without crashing.
Retrieval filter. A conversation-aware dense retriever proposes candidates. Each candidate's relevant attributes are extracted into the ledger's vocabulary, and the solver discards candidates that are inconsistent with the ledger. This is the NS-IR idea moved from a single query to an evolving state, implemented as a hard filter rather than embedding arithmetic.
Response veto. Before a draft reply is emitted, its factual commitments are formalized and checked against the ledger together with the retrieved evidence. If the check fails, the system regenerates once, with the specific violated formula in the prompt. Checking happens before the user sees the reply, unlike the after-the-fact editing in Red Teaming.
Benchmark construction. No benchmark in the file has multi-turn logical constraints with gold answers, so we build three. Labels come from solvers over gold rules, not human contradiction judgments.
Conversational AR-LSAT takes AR-LSAT and FOLIO premise sets and spreads their rules across turns of a dialogue generated by a language model. The generation adds pronouns, paraphrase, and distractor chit-chat, and in a controlled subset it adds a rule followed by a later retraction. Gold answers are recomputed by the solver on the final rule set.
Conversational NegConstraint spreads NegConstraint queries across turns, with the exclusion stated early and indirectly.
Depth-stratified splits of both sets vary the number of simultaneously active, interacting constraints from one to eight.
A human-checked sample of a few hundred dialogues verifies that they are natural and that the gold rules are faithful to the wording.
Baselines
The naive reference point is a conversation-aware dense retriever plus generator with the full raw history in context and no consistency mechanism. We run it with the same generator and retriever as every other system. We use ChatQA's multi-turn retriever and recipe, ChatQA, as the strongest open conversational RAG system. It reports 58.25 average on ChatRAG Bench for Llama3-ChatQA-1.5-70B, and every system we compare is checked to stay near that level on ChatRAG Bench.
The strongest competitor on the specific question is a natural-language ledger. The same generator maintains an explicit running list of the user's current constraints after every turn, in the summarization style that CORAL found best for citation precision (31.1%). It uses this list for query rewriting, for model-judged filtering of retrieved documents, and for a model self-check of the draft reply. This baseline differs from our system only in whether the record and the checks are symbolic. It is therefore the decisive comparison, and it receives the same number of model calls per turn as our method, so any advantage cannot come from extra compute.
The second strong baseline applies existing single-turn methods after flattening the conversation. An LLM rewrites the dialogue into one standalone query or problem. NS-IR then reranks for retrieval, which reports 53.3 MAP on single-turn NegConstraint. LTRAG answers the logic questions, which reports 56.71% on single-turn AR-LSAT with GPT-4o and 79.67% on FOLIO with Gemma2-27b. These single-turn numbers also serve as ceilings. The gap between them and performance on the conversational versions measures what conversation costs. On the conversational versions themselves, there is no reported result found on Lacuna for any system.
The third baseline is post-hoc consistency checking. A RoBERTa contradiction detector trained on the model-generated contradiction collection, which reports 0.750 accuracy on Blenderbot 2 outputs, flags replies against the history. Flagged replies are regenerated, so the detector replaces our veto.
Ablations remove one ingredient at a time: the agreement check (single formalization), retraction (append-only ledger), the retrieval filter, and the response veto.
Beating the natural-language ledger means three things. Final-answer accuracy must be higher, with confidence intervals excluding zero, on dialogues with four or more interacting constraints and on the retraction subset. Accuracy must be no worse below that depth. Per-turn latency must be reported alongside these results.
Why not just…?
Why not just keep a plain-language constraint list and let a strong model check it? This is the real threat, and the proposal is built so that it can win. If the two ledgers perform the same at every depth, the symbolic machinery is not worth its latency, and we will report that. Our reason to expect a gap is that the model would be doing multi-constraint satisfiability in its head. FOLIO shows GPT-4 at 64.2% with steep losses past three reasoning steps, and hard-to-easy inconsistency shows that distractions break problems models can otherwise solve. The depth-stratified curves settle the question directly.
Why not just put the whole conversation in a long context window with a bigger model? That is the naive baseline, run at the largest generator we can afford. The evidence against it is indirect. CORAL finds that raw history hurts grounding after four to six turns, and divide-and-conquer analysis argues that long single passes accumulate errors. Neither study involved explicit logical constraints, so our experiment provides the direct test.
Why not just rewrite the conversation into one query and use NS-IR and LTRAG as they are? Flattening is a strong baseline, and on dialogues without retractions it may come close. Its known weakness is propagation of rewrite errors, documented by EXCORD. It also has no representation of retraction, since a rewrite must decide in one shot what survived. The retraction subset and the late-turn split isolate this.
Why not just detect and fix contradictions after generation? Post-hoc detectors trained on human data fall to 54% on model errors. They also judge a reply only against the history, not against retrieved evidence, so a bad retrieval passes through. The detector baseline, run with an equal regeneration budget, measures how much of our gain comes from filtering retrieval before generation.
Proposed Experiments
The decisive test. The primary experiment compares the symbolic ledger and the natural-language ledger on conversational AR-LSAT and FOLIO, plotting answer accuracy against the number of active interacting constraints. The predicted outcome is overlapping curves at one to three constraints and a widening gap beyond. The same comparison on the retraction subset should show the largest gap.
Retrieval. On conversational NegConstraint, we report MAP and the fraction of top-ten documents that violate a live constraint. The aim is to show that the stateful filter recovers most of the single-turn NS-IR gain, despite constraints being stated turns earlier and indirectly.
Silent-error check. We measure how often committed formalizations are wrong, comparing the system with and without the agreement check against gold rules. We also count the clarification questions asked per dialogue, because a check that interrupts every turn is not usable.
Regression check. Running on MTRAG, CORAL, and ChatRAG Bench, where most turns carry no formal constraints, verifies that the ledger stays empty and harmless there. On these sets, a drop of more than a point or two below the ChatQA-style baseline would count against the method.
Cost. We report tokens and wall-clock latency per turn for every system, since the Red Teaming work shows that multi-model consistency loops can be too slow for live conversation.
References
- FOLIO: Natural Language Reasoning with First-Order Logic
- Logical Consistency is Vital: Neural-Symbolic Information Retrieval for Negative-Constraint Queries
- Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoning
- LINC: A Neurosymbolic Approach for Logical Reasoning by Combining Language Models with First-Order Logic Provers
- LTRAG: Enhancing Autoformalization and Self-refinement for Logical Reasoning with Thought-Guided RAG
- AR-LSAT: Investigating Analytical Reasoning of Text
- CMT-RAG: Complementary Memory Traces for Multi-turn Multi-hop RAG
- RECOR: Reasoning-focused Multi-turn Conversational Retrieval Benchmark
- Evaluating Coherence in Dialogue Systems using Entailment
- Red Teaming Language Models for Processing Contradictory Dialogues
- A Large Collection of Model-generated Contradictory Responses for Consistency-aware Dialogue Systems
- Conversational Neuro-Symbolic Commonsense Reasoning
- ChatQA: Surpassing GPT-4 on Conversational QA and RAG
- CORAL: Benchmarking Multi-turn Conversational Retrieval-Augmented Generation
- Can Large Language Models Always Solve Easy Problems if They Can Solve Harder Ones?
- When Splitting Makes Stronger: A Theoretical and Empirical Analysis of Divide-and-Conquer Prompting in LLMs
- Learn to Resolve Conversational Dependency: A Consistency Training Framework for Conversational Question Answering