Manuscript Offprint
arXiv:2610.25739How Much Does One Wrong Answer Cost? Error Propagation in Constraint Pruning with Noisy LLM Oracles
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Constraint pruning saves queries to a large language model (LLM) or another noisy oracle by skipping each yes/no question implied by answers accepted earlier, for example through transitivity. Entity-resolution systems and LLM-based rankers use this idea. However, their analyses typically assume a correct oracle. We argue that pruning should be judged by its risk when the oracle errs, since an accepted wrong answer spreads to every question it implies. When each answer is wrong independently with small probability , the first-order risk is set by how many facts one wrong answer corrupts on average. We consider two kinds of constraints. For implication rules, as in taxonomies, pruning in a random order adds no first-order risk: a wrong answer that would change k facts is accepted with probability , so it costs one fact on average. Rules with s premises break this balance: a wrong answer at a premise shared by r rules can cost order facts. For entity resolution with m records of one entity, the first-order risk equals times the Wiener index (the total pairwise distance) of the spanning tree built by the query order. Pivot orders, which first compare one record with all others, amplify errors by less than 2 and are optimal; random orders by order ; the common most-similar-first order is the worst in one dimension and, for large m, worse than random in two. With several entities, the cost of wrongly merging two does not depend on how many others exist. Simulations agree with every predicted constant within sampling error.
1 INTRODUCTION
Constraint pruning reduces the cost of collecting related yes/no facts from an oracle, such as an LLM or a human annotator, whose answers may be wrong. In entity resolution, a system asks whether two records refer to the same entity and skips pairs implied by transitivity (Wang et al., 2013; Vesdapunt et al., 2014). For example, accepting that A and B are the same and that B and C are the same determines the answer for A and C without another query. Similar propagation occurs when enforcing entailment and contradiction constraints between LLM beliefs (Mitchell et al., 2022), skipping comparisons in LLM ranking (Agrawal et al., 2026), or propagating orientation hints in causal discovery (Meek, 1995; Long et al., 2023; Lyu et al., 2026).
However, an accepted error can also propagate to un-queried facts. If A, B and C belong to one entity, a correct “same” answer for A, B followed by a wrong “different” answer for B, C implies a wrong “different” answer for A, C. In the synthetic citation records of Figure 1, one oracle error thus produces two final wrong decisions and saves one query, and the output is still logically consistent. Query counts alone cannot capture this cost. Prior work studies recovery probabilities, assumes deterministic oracles or examines the robustness of query structures (Long et al., 2023; Hiremath et al., 2026; Agrawal et al., 2026; Galhotra et al., 2018).
We study greedy closure decoding: process questions in an order, skip those implied by accepted answers, and otherwise query and accept the oracle's answer, without revisiting earlier decisions. We measure risk by the expected number of final wrong facts, including inferred ones. The raw baseline asks every question and uses its answer unchanged, without enforcing consistency. Both procedures use the same potential answers: the answers the oracle would give if each question were asked.
In single-error analysis, we make one potential answer
A Three records, one paper
Citation deduplication example
A Graph matching
Chen et al.
B Graph-matching
J. Chen
C Graph matching
Chen, J.
Illustrative record strings
B One wrong answer
Noisy LLM answers

