Bethe Consensus Decoding: Joint Inference on Empirical Pairwise Factor Graphs for Structured LLM Outputs

Large language models increasingly serve as zero-shot extractors for structured outputs whose fields are mutually dependent: a salary range is correlated with experience level; a destination is correlated with the airline. The dominant unsupervised aggregator, independent majority voting (IMV), decodes each field marginally and therefore commits combinatorially inconsistent outputs whenever the per-field modes do not co-occur. We introduce Bethe Consensus Decoding (BCD), a training-free post-hoc aggregator that reconciles K samples drawn from a frozen LLM by minimising a Bethe free energy on a sparse pairwise factor graph. The graph is constructed from empirical mutual information using a cardinality-aware χ2 threshold, sum-product loopy belief propagation with damping yields pseudo-marginal beliefs, and a sequential greedy clamping procedure with a pairwise-belief ratio correction extracts a globally coherent output. We show that on tree-structured factor graphs in the population limit, BCD strictly dominates IMV in the induced tree distribution. On five real datasets ranging from slot filling to 15-field resume parsing, BCD with Llama-3-70B-Instruct improves average exact-match accuracy by 4.6 points over IMV and by 2.2 points over the strongest unsupervised structured baseline. We additionally evaluate BCD on Llama-3-8B, GPT-4o-mini, and Gemini-1.5-Flash and observe strong absolute performance on each (up to 44.96 EM on GPT-4o-mini), though backbone-matched IMV baselines are out of scope for this study. BCD is competitive with a supervised pairwise CRF that uses the same graph topology: the margin is small (≤ 1.3 pp) on the three data-rich benchmarks (D1, D2, D4) and substantially larger (3.7--4.7 pp, statistically significant under Holm--Bonferroni correction) on the two data-scarce benchmarks (D3, D5). Aggregation runs in milliseconds on CPU and reduces to IMV exactly when the empirical edge set is empty.

Link
https://www.semanticscholar.org/paper/201d3f2a24748fa528af17de62071afe0cc036ed
Found by
Semantic Scholar
Authors
Ze-Hua Cheng, Wei Dai, Jia-Hao Sun
Categories
benchmark, evaluation, dataset
Published
2026-11-06
Last seen by the radar
2026-11-08
Citations
0
Influential citations
0
Radar score
44.25 / 100 (how it is scored)
Why it scored so
Matched: benchmark, dataset, evaluat; Primary record: Semantic Scholar
Related links
https://doi.org/10.1145/3799682.3840601
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar