Operads for compositional reasoning in LLMs
Nathaniel Bottman, Yinhong Liu, Kyle Richardson
NeurIPS page · Open on the map
Category: LLM Agents, Evals & Benchmarks › LLM Uncertainty Quantification · Type: new method · Keywords: LLM reasoning diagnostics, operad theory, confidence estimation, compositional consistency, selective prediction
Areas: LLM Reasoning › Language Model Reasoning › Reasoning Uncertainty; Evaluation & Benchmarks › Language Model and Agent Safety › Metacognition and Bias in Language Models
Summary
The paper introduces operadic consistency (OC), a per-question diagnostic that uses operad theory to compare a model’s direct answer with the answer obtained by composing a decomposition of the same query, providing a cheap and accurate confidence signal for LLM reasoning.
Explained to a 5-year-old
We ask a big computer brain a tricky question. Then we split the question into smaller pieces and ask the brain to answer each piece. After that we put the small answers together to get a new answer. If the first answer and the new answer match, we know the brain is probably thinking correctly. This helps us see when the brain might be wrong without needing to know the right answer.
Explained to a 5-year-old, longer
People use big computer programs called language models to answer questions. Sometimes these programs make mistakes, but we often don't know if they are right. To help, researchers want a simple way to guess if the program is confident. They look at a special kind of math called operad theory, which is about putting small parts together to make bigger things. Using this idea, they ask the model a question that can be broken into smaller steps. Then they ask the model to answer each small step separately. After that they combine those small answers into one answer. If the answer from the combined steps matches the answer the model gave at the start, it suggests the model was thinking consistently. This match tells us the model is likely reliable. The method works without needing extra labeled data, making it cheap to run. It can be used to decide when to trust the model and when to ask for a different answer, helping keep applications safe and accurate.
For a technical reader
The work proposes a confidence diagnostic based on operad theory that checks consistency between a model’s direct answer and the answer derived from a decomposed version of the same query. It yields a per-question signal that correlates strongly (r≈0.86-0.94) with true accuracy across multiple LLMs and datasets. The approach reduces inference cost to about one-third of existing sampling baselines and provides measurable selective-prediction gains (ΔAUARC up to 0.088, ΔAUROC up to 0.167) over strong baselines, with positive lifts observed on frontier models.
Problem
Detecting when large language models make reasoning errors during inference without access to ground-truth answers is challenging, as existing confidence measures often require costly sampling or labeled data.
Method
The approach leverages the mathematical framework of operads to construct a decomposition of a compositional query and checks whether the model’s direct answer matches the answer obtained by composing the decomposition, providing a per-question consistency indicator.
Results
OC shows Pearson correlation coefficients between 0.86 and 0.94 with accuracy across datasets, outperforming existing sample-based baselines, and yields selective-prediction improvements of up to 0.088 in AUARC and 0.167 in AUROC over a tuned SC_K=3 baseline; on frontier models the lift is positive across all tested dataset-budget-metric combinations.
Contributions
The paper introduces a novel diagnostic for LLM reasoning that uses operad theory to compare direct answers with answers derived from query decompositions, provides a per-question consistency measure, demonstrates its strong correlation with accuracy, and shows practical selective-prediction gains on multiple models and datasets.
Practical relevance
The diagnostic enables cheaper, label-free confidence estimation for deploying LLMs in real-time applications where reasoning reliability is critical.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction