potentialpaper

Attention as a Markov Random Field

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:47 UTC · 4ddceb0b5fc0 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "w2QhGE3Jqa"
- }
- ],
- "title": "Attention as a Markov Random Field",
- "authors": [],
- "abstract": "Reliably detecting when large language models (LLMs) hallucinate remains an open challenge. Existing uncertainty estimators either require costly multi-sample generation or supervised calibration data, limiting their practical deployment. We introduce the Attention Bethe Score (ABS), a zero-shot, single-pass uncertainty metric grounded in variational inference over probabilistic graphical models. Our key insight is to reinterpret the attention mechanism of a frozen Transformer as the structure of a Markov Random Field: token positions become nodes, attention weights define edges with attention-modulated Potts couplings, and hidden-state projections yield unary potentials. Running loopy belief propagation on this graph, we compute the Bethe free energy as a principled measure of internal representational frustration-the degree to which strongly attended positions hold inconsistent beliefs. We prove that, under a contraction condition satisfied in typical operating regimes, the Bethe free energy monotonically tracks projected frustration, and we validate this relationship empirically (Spearman p > 0.85). Across eight benchmarks spanning open-domain QA, fact verification, hallucination detection, and summarization, ABS achieves aggregate AUROC of 0.788 (LLaMA-3.1-8B) and 0.806 (Qwen-2.5- 7B), surpassing all baselines including multi-sample Semantic Entropy and supervised Internal Probes-while adding fewer than four milliseconds and less than three percent computational overhead to a standard forward pass.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "29718236-42ae-4a51-ba95-6eacafc8e4b9"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Attention as a Markov Random Field",
+ "authors": [],
+ "abstract": "Reliably detecting when large language models (LLMs) hallucinate remains an open challenge. Existing uncertainty estimators either require costly multi-sample generation or supervised calibration data, limiting their practical deployment. We introduce the Attention Bethe Score (ABS), a zero-shot, single-pass uncertainty metric grounded in variational inference over probabilistic graphical models. Our key insight is to reinterpret the attention mechanism of a frozen Transformer as the structure of a Markov Random Field: token positions become nodes, attention weights define edges with attention-modulated Potts couplings, and hidden-state projections yield unary potentials. Running loopy belief propagation on this graph, we compute the Bethe free energy as a principled measure of internal representational frustration-the degree to which strongly attended positions hold inconsistent beliefs. We prove that, under a contraction condition satisfied in typical operating regimes, the Bethe free energy monotonically tracks projected frustration, and we validate this relationship empirically (Spearman p > 0.85). Across eight benchmarks spanning open-domain QA, fact verification, hallucination detection, and summarization, ABS achieves aggregate AUROC of 0.788 (LLaMA-3.1-8B) and 0.806 (Qwen-2.5- 7B), surpassing all baselines including multi-sample Semantic Entropy and supervised Internal Probes-while adding fewer than four milliseconds and less than three percent computational overhead to a standard forward pass.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}