2 DIFFERENT · queried
Solid: queried · Dashed: inferred
A-C inferred; query skipped
C Two wrong decisions
A-B
SAME
B-C
DIFFERENT · queried
A-C
DIFFERENT · inferred
1 error → 2 wrong pairs
One query saved
Figure 1: Propagation in three synthetic citation records of one publication: one wrong answer produces two wrong pair decisions and saves one query.
wrong and keep all others correct. We count the final wrong facts caused by each error location, averaging over query orders when they are random. In Figure 1, damage is 2; it is 0 if earlier correct answers imply and skip the wrong question. Under independent errors of small probability (Long et al., 2023; Hiremath et al., 2026), events with two or more errors have probability for a fixed finite instance. A reduction lemma expresses risk as times the sum of single-error damages, plus . The term linear in is the first-order risk; its ratio to the raw baseline's is the error amplification, where n counts questions. Random-order ranking and Meek propagation are not analyzed.
Using single-error analysis, we derive the following first-order risk laws:
• Risk conservation for pairwise constraints. For every satisfiable 2-CNF theory, including implications and pairwise contradictions, uniformly random orders give mean single-error damage 1 for unfixed facts and 0 for facts fixed by the constraints. Pruning therefore does not increase first-order risk over raw decoding (Section 4).
• Error amplification through a shared premise. For Horn rules with premises each and one shared false premise, we derive the exact mean damage of a single wrong answer there, growing as under uniformly random orders, for fixed (Theorem 6).
• Relating query order to tree structure. For m records of one entity, independent errors at a common rate give first-order risk equal to that rate times the noiseless query tree’s Wiener index (total pairwise tree distance). Pivot stars minimize this risk among greedy orders, with amplification below 2; random orders give , and similarity-first can be worse under Theorem 11’s embedding assumptions. We also give bounds for multiple errors at any error rate (Section 5.1).
• Locality of a single false merge. With only one wrong answer, false-merge damage depends only on the two affected entities. This yields separate within-entity and cross-entity first-order risks. We give bounds, exact small cases and the pivot pipeline’s exact first-order formula; the large-cluster growth exponent remains a conjecture (Section 5.2).
We test the theoretical predictions and compare query orders using simulations and LLM answers on the Cora citation data (Section 6).
Entity resolution and LLM comparisons. Crowdsourced entity resolution uses transitivity (Wang et al., 2013; Vesdapunt et al., 2014). Analy-ses of query ordering typically assume a correct oracle (Firmani et al., 2016; Mazumdar and Saha, 2017b); robust methods add verification queries (Galhotra et al., 2018) or weaken transitivity (Gruenheid et al., 2015). Recent LLM work studies prompt sensitivity (Gui et al., 2026) and matching errors (Peeters et al., 2025), compares matching strategies (Wang et al., 2025), filters candidates using matching feedback (Chen et al., 2026), and balances quality and cost through operator and model selection (Guo et al., 2026).
Ranking work addresses non-transitive preferences and baseline-sensitive rankings (Xu et al., 2025), presentation-order and transitivity inconsistencies (Zeng et al., 2026), and risks from long inference chains (Agrawal et al., 2026). These studies improve matching, ranking or query allocation. We analyze how an accepted wrong answer causes errors in inferred decisions.
Logical consistency and causal hints. Belief-correction methods enforce entailment and contradiction relations (Mitchell et al., 2022). Logic.py translates natural-language puzzles into formal problems for a constraint solver (Kesseli et al., 2025). Causal discovery methods elicit and propagate hints about edge orientations (Long et al., 2023; Lyu et al., 2026; Kicman et al., 2024), while Guess2Graph uses unreliable expert guesses to order conditional-independence tests (Hiremath et al., 2026). These methods correct answers or select hints. We study a sequential decoding process that accepts oracle answers in order and keeps accepted answers fixed during subsequent inference.
3 SETTING AND REDUCTION LEMMA
Questions, constraints and noisy answers. There are binary questions. Complete vectors satisfying the constraints form the code ; each is a feasible codeword. They are the models (satisfying assignments) of a propositional theory . The decoder knows the constraints but not the fixed truth . We study implication, 2-CNF and definite Horn theories (Section 4), partitions under “same entity” transitivity (Section 5), and total orders under “before” transitivity (Section A.4).
The oracle’s potential answer to question is observed only if queried. Thus , where are independent Bern( ) variables: flips the true answer and leaves it unchanged. Section 5.2 allows two rates. Hamming loss counts wrong final answers, including inferred ones; risk is its expectation. The raw decoder asks all questions and returns , with risk ; the output may violate constraints.
The greedy decoder follows order , storing accepted question-answer pairs in an initially empty set L. Among codewords agreeing with L, if all give the same answer at i, use it and skip the query. Otherwise both answers are feasible: query the oracle and add to L, keeping this answer fixed. A wrong answer can thus be accepted while preserving feasibility. After all questions, one codeword remains (Lemma 16), also obtained by the accept-if-consistent rule. Unless stated otherwise, is uniform and independent of Z. Implication tests take polynomial time without enumerating C: satisfiability tests for 2-CNF and Horn theories, union-find for partitions and transitive closure for orders. The maximum-likelihood (ML) decoder uses all answers jointly, returning a codeword closest to y in Hamming distance, with uniform tie-breaking.
Single-error damage. For a decoder whose output depends on y and on an independent seed , the single-error damage at question a is the expected loss when only the answer to a is wrong,
where is the -th unit vector. For the greedy decoder we write for a fixed order, so that . The first-order constant is , and the amplification of a decoder is , the mean damage of one wrong answer relative to the raw decoder.
For let be the number of codewords of the form , , when (and 0 otherwise). In that case they are the codewords other than that tie with as nearest to .
Lemma 1 (Reduction lemma). Let be any decoder that returns when there is no wrong answer. For every ,
Moreover: (i) ML has if and otherwise. (ii) The greedy decoder has first-order constant , so its amplification is the mean damage of one wrong answer.
The remainder grows with n, so the expansion describes a fixed instance as .
4 IMPLICATION THEORIES AND HORN RULES
We apply the single-error analysis of Section 3 to logical rules to identify when constraint propagation am-
Table 1: Mean single-error damage; skipped errors count as zero. Logical rows use uniform orders; partition rows average over all within- or cross-cluster pairs, giving first-order amplification over raw risk. Optimality is among greedy orders at first order. Conj.: conjectured growth.
| Setting | Mean damage (wrong final facts) | Reference |
|---|---|---|
| 2-CNF, implication rules | for unfixed facts, for fixed facts (backbone); ML: | Cor. 4; Prop. 5 |
| Horn hub: rules, premises | at the shared premise; ML: | Thm. 6; Rem. 18 |
| One entity, records | pivot (optimal); random ; similarity-first under Thm. 11: | Props. 9, 10; Thm. 11 |
| Cross pair, records per entity | random , conj. ; pivot | Props. 13, 14; Conj. 15 |
| Total orders | randomized quicksort | Prop. 24 |
plifies errors. We first show that, under uniformly random query orders, implication rules and, more generally, 2-CNF constraints do not increase first-order risk over raw decoding; a shared-premise Horn family then shows why this conclusion does not hold in general.
Let be a satisfiable theory over atoms , , each representing a binary fact. Write the truth as a satisfying assignment here. A literal is an atom or its negation. Let when and otherwise, with the opposite literal. The backbone contains facts fixed by the rules ( denotes logical entailment). For , the flip set
contains and every atom whose value is forced to change by a wrong value at . We say that has the single-flip property if flipping exactly the atoms of in , while leaving all others unchanged, gives another model of .
Theorem 2 (Damage of one wrong answer). Suppose that the only wrong answer is at atom . If , the greedy decoder returns the truth for every order. If has the single-flip property, then for every order
so for a uniformly random (or any exchangeable) order.
In the second case, a correct value on another atom of implies 's true value and skips its query. Only if comes first is the error accepted, causing wrong facts. Its probability yields mean damage 1; individual runs have damage 0 or .
Proposition 3. If every clause of has at most two literals, every atom outside the backbone has the single-flip property.
Proposition 3 holds because, if a flip makes one literal of a two-literal clause false, forces the other to be true, preserving the clause.
Corollary 4 (Conservation law). Let be a satisfiable 2-CNF theory with backbone . For every ,
In particular, for every implication graph , with , greedy decoding has , for false-positive and false-negative errors alike and for every truth.
Thus the first-order risk is ; implication graphs have no fixed facts and match raw at first order. Multiple errors can still cause differences. If accepted, a false positive (false to true) changes false descendants, and a false negative (true to false) changes true ancestors. The order matters: on queried as , a single false positive is accepted and changes every later false fact.
Proposition 5 (ML on 2-CNF). On a satisfiable 2-CNF theory, the ML single-error damage at is if and if . Hence .
Horn rules. The Horn hub has rules (), sharing premise . Each rule's other premises and conclusion occur in no other rule. All are true and are false, so . For this is the pattern with a shared premise.
Theorem 6 (Horn hub). For a single false positive at the shared premise of , , and a uniformly random order,
which equals . Every other single error on has damage exactly 1. Hence .
Here is the Gamma function. The mechanism differs from Theorem 2: a wrong a alone implies no other values. It is skipped only if one rule's other s atoms were processed earlier: their true premises and false conclusion force a false. If accepted, each rule's last atom is inferred wrongly and skipped; it can be a premise or the conclusion. Including a, the total damage is .
Appendix A.2 gives the ML proof and the arrival-time derivation of the Horn formula, including its special case.
For Horn theories with at most premises per rule, we conjecture that mean false-positive damage at is bounded by , where counts newly true atoms after adding to the truth, including (Conjecture 19). The hub shows this exponent cannot be lowered.
Under uniformly random query orders, acceptance probability and propagation damage balance for 2-CNF constraints, so pruning does not increase first-order risk over raw decoding. The shared-premise Horn family shows that this balance can fail, with the mean cost of one wrong answer growing with the number of rules.
5 ENTITY RESOLUTION WITH TRANSITIVITY PRUNING
We now apply the greedy-decoding framework to entity resolution, where each pairwise answer states whether two records refer to the same entity. Transitivity lets “same” on A–B and B–C imply “same” on A–C, saving a query but potentially spreading an error. This involves three pairwise facts, so the 2-CNF conservation law in Section 4 does not directly apply. We first study false splits within one entity, then false merges between entities.
5.1 One Cluster
The m records in [m] all refer to one entity, so every pair's true answer is “same”. The algorithm does not know this: its feasible outputs are all partitions of [m], each specifying which records belong together. There are pairwise questions. We write the error rate as : each answer is independently flipped to “different” with probability . The loss counts pairs incorrectly separated in the final output.
The union-find pipeline (Wang et al., 2013) maintains current groups of records, called blocks, and accepted “ ” constraints between them. A block need not coincide with a true entity. It scans pairs in order . For , membership in one block already implies “same”, while a constraint between their blocks implies “different”; either case skips the query. Otherwise it asks the oracle: “same” merges the blocks, and “different” records a constraint. Existing constraints are carried over when blocks merge. Lemma 20 shows that this is the greedy decoder on the partition code.
Construct the Kruskal tree from the order alone, without using the noisy answers. Scan pairs in order , retaining a pair only when it connects two components of the edges retained so far. With all answers correct, these tree edges are exactly the queried pairs. For a tree , let count edges on the unique path from to . Its Wiener index (Wiener, 1947) is
where deleting edge e splits the tree into parts of sizes and . Exactly pairwise paths use that edge, which gives the second equality.
Lemma 7 (Sandwich). Fix any order and any pattern of wrong answers. For a pair , let be the number of edges of whose answer is wrong on the tree path from u to v. If , then u and v end in the same block; if , they end in different blocks. Hence , where ( ) is the number of pairs with ( ).
Every tree edge is queried even when errors occur, and each pipeline block stays inside a component of the forest built so far by the Kruskal scan. This yields Lemma 7. Paths with two or more wrong edges need not lead to separation; with a single wrong answer, the two bounds coincide and give the exact loss.
Theorem 8 (Wiener law). For every order and every ,
where . A single wrong answer on a tree edge costs exactly pairs, and a single wrong answer on any other pair costs nothing.
Theorem 8 makes the effect of the query tree explicit: for fixed m, as , with the displayed bounds valid for every . Raw decoding has risk , so first-order amplification is , the average tree distance. The single-error cut identity and Lemma 7 hold for any error placement; the expectation uses independent errors with a common rate. Galhotra et al. (2018) previously identified the vulnerability of tree-based inference to errors; here the bounds quantify it for this decoder.
Proposition 9 (Pivot orders are optimal). (i) For every spanning tree T of , ,
- , with equality if and only if T is a star (a classical property of the Wiener index; Dobrynin et al., 2001). So the first-order risk is minimized exactly by the orders whose Kruskal tree is a star, such as asking every pair with a fixed pivot first (Vesdapunt et al., 2014); their amplification is . (ii) Among decoders that observe the answers on a fixed spanning tree T only (non-adaptive designs with m-1 queries, each observed answer flipped independently with probability ), if the worst-case risk over the one-cluster truth and the m-1 two-block partitions obtained by cutting one edge of T is at least . So, to first order in , the worst-case risk of every such design is at least half of the pivot order's risk at the one-cluster truth.
Proposition 10 (Random order). For a uniformly random order, is the minimum spanning tree of with i.i.d. weights, and with , an amplification . At with fixed, the expected fraction of lost pairs stays bounded away from 0 and 1 as .
Independent uniform edge weights generate a uniform pair order; known tree-distance estimates (Addario-Berry et al., 2009, 2017) then yield Proposition 10 through Lemma 7.
Theorem 11 (Most-similar-first order). Let items carry i.i.d. embeddings on with a density bounded below by , let be the mean distance between two items, and let pairs be asked in increasing order of distance. Then is the Euclidean minimum spanning tree, and for every with (natural logarithm),
For the amplification is exactly .
Under these embedding assumptions, similarity-first has larger asymptotic amplification than random order in one and two dimensions. Nearby connections can create long tree paths, giving a single error more opportunities to separate a pair. In one dimension, the tree is a path, which maximizes the Wiener index (Dobrynin et al., 2001). Appendix A.3 derives the tree estimates and quantitative growth-rate comparisons. With unequal error rates, semantic similarity-based querying (Wang et al., 2013) also depends on which pairs are answered wrongly (Section 6).
5.2 Several Clusters
Now records belong to K true clusters of sizes , with records (here n counts records, not pairwise facts). All pairs are scanned in a uniformly random order. Answers are flipped independently: a within-cluster pair is wrongly answered “different” with probability , and a cross-cluster pair “same” with probability . Write for the expected number of wrong final pair decisions, counting both false merges and false splits.
To isolate a false merge, consider only two clusters of sizes . Fix a cross pair and make its potential answer “same”, with all other answers correct. Let be its mean damage over random orders, counting a skipped wrong answer as zero, and write . Accepting the error can also block later correct within-cluster merges. Thus includes both wrong cross-cluster merges and possible splits within these two clusters.
Theorem 12 (Exact first-order decomposition). With ,
In particular the damage of a false merge does not depend on K or on the other clusters.
The first term sums false-split risks within the true clusters, applying the Wiener law to each. The second sums false-merge risks: clusters i, j have cross pairs, each contributing mean damage . Correct cross-cluster answers confine a single error to its incident clusters. Simultaneous errors can involve more clusters, so this locality underlies the first-order decomposition.
The following bounds on count skipped errors as zero.
Proposition 13 (Size of one false merge). Let be the event that the false pair is asked. For , and s. Under standard local-limit facts for Erdős-Rényi graphs, (Proposition 23).
Exact computation gives and (Table 5). For comparison, the pivot pipeline processes records one at a time. It compares each new record with the first record of each existing block, in block-creation order, until “same” lets it join that block; if all answers are “different”, it creates a new block (Vesdapunt et al., 2014). Its first-order risk is given by Proposition 14.
Proposition 14 (Pivot pipeline). For K clusters of size s, with items arriving in a uniformly random or-der,
The coefficient of in Proposition 14, divided by the cross pairs, gives mean damage per potential wrong cross-pair answer. The random-order mean is , giving a loss ratio .
Conjecture 15 (Contamination law). . Consequently, for clusters of size , at first order.
Simulation supports growth but does not determine the asymptotic constant (Figure 2, lower panel C; Table 6). A proof would need a scaling limit describing the constrained merging process in the critical window of the within-cluster random graphs.
In entity resolution, the noiseless query tree determines one-cluster first-order risk; with independent errors at a common rate, pivot stars minimize this risk among greedy query orders. With several entities, a single error remains confined to the one or two entities involved, yielding separate first-order contributions from within-entity and cross-entity errors.
6 EXPERIMENTAL VALIDATION
We check the formulas in simulation, compare query orders at higher error rates allowing multiple wrong answers, and evaluate final losses using LLM answers on Cora. Loss counts wrong final decisions, including inferred ones. In record matching, false splits separate records of the same entity, while false merges group records of different entities. Amplification is the final wrong-pair count divided by the raw baseline's wrong-answer count. All single-error averages count skipped errors as zero.
Figure 2 connects the propagation examples with numerical checks of the preceding laws. (A) contrasts 2-CNF conservation with shared-premise Horn amplification. In (B), splitting eight records into or produces 7 or 16 wrong pairs. Its lower panel compares first-order amplification, equal to mean noiseless-tree distance under independent, equal-rate errors. In (C), one false merge can cause both false merges and false splits within the two involved entities; the lower panel compares with pivot's . The and curves are guides; the finite-size slope in (B) does not determine the asymptotic exponent, and (C) does not establish its asymptotic constant.
Checking the analytical predictions. Enumeration and direct decoding test conservation, Horn dam-
Table 2: Fraction of wrongly separated pairs on one cluster of records when each answer is flipped to “different” with probability . Means Monte Carlo standard error over 200 runs; Random/Pivot is the ratio of the mean losses.
| Pivot | Random | Random/Pivot | |
|---|---|---|---|
| 0.01 | 4.2 | ||
| 0.02 | 4.3 | ||
| 0.05 | 3.4 | ||
| 0.10 | 2.6 | ||
| 0.20 | 1.8 |
Table 3: Amplification on Qwen2.5-1.5B answers for Cora: final wrong pairs per wrong answer. Wrong: answer-error rate. Pivot/random use 200 orders in rows 1 and 4; rows 2–3 use 30 matched orders before and after uniformly redistributing errors within each entity, preserving its error count.
| Setting | Wrong | Pivot | Random | Sim.-first |
|---|---|---|---|---|
| One entity | 6.6% | 1.23 | 2.31 | 0.85 |
| One entity, 30 orders | 6.6% | 1.37 | 2.19 | 0.85 |
| Shuffled, 30 orders | 6.6% | 1.73 | 3.55 | 3.48 |
| Multi-entity blocks | 6.3% | 1.14 | 1.46 | 1.20 |
age and false-merge locality independently of the formulas. The conservation estimates are within 2.66 Monte Carlo standard errors (MCSE) of their predictions; the other tabulated estimates are within 1.62 MCSE. At , dividing the full decoder's mean false-merge (FP) and false-split (FN) counts by also gives estimates close to the first-order coefficients. Appendix B gives the full comparison (Table 4), simulation settings and statistical details.
Higher error rates. We also test the full decoder where multiple errors may interact. One entity has records, so every pair's correct answer is “same”. Each answer is independently flipped to “different” at rate , with 200 runs per configuration. Table 2 reports the fraction of pairs wrongly separated: at a 10% answer-error rate, this fraction averages 17.4% for pivot and 45.8% for random order. Across the tested rates, random-order mean loss is 1.8–4.3 times the pivot value; at the ratios are 1.9–5.4 (Table 7). Pivot's advantage therefore persists in these settings. At higher rates, the first-order sum overestimates random-order loss: several errors may affect the same pairs, which are counted only once.
Real LLM answers. In Cora (Hasso Plattner Institute, n.d.), each entity comprises citation records of one paper. We use 62,423 within-entity pairs from 23 entities with at least 20 records. Qwen2.5-1.5B (base) (Qwen Team, 2024) answers 6.6% wrongly. All orders
A Logical constraints
2-CNF:
a b c
Random order; unfixed facts
Horn hub (s=2 shown)

B Query order
8 records of one true entity
7 noiseless queries in each tree
Pivot star
1D path

