TL;DR
Large language models frequently produce confident, fluent chains of reasoning that quietly fall apart when you check if the pieces actually fit together. Drawing from abstract algebra, the authors introduce operadic consistency (OC): a label-free, inference-time check that tests whether an LLM's direct answer to a complex question matches the answer it gets by solving the question's sub-parts step-by-step. It turns out this simple structural test catches reasoning failures that standard uncertainty methods miss—and can even predict a brand-new model's accuracy on a dataset without using a single ground-truth label.
What Problem Does This Paper Address?
Imagine asking an LLM, "Who was President when World War 2 ended?" Even modern "thinking" models routinely hallucinate or stumble on multi-step queries like this, generating reasoning chains that look great on the surface but fail to compose into a right answer. How do we catch these failures on the fly, without having an answer key?
Standard confidence checks generally fall into two camps: resampling the model multiple times to see if its answers vary (like self-consistency or semantic entropy), or simply asking the model if it thinks it’s right (P(True)). The catch? A model that is confidently wrong will happily give you the exact same wrong answer ten times in a row. None of these methods check whether the model’s reasoning is internally compositional—that is, if you force the model to take its own intermediate steps seriously, does it actually arrive at the same final conclusion?
Methods
To make "compositionality" mathematically rigorous, the authors borrow a tool from category theory called an operad—a formalism designed to keep track of operations with multiple inputs and how their outputs plug into one another like LEGO bricks.
They define the questions operad, where basic operations are question templates with blanks (e.g., "Who was President at ___?"), and composition means slotting one question's output into another's blank. An LLM acts as a candidate "algebra" over this operad by filling in blanks and answering queries.
From this framework drops a clean diagnostic called Operadic Consistency (OC):
- Direct path: Ask the model the full complex question directly ("Who was President when WW2 ended?" $\rightarrow$ Roosevelt).
- Decomposed path: Break the question into a tree of sub-questions. Ask step 1 ("When did WW2 end?" $\rightarrow$ Sept. 2, 1945), substitute that exact text into step 2 ("Who was President at Sept. 2, 1945?" $\rightarrow$ Truman), and get the final decomposed answer.
- Compare: Compute the semantic agreement (e.g., token F1 score) between the direct answer and the decomposed answer. Here, Roosevelt $\neq$ Truman, so OC $\approx 0$, flagging a reasoning failure at the cost of just 3 model calls.
For standard instruction-tuned models, the authors use pre-existing human decompositions. Crucially, for explicit "thinking" models (like DeepSeek-R1), they use a lightweight extractor to pull the sub-questions directly out of the model's own chain of thought—making the entire check self-contained and annotation-free.
Datasets
No new datasets were introduced; the authors evaluate OC across five established compositional reasoning benchmarks:
- Multi-hop QA: HotpotQA (evaluated closed-book without context passages), MuSiQue, StrategyQA, and DROP. (Two-step decompositions come from native annotations for MuSiQue/StrategyQA and BREAK QDMR annotations for HotpotQA/DROP; 3- and 4-hop trees are also tested on MuSiQue).
- Math word problems: GSM8K (used exclusively in the thinking-models evaluation, where decompositions are extracted from the model's reasoning trace).
Key Insights and Ideas
- Variance $\neq$ Competence: Sample-diversity baselines like chain-of-thought self-consistency (CoT-SC) measure within-question confidence, which breaks down across models when weak models are stubbornly consistent. OC probes a completely orthogonal axis—structural coherence—making it a reliable barometer of cross-model capability.
- It’s not just "self-consistency in disguise": One might worry OC only works because the decomposed path is noisy. The authors test this by running 10-sample self-consistency on the decomposed path itself, as well as running an off-the-shelf Process Reward Model (Skywork-PRM) on the steps. Neither explains away OC's predictive power.
- Label-free accuracy estimation: Because a model's average OC rate tracks its true accuracy tightly and linearly across model families, you can calibrate a simple linear regression on existing models and predict a brand-new model's benchmark accuracy just by measuring how often it agrees with itself.
Key Results
Tested across 12 non-thinking LLMs (4B to 671B parameters) and 5 thinking models:
- Uniform cross-model correlation: Across the 12 non-thinking models, OC strongly correlates with dataset accuracy on all four QA benchmarks (Pearson $r \in [0.86, 0.94]$, $p \leq 0.0004$). Meanwhile, 10-sample CoT-SC is bimodal: great on HotpotQA ($r=0.93$) and DROP ($r=0.87$), but collapsing to statistical noise on MuSiQue ($r=0.43$) and StrategyQA ($r=0.46$).
- Label-free accuracy prediction: In a leave-one-model-out setup, OC predicts a held-out model's dataset accuracy within 3.0 percentage points mean absolute error (MAE), beating 10-call CoT-SC (4.6 pp MAE) at less than a third of the inference cost.
- Better selective prediction (abstention): At an equal 3-call budget, combining OC with 3-sample CoT-SC boosts selective prediction over CoT-SC alone across all datasets—lifting AUARC by +0.086 to +0.096 and AUROC by +0.092 to +0.164 on non-thinking models.
- Thinking models benefit too: Using decompositions extracted from the models' own
<think>traces, adding OC to 3-sample SC yields positive selective-prediction lifts across all four tested datasets (AUROC lifts from +0.050 on StrategyQA to +0.134 on GSM8K).
Limitations and Future Work
- Tree depth and branching: Deeper (3- and 4-hop) and branching question trees were only tested on MuSiQue, where 4-hop branching remains the weakest setup (0.541 AUROC). Furthermore, a pilot showed OC tends to over-flag errors on pure arithmetic tasks.
- Extraction bottlenecks: Relying on human annotations limits where non-thinking OC can be deployed, while the CoT extractor for thinking models is a crude depth-2 reduction that discards traces lacking explicit sub-questions (losing ~6% of samples).
- Model cohort: The study omits top-tier commercial flagships (e.g., GPT-5, Claude Opus 4.x, Gemini 2.5 Pro), whose verbose outputs might require calibrating beyond simple token-F1 scoring, and the thinking-model cohort is relatively small (5 models).
- Future directions: The authors suggest formalizing richer, native branching structures directly on long chains of thought, and exploring other "algebras" over the questions operad—such as a confidence algebra that mathematically composes calibrated probabilities across reasoning steps.
Summary updated