Sample, Align, Synthesize: Graph-Based Response Synthesis with ConGrs

Sayan Ghosh, Shahzaib Saqib Warraich, Dhruv Tarsadiya, Gregory Yauney, Swabha Swayamdipta · DOI

Abstract

Large Language Models (LLMs) often exhibit inconsistency and hallucination in long-form generation. We present Consensus Graphs (ConGrs), a framework that aggregates multiple LLM outputs into a single, reliable response by aligning them into a Directed Acyclic Graph (DAG). By distinguishing between consensus nodes (stable facts) and disagreement nodes (potential hallucinations), ConGrs significantly improves factual precision and reasoning accuracy while reducing the need for expensive external "judge" models.

Introduction

A fundamental challenge in deploying Large Language Models (LLMs) is their inherent stochasticity. Identical prompts often yield varying responses, particularly in long-form tasks like biography generation or complex multi-step reasoning. Traditional aggregation strategies, such as "Majority Voting" or "Best-of-N" selection, are often insufficient for long-form text because they discard valuable sub-sentential information and struggle when no single candidate response is entirely correct. Furthermore, existing state-of-the-art methods frequently rely on costly sentence-by-sentence evaluation by auxiliary "judge" models (e.g., GPT-4).

This work introduces Consensus Graphs (ConGrs), a method that treats the variation between multiple samples not as noise, but as an epistemic signal. By identifying where models agree and disagree at a granular level, we can synthesize a more factual and robust final response.

Methodology: The ConGrs Framework

The ConGrs pipeline operates in three distinct phases: sampling, alignment, and synthesis.

  1. Sampling: The system generates a set of candidate responses for a given prompt.
  2. Alignment: Borrowing the Needleman-Wunsch algorithm from bioinformatics, the text of all responses is aligned to identify "anchor spans"—sequences of words that appear consistently across samples.
  3. Synthesis: The aligned text is structured into a weighted Directed Acyclic Graph (DAG).
  4. Consensus Nodes represent text present in the majority of responses, signaling high model confidence and likely factuality.
  5. Disagreement Nodes capture points of divergence, which often correspond to hallucinations or stylistic variations.
The ConGrs pipeline: from multiple sampled responses to a synthesized consensus output via graph construction.

This graph-based representation allows for two primary applications: Consensus Decoding, which filters out low-confidence nodes to maximize precision, and Guided Self-Verification, which uses disagreement nodes as "hotspots" for targeted error correction in reasoning tasks. The alignment's stability is validated by comparing lexical similarity across response quantiles.

Mean Jaccard similarity across response quantiles, comparing original order vs. random shuffle to validate alignment stability.

Experimental Results

The effectiveness of ConGrs was evaluated across benchmarks for factuality (FActScore, PopQA), reasoning (MATH, AIME), and abstention (HALoGEN).

Factuality and Precision

On biography generation tasks, ConGrs achieved a factual precision improvement of up to 31% over the average single response. By adjusting the consensus threshold, the system allows users to navigate the trade-off between informativeness (including more nodes) and factuality (restricting to high-consensus nodes).

Reasoning and Abstention

In mathematical reasoning, "Guided Self-Verification" improved accuracy by up to 6 points over standard self-consistency methods. Additionally, the system demonstrated a superior ability to identify unanswerable questions or false premises, increasing the abstention rate on the HALoGEN benchmark by up to 56%.

Efficiency

Crucially, ConGrs achieves these gains with significantly lower computational overhead. It reduces the reliance on expensive secondary LM API calls by over 80% compared to previous state-of-the-art aggregation methods like Uncertainty-Aware Decoding (UAD).

Discussion and Conclusion

ConGrs demonstrates that the internal consistency of an LLM is a powerful proxy for truth. By moving from lexical alignment to a structured graph, we can effectively "filter" hallucinations without external knowledge bases.

However, the method relies on structural lexical overlap. In highly creative tasks where responses diverge significantly in phrasing, the resulting graphs may become degenerate. Future research will explore the integration of semantic embeddings to handle more diverse response sets and the potential for encoding multiple valid perspectives in subjective domains.

Summary updated

BibTeX
@inproceedings{ghosh2026sample,
  author = {Sayan Ghosh and Shahzaib Saqib Warraich and Dhruv Tarsadiya and Gregory Yauney and Swabha Swayamdipta},
  title = {{Sample, Align, Synthesize: Graph-Based Response Synthesis with ConGrs}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=XP13quuYXS},
}
Figure