# Semantic Density Does Not Predict Agent-Memory Collapse

> The paper tested whether memory statistics warn before agent accuracy falls, using 805 memory snapshots. Global mean similarity gave no reliable warning; local-crowding signals transferred poorly, while token growth predicted a whole-store input-capacity failure in PropWorld.

- arXiv: https://arxiv.org/abs/2611.33184
- Authors: Saksham Gupta, Yash Choudhary, Arpit Upadhyay
- Published: 2026-11-27
- Topic: Agents
- Visual carousel: https://instaxiv.com/p/2611.33184
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Does semantic density warn before agent accuracy drops?

**0 stream steps** median ρ lead vs. PELT accuracy turn (n=7)

## How the warning test was built

1. **Corpus and scope**: The corpus spans 13 methods, six settings, and five benchmark families; stores include trajectories, rules, workflows and strategies.
2. **Paired checkpoints**: Checkpoints pair stores with unchanged-agent accuracy on fixed held-out tasks; 805 snapshots span 154 build series.
3. **Store indicators**: Analysis tracks 14 structural statistics plus item/token counts; only 82 series had matched structure and accuracy traces.
4. **Forecast target**: Models exclude current and past accuracy, predicting a fall below the matched no-memory baseline within 1, 2 or 5 future checkpoints.

## What counts as an early lead?

$$
\begin{gathered} \Delta_s = \cyan{N_{\mathrm{acc}}} - N_s \\ \Delta_s > 0 \end{gathered}
$$

Positive means the statistic turns first. Primary analysis uses the PELT-detected accuracy turn; secondary analysis instead uses the checkpoint after the first observed accuracy maximum.

- $\Delta_s$: Positive means the statistic turns first
- $N_{\mathrm{acc}}$: Accuracy-reference checkpoint
- $N_s$: First turn in its registered direction

## Local crowding shifts early; store size does too

**Primary PELT test:** Primary PELT found no registered statistic passing BH q<.05. Mean pairwise cosine similarity ρ had zero median lead (n=7; BH q=.588); nearest-neighbour distance's median lead was +50 stream steps (n=18; BH q=.105).

**Secondary post-peak:** Post-peak median leads: nearest-neighbour distance fell 50 stream steps before the reference (n=51; BH q=2.0×10⁻⁵); 99th-percentile pairwise similarity rose 75 stream steps earlier (n=25; BH q=.0082); mean ρ lead was 0 (n=16).

Post-peak is a reference, not a detected decline; item/token median leads were +50 stream steps (n=49 and 54).

## Warning models did not transfer reliably

1. **Strict method holdout**: On identical h=2, method-held-out folds, pooled logistic AUROC was .650 for geometry and .663 for log item count; all-feature histogram boosting scored .531 (permutation p=.545).
2. **Frozen PropWorld forecasts**: Across 80 size-limited states with no observed catastrophic decline, the frozen models made 273/480 false-alarm decisions (56.9%).
3. **Missed zero-success checkpoints**: At 12 checkpoints with context-limit rejections and zero recorded success, they detected only 13/72 decisions (18%), pooled across two models and three horizons.

## The whole-store run crossed its input limit

$$
\begin{gathered} \cyan{258{,}952} < \amber{272{,}000} < \rose{291{,}064} \\ \text{tokens} \end{gathered}
$$

In the gpt-5.4-mini whole-store run, injected tokens at the last nonzero and first zero-success checkpoints bracketed the input limit; 2,400 context-overflow rejections were scored as failures.

- $258{,}952$: Injected block at last nonzero checkpoint
- $272{,}000$: Verified gpt-5.4-mini input limit
- $291{,}064$: Injected block at first zero-success checkpoint

## Where these findings stop

- **Sparse primary timing**: Only 82/154 series had matched traces; any primary statistic had at most 18 paired series, so the null result does not prove all structural effects absent.
- **Secondary concentration**: AppWorld and WebShop provide 45/51 nearest-neighbour pairs; 11/19 BH survivors also pass BY, and some distribution-free intervals include zero.
- **Single-seed capacity test**: PropWorld used one seed and one task ordering; its accumulating adapter bypassed ReasoningBank's top-k retrieval, so it tests whole-store prompting, not that retrieval method.

Best used when: For whole-store prompts, track injected-token growth; local-crowding warnings still need testing with prompt capacity controlled.

## Key takeaways

- Global mean similarity gave no reliable early warning in the registered analysis.
- Track injected-token growth in whole-store prompts; tested size-limited PropWorld policies showed no catastrophic decline at observed checkpoints.
- Whether local crowding predicts degradation when prompt capacity is controlled remains open.

## Links

- arXiv: https://arxiv.org/abs/2611.33184
- PDF: https://arxiv.org/pdf/2611.33184

## Citation

```bibtex
@article{gupta2026semantic,
  title   = {Semantic Density Does Not Predict Agent-Memory Collapse},
  author  = {Gupta, Saksham and Choudhary, Yash and Upadhyay, Arpit},
  journal = {arXiv preprint arXiv:2611.33184},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.33184}
}
```
