BOHM: Zero-Cost Hierarchical Attribution for Compound AI Systems

Joss Armstrong

arXiv:2605.22866 · 2026-05-25 공개 · arXiv · PDF

llm-evaluation agentic-systems livecodebench compound-ai multi-resolution routing-weights shapley-methods census-hierarchy

Abstract

Compound AI systems route tasks through hierarchies of specialised components. Attribution is dominated by Shapley-based methods (SHAP), which decompose a coalition value function into per-component marginal contributions and require evaluation of the system on arbitrary component subsets. That requirement fails for third-party APIs, opaque endpoints, and agentic orchestrators that concentrate routing on a few tools, leaving most coalitions un-evaluable from the deployed orchestrator. We introduce BOHM, which extracts a hierarchical attribution tree directly from the routing weights such systems already maintain: leaf attribution is the path product of root-to-leaf routing weights; level-k attribution is the induced distribution over depth-k nodes. The method has zero marginal cost, requires no access to component internals, and provides multi-resolution attribution at every level simultaneously, which flat methods cannot offer at any evaluation budget. BOHM and SHAP answer different questions and converge when the deployed router routes near-optimally. On 18 LLMs in a 3-level hierarchy over 880 LiveCodeBench problems, BOHM yields Kendall tau=0.928; SHAP reaches tau=0.980 at 9,000x more coalition evaluations per seed. On a 5-driver, 7-benchmark agentic study (35 cells, complete coverage), drivers concentrate routing on a single tool (top-share median 0.65), and cell-level tau(BOHM,SHAP) is predicted by whether the driver's top pick is the empirically best tool (mean +0.22 vs ~+0.01). On a US Census hierarchy (475 leaves, 4 levels), BOHM recovers ground-truth rankings at every level (tau up to 0.722). BOHM satisfies efficiency, monotonicity, symmetry, and weak suppression but not Shapley's additivity. It is best understood as a complementary primitive: a multi-resolution decomposition computable wherever routing state exists, whose disagreement with Shapley is itself diagnostic.

한국어 요약

한 줄 요약

**[Compound AI / Attribution]** BOHM이 라우팅 가중치만으로 hierarchical attribution tree 추출 — zero marginal cost·black-box endpoint 호환, 18 LLM 3-level 880 LiveCodeBench에서 SHAP(9,000× cost) Kendall τ=0.980 대비 0.928 달성.

핵심 기여도

핵심 아이디어

Compound AI 시스템 attribution의 SHAP 의존 요구(임의 coalition 평가)가 black-box agentic 시스템에서 fail하므로 라우팅 가중치 자체를 attribution 신호로 활용해야 하며, BOHM의 path product가 zero-cost·multi-resolution decomposition을 제공하면서 Shapley와의 disagreement는 그 자체로 라우팅 품질 진단 정보가 된다.

기술적 접근법

주요 결과

의의 및 한계

**의의**: Compound AI attribution을 black-box·agentic 환경으로 확장, zero-cost multi-resolution 분해의 첫 실용 방법, Shapley와의 차이를 diagnostic primitive로 재정의. **한계**: Shapley와 다른 질문에 답하므로 직접 대체 아님, deployed router가 sub-optimal일 때 SHAP과의 gap 존재, Shapley additivity 미만족이 일부 응용에서 제한.

실용적 활용