Heavy-Tailed Memory Traces in Long-Horizon Language Agents
Organizations: Emory University, Atlanta, GA, USA · The University of Tokyo, Tokyo, Japan · LocationMind, Tokyo, Japan
Abstract
Long-horizon language agents are becoming increasingly important for tasks that require persistent interaction, planning, and reasoning over extended trajectories. External memory plays a central role in these agents by preserving past states, transitions, and experiences beyond the limited context window. Existing memory systems, however, are typically evaluated mainly by task success and token cost, with much less attention to how memory usage is distributed across stored information. We show that repeated retrieval can produce heavy-tailed memory usage, where a small set of states is accessed frequently while many others are rarely retrieved and more prone to prediction errors. We study this phenomenon through a systematic tail audit across retrieval policies and graph structures. We find that memory concentration is reproducible but strongly policy-dependent, ranging from log-normal-compatible patterns under random walks to truncated-power-law-compatible heavy tails under semantic LLM policies. Motivated by these findings, we propose Core-Tail Memory Controller (CTMC), a rank-based memory controller that allocates prompt budget with a single exponent while preserving summarized information from the tail. Across Synthetic Graph World and ALFWorld, CTMC substantially reduces memory usage while preserving performance, and on LongMemEval it reduces prompt tokens by 24.48% while maintaining aggregate accuracy. These results show that heavy-tailed memory usage is both a measurable property of long-horizon agent memory and a practical signal for improving memory efficiency.
Figures & tables
| Method | Persistent memory | Retrieval control | Budget allocation | Tail-aware | Distributional diagnosis | Matched replay |
| AriGraph ( Anokhin et al., 2024 ) | \ding 51 | \ding 51 | \ding 55 | \ding 55 | \ding 55 | \ding 55 |
| A-Mem ( Xu et al., 2025a ) | \ding 51 | \ding 51 | \ding 55 | \ding 55 | \ding 55 | \ding 55 |
| Zep ( Rasmussen et al., 2025 ) | \ding 51 | \ding 51 | \ding 55 | \ding 55 | \ding 55 | \ding 55 |
| Mem0 ( Chhikara et al., 2025 ) | \ding 51 | \ding 51 | \ding 55 | \ding 55 | \ding 55 | \ding 55 |
| LightMem ( Fang et al., 2026 ) | \ding 51 | \ding 51 | \ding 51 | \ding 51 | \ding 55 | \ding 55 |
| ACON ( Kang et al., 2025 ) | \ding 55 | \ding 51 | \ding 51 | \ding 55 | \ding 55 | \ding 55 |
| Graph family | Slope | ||||
|---|---|---|---|---|---|
| uniform | 0.152 | 0.802 | 1.364 | 0.505 | 0.967 |
| exponential | 0.333 | 0.900 | 1.369 | 0.433 | 0.971 |
| scale-free | 0.385 | 0.809 | 1.349 | 0.392 | 0.915 |
| modular | 0.162 | 1.461 | 1.366 | 0.573 | 0.874 |
| mixed | 0.231 | 1.252 | 1.430 | 0.541 | 0.975 |
| baseline-symmetric | 0.253 | 1.190 | 1.543 | 0.564 | 0.999 |
| Topology | TPL vs. log-normal | ||
|---|---|---|---|
| scale-free | 2.35 | 0.57 | 3.22 |
| modular | 2.03 | 0.96 | 0.60 |
| exponential | 2.98 | 0.36 | 0.81 |
| uniform | 2.91 | 0.06 | 1.69 |
| Method | Tokens/step | Tail error |
|---|---|---|
| Full History | 3601.1 | 1.000 |
| Sliding Window | 1479.5 | 0.987 |
| Flat Retrieval | 159.9 | 0.994 |
| Frequency Cache | 166.4 | 1.000 |
| Recency Cache | 159.0 | 1.000 |
| Hierarchical Summary | 411.7 | 0.996 |
| Method | Encoding | Tokens/step | Tail error |
|---|---|---|---|
| Graph Memory | Verbose | 170.7 | 0.932 |
| CTMC | Verbose | 200.3 | 0.856 |
| Graph Memory | Compact | 156.4 | 0.931 |
| CTMC | Compact | 155.7 | 0.805 |
| Allocation | Tokens/step | Overall error | Tail error |
|---|---|---|---|
| CTMC ( ) | 155.7 | 0.214 | 0.805 |
| Uniform ( ) | 156.0 | 0.236 | 0.861 |
| Shuffled ranks ( ) | 155.9 | 0.249 | 0.889 |
| Reversed ranks ( ) | 156.1 | 0.267 | 0.917 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Gini coefficient | Top-10% share (%) | Scaling | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Graph family | 100 | 500 | 1,000 | 100 | 500 | 1,000 | 100 | 500 | 1,000 | Slope | |
| Uniform degree | 0.5741 | 0.7550 | 0.7934 | 39.53 | 74.84 | 78.57 | 0.152 | 0.802 | 1.364 | 0.505 | 0.967 |
| Exponential degree | 0.6054 | 0.7618 | 0.7954 | 46.46 | 75.77 | 78.68 | 0.333 | 0.900 | 1.369 | 0.433 | 0.971 |
| Scale-free | 0.6045 | 0.7563 | 0.7944 | 46.24 | 74.70 | 78.63 | 0.385 | 0.809 | 1.349 | 0.392 | 0.915 |
| Modular | 0.4851 | 0.8098 | 0.8170 | 30.85 | 79.56 | 80.48 | 0.162 | 1.461 | 1.366 | 0.573 | 0.874 |
| Mixed | 0.4024 | 0.7867 | 0.8220 | 26.66 | 78.13 | 80.32 | 0.231 | 1.252 | 1.430 | 0.541 | 0.975 |
| Retrieval method | Uniform degree | Exponential degree | Scale-free | Modular | Mixed |
|---|---|---|---|---|---|
| Gini coefficient | |||||
| No retrieval | 0.334 | 0.339 | 0.350 | 0.333 | 0.292 |
| Recency | 0.577 | 0.569 | 0.584 | 0.472 | 0.358 |
| State-mate uniform | 0.571 | 0.574 | 0.595 | 0.468 | 0.351 |
| State-aware frequency | 0.584 | 0.608 | 0.633 | 0.500 | 0.435 |
| Max/median | |||||