Skip to content
AI.info

Research

Chow-Liu Ordering for Long-Context Reasoning in Chain-of-Agents

Overview Research area: Natural Language Processing — long-context reasoning with multi-agent LLM systems, combined with probabilistic graphical modeling (tree-structured dependency estimation). Techn

arXiv
2603.09835
Published
2026-03-10
Authors
Naman Gupta, Vaibhav Singh, Arun Iyer, Kirankumar Shiragur, Pratham Grover, Ramakrishna B. Bairi, Ritabrata Maiti, Sankarshan Damle, Shachee Mishra Gupta, Rishikesh Maurya, Vageesh D. C

AI summary

Overview

Research area: Natural Language Processing — long-context reasoning with multi-agent LLM systems, combined with probabilistic graphical modeling (tree-structured dependency estimation).

Technical level: Intermediate. The paper assumes familiarity with LLM agent pipelines and basic probabilistic modeling (mutual information, KL divergence, spanning trees), but the core idea is explained in accessible terms.

Scope: The paper proposes and evaluates a chunk-ordering strategy for Chain-of-Agents (CoA) long-context reasoning, derived from a breadth-first traversal of a Chow–Liu dependency tree built over document chunks.

What This Paper Is About

Long-context reasoning frameworks such as Chain-of-Agents (CoA) break a long document into chunks and process them one at a time through a chain of LLM worker agents, each passing a bounded summary forward in a shared memory. Because that memory is token-limited and therefore lossy, the order in which chunks are processed changes what survives to the end and changes the final answer. The paper's goal is to choose that order in a principled way, using a Chow–Liu tree over chunk embeddings to keep strongly related chunks close together in the processing sequence.

Key Contributions

  1. A probabilistic formulation of sequential CoA-style reasoning as approximate inference over a compressed memory state, identifying chunk ordering as a key factor governing information preservation under memory constraints.
  2. A dependency-aware chunk ordering strategy (CL–order) that uses a Chow–Liu tree approximation of inter-chunk relationships — a maximum-weight spanning tree over embedding-based pairwise similarities — with a breadth-first traversal rooted at the query-most-similar chunk.
  3. Consistent empirical gains across all evaluated models and benchmarks. On EM-based tasks, the approach outperforms default document-chunk ordering and semantic score-based ordering by 10.68% and 6.89% relative gains respectively. On Ragas-based benchmarks, it yields relative gains of 5.86% over the default order and 6.01% over the semantic score-based baseline.
  4. Ablations on the scoring function/embedding backend (BM25 sparse, Qwen-3-Embedding-8B dense, Text-Embedding-3-Large) and on traversal strategy (BFS on the Chow–Liu tree vs. greedy DFS on the complete chunk graph).

Main Findings

  • CL–order wins across the board in the main table. On LongQA (Ragas answer relevance), CL–order scores 44.12 vs. 41.43 Default and 42.25 Dense for Qwen-3-14B; 54.35 vs. 51.94 and 47.96 for GPT-4.1-mini; 60.68 vs. 59.03 and 58.56 for GPT-4.1.
  • LongQA gains over Default: +2.69 for Qwen-3, +2.41 for GPT-4.1-mini, +1.65 for GPT-4.1. Dense, by contrast, was inconsistent over Default: +0.82 for Qwen-3, −3.98 for GPT-4.1-mini, and −0.47 for GPT-4.1.
  • LongQA–MC (EM) gains: Dense improves over Default by +1.31, +2.17, and +1.49 EM points across the three models; CL–order then adds a further +4.06 (Qwen-3), +2.9 (GPT-4.1-mini), and +0.74 (GPT-4.1) EM points over Dense.
  • NarrativeQA gains: CL–order improves over Dense by +2.97 answer relevance in Qwen-3, +1.58 in GPT-4.1-mini, and +2.15 in GPT-4.1.
  • Semantic ranking alone is unreliable. The Dense baseline's inconsistent performance on LongQA (including two negative deltas) supports the claim that ranking chunks by isolated query similarity ignores dependencies among chunks.
  • Embedding-backend sensitivity. With BM25 replacing semantic embeddings, the advantage of CL–order is not consistent: a −1.1 EM accuracy drop on LongQA–MC with GPT-4.1-mini relative to Dense. BM25 uses TF-IDF-style lexical overlap, described as only a coarse proxy for mutual information. With the open-weight Qwen-3-Embedding-8B, the trend mirrors Text-Embedding-3-Large and CL–order consistently beats Dense.
  • Larger gains for smaller models. Across the representation ablation, the authors observe larger gains for GPT-4.1-mini and Qwen-3 than for GPT-4.1.
  • BFS over a global tree beats local greedy chaining. Comparing DFS on the complete chunk graph against BFS on the Chow–Liu tree, CL–order consistently outperforms DFS across all three models on LongQA–MC. The specific values appear only in Figure 2 and are not reported numerically in the text. The stated reason is that with DFS, a single step toward a highly similar but contextually irrelevant neighbor can lead the traversal away from the optimal path.
  • Global dependency structure matters. Because the Chow–Liu tree finds optimal pairwise dependencies across all chunks before traversal, it is described as capturing global dependencies more robustly than local DFS-based chaining.

Methodology in Plain English