One 'different' error: wrong pairs
(A) Implication vs Horn
C Several entities
One false 'same' answer
Affected true clusters

A
B
Other entities unaffected
(B) Query order

Shared-premise rules, k
— Exact formula
--- Asymptote / conjecture
o Monte Carlo SE
◆ Exact enumeration
(C) Several clusters
Cluster size, m
Cluster size, s
Fitted guide
Figure 2: Single-answer error propagation (top) and numerical checks (bottom): (A) logical constraints, (B) within-entity query order, (C) cross-entity false merges. Horn example: , false, true. Shading marks affected true clusters, not the final partition. Thick solid: exact formulas; thin connectors: visual guides; dashed: asymptotes (A), conjecture (C); dotted: fitted guide (B). Open markers: simulations standard error; diamonds: exact enumeration.
reuse cached answers; similarity-first follows decreasing textual similarity.
Pivot loses less than random order, while similarity-first has the lowest point estimate (Table 3). Pooled answer-error rates on noiseless query-tree edges are 2.2% for similarity-first, 8.4% for pivot and 8.6% for random order, linking loss to both tree shape and edge accuracy. Pivot beats random order at all tested thresholds (approximately 1%–20% answer-error rates; Table 8).
Redistributing each entity’s errors uniformly, with error counts fixed and query orders matched, raises all three losses and removes similarity-first’s advantage over pivot (Table 3, rows 2–3). Thus error locations matter.
In six blocks of three or four similar entities, both false merges and false splits can occur; pivot has the lowest pooled loss. Appendix C gives the prompting protocol, threshold sweep and detailed results for these settings.
7 DISCUSSION
We analyzed error propagation in greedy, constraint-based decoding. Under uniformly random query orders, 2-CNF constraints do not increase first-order risk over raw answers, while shared-premise Horn rules can amplify errors. In record matching, one-entity first-order risk is determined by pairwise distances on the noiseless query tree. Under independent, equal-rate errors, pivot minimizes this risk among greedy orders. With one wrong answer, false merges affect only two entities. Simulations support the formulas and show pivot's advantage over random order at the tested higher error rates. The Cora results show that tree shape and error locations both matter: uniformly redistributing errors removes similarity-first's advantage over pivot. Future work could study interacting errors, especially false merges, across more models and datasets. The general Horn false-positive damage bound and false-merge growth law remain conjectures.
AI Use Statement
The research ideas, mathematical claims, experimental design, and interpretation of the results were developed by the authors. During the preparation of this paper, ChatGPT and Codex assisted with editing the prose, restructuring and improving portions of the code, and organizing data and relevant literature. We also consulted these tools to identify proof arguments that could benefit from clearer explanations. All AI-assisted work was independently reviewed and verified by the authors, including the proofs, code, data, references, and changes to the manuscript. The authors accept full responsibility for the final paper.
References
Louigi Addario-Berry, Nicolas Broutin, and Bruce Reed. Critical random graphs and the structure of a minimum spanning tree. Random Structures & Algorithms, 35(3):323–347, 2009. doi: 10.1002/rsa.20241.
Louigi Addario-Berry, Nicolas Broutin, Christina Goldschmidt, and Grégory Miermont. The scaling limit of the minimum spanning tree of the complete graph. The Annals of Probability, 45(5):3075–3144, 2017. doi: 10.1214/16-AOP1132.
Sheshansh Agrawal, Thien Hang Nguyen, and Douwe Kiela. BlitzRank: Principled zero-shot ranking agents with tournament graphs. In Forty-third International Conference on Machine Learning (ICML 2026), 2026. arXiv preprint arXiv:2602.05448.
Michael Aizenman, Almut Burchard, Charles M. Newman, and David B. Wilson. Scaling limits for minimal and random spanning trees in two dimensions. Random Structures & Algorithms, 15(3–4):319–367, 1999. doi: 10.1002/(SICI)1098-2418(199910/12)15:3/4<319::AID-RSA8>3.0.CO;2-G.
Laurent Alonso, Philippe Chassaing, Florent Gillet, Svante Janson, Edward M. Reingold, and René Schott. Quicksort with unreliable comparisons: A probabilistic analysis. Combinatorics, Probability and Computing, 13(4–5):419–449, 2004. doi: 10.1017/S0963548304006297.
Sayantan Banerjee and Weining Shen. Graph signal denoising using t-shrinkage priors. Journal of Statistical Planning and Inference, 219:279–305, 2022. doi: 10.1016/j.jspi.2021.12.012.
Beijing Academy of Artificial Intelligence. bge-small-en-v1.5: Model card, 2023. URL https://huggingface.co/BAAI/bge-small-en-v1.5. MIT license; accessed October 1, 2026.
Mark Braverman and Elchanan Mossel. Noisy sorting without resampling. In Proceedings of the Nine-
teenth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 268–276, 2008.
Nicolas Broutin and Jean-François Marckert. Convex minorant trees associated with brownian paths and the continuum limit of the minimum spanning tree. arXiv preprint arXiv:2307.12260, 2023. URL https://arxiv.org/abs/2307.12260v1.
Xingguang Chen, Yimin Shi, and Xiaokui Xiao. Generalized entity matching with adaptivity via large language models. Proceedings of the ACM on Management of Data, 4(3):189:1–189:25, 2026. doi:10.1145/3802066. URL https://dl.acm.org/doi/10.1145/3802066.
Christopher De Sa, Ihab F. Ilyas, Benny Kimelfeld, Christopher Ré, and Theodoros Rekatsinas. A formal framework for probabilistic unclean databases. In 22nd International Conference on Database Theory (ICDT 2019), volume 127 of Leibniz International Proceedings in Informatics (LIPIcs), pages 6:1–6:18. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2019. doi: 10.4230/LIPIcs.ICDT.2019.6.
Andrey A. Dobrynin, Roger Entringer, and Ivan Gutman. Wiener index of trees: Theory and applications. Acta Applicandae Mathematicae, 66(3):211–249, 2001. doi: 10.1023/A:1010767517079.
Uriel Feige, Prabhakar Raghavan, David Peleg, and Eli Upfal. Computing with noisy information. SIAM Journal on Computing, 23(5):1001–1018, 1994. doi:10.1137/S0097539791195877.
Donatella Firmani, Barna Saha, and Divesh Srivastava. Online entity resolution using an oracle. Proceedings of the VLDB Endowment, 9(5):384–395, 2016. doi: 10.14778/2876473.2876474.
Dylan J. Foster, Daniel Reichman, and Karthik Sridharan. Inference in sparse graphs with pairwise measurements and side information. In Proceedings of the 21st International Conference on Artificial Intelligence and Statistics, volume 84 of Proceedings of Machine Learning Research, pages 1810–1818. PMLR, 2018.
Sainyam Galhotra, Donatella Firmani, Barna Saha, and Divesh Srivastava. Robust entity resolution using random graphs. In Proceedings of the 2018 International Conference on Management of Data (SIGMOD), pages 3–18. ACM, 2018. doi: 10.1145/3183713.3183755.
Amir Gilad, Aviram Imber, and Benny Kimelfeld. The consistency of probabilistic databases with independent cells. In 26th International Conference on Database Theory (ICDT 2023), volume 255 of Leibniz International Proceedings in Informatics (LIPIcs), pages 22:1–22:19. Schloss Dagstuhl–
Leibniz-Zentrum für Informatik, 2023. doi: 10.4230/LIPIcs.ICDT.2023.22.
Amir Globerson, Tim Roughgarden, David Sontag, and Cafer Yildirim. How hard is inference for structured prediction? In Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 2181–2190. PMLR, 2015.
Anja Gruenheid, Besmira Nushi, Tim Kraska, Wolfgang Gatterbauer, and Donald Kossmann. Fault-tolerant entity resolution with the crowd. arXiv preprint arXiv:1512.00537, 2015.
Zhengtao Gui, Sheng Yang, and Zhouxing Shi. Evaluating the robustness of proof autoformalization in Lean 4. arXiv preprint arXiv:2606.14867, 2026. doi:10.48550/arXiv.2606.14867. URL https://arxiv.org/abs/2606.14867.
Chaohui Guo, Michel C. A. Klein, and Zhisheng Huang. CaRL-EM: Cost-aware reinforcement learning for entity matching with LLMs. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 27281–27293. Association for Computational Linguistics, 2026. doi: 10.18653/v1/2026.acl-long.1258. URL https://aclanthology.org/2026.acl-long.1258/.
Hasso Plattner Institute. CORA dataset: Bibliographic records and duplicate pairs. Repeatability datasets, n.d. URL https://hpi.de/en/naumann/projects/repeatability/datasets/cora-dataset.html. Accessed October 1, 2026.
Alireza Heidari, Ihab F. Ilyas, and Theodoros Rekatsinas. Approximate inference in structured instances with noisy categorical observations. In Proceedings of The 35th Uncertainty in Artificial Intelligence Conference, volume 115 of Proceedings of Machine Learning Research, pages 412–421. PMLR, 2020. URL https://proceedings.mlr.press/v115/heidari20a.html.
Sujai Hiremath, Dominik Janzing, Philipp Michael Faller, Patrick Blöbaum, Elke Kirschbaum, Shiva Prasad Kasiviswanathan, and Kyra Gan. From Guess2Graph: When and how can unreliable experts safely boost causal discovery in finite samples? In Proceedings of The 29th International Conference on Artificial Intelligence and Statistics, volume 300 of Proceedings of Machine Learning Research, pages 1459–1467. PMLR, 2026. URL https://proceedings.mlr.press/v300/hiremath26a.html.
Omer Israeli and Yuval Peled. Noise sensitivity of the minimum spanning tree of the complete graph.
Combinatorics, Probability and Computing, 33(6):708–723, 2024. doi: 10.1017/S0963548324000129.
Shuyue Jin, Zhengtao Gui, Jie Hu, and Yu Chen. Community detection and network reconstruction with dependent connectivity from rich but noisy network data. Australian & New Zealand Journal of Statistics, 68(1):e70026, 2026. doi: 10.1111/anzs.70026.
Pascal Kesseli, Peter O'Hearn, and Ricardo Silveira Cabral. Logic.py: Bridging the gap between LLMs and constraint solvers. In Advances in Neural Information Processing Systems, volume 38, pages 62505–62525. Curran Associates, Inc., 2025. doi:10.52202/085713-2093.
Emre Kiciman, Robert Ness, Amit Sharma, and Chenhao Tan. Causal reasoning and large language models: Opening a new frontier for causality. Transactions on Machine Learning Research, 2024. ISSN 2835-8856. URL https://openreview.net/forum?id=mqoxLkX210.
Joseph B. Kruskal, Jr. On the shortest spanning subtree of a graph and the traveling salesman problem. Proceedings of the American Mathematical Society, 7(1):48–50, 1956. doi: 10.1090/S0002-9939-1956-0078686-7.
Hanbyul Lee, Kevin Bello, and Jean Honorio. On the fundamental limits of exact inference in structured prediction. In 2022 IEEE International Symposium on Information Theory (ISIT), pages 3174–3179. IEEE, 2022. doi: 10.1109/ISIT50566.2022.9834614.
Stephanie Long, Alexandre Piché, Valentina Zantedeschi, Tibor Schuster, and Alexandre Drouin. Causal discovery with language models as imperfect experts. In ICML 2023 Workshop on Structured Probabilistic Inference & Generative Modeling, 2023. arXiv preprint arXiv:2307.02390.
Ruiqi Lyu, Alistair Turcan, Martin Jinye Zhang, and Bryan Wilder. Improving constraint-based discovery with robust propagation and LLM priors. In Conference on Neural Information Processing Systems (NeurIPS 2026), 2026. URL https://neurips.cc/virtual/2026/poster/151902. Accepted; proceedings forthcoming.
Konstantin Makarychev, Yury Makarychev, and Aravindan Vijayaraghavan. Correlation clustering with noisy partial information. In Proceedings of The 28th Conference on Learning Theory, volume 40 of Proceedings of Machine Learning Research, pages 1321–1342. PMLR, 2015.
Arya Mazumdar and Barna Saha. Clustering with noisy queries. In Advances in Neural Information Processing Systems, volume 30, 2017a.
Arya Mazumdar and Barna Saha. A theoretical analysis of first heuristics of crowdsourced entity res-olution. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 31, pages 970–976, 2017b. doi: 10.1609/aaai.v31i1.10636.
Christopher Meek. Causal inference and causal explanation with background knowledge. In Proceedings of the Eleventh Conference on Uncertainty in Artificial Intelligence, pages 403–410, 1995.
Eric Mitchell, Joseph Noh, Siyan Li, Will Armstrong, Ananth Agarwal, Patrick Liu, Chelsea Finn, and Christopher D. Manning. Enhancing self-consistency and performance of pre-trained language models through natural language inference. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 1754–1768. Association for Computational Linguistics, 2022. doi: 10.18653/v1/2022.emnlp-main.115.
Ralph Peeters, Aaron Steiner, and Christian Bizer. Entity matching using large language models. In Proceedings of the 28th International Conference on Extending Database Technology, pages 529–541. OpenProceedings.org, 2025. doi: 10.48786/edbt.2025.42. URL https://www.openproceedings.org/2025/conf/edbt/paper-81.pdf.
Qwen Team. Qwen2.5-1.5B: Base model card, 2024. URL https://huggingface.co/Qwen/Qwen2.5-1.5B. Apache 2.0; model revision recorded in the experimental metadata.
Igal Mason and Shlomo Shamai. Performance analysis of linear codes under maximum-likelihood decoding: A tutorial. Foundations and Trends in Communications and Information Theory, 3(1–2):1–222, 2006. doi: 10.1561/0100000009.
Remco van der Hofstad. Random Graphs and Complex Networks. Volume 1. Number 43 in Cambridge Series in Statistical and Probabilistic Mathematics. Cambridge University Press, Cambridge, 2017. doi:10.1017/9781316779422.
Norases Vesdapunt, Kedar Bellare, and Nilesh Dalvi. Crowdsourcing algorithms for entity resolution. Proceedings of the VLDB Endowment, 7(12):1071–1082, 2014. doi: 10.14778/2732977.2732982.
Jiannan Wang, Guoliang Li, Tim Kraska, Michael J. Franklin, and Jianhua Feng. Leveraging transitive relations for crowdsourced joins. In Proceedings of the 2013 ACM SIGMOD International Conference on Management of Data, pages 229–240. ACM, 2013. doi: 10.1145/2463676.2465280.
Tianshu Wang, Xiaoyang Chen, Hongyu Lin, Xuanang Chen, Xianpei Han, Le Sun, Hao Wang, and Zhenyu Zeng. Match, compare, or select? an investigation of large language models for entity matching. In Proceedings of the 31st International Conference on Computational Linguistics,
pages 96–109. Association for Computational Linguistics, 2025. URL https://aclanthology.org/2025.coling-main.8/.
Harry Wiener. Structural determination of paraffin boiling points. Journal of the American Chemical Society, 69(1):17–20, 1947. doi: 10.1021/ja01193a005.
Yi Xu, Laura Ruis, Tim Rocktäschel, and Robert Kirk. Investigating non-transitivity in LLM-as-a-judge. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 69583–69612. PMLR, 2025. URL https://proceedings.mlr.press/v267/xu25w.html.
Yifan Zeng, Ojas Tendolkar, Raymond Baartmans, Qingyun Wu, Lizhong Chen, and Huazheng Wang. LLM-RankFusion: Mitigating intrinsic inconsistency in LLM-based ranking. Transactions on Machine Learning Research, 2026. URL https://openreview.net/forum?id=VUY0j74Yes.
How Much Does One Wrong Answer Cost? Supplementary Materials
A PROOFS
A.1 Setting and reduction
We first express small-noise risk in terms of single-error damage, then prove the results for logical constraints, entity resolution and sorting. Numerical checks are in Section B.
A code is a finite nonempty set . Its elements are codewords, and its positions are coordinates (the binary queries). The truth is a codeword . The answers are , where are independent and with . We write for the -th unit vector of and for the Hamming distance. A decoder maps the answers to an estimate, possibly using a random seed independent of to choose the query order or break ties; its output is . Its risk is , where the expectation is over and . We use three decoders.
-
The raw decoder outputs . Hence exactly.
-
The ML decoder outputs a codeword at minimum Hamming distance from , with ties broken uniformly at random. For this is maximum-likelihood decoding.
-
The greedy decoder processes the coordinates in an order . It starts from the empty set of accepted answers. At step , with , it skips if all codewords consistent with have the same value at (the query is implied); otherwise it accepts the answer and sets . It outputs the unique codeword consistent with . Lemma 16 in Section A.2 shows that this codeword exists and is unique. Unless stated otherwise, is uniform over the ! orders and independent of .
For a codeword and a coordinate we define
If , an error at leaves the observed word at distance 1 from and from alternative codewords. Each alternative differs from the original codeword in two positions and is therefore at distance 2 from . For a decoder with seed , the single-error damage at is the expected loss when the only wrong answer is at :
Probabilistic unclean databases (De Sa et al., 2019) formalize a noisy-channel model of database cleaning and seek the most likely intended database. Their Theorems 7 and 8 relate this optimum to weighted minimum repairs under sufficiently high constraint weights and specified prior/channel assumptions; the update-repair result also requires attribute independence. Union-bound analyses of ML decoding are surveyed by Mason and Shamai (2006); part (i) of Lemma 1 gives an elementary first-order expansion for our finite code setting. Part (ii) applies the same reduction to greedy decoding.
Proof of Lemma 1, remainder bound. We show that every decoder that is exact on the noiseless input, that is, for every seed, satisfies for all
Condition on the error set . If , then and the loss is 0. The event has probability . On this event the conditional expected loss is , because is independent of . If , the loss lies in , and a union bound over pairs of coordinates gives . Therefore
Bernoulli's inequality gives . So the first term lies in , and the first inequality in (1) follows. The second inequality follows from . For ML, part (i) below gives , which yields the tighter bound .
The same argument applies when coordinate has its own error rate . Then , , and . Hence (1) holds with replaced by .
Proof of Lemma 1(i). We show that the ML decoder has if and otherwise, so that
Here counts the codewords at Hamming distance one from the truth. The ML decoder is exact on the noiseless input, because is the only codeword at distance 0 from . Let . If , the decoder returns , which is at distance 0, and the loss is . Otherwise . The codewords at distance 1 from are and the codewords of the form with . The latter are exactly the words indexed by , and each of them is at distance 2 from . Uniform tie-breaking among these words gives the expected loss . The displayed form of follows from (1). If for every , as on 2-CNF theories (see the proof of Proposition 5), the bracket equals . In words, each codeword at distance 1 counts 1, and each two-way tie counts .
Proof of Lemma 1(ii). We show that , with the remainder bound (1), where is the damage of one wrong answer at , whether this answer is accepted or not. The output of is a function of and of the order , and is independent of . The decoder is exact on the noiseless input. Indeed, if , every accepted pair agrees with ; so is consistent with , and it is therefore the unique codeword consistent with (Lemma 16). So (1) applies with . Let be the mean single-error damage over positions and orders. Then . Since , the amplification of the greedy decoder over the raw decoder is .
A.2 Logical constraints
Let be a satisfiable propositional formula, that is, a conjunction of clauses, over a finite set of atoms with . The code is the set of models (satisfying assignments) of . Every nonempty code has this form: take for the conjunction, over the words , of the clause that is false exactly at . The truth is a model . For an atom , the true literal is if and otherwise; the false literal is the other literal on . The answer on is , where the are i.i.d. Bern(). The claim literal of is if and if . A set of literals records accepted answers; requiring all its members to hold is equivalent to taking their conjunction. We write if , that is, if every model of that satisfies all literals of also satisfies the literal .
For an order of , the greedy decoder (skip if implied, accept otherwise) starts with . At step , with , it sets if or (the atom is skipped); otherwise it sets (the claim is accepted). Its output is the unique model of . On the code this is the greedy decoder of Section A.1, because “all models of that satisfy have the same value at ” means “ or ” whenever is satisfiable. The loss is the Hamming distance, and with uniform and independent of . The raw decoder outputs and has exactly.
Lemma 16 (Well-definedness; equivalence with accept-if-consistent). Let be a satisfiable formula over , let be an order of , and let be arbitrary answers.
(i) is satisfiable for every .
(ii) has exactly one model, so the output is well defined.
(iii) equals the output of the accept-if-consistent decoder. This decoder processes the atoms in the same order, starts with , adds the claim literal of the current atom to if and only if is satisfiable, and outputs the unique model of .
Proof. (i) We use induction on . The formula is satisfiable by assumption. A literal is added at step only if , that is, only if is satisfiable.
(ii) At its own step , each atom either has its value entailed by or receives a literal in . Entailment is monotone in , and . So entails a value for every atom. By (i) it has a model, and this model is unique because every atom's value is entailed.
(iii) We show by induction on that and have the same set of models. This holds for . Suppose it holds for ; then both runs entail the same literals before step . Let be the claim literal of the atom processed at step . If neither value of the atom is entailed, then is not entailed, so is consistent, and both decoders add . If is entailed, the greedy decoder skips the atom and the accept-if-consistent decoder adds ; adding an entailed literal does not change the set of models. If is entailed, is inconsistent, and both decoders leave their sets unchanged. In all cases the two sets of models remain equal. At this set is a single model by (ii), so the two outputs coincide.
Since every nonempty code is Mod( ) for some satisfiable , Lemma 16 also shows that the greedy decoder of Section A.1 is well defined on every code.
The backbone is , the set of atoms that take the same value in every model. For we put
and for we put . When , the set contains , and we call it the flip set of . In this case is satisfiable, so it cannot entail both and , and makes true for every . We say that has the single-flip property at , written , if is a model of . This means that flipping the forced atoms is enough to accommodate the wrong answer, without changing any other atom. Under , is the unique model of that agrees with outside , because every model of satisfies for all . The single-error damage of the greedy decoder at is for the answers , in which only the answer on is wrong.
Proof of Theorem 2. Suppose that exactly one answer is wrong, at the atom . Then for every order when . If and holds, then for every order
so that for the uniform order, and indeed for every exchangeable random order.
Case . Here , so the atom is always skipped and its wrong claim is never accepted. All other claims are true literals. Hence all accepted literals are true, is a model of , and by Lemma 16(ii) the output is .
Case under . Let be the step at which is processed. For , every accepted literal is the claim of an atom with a correct answer, so consists of true literals.
Step 1 (when is entailed). For every set of true literals, if and only if contains a literal on some atom of . Indeed, if and only if is unsatisfiable. If contains no literal on an atom of , then satisfies , because it agrees with outside ; it also satisfies , and it satisfies by . So is satisfiable, and . If contains with , then contradicts , so is unsatisfiable.
Step 2 (when the wrong claim is accepted). A literal enters only at the step of its own atom. So if contains a literal on an atom of , this atom lies in and precedes . Conversely, suppose that some is processed at a step . Either was added, and then contains a literal on ; or was skipped. In the second case entails or ; it cannot entail , because is a model of ; so . Then entails both and , so it is unsatisfiable, that is, . By Step 1, contains a literal on . Together with Step 1 this shows: at step , if and only if some element of precedes . The wrong literal is never entailed at step , because is a model of . Hence is accepted if and only if is the first atom of in ; otherwise is skipped.
Step 3 (rejected case). If is not accepted, every literal ever added is true, so the output is and .
Step 4 (accepted case). Now , where consists of true literals of atoms other than . No atom of contributes to . Indeed, such an atom comes after ; at its step contains , and by the definition of ; so is skipped. Hence satisfies (it agrees with outside ), satisfies , and satisfies by . By Lemma 16(ii) the output is , and .
Expectation. For the uniform order, and for every exchangeable random order, each of the atoms of is equally likely to come first among them. So comes first with probability , and .
Proof of Proposition 3. We show that if every clause of has at most two literals, then holds for every truth and every atom . Let be the set of literals entailed by . Since is satisfiable, contains no complementary pair. By definition, for the literal lies in , and makes it true. Take a clause of and suppose that falsifies both and . If neither atom lies in , then agrees with on both atoms, and satisfies the clause; this is a contradiction. So we may assume that atom , where atom denotes the atom of the literal . Then is true under , and it equals , which lies in . From we get . If atom , the unique literal of on this atom is , which makes true; so is true, a contradiction. If atom , then , so ; this literal is true under and hence under , again a contradiction. Finally, take a unit clause . Then , and because . If atom were in , then would contain both and ; so atom , and satisfies .
Implication theories. For a directed graph let . Identify an assignment with its set of true atoms. The models of are then the closed sets: the sets such that and imply (the up-closed sets of the preorder generated by ). For , let be the smallest closed set that contains . Since and are models, the backbone is empty. Let be the true set, let reach( ) be the set of vertices reachable from (including ), and let be the set of vertices from which is reachable (including ). Then:
• for a false positive , and ; hence , the cone of ;
• for a false negative , and .
Indeed, the models of are the closed sets that contain reach(a); the smallest is reach(a) and the largest is . So the literals entailed by are exactly the positive literals on reach(a). For we have , and is the positive literal exactly when ; this gives . Since is closed, is closed and equals . Dually, the models of are the closed sets contained in , which is itself closed; the smallest is and the largest is . So the literals entailed by are exactly the negative literals on . For we have , and exactly when ; this gives .
Proof of Corollary 4. We show that for a satisfiable 2-CNF with backbone , every truth and every ,
We split on the error set . With no error the output is (Lemma 16(ii)), and the loss is 0. With exactly one error, at (probability ), Theorem 2 and Proposition 3 give . Summed over , these events contribute . With two or more errors the loss lies in and the probability is at most ; these events contribute a term . Hence . Finally, by Bernoulli's inequality, which gives both bounds.
For an implication theory the backbone is empty, so for every truth. The per-atom statement holds for each atom separately, so the conclusion holds for false-positive and false-negative errors alike.
Remark 17 (The random order is essential). For a fixed order the single-error damage takes only the values 0 and . Under a random order, the wrong claim is accepted with probability , and then it damages exactly atoms. A fixed order can make every error of one type maximally damaging. Consider the chain (clauses ), whose models are the up-sets and . For a false positive at , the flip set consists of and the false atoms after it on the chain, and the wrong claim is accepted if and only if is asked before every other atom of . So the topological order accepts every false positive and lets it corrupt every false atom reachable from it, while the reverse order rejects every false positive with . For example, with the chain , the truth “both false” and the wrong answer , the order accepts , then finds implied true, and has damage 2; the order accepts , then finds implied false, and has damage 0. For false negatives the roles of the two orders are exchanged: consists of and the true atoms before it, and the reverse topological order is the damaging one.
Proof of Proposition 5. We show that on a satisfiable 2-CNF with truth , a single wrong answer at an atom costs the ML decoder exactly 1 in expectation if and 0 if , and that a single wrong answer at an atom costs 0. Consequently .
We use Lemma 1(i). Let , and let be the number of codewords of the form with when . Then if and otherwise. Every word that differs from at satisfies .
Case . No model satisfies . So , no word is a codeword, and .
Case . By Proposition 3, holds. Every model that satisfies satisfies for all , so it differs from on all of . If , then differs from only at , so . Conversely, if , then is a model by . So if and only if , and in this case . Now let , so that . A codeword with differs from exactly on and satisfies ; hence , that is, . Conversely, if , then is a model by . So if , and if . With uniform tie-breaking this gives and , respectively.
Summing over the atoms and applying (1) gives the formula for . In particular for every atom, as used in the proof of Lemma 1(i). Comparing with Corollary 4, . On an implication theory ( ), the greedy and raw decoders therefore have the same first-order risk, while the greedy risk exceeds the ML risk by at first order.
Horn hubs. For integers and , the Horn hub has the atom and, for each , the atoms ; so . Its rules are for , each with a body of atoms. The corresponding clauses are . The truth is , the assignment in which exactly the atoms are true; it is a model because is false. Block is , and is the set of its true literals. The cone of is : the closure of adds and . For the rules have the form of the rule with a shared premise.
Proof of Theorem 6. For uniform , a single false positive on (all other answers correct) has
where is the Gamma function. For this equals . Every other single error has damage exactly 1 for every . Hence
Satisfiability criterion. Let be a set of literals without complementary pairs. We claim that is unsatisfiable if and only if and for some , that is, falsifies every literal of some clause other than . The “if” direction is clear. For the “only if” direction, suppose first that . Setting false and every other atom as prescribes (free atoms arbitrarily) satisfies every clause, since each clause contains . Suppose next that but for every . Then each clause has a literal on that is either true under or lies on an atom that leaves free. Set each free atom of so as to satisfy . The atoms of occur only in , so these choices do not interact, and is satisfiable.
The run with the wrong claim a. All other claims are the true literals, the members of the sets . Let be the step of a.
-
Before , the atom has no literal in . For an atom processed before , neither nor contains , so both are consistent with by the criterion. Hence nothing is entailed and every claim is accepted. So is the set of true literals of the atoms processed before .
-
At , the literal is not entailed, because does not contain and is consistent. The literal is entailed if and only if is unsatisfiable, that is, if and only if for some . This means that some block lies entirely before in . In that case the wrong claim is skipped, all accepted literals are true, and the output is (damage 0).
-
Otherwise the wrong claim is accepted. Consider block and an atom processed after , and let be the set of accepted literals at the step of . Its true literal is not entailed. Indeed, unsatisfiability of would require for some . The case is impossible because but . The case would give , which contradicts the satisfiability of (Lemma 16(i)). By the same argument, the false literal is entailed if and only if is unsatisfiable, that is, if and only if .
Now follow block along the order . Every atom of other than the last one in is accepted with its true literal. For atoms before this follows from the first bullet. For an atom after that is not the last atom of , the literal of the last atom is not yet in , so , and neither literal of is entailed. The last atom of comes after , because does not lie entirely before . At its step the other literals of are in , so its false literal is entailed, and the output gives it its false value. So each block contributes damage exactly 1, and together with the damage is .
Probability of acceptance. Attach independent Unif[0,1] times to all atoms; sorting the times gives a uniform order. Conditionally on the time of , block lies entirely before with probability , independently over the blocks. Hence the wrong claim is accepted with probability , and . The substitution turns the integral into , where is the Beta function. Since , the integral equals . For , the identity and give
The asymptotic form follows from for fixed , together with . For it reads .
Other single errors. The atom is false in , so its only possible error is the false positive treated above. Consider a false negative on some or a false positive on some , with all other answers correct. The answer vector then has false, so it satisfies every clause and is itself a model. Hence every claim is consistent with every set of accepted claims, since all of them are literals of the model . So the negation of a claim is never entailed, and every atom either has its claim accepted or has its claim entailed. Thus is a model of , and by Lemma 16(ii) the output is , with damage , for every .
Summation. There are atoms other than , each with single-error damage 1, and . By Lemma 1(ii), . Since , the remainder bound (1) gives . The excess is , so the greedy risk exceeds the raw risk by at first order.
Remark 18 (Where the single-flip property fails). In the formula entails nothing new. Indeed, by the satisfiability criterion is consistent for every literal on another atom, because each has literals. So and , which violates every clause and is not a model. The wrong literal alone does not imply additional incorrect values. These values are implied later, when the wrong literal is combined with correct literals. Acceptance is determined by the s-element blocks rather than by the flip set. The single-flip property can also fail for false negatives. Change the signs of the literals on and on in every clause; this gives the rules (for , the rules ). Take the truth in which all atoms are true, and a false negative on . The unsatisfiability criterion becomes: and some block has all its true literals in . The proof above, with the literals of each block exchanged, gives the same damage law. For comparison with ML, when the word has as its unique nearest codeword, because flipping a single atom of a block repairs only one of the violated clauses. So the ML single-error damage at is 0.
General Horn theories. A definite Horn theory is a conjunction of rules over atoms, where is the body and the head of the rule. Identify a model with its set of true atoms. The models are then the closed sets, that is, the sets that contain the head of every rule whose body they contain. For , is the smallest closed set that contains , obtained by repeatedly adding conclusions whose premises are already present. For a closed truth and an atom , the cone of is ; this extends the cone of implication theories.
Conjecture 19 (Body-size law). For every there is a constant with the following property. Let be a definite Horn theory whose rule bodies have at most atoms, let be a closed set, and let . Then a single false positive at (all other answers correct) has, for uniform ,
By Theorem 6 the exponent cannot be lowered: the hub has and . For , that is, for implication theories, the statement holds with and with equality: there for a false positive, and by Theorem 2 and Proposition 3. A corresponding bound for false negatives remains open; it requires a way to measure the atoms affected when a true premise is removed. In the simulations of Section B, which also test Conjecture 19, false-negative damages reach 1.48.
A.3 Entity resolution
The items are . The code is the set of partitions of , written as vectors of pair indicators , where means that and lie in the same block. The constraints are transitivity, . Each pair carries an independent answer with . In this section the true partition has a single cluster, so every flip is a false “different”, and is the false-split rate. The loss is the number of pairs on which the output partition disagrees with the truth; here it is the number of pairs that the output separates.
The pipeline is the transitivity pruning of Wang et al. (2013). It maintains a partition of into blocks and a set of constraints between blocks. It processes the pairs in the order . For a pair , it skips if and lie in the same block or if their blocks carry a constraint. Otherwise it queries the answer . On “same” it merges the two blocks, and the merged block inherits all constraints of both; on “different” it adds a constraint between the two blocks. Its output is the final partition into blocks.
For an order of the pairs, is the spanning tree obtained by scanning and keeping a pair if and only if it joins two different components of the pairs kept so far. This is Kruskal's algorithm (Kruskal, 1956) for the edge weights “position in ”, so is the minimum spanning tree for these weights. It depends on only, not on the answers. With all answers correct, its edges are exactly the queried pairs; we therefore use it as a reference tree even in noisy runs. For a spanning tree of the complete graph , is the number of edges on the path from to in . For an edge , and are the numbers of vertices of the two components of . The Wiener index of is
where the second form counts, for each edge , the pairs whose path uses . We also write .
Lemma 20 (Union-find is the greedy decoder). For every order of the pairs and all answers, the union-find pipeline equals the greedy decoder on the partition code. That is, it skips exactly the pairs whose relation is entailed by the answers accepted so far, it accepts the answer on every other pair, and its output is the unique partition that satisfies all accepted answers.
Proof. Let be a set of accepted literals, each an equality or an inequality , and assume that is satisfiable, that is, that some partition satisfies all of them. Call the connected components of the graph of accepted equalities the equality-components. We claim: (a) entails if and only if and lie in the same equality-component; (b) entails if and only if some accepted inequality joins the equality-component of to that of .
(a) If u and v are joined by a path of accepted equalities, transitivity gives in every model. Conversely, consider the partition into equality-components. It satisfies every accepted equality. It also satisfies every accepted inequality: in any model every equality-component lies in one block, so a satisfiable L contains no inequality inside an equality-component. This partition separates any two points of different equality-components, so for such points L does not entail .
(b) If an accepted inequality joins a point of the component of to a point of the component of , then every model has , and , hence by transitivity. Conversely, suppose that no accepted inequality joins the two components. If the two components coincide, entails and, being satisfiable, does not entail . Otherwise, merge these two components and keep all other equality-components as blocks. The resulting partition satisfies every accepted equality and every accepted inequality, and in it ; so does not entail .
We now compare the two decoders step by step. Suppose that before some step both have accepted the same satisfiable set ; this holds at the start, with . The blocks of the pipeline are the equality-components of , because a merge happens exactly when an equality is accepted. Two blocks carry a constraint if and only if an accepted inequality joins them, because constraints are created by accepted inequalities and inherited through merges. By (a) and (b), the pipeline skips the current pair exactly when entails its relation, which is the rule of the greedy decoder; otherwise both decoders accept the answer. An accepted answer is consistent with , because its negation is not entailed, so the new set is again satisfiable. By induction, the two decoders accept the same literals at every step. At the end, the final blocks form the partition into equality-components, which satisfies by the proof of (a); by Lemma 16(ii) it is the unique model of , that is, the output of the greedy decoder.
The full flip vector assigns a potential error to every pair, but the pipeline reads only when it queries that pair. The decision to query uses only earlier answers, so its unobserved error is still independent of that decision. This gives the same distribution as independently flipping each queried answer.
Proof of Lemma 7. Let the truth be one cluster, and fix an order and a flip vector . Let be the set of flipped tree edges. For a pair , let be the number of edges of on the path from to in . We show that implies that and end in the same block, and that implies that they end in different blocks. Consequently , where (respectively ) is the number of pairs with (respectively ).
Let be the partition of into the components of the edges of among the first pairs of . It equals the partition into the components of all of the first pairs, because Kruskal's algorithm keeps a pair exactly when it joins two components. Let be the partition of the pipeline into blocks after pairs.
(A) refines : every pipeline block lies inside one -component. We use induction on ; blocks change only by merges. A merge at step happens on a queried pair . After step , and lie in the same -component: either joins two -components, and then , or and were already in one component. The merged block is the union of two blocks, each contained in a -component by the induction hypothesis, and both of these components lie inside the -component of .
(B) At every time , every constraint joins two blocks that lie in the same -component. A constraint is created at some step on a queried pair , and from then on it joins the current block of and the current block of , because constraints are inherited through merges. As in (A), and lie in one -component from that step on, since the partitions only become coarser. By (A), the current blocks of and lie inside this component.
(C) Every edge is queried. At its step , the points and lie in different -components, by the definition of . By (A) they lie in different blocks. By (B) no constraint joins these two blocks. So is queried. Since the truth is one cluster, the query merges the two blocks if , and it creates a constraint between them if .
Blocks never split. By (C), the two ends of every edge of end in the same block. So every component of (a fragment) lies inside one final block. This is the first claim, because means that and lie in the same fragment. For the second claim, let be the unique flipped edge on the path from to , with on the side of . By (C), at the step of a constraint is placed between the block of and the block of . Two blocks joined by a constraint are never merged, because a merge follows only a query, and a query is made only between unconstrained blocks. The constraint is inherited by every later block that contains or . So and end in different blocks. The paths from to and from to contain no flipped edge, so by the first claim ends with and ends with . Hence and end in different blocks. Since the loss counts the separated pairs, the pairs with are counted and the pairs with are not, which gives .
Proof of Theorem 8. We show that for every order and every , with in each summand,
In particular , with remainder at most . Moreover, a single flip on a tree edge costs exactly , and a single flip on a pair outside the tree costs nothing.
Take expectations over in Lemma 7. The tree does not depend on , so the flips on the edges of the path from to are i.i.d. , and is binomial with parameters and . Hence and , which gives the two middle inequalities. For the outer ones, by Bernoulli's inequality, and . Summing over pairs gives the bounds, and because . With exactly one flip, on the pair , we have for all pairs. If , then is the number of pairs whose tree path uses , that is, . If , then and ; indeed, the pair is never queried when all earlier answers are correct.
With no wrong answer, the pipeline makes exactly queries, namely the edges of . By (C) in the proof of Lemma 7 every tree edge is queried. A pair outside the tree arrives when its two ends already lie in one -component; with all answers correct, every tree edge so far has merged its blocks, so the blocks coincide with the -components and the pair is skipped.
Known results on the random minimum spanning tree. For uniform , the tree is distributed as the minimum spanning tree of with i.i.d. continuous edge weights. We use two known results on .
(F1) (Addario-Berry et al., 2009) , where diam is the largest tree distance between two vertices.
(F2) (Addario-Berry et al., 2017, Theorem 1.1) The tree , with distances multiplied by and with the uniform probability measure on its vertices, converges in distribution, in the Gromov–Hausdorff–Prokhorov topology, to a random compact measured real tree . Let be the tree distance between two independent uniform vertices of . By the standard Gromov–Prokhorov consequence of this convergence, converges in distribution to , where, given , the points and are independent with law . Broutin and Marckert (2023, Theorem 1.1 and Proposition 6.5) identify the same measured limit and show that, for a point sampled from , almost surely for all sufficiently small . Thus almost surely. Conditional independence then gives , so .
The scale also appears in this tree's edge-weight-resampling noise threshold (Israeli and Peled, 2024).
Proof of Proposition 10. First, , so that , an amplification over the raw rate. Second, let with fixed, and let be the expected fraction of separated pairs. Then
The law. For the upper bound, for every tree , and (F1) gives . For the lower bound, let be the tree distance between a uniformly random pair of distinct vertices. Then , and because when the two vertices coincide. By (F2), converges in distribution to . For nonnegative random variables, convergence in distribution implies (Fatou's lemma, or the portmanteau theorem applied to the nonnegative continuous map ). Since , , so . The first-order statement then follows from Theorem 8 by averaging over : .
The window. Here the error rate shrinks on the reciprocal scale of typical tree distances, so a typical path encounters a constant-order number of errors. By Lemma 7 and the independence of the flips from , as in the proof of Theorem 8, lies between and . The laws of and differ only by an event of probability (the two uniform vertices coincide), on which . So also converges in distribution to . Write with . By the continuous mapping theorem, converges in distribution to , and converges in distribution to . Both variables are bounded: the first by 1, and the second by , because with . So their expectations converge to and , which gives the two middle inequalities. The last inequality follows from . Finally, , so Fatou's lemma and (F1) give ; and as shown above.
Interpretation. As both bounds equal ; for the lower bound this follows by monotone convergence of , and for the upper bound by monotone convergence of . Thus and both behave as as . Inside the window, for each fixed , the loss fraction is of constant order, bounded away from 0 (because ) and from 1 (because almost surely).
Whether has a limit , and whether or stays below 1 as , depends on how the pipeline repairs pairs with at least two flipped edges on their path; this question is open. For a fixed query order, the loss need not increase when additional answers are flipped. Suppose that removing two tree edges from leaves three fragments , with between and and between and . If only is flipped, Lemma 7 gives the final partition , and similarly for . If both are flipped, the run can end in the partition , for instance when a pair between and arrives after both flipped edges; it is then queried and answered “same”. When has fewer points than each of and , this separates fewer pairs than flipping either edge alone. So, for a fixed order, flipping more answers can decrease the loss.
Proof of Proposition 9. (i) Every spanning tree of with has , with equality if and only if is a star; hence, among all orders, the first-order risk of is minimized exactly by the orders whose Kruskal tree is a star (for example the pivot orders). (ii) Let a decoder observe only the answers on the
pairs of a fixed spanning tree and output any partition, possibly at random. Let be the one-cluster partition, and for let be the partition into the two components of . If , then
where is the expected number of pairs on which the output disagrees with when the truth is .
(i) For we have , with equality if and only if . So . Equality holds if and only if every edge has a leaf as an endpoint, which for a tree on vertices means that is a star. An order that lists the pairs first, as in the node-ordering (pivot) pipeline of Vesdapunt et al. (2014), has the star centered at 1 as its Kruskal tree. Its first-order risk is therefore exactly , an amplification over the raw rate. With no wrong answer, both the pivot order and a random order make exactly queries (the remark after the proof of Theorem 8).
(ii) Let be the noiseless observation on under , namely “different” on and “same” on the other edges of ; these observations are distinct for distinct . Let be the decoder, and let denote the number of pairs on which two partitions disagree. Put prior weight on and weight on each . Keeping only the observations , the Bayes risk of is at least
where the expectations are over the internal randomness of the decoder. Here and . For we have , hence . The distance is a Hamming distance on pair indicators, so . So the Bayes risk is at least . The maximum risk is at least the Bayes risk, and (i) gives the second inequality. Part (ii) assumes that the observed tree is fixed in advance. The pipeline can change its queries in response to answers, even though its noiseless query set is , so the bound does not directly apply to it.
Similarity order. The items carry embeddings , i.i.d. with a density on that is bounded below by . The pairs are processed in increasing order of the Euclidean distance (most similar first), as in the order by decreasing match probability of Wang et al. (2013). Then is the Euclidean minimum spanning tree of the points, which is almost surely unique. The order is independent of the answers, so Theorem 8 gives the first-order risk conditionally on the embeddings. Throughout, is the natural logarithm.
Proof of Theorem 11. Let . We show that for every with ,
and that for and any continuous distribution exactly.
The proof bounds the length of the longest tree edge, then uses it to show that paths between distant points must contain many edges.
(1) Bottleneck property. For let be the geometric graph on the points with an edge between any two points at distance at most . The longest edge of EMST is at most any for which is connected. Indeed, suppose that is connected and that an edge of EMST is longer than . Removing splits the points into two sides. Some edge of crosses this cut, and exchanging it for gives a lighter spanning tree, which is a contradiction.
(2) Tiling. Let , which is at least 1 by assumption, and let . Tile by cubes of side . Each cube receives a given point with probability at least . So the probability that some cube is empty is at most ; the last step uses , where because integrates to 1 on the unit cube. Suppose that no cube is empty. Two points in the same cube are within distance , and two points in face-adjacent cubes are within distance . The face-adjacency graph of the cubes is connected, and every point lies in a cube. So is connected, and by (1), . Call this event ; we have shown .
(3) Paths are long. On , the tree path from to consists of edges of length at most , and it covers the Euclidean distance . So , where . Hence
because and . Dividing by gives the bound.
(4) The case . For distinct points on a line, which occur almost surely under a continuous distribution, the minimum spanning tree is the path through the points in sorted order. The path has , so .
Relative to Proposition 10, the similarity-first amplification is larger by order in and at least order in . Thus, under these embedding assumptions and for all sufficiently large , similarity ordering within a cluster has higher first-order risk than random ordering and pivot ordering.
For , sharper amplification exponents would require finer control of planar MST path geometry; existing planar scaling results give bounds on path dimension (Aizenman et al., 1999). For the bound is below and gives no comparison with random order.
Several clusters. There are latent clusters of sizes , and items. All pairs are processed in a uniformly random order by the union-find pipeline of Section A.3. A pair inside a cluster is a within pair, and a pair between two clusters is a cross pair. The answer on a within pair is flipped to a false “different” with probability , and the answer on a cross pair is flipped to a false “same” with probability ; all flips are independent. The loss is the number of false-positive (FP) pairs, which the output wrongly puts together, plus the number of false-negative (FN) pairs, which the output wrongly separates. We generate the uniform order by attaching independent Unif[0,1] arrival times to the pairs. For and , is the Erdős–Rényi random graph on vertices, in which each pair of vertices is an edge independently with probability . As in Section A.3, is the minimum spanning tree of with i.i.d. continuous edge weights, and is the Wiener index.
For sizes and , consider only two clusters and , with all pairs of in uniformly random order. All answers are correct except one cross pair , with and , which is answered “same”. Let be the loss, and let ; by symmetry it does not depend on the choice of . We split into the expected numbers of FP and FN pairs, and we write .
Proof of Theorem 12. We show that, with and ,
with a remainder of absolute value at most . For equal sizes this reads .
The pipeline is exact on the noiseless input, and its output is a function of the answers and of the order, which is independent of the answers. By Lemma 1 with per-coordinate rates (end of its proof), it suffices to compute the single-error damages. We treat within-cluster and cross-cluster errors separately, since they create false splits and false merges by different mechanisms.
Within flip on a pair . All cross answers are correct (“different”), so no block ever contains items of two clusters, since a merge needs a “same” answer. constraint between two blocks of the same cluster is created only by a query between them answered “different”, that is, only by . Constraints between blocks of different clusters never affect a decision on a within pair. Hence cluster evolves exactly as the single-cluster pipeline under the order restricted to its pairs, which is uniform, with one flip; and the other clusters end intact. By Theorem 8 the damage is , where is the Kruskal tree of the restricted order. The sum of these damages over the within pairs of is , whose expectation is .
Cross flip on a pair e between and . Let . We use induction over time. (a) Every block is contained in S or disjoint from S, and every block disjoint from S lies inside one cluster. This holds because a merge of blocks from different clusters needs a “same” answer on a cross pair, and only has one. (b) A constraint between two blocks inside S is created only by a query of a pair inside S, and it is inherited only through merges inside S. Pairs with an endpoint outside S only create constraints that involve a block outside S, or merge two blocks of one cluster outside S; neither changes a decision on a pair inside S. Therefore the state restricted to S (its blocks and the constraints among them) changes only at the arrivals of pairs inside S, as a deterministic function of their relative order, which is uniform. The clusters outside S end intact, as in the within case without a flip, and they are separated from everything else. So the expected loss is exactly . Summing over the cross pairs between and gives the formula.
Lemma 21 (Anatomy of one false merge). In the two-cluster setting of g, let be the arrival time of e. Let P be the component of u in the graph formed by the pairs inside A that arrive before , and let Q be the component of v in the graph formed by the pairs inside B that arrive before . Let q denote the event that e is queried.
-
(Query event.) The pair e is queried if and only if no pair of other than e arrives before . Hence . If e is not queried, then .
-
(Final form.) If e is queried, the final partition of is , with empty sets dropped. Here X is the final block of u, which contains u and v, and , . With and ,
-
(Mechanism.) After , when a pair arrives between the current block inside A and the block X, and the two blocks carry no constraint, the pair is queried. If it lies inside A, it is answered “same” and R joins X. If it is a cross pair between R and , it is answered “different” (correctly), and R, together with every block that later merges with R, stays outside X, because the constraint is inherited. The same holds with A and B exchanged. constraint inherited from before , created by a cross pair between R and Q that arrived before , excludes R from the start.
-
(Bounds on the damage.) On the query event, . For , .
Proof. 1. Before all answers are correct. Two blocks of the same cluster never carry a constraint, because all within answers are “same”. So the blocks are the components of the within-cluster graphs of the pairs that have arrived. By induction over time, a block inside A and a block inside B carry a constraint if and only if some pair of has arrived. Indeed, when such a pair arrives, the blocks of its two endpoints (which lie inside and ) either already carry a constraint, or the pair is queried and answered “different”, which creates one; and constraints persist under merges. Conversely, a constraint is created only by a query on an arrived pair between the two blocks involved. At time the blocks of u and v are P and Q, and e is queried if and only if they carry no constraint. Given and the within-cluster graphs, the cross pairs of other than e arrive before independently, each with probability . If e is skipped, every accepted answer is correct, and the output is the truth.
-
After , the only block that contains items of both clusters is X, because no other cross answer is “same”. Two blocks inside A and outside X never carry a constraint against each other: such a constraint needs a query between them answered “different”, but all answers on pairs inside A are “same”. So all items of A outside X end in one block, since the first arriving pair between two such blocks merges them; the same holds for B; and X never splits. The loss formula counts the pairs of (wrongly together) and the pairs of and (wrongly apart).
-
This is the rule of the pipeline applied to the blocks R and X, together with the inheritance of constraints.
-
We have . If , then ; if , then . In both cases , and the same argument gives . The upper bound is the number of pairs. For equal sizes, , since on this concave function is maximized at .
Lemma 22 (Disconnection tail). For two fixed distinct vertices and of , let be the probability that and lie in different components. Then for all and .
Proof. Two vertices in different components cannot both lie in components with more than vertices. So , where is the component of . If , then some -set contains a spanning tree of present edges and has no present edge to its complement; there are pairs between and its complement. For a fixed set and a fixed tree on , these two events concern disjoint sets of pairs, so they are independent. There are choices of and, by Cayley's formula, trees on . A union bound gives
where we used and . The -th term equals with . Suppose that . The map decreases for , so , and . Hence and . If , the right-hand side exceeds 1, and the bound is trivial.
Proof of Proposition 13. For , we bound the chance that the wrong answer is queried and then combine it with the damage conditional on that event. This gives
and that consequently, for equal sizes, the cross-error term of Theorem 12 lies between and .
Lower bounds. If is isolated in the graph of the pairs inside that arrived before , and is isolated in the corresponding graph inside , then , and is queried by Lemma 21(1). Given , this has probability , and . By Lemma 21(1) and (4), off the query event and on it. So .
Reduction to one component. Given , the graphs of the pairs inside and inside that arrived before are independent copies of . So and are independent, and each is distributed as the component of a fixed vertex of . Since , we have . With Lemma 21(1) this gives
Extra-vertex identity. Add a vertex to and join it to each of the vertices independently with probability ; the result is a copy of . The vertices and are connected in it if and only if has a neighbor in , the component of in . On a simple path from to , the vertex occurs only at the end; its predecessor is connected to without and therefore lies in . Given , the vertex has no neighbor in it with probability . Therefore
with as in Lemma 22.
Upper bound on . For , (2) and Lemma 22 give . Hence . For and we have . So . For we use .
This holds because, for and to be disconnected, the edge must be absent and, for each of the other vertices , the path must be absent; these events are independent. So , and . Integrating over gives at most . Adding the two parts proves the upper bound on .
Upper bound on . By Lemma 21(4), on the query event, so . This is at most 13s for all . Indeed, equals about 8.83, 9.77 and 10.28 at . For it is at most , because decreases in and equals about 0.71 at .
Consequence. For we have , and ; this gives the bounds on the cross-error term.
Limit of the query probability. For let be the largest solution in of ; thus for and for . For , the Borel() law is the law of the total progeny of a Galton–Watson tree with Poisson() offspring, for . Fix and let be the component of a fixed vertex in . The next proposition uses three standard facts about the Erdős–Rényi graph (van der Hofstad, 2017, Chs. 3–4).
(E1) As , converges in distribution to the total progeny of a Galton–Watson tree with Poisson() offspring, and .
(E2) For , every with and every , : a component that is not small is the giant.
(E3) For , the law of conditioned on is the Borel() law with the dual parameter .
Proposition 23 (Limit of the query probability). Assume . In the two-cluster setting with ,
Numerically, (Section B).
Proof. By Lemma 21(1), with , where and are independent copies of the component of a fixed vertex in . The substitution gives .
Pointwise limit. Fix . We separate the cases in which the two endpoint components remain finite, one grows to the giant component, or both do; these cases determine whether an earlier cross pair blocks the erroneous query. Fix and split on and , and likewise for ; we let first and then . By (E1), , which tends to as ; by (E2), on the component is the giant, of size , up to an event whose probability vanishes in this double limit. The same holds for , independently of . If both are finite in the limit (always the case when ), then is bounded in probability and . If exactly one is the giant and the other has limit size , then , and by (E3) has the Borel() law. If both are giants, then is of order and . The three cases have limit probabilities , and . The variables lie in , so their expectations converge, and .
Domination. For , that is, for , the proof of Proposition 13 gives
and the right-hand side is integrable on . The same proof also gives . Dominated convergence on finishes the proof.
Exact small cases are in Table 5, and Monte Carlo estimates for Conjecture 15 are in Table 6.
Proof of Proposition 14. We show that the node-ordering (pivot) pipeline of Vesdapunt et al. (2014), with K clusters of size s, has
In this pipeline the items arrive in uniformly random order. A new item is compared with each existing block's representative (its first item), following the order in which the blocks were created. It joins the first block that answers “same”; if all answers are “different”, it starts a new block.
Greedy form. Each comparison of an item with a representative settles the relation of the item to the whole block. So the pipeline is a greedy decoder on the partition code with an adaptive order. Its output is a function of the answers and of the arrival order, which is independent of the answers, and with correct answers it returns the truth. So Lemma 1, with per-coordinate rates, applies. With only one wrong answer, the run agrees with the noiseless run until that pair is compared. It therefore has the same probability of being queried as in the noiseless run.
Numbers of comparisons. Clusters are created in a uniformly random order. In the noiseless run, an item of the cluster created -th is compared with exactly the earlier representatives before it reaches its own representative (or before it creates its cluster). Since is uniform on , the expected number of cross comparisons is . Every item except the K founders makes exactly one within comparison, so there are within comparisons.
Damage of a false merge. Suppose that the only wrong answer is a false “same” between an item and the representative of the block of another cluster B. Then i joins the block of B and remains there for the rest of the run. Later items of A are compared with representatives, never with i, and the block of B collects all of B. So the damage is s FP pairs (i with the items of B) plus s - 1 FN pairs (i with the other items of A), that is, 2s - 1. This also holds when i is the first item of A: the next item of A then creates the block of A.
Damage of a false split. Suppose that the only wrong answer is a false “different” between an item i and the representative of its own block. Then i continues with the later representatives, all of which answer “different” correctly, and it creates a singleton block. Later items of its cluster meet the older representative first, receive “same”, and never reach the block of i. So the damage is s - 1 FN pairs.
Summation. By Lemma 1, with . Since and , this is the claim.
A.4 Pivot-based sorting
There are keys, which we identify with their true ranks . The order code has one coordinate for each of the pairs of keys, and its codewords are the total orders. The answer on a pair is its orientation, that is, which of the two keys is smaller. Each answer is wrong with probability , independently over the pairs. The loss is the number of pairs that the output order inverts; this is the Hamming distance on the order code. The raw decoder has risk . Randomized quicksort with noisy comparisons chooses a pivot uniformly at random from the current list and compares it with every other key of the list, reading the answer on each such pair. It sends each key to the left or to the right sublist according to the answer, sorts the two sublists recursively, and outputs the left sublist, the pivot and the right sublist, in this order. We write for the -th harmonic number.
Alonso et al. (2004) established for quicksort with independent comparison errors in the regime , and (their Theorem 2.2 and Remark 2.8). Below, we derive the exact fixed-n first-order constant in Proposition 24 by counting single-error damage and using the classical comparison probabilities.
Proposition 24 (Quicksort). With comparisons wrong independently with probability p, the expected number of inversions of randomized quicksort is , where is the n-th harmonic number; the amplification tends to 2.
Proof of Proposition 24. We first identify randomized quicksort as a greedy decoder with an adaptive, pivot-first order. We then show that a single wrong comparison of key i with pivot q costs inversions. Weighting these costs by their comparison probabilities gives
so that the amplification over the raw decoder tends to 2.
Quicksort as a greedy decoder. The accepted answers compare each chosen pivot with the keys in its current sublist. They arrange the keys into a sequence of current sublists separated by pivots. Every total order that keeps this left-to-right arrangement, and orders each current sublist arbitrarily, is consistent with all answers read so far. Hence the relation between two keys of the same current sublist is not implied, and quicksort queries such a pair if one of the two keys becomes the pivot while both are still in that sublist. After a pivot q has been compared with every key of its sublist, every pair with l and r on opposite sides of q is implied by transitivity through q, and it is skipped. More generally, a pair that quicksort never compares is split by some pivot that was compared with both of its keys, so its relation is implied by transitivity. Pairs inside a sublist are processed later, in the recursion. So quicksort accepts the non-implied pairs and skips the implied ones, in an adaptive order: first the pivot against the keys of its sublist, then the pairs across the two new sublists, then recursively inside each sublist. This is the greedy decoder with an adaptive pivot-first order, and its output is the unique total order consistent with all accepted answers. Pivots are selected by i.i.d. uniform priorities on the keys (the pivot of a sublist is its key of smallest priority), which are independent of the answers; the output is a function of the answers and the priorities, and with correct answers quicksort returns the true order. So Lemma 1 applies.
Damage of a single wrong comparison. Suppose that the only wrong answer is on the comparison of key i with pivot q, say with i < q, so that i is sent to the right sublist. All other comparisons are correct. So the right sublist, which contains the keys larger than q together with i, is sorted correctly, and i becomes its minimum, placed immediately after q. The left sublist is also sorted correctly. The inverted pairs are and for , that is, pairs. The case is symmetric, with inverted pairs. An answer on a pair that quicksort does not compare is never read, and then the damage is 0.
Probability of a comparison. In the noiseless run, the keys of ranks are compared if and only if one of them is the first pivot chosen among the ranks ; before that, all these keys stay in one sublist. By symmetry each of these keys is equally likely to be chosen first, so the probability is . With a single wrong answer on the pair , the run coincides with the noiseless run until this answer is read, so the pair is compared with the same probability.
First-order constant. By Lemma 1, the first-order constant is
Here , where and there are pairs with . Dividing by and using shows that the amplification tends to 2.
B NUMERICAL VALIDATION
This appendix gives the simulation methods and results for Tables 2, 4 and 7 and Figure 2. Query orders are uniformly random unless stated otherwise. Reported uncertainties are Monte Carlo standard errors (MCSE): the sample standard deviation divided by the square root of the number of replicates. The code supplement provides the scripts, outputs and commands needed to reproduce each result; random runs use fixed seeds. Simulations run on one CPU core.
Conservation and Horn hubs. To check the conservation law, we implement the greedy decoder by enumerating all models that satisfy the theory. After each accepted answer, it retains the consistent models and skips an atom if they all agree on its value. We generate 6 implication theories (16 implications on n = 12 atoms) and 6 2-CNF theories (14 two-literal clauses, with a unit clause in every second theory). The 11 satisfiable theories
Table 4: Analytical references and simulated damage. Rows 1–4 use exact values (rounded); rows 5–6 use first-order coefficients. Uncertainty is Monte Carlo standard error (MCSE); is the standardized deviation.
| Quantity | Reference | Simulated |
|---|---|---|
| Conservation, | ||
| Horn hub, , | ||
| Horn hub, , | ||
contain 132 atoms, including 18 backbone atoms. We make one potential answer wrong at a time and run 600 random orders per atom. Every estimate of is within 2.66 standard errors of the predicted . Here , with when MCSE is zero.
For the Horn hub , we run 4000 orders per setting and compare the mean loss at the shared premise with Theorem 6. For and , the estimates are , , and , against exact values 1.333, 1.600, 1.829 and 2.032. For and , they are , and , against 1.500, 1.929 and 2.314. We also compare the exact formula with its large- approximation : at , the two values are 28.377 and 28.359 for , and 90.790 and 90.721 for .
General Horn theories. We explore Conjecture 19 beyond the hub using 12 random Horn theories with atoms, 14 to 24 rules and at most or premises per rule. For each atom, we run 300 orders. The cone size counts the newly true atoms, including , when a false atom is incorrectly set to true and the rules are applied. In these theories, mean damage from such a false positive never exceeds , with equality only at cone size 1. False-negative damages reach 1.48.
We also test two-level trees with rules and . For , the mean damage of a wrong answer at is 0.77, 0.61 and 0.57 times . In three larger random theories with at most two premises per rule ( and 80), the largest ratio to is 1.36. The tested families are consistent with the square-root growth suggested by the hub.
One cluster. We compute first-order amplification from the query tree as , its mean path length over all record pairs. For random orders, we generate random weight matrices and find their minimum spanning trees. At and 3200, using 200, 100, 50, 20, 40, 40 and 40 matrices respectively, the estimates are , , , , , and . The ratios to rise from 1.89 to 2.84, so these sizes do not determine the asymptotic exponent. The reference line in Figure 2(B) uses , the geometric mean of the seven ratios.
For similarity-first, we draw uniform points in and compute the Euclidean minimum spanning tree, which is the noiseless query tree for this order. In one dimension, amplification is . In two dimensions, it is , , and at and 6400 (40, 20, 40 and 40 point sets). These values are 3.56, 5.63, 8.42 and 12.67 times . The largest three random-order sizes and largest two 2D sizes each use 40 independent replicates, with seed sequences (20261006, 0, ) and (20261006, 2, ) respectively.
Two clusters. We compute the exact values of in Table 5 by a recursive calculation with rational arithmetic, caching states already visited. A state records the current blocks and the constraints between them. Under a random query order, the next pair that can change this state is uniform among the unconstrained pairs between distinct blocks.
For the Monte Carlo estimates of in Table 6, a run stops when the block containing the wrongly merged pair can no longer change; Lemma 21 ensures that the final damage is then determined. At , the estimates are , and , close to the exact values. The column measures the chance that the potential wrong pair is actually queried, rescaled by cluster size. We evaluate Lemma 21(1) using a dynamic program for the component sizes of and Gauss-Legendre quadrature. The values approach the limiting constant in Proposition 23, computed by numerical integration. At , 40000 orders give . The random-to-pivot false-merge loss ratio equals , and for (exact) and about , and at , and (simulation).
The estimates in Table 6 give , , and at , , and . They support growth but do not determine the asymptotic constant.
Table 5: Exact mean damage of one false merge between two clusters of sizes and , split into wrongly merged pairs and wrongly separated pairs , with . The mean is over random query orders, with zero damage when the false pair is skipped. Decimals are rounded to six places.
| (1, 1) | |||
| (1, 2) | |||
| (2, 2) | |||
| (1, 3) | |||
| (2, 3) | |||
| (3, 3) | |||
| (2, 4) | |||
| (3, 4) | |||
| (4, 4) |
Table 6: Two clusters of size : Monte Carlo estimates of (mean Monte Carlo standard error over the given number of random orders), the numerically evaluated rescaled probability that the false pair is queried, and .
| Orders | ||||
|---|---|---|---|---|
Several clusters. To test false-merge locality, we plant one false merge between two of clusters of size and run 20000 orders for each . The mean damages are , and , compared with the common prediction from Theorem 12. We then run the full pipeline on clusters of size , with independent answer errors at rate . Over 200000 runs, and . Dividing by the error rate makes these estimates comparable to the first-order coefficients: and , computed from the exact , and in Theorem 12. Because these runs allow multiple errors, the normalized expectations can differ from the first-order coefficients by .
Finite noise. To test the orders when several answers may be wrong in one run, Tables 2 and 7 use one cluster with or records. Every answer is independently flipped to “different” with probability . Pivot first asks all pairs involving a fixed record and then processes the remaining pairs in random order. The random order uniformly permutes all pairs. Each cell uses 200 runs, with seeds 20260929 and 20261006 for and , respectively. All 2000 runs at satisfy the loss bounds of Lemma 7.
Table 7: Scale check for finite noise: fraction of wrongly separated pairs in one cluster of records. Mean Monte Carlo standard error over 200 runs per cell; Random/Pivot is the ratio of mean losses.
| δ | Pivot | Random | Random/Pivot |
|---|---|---|---|
| 0.01 | 0.020 ± 0.001 | 0.106 ± 0.009 | 5.4 |
| 0.02 | 0.039 ± 0.001 | 0.200 ± 0.012 | 5.1 |
| 0.05 | 0.097 ± 0.002 | 0.361 ± 0.010 | 3.7 |
| 0.10 | 0.179 ± 0.003 | 0.502 ± 0.007 | 2.8 |
| 0.20 | 0.337 ± 0.003 | 0.646 ± 0.005 | 1.9 |
C REAL-LLM EXPERIMENT
Data and model answers. We use HPI's 1,879-record Cora file and duplicate-pair list (Hasso Plattner Institute, n.d.). Duplicate-pair connected components define 182 entities, one per paper. Records use “field: value” pairs in the fixed order authors, title, journal, booktitle, institution, publisher, volume, pages, date and year. Qwen2.5-1.5B (base) (Qwen Team, 2024) receives six hand-written citation-pair examples (three Yes, three No; none from Cora), then the test pair with the smaller record identifier first. It answers “same” when logit( Yes) > logit( No). These next-token scores are used without sampling or fine-tuning. Similarity-first uses cosine similarity of normalized CLS embeddings from bge-small-en-v1.5 (Beijing Academy of Artificial Intelligence, 2023).
Experimental settings. The one-entity experiment uses the 23 entities with at least 20 records: 1,266 records, sizes 21 to 238, and all 62,423 within-entity pairs. For the multi-entity experiment, we group these entities into six blocks of three or four with nearby embedding centroids, mimicking similarity blocking. This includes comparisons between records from similar but distinct entities. Each entity contributes at most 30 records; blocks contain 87 to 120 records and 36,151 pairs in total. Pivot uses the multi-entity pipeline of Proposition 14.
All query orders reuse the same saved model answers. Primary pivot and random comparisons average over 200 orders per instance. The natural/shuffled error-placement control uses 30 matched order draws. Shuffled errors are uniformly redistributed within each entity. Similarity-first randomly breaks cosine ties: once per entity in the primary comparison and 200 times per multi-entity block. Amplification divides final wrong-pair counts by wrong answers across all candidate pairs, including skipped pairs. The 95% bootstrap intervals resample entities (or blocks) with model answers fixed.
One-entity results. At threshold 0, final wrong-pair fractions are 8.1% for pivot, 15.3% for random order and 5.7% for similarity-first. Pivot reduces this fraction by 7.2 percentage points relative to random order (pivot-minus-random interval ). Similarity-first's lower point estimate differs from pivot by -2.5 points, with interval including zero. Table 8 varies the Yes–No score-difference threshold to change the answer-error rate. At every tested rate, the pivot-minus-random interval lies below zero. In the error-placement control of Table 3, the 30 matched draws give natural-placement amplifications of 1.37 (pivot), 2.19 (random) and 0.85 (similarity-first).
Table 8: Amplification in the one-entity setting as the decision threshold changes. Wrong: wrong answers as a percentage of the 62,423 pairs; 6.6% is the threshold 0 of Table 3.
| Wrong | Pivot | Random | Similarity-first |
|---|---|---|---|
| 1.1% | 1.48 | 4.85 | 1.18 |
| 2.1% | 1.40 | 3.75 | 1.05 |
| 5.1% | 1.26 | 2.64 | 0.71 |
| 6.6% | 1.23 | 2.31 | 0.85 |
| 10.0% | 1.22 | 1.99 | 1.21 |
| 20.1% | 1.20 | 1.61 | 1.00 |
Multi-entity results. Across the six blocks, the model gives 1,444 wrong “same” answers and 846 wrong “different” answers. The final wrong-pair counts are 2,603 for pivot, 3,347 for random order and 2,759 for similarity-first. The pivot-minus-random loss-fraction difference is -2.1 percentage points, with interval . Similarity-first produces the most false merges: 1,727 wrongly merged pairs, compared with 1,414 for pivot. Its priority for similar pairs also brings similar cross-entity pairs forward.
Exploratory runs with SmolLM2-1.7B-Instruct gave almost exclusively “different” answers and the same loss for all orders. DBLP–ACM entities contain only two records, leaving no within-entity propagation to compare. These runs are not used in the reported comparisons.
Assets. Qwen2.5 is released under the Apache 2.0 license and bge-small-en-v1.5 under the MIT license; the HPI page provides the Cora data with attribution. The supplementary bundle contains the cached model scores and embeddings, the analysis code and the per-instance results.