Chow-Liu Ordering for Long-Context Reasoning in Chain-of-Agents
Organizations: Microsoft
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.
Figures & tables
| LongQA (Ragas ) | LongQA–MC (EM ) | NarrativeQA (Ragas ) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Model | Memory | Default | Dense | CL–order | Default | Dense | CL–order | Default | Dense | CL–order |
| Qwen-3-14B | CoA | 41.43 | 42.25 | 44.12 | 24.89 | 26.20 | 30.26 | 35.72 | 38.26 | 41.23 |
| GPT-4.1-mini | CoA | 51.94 | 47.96 | 54.35 | 65.22 | 67.39 | 70.29 | 50.16 | 50.81 | 52.39 |
| GPT-4.1 | CoA | 59.03 | 58.56 | 60.68 | 82.84 | 84.33 | 85.07 | 57.30 | 55.93 | 58.08 |
| BM25 | Qwen-3 Embedding | ||||||
|---|---|---|---|---|---|---|---|
| Model | Memory | Default | Dense | CL–order | Default | Dense | CL–order |
| Qwen-3-14B | CoA | 24.89 | 26.64 | 27.51 | 24.89 | 26.20 | 28.82 |
| GPT-4.1-mini | CoA | 72.83 | 75.00 | 73.90 | 73.26 | 75.58 | 77.91 |
| GPT-4.1 | CoA | 82.47 | 83.51 | 84.54 | 82.17 | 83.16 | 85.14 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value | Hyperparameter | Value |
|---|---|---|---|
| Per-chunk token limit | 8000 | Qwen embedding size | 4096 |
| Summary token limit | 8000 | Generation temperature | 0.0 |
| OpenAI embedding size | 3072 | Nucleus sampling (top_p) | 0.95 |
Long-Context Inference
Long-context inference studies how language models retrieve, retain, and reason over information spanning very large inputs.
See all 52 papers