The pipeline works in four steps:

  1. Chunk and embed. A long document is split into chunks (8K tokens each in the experiments), and each chunk is encoded into a dense vector using an embedding model.
  2. Build a dependency tree. Treating chunks as random variables, the method uses embedding cosine similarity as a scalable proxy for pairwise mutual information. This gives a complete weighted graph over chunks, from which a maximum-weight spanning tree is computed. By the Chow–Liu result, the tree maximizing total pairwise mutual information is exactly the tree-structured distribution minimizing KL divergence from the true joint distribution — so a spanning-tree algorithm efficiently recovers the optimal tree approximation without the intractability of general DAG structure learning.
  3. Pick a root and traverse. Since the answer is unknown at inference time, the root is the chunk whose embedding is most cosine-similar to the query embedding. A breadth-first traversal from that root produces the ordering.
  4. Run CoA in that order. Chunks are fed one at a time to a Worker agent that updates a bounded memory state (an 8K-token summary per step), and finally a Manager agent reads the final memory plus the query to produce the answer.

Theoretically, the paper frames this with two sufficiency assumptions: an incrementally sufficient Markov property (the current memory contains all information needed for future updates) and answer sufficiency (the final memory contains all information needed to answer). The authors explicitly note these are modeling abstractions rather than guarantees of actual LLM behavior.

Setup details: Evaluation uses the HELMET LongQA benchmark (English book QA and multiple-choice subsets from ∞Bench and NarrativeQA); NarrativeQA evaluation is restricted to queries with context length over 256K tokens. LongQA and NarrativeQA use the Ragas answer relevance metric with LLM-as-a-judge (chosen over ROUGE F1 because n-gram metrics penalize long, paraphrased but correct generations). LongQA MC uses Exact Match. Models: GPT-4.1, GPT-4.1-mini, Qwen-3-14B, with Text-Embedding-3-Large for chunk similarities. Qwen-3-14B thinking tokens are capped at 4K. Hyperparameters: per-chunk token limit 8000, summary token limit 8000, OpenAI embedding size 3072, Qwen embedding size 4096, temperature 0.0, top_p 0.95.

Why This Matters

Impact on research: The paper reframes chunk ordering not as a preprocessing detail but as a central inference-time decision in memory-bounded sequential reasoning. It connects multi-agent LLM pipelines to classical probabilistic graphical models (Chow–Liu trees) and shows that a well-established structure-learning tool can be repurposed as an ordering policy. This opens a line of work on how information is preserved across lossy agent handoffs, beyond just which chunks are retrieved.

Real-world applications:

  • Long-document question answering over books, contracts, technical manuals, or regulatory filings that exceed any single model's context window.
  • Retrieval-augmented generation pipelines where the retrieved set already exceeds what fits in one pass and must be processed sequentially rather than independently.
  • Multi-hop research and investigation assistants that gather evidence from many sources where later passages are only interpretable after related earlier ones.
  • Cost-sensitive deployments — the paper notes larger gains for smaller models, which matters for organizations running smaller open-weight models.

Industry relevance: The method is a drop-in ordering policy on top of an existing CoA pipeline — it adds embedding and spanning-tree computation cost but no new model training. That makes it attractive for production long-context systems where the expensive part (LLM calls) is unchanged and the cheap part (chunk ordering) is optimized. The sensitivity to the embedding backend also gives practitioners a concrete warning: the benefit depends on how well the similarity measure approximates true mutual information, and BM25-based lexical similarity was not a reliable substitute.

Future Directions

  • Better mutual-information proxies. The BM25 ablation showed ordering quality degrades when similarity is only a coarse lexical proxy. Learning or calibrating a better estimate of inter-chunk mutual information is a clear next step.
  • Beyond tree-structured approximations. The paper restricts dependencies to trees for tractability, citing mixtures of trees, improved estimators for large alphabets, and cutset networks as related extensions. Richer structures could capture dependencies that a spanning tree cannot.
  • Beyond breadth-first traversal. Only BFS on the tree and greedy DFS on the complete graph were compared. Other traversals, or adaptive orderings that update as memory evolves, remain unexplored.
  • Deeper study of order sensitivity. The sufficiency assumptions are explicitly described as modeling abstractions; empirically characterizing when and how much LLMs deviate from them, and how ordering interacts with memory budget size and chunk size, would strengthen the theory-practice link.

Target Audience

Researchers and engineers working on long-context LLM reasoning, multi-agent LLM pipelines, and retrieval-augmented generation, particularly those deploying Chain-of-Agents-style systems where retrieved context exceeds a single model pass. It also suits readers interested in applying classical probabilistic graphical models — spanning trees and mutual information — to modern LLM system design. Practitioners evaluating whether to invest in smarter evidence ordering versus more retrieval or larger context windows will find the baseline comparisons directly useful.

Authors’ abstract

Sequential multi-agent reasoning frameworks such as Chain-of-Agents (CoA) handle long-context queries by decomposing inputs into chunks and processing them sequentially using LLM-based worker agents that read from and update a bounded shared memory. From a probabilistic perspective, CoA aims to approximate the conditional distribution corresponding to a model capable of jointly reasoning over the entire long context. CoA achieves this through a latent-state factorization in which only bounded summaries of previously processed evidence are passed between agents. The resulting bounded-memory approximation introduces a lossy information bottleneck, making the final evidence state inherently dependent on the order in which chunks are processed. In this work, we study the problem of chunk ordering for long-context reasoning. We use the well-known Chow-Liu trees to learn a dependency structure that prioritizes strongly related chunks. Empirically, we show that a breadth-first traversal of the resulting tree yields chunk orderings that reduce information loss across agents and consistently outperform both default document-chunk ordering and semantic score-based ordering in answer relevance and exact-match accuracy across three long-context benchmarks.

Read the original paper