paper-with-me

Papers

Operads for compositional reasoning in LLMs

2026-06-11 · Nathaniel Bottman, Kyle Richardson arxiv

Question decomposition, i.e. breaking a complex query into simpler sub-queries whose answers are composed to produce a final answer, is a widely used strategy for improving LLM reasoning, yet it currently lacks a rigorous mathematical foundation. In this paper, we propose operads, mathematical structures that model many-in, one-out operations and compositions thereof, as a natural framework for describing question decomposition. We define the questions operad $Q$, in which operations correspond to question templates and composition corresponds to substitution of sub-answers, and show how QA models can be interpreted as algebras over $Q$. Beyond reframing existing practice, this operadic perspective points toward new methods, in particular a notion of operadic consistency, which measures whether a QA model's answers agree across the partial collapses of a question decomposition tree. Empirical evaluation of operadic consistency is reported in our companion paper (Bottman, Liu, and Richardson, 2026), which finds it strongly correlated with accuracy across twelve LLMs and four multi-hop QA datasets and outperforming standard temperature-based self-consistency baselines. We argue that operads are the natural mathematical home for question decomposition, and that invariants such as operadic consistency open new directions for analyzing and improving the reliability of multi-step reasoning.

📄 PDF Abstract BibTeX arXiv:2606.13634

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

A Formalization of Operads in Coq

2023-03-15 · Zachary Flores, Angelo Taranto, Eric Bond, Yakir Forman

What provides the highest level of assurance for correctness of execution within a programming language? One answer, and our solution in particular, to this problem is to provide a formalization for, if it exists, the de…

CryptoX : Compositional Reasoning Evaluation of Large Language Models

2025-02-08 · Jiajun Shi, Chaoren Wei, Liqun Yang, Zekun Moore Wang 외

The compositional reasoning capacity has long been regarded as critical to the generalization and intelligence emergence of large language models LLMs. However, despite numerous reasoning-related benchmarks, the composit…

Understanding and Patching Compositional Reasoning in LLMs

2024-02-22 · Zhaoyi Li, Gangwei Jiang, Hong Xie, Linqi Song 외

LLMs have marked a revolutonary shift, yet they falter when faced with compositional reasoning tasks. Our research embarks on a quest to uncover the root causes of compositional reasoning failures of LLMs, uncovering tha…

The Mystery of Compositional Generalization in Graph-based Generative Commonsense Reasoning

2024-10-08 · Xiyan Fu, Anette Frank

While LLMs have emerged as performant architectures for reasoning tasks, their compositional generalization capabilities have been questioned. In this work, we introduce a Compositional Generalization Challenge for Graph…

In-Context LearningRelationSentence

Hypermagmas and Colored Operads: Heads, Phases, and Theta Roles

2025-07-08 · Matilde Marcolli, Riny Huijbregts, Richard K. Larson arxiv

We show that head functions on syntactic objects extend the magma structure to a hypermagma, with the c-command relation compatible with the magma operation and the m-command relation with the hypermagma. We then show th…