When Agents Disagree: Finding the Exact Contradiction in Multi-Agent AI
Cellular sheaf theory turns multi-agent disagreement into a computable invariant. Here is what it means for building verifiable AI systems — and where it breaks.
Listen to the episode: When Agents Disagree: Finding the Exact Contradiction
Give three research agents the same question. Each returns a confident answer. Put the answers side by side and they contradict each other quietly, in a way no single agent can see. The failure is not in any one agent. It is in the gaps between them — and there is a branch of mathematics that studies exactly those gaps.
This is the pattern that breaks multi-agent systems in production: each component is competent on its own patch, and the system as a whole still falls apart. Cellular sheaf theory gives us a tool not just to detect that something is wrong, but to say where and how many independent contradictions there are.
The setup: a swarm you can do mathematics on
Start with a network. Every agent is a node. Every pair of agents that share some overlap — a document, a sensor reading, a sub-problem — gets an edge between them.
Then attach two things:
- A local view to each node: a vector, a list of numbers describing what the agent sees.
- A translation map to each edge: a linear map that says how to compare the two agents' views on their shared overlap.
Views plus translation maps. Nothing else is needed.
Why you need the translation maps
If two agents both report a temperature, you just compare the numbers — only if they speak the same language. One agent reports Celsius, another Fahrenheit, a third reports a ranking instead of a measurement. A raw comparison of their numbers is meaningless. The translation map is the dictionary between them: take this agent's view, convert it into the shared language of the overlap, then compare.
Ordinary consensus — the kind that just averages numbers — is the special case where every translation map is the identity, where everyone already speaks the same language. The moment agents differ in units, in coordinate frames, in vocabulary, averaging without translation is not consensus. It is a category error.
What it means for the swarm to agree
It means there is one global assignment — a value for every agent — that fits every edge at once, after translation. If such an assignment exists, the local views glue together into a single global picture. The set of all such assignments is the consistent core: what everyone can agree on simultaneously, without anyone changing their mind.
In sheaf-theory language this consistent core is the space of global sections, and it is exactly the kernel of the sheaf Laplacian — the operator that measures mismatch between neighbors.
A triangle where every pair agrees and the whole still fails
Take three agents in a loop: A, B, and C. Each pair shares an overlap, and each pair agrees, after translation, about their difference:
- A says it is 5 above B.
- B says it is 5 above C.
- C says it is 5 above A.
Walk around the loop: 5 + 5 + 5 = 15
A loop has to sum to 0 for a global assignment to exist.
There is no set of three values that is simultaneously 5 above the next one all the way around.
The contradiction lives in the cycle, not in any edge. And no amount of staring at one pair will find it.
Edge mismatch vs. loop mismatch
This distinction matters for engineering:
- A two-agent disagreement is a mismatch on an edge. It can be fixed by changing one agent's value.
- A three-agent disagreement can be a mismatch in the loop itself. Every edge is locally fine, so changing one agent's value cannot fix it. You have to change the structure — drop an agent, add a reconciling source, or accept that the disagreement is genuine and flag the uncertainty.
The invariant tells you which kind of problem you have before you waste effort fixing the wrong one.
How you actually compute this
On a finite network, it is just linear algebra. You build a matrix from the translation maps — a matrix that compares every local view with its neighbors — and you look at its kernel and its image. The consistent core is the kernel: the assignments that produce zero mismatch everywhere. The obstruction count comes from the cycles that survive after you quotient out the mismatches that are merely artifacts of local choices.
There is no manifold, no open cover in the analyst's sense. Just a finite graph and matrices. That is what makes it computable, and what makes it usable inside a system rather than only in a textbook.
D and form DᵀD — a generalized Laplacian that respects the translation maps. Evolve each agent's view downhill against it. The dynamics converge to the nearest globally consistent assignment, and the energy ‖Dx‖² = xᵀDᵀDx of the current views x measures the total inconsistency at any moment. When the dynamics stop, you are sitting on a harmonic assignment: consistent everywhere it can be, with the remaining disagreement concentrated exactly where the obstruction count says it must be.
Has anyone actually built this?
Neural diffusion over this structure (2022)
In 2022, Bodnar, Di Giovanni, Chamberlain, Liò, and Bronstein introduced Neural Sheaf Diffusion — a topological perspective on why graph neural networks struggle with heterophily and oversmoothing (arXiv:2202.04579, NeurIPS 2022). Instead of fixing the translation maps by hand, they learned them from data, end to end, and let the generalized Laplacian drive the message passing.
What does that buy you over an ordinary graph network? It keeps nodes distinct. Ordinary message passing averages neighbors together, and after enough rounds every node ends up looking alike — the oversmoothing problem. Giving each edge its own translation stops that washout. And when neighbors genuinely disagree, ordinary averaging assumes neighbors are similar and gets the answer backwards; the learned translations handle that case instead.
An earlier version from Hansen and Gebhart (2020), "Sheaf Neural Networks" (arXiv:2012.06333), used the same construction with a hand-crafted sheaf and one-dimensional views. The learned version is the flexible one, and it has since been used well beyond node classification.
Opinion dynamics: what agents say vs. what they believe
There is a whole line of work on opinion dynamics, starting from the discourse-sheaf model of Hansen and Ghrist, "Opinion Dynamics on Discourse Sheaves" (SIAM J. Appl. Math., 2021; arXiv:2005.12798), where this structure models something an ordinary graph Laplacian cannot touch at all: the gap between what an agent believes privately and what it says publicly. An agent can express selectively or lie, and the translation maps on the edges capture exactly that gap. The diffusion then evolves both opinions and communications, and the theory can speak to controllability (which agents can steer the swarm) and bounded confidence (when a group fractures into camps that no longer listen to each other).
A working multi-agent system, not just a model (2026)
A 2026 paper at ICML turns the same structure into a working coordination method. "Learning Multi-Agent Coordination via Sheaf-ADMM" by Seely, Cupiał, and Jones, led from Sakana AI (arXiv:2605.31005, ICML 2026) has each agent see only a local view and solve its own small convex sub-problem, with agents coordinating through consistency constraints between neighbors using the Alternating Direction Method of Multipliers (ADMM).
They tested it on maze pathfinding, image classification from local patches (MNIST), and Sudoku — where each agent sees only one row, column, or 3×3 box of the puzzle. On Sudoku, results were decisive:
| Model | Sudoku solve rate | Parameters |
|---|---|---|
| Sheaf-ADMM | 92.6% | 1.12M |
| Message-passing (param-matched) | 10.7% | 1.15M |
| Message-passing (~4× params) | 34.7% | 4.62M |
On mazes, Sheaf-ADMM matched the best baseline with a much smaller per-agent state (vertex stalk dimension 10 vs. 84).
And for control, not just learning
"Distributed Multi-Agent Coordination over Cellular Sheaves" by Hanks, Riess, Cohen, Gross, Hale, and Fairbanks (arXiv:2504.02049; IEEE CDC 2025, DOI 10.1109/CDC57313.2025.11312066) treats heterogeneous multi-agent coordination — consensus, formation, and flocking — as one kind of problem written in this language. You choose the structure on the graph, the potentials on the edges, and the objectives on the nodes, and a distributed ADMM algorithm solves it with each agent talking only to its neighbors. One framework, many coordination goals, no central controller.
Where the story is too neat
The whole thing depends on the structure. And the structure is a modeling choice.
What this leaves us with
A swarm that can compute the exact place where its views fail to fit is a swarm that can say: here is the contradiction, here is how many there are, and here is what would have to change. That is a stronger claim than averaging until the disagreement is quiet. Averaging can silence a contradiction without resolving it, and a silenced contradiction is still a contradiction.
For decentralized agent networks, this is the difference between a system that hopes its agents agree and one that can prove where they do not. The honest engineering move is to build the contradiction detector in, report the obstruction count, and let the system name its own disagreement before it acts on it.
Next time: numbers that are tree-shaped by construction, and what they do to search — what happens when distance itself is a hierarchy and nearest neighbor becomes a matter of matching prefixes.
Frequently asked questions
Is this just consensus averaging?
No. Plain averaging assumes every agent speaks the same language (identity translation maps). As soon as agents differ in units, coordinate frames, or vocabulary, averaging without translation is a category error. The sheaf formulation makes the translation maps explicit and only reduces to averaging in the trivial case.
Can I actually compute the obstruction count in a real system?
On a finite network it is linear algebra: build the comparison matrix from the translation maps, then read off the kernel (consistent core) and the surviving cycles (obstruction count). No continuous geometry required.
Do the learned translation maps really help?
Sometimes. Neural Sheaf Diffusion learns them and reduces oversmoothing on heterophilic graphs, but a 2026 study (Hernández Caralt et al.) showed a fixed-identity baseline is competitive on the standard benchmarks. The maps earn their keep only when neighbors genuinely relate in ways the identity cannot capture.
Does this catch logical contradictions?
No. It catches numerical mismatch in the vector model you built. Logical contradiction in the underlying claims is lost when you encode beliefs as vectors. Treat a zero obstruction count as "consistent under this model," not "logically correct."
Sources
- Bodnar, Di Giovanni, Chamberlain, Liò, Bronstein (2022). Neural Sheaf Diffusion: A Topological Perspective on Heterophily and Oversmoothing in GNNs. NeurIPS 2022. arXiv:2202.04579
- Hansen and Gebhart (2020). Sheaf Neural Networks. NeurIPS 2020 Workshop on TDA and Beyond. arXiv:2012.06333
- Hansen and Ghrist (2021). Opinion Dynamics on Discourse Sheaves. SIAM Journal on Applied Mathematics 81(5), 2033–2060. DOI 10.1137/20M1341088 · arXiv:2005.12798
- Seely, Cupiał, Jones (2026). Learning Multi-Agent Coordination via Sheaf-ADMM. ICML 2026. arXiv:2605.31005
- Hanks, Riess, Cohen, Gross, Hale, Fairbanks (2025). Distributed Multi-Agent Coordination over Cellular Sheaves. IEEE CDC 2025. DOI 10.1109/CDC57313.2025.11312066 · arXiv:2504.02049
- Hernández Caralt et al. (2026). On the Necessity of Learnable Sheaf Laplacians. arXiv:2603.05395
Views on how this applies to decentralized agent architecture are KNIRV's own.