# Enhancing Local and Global Structure in Compressed AI Agent Memory

DevFeed: [Enhancing Local and Global Structure in Compressed AI Agent Memory](<https://devfeed.tech/articles/enhancing-local-and-global-structure-in-compressed-ai-agent-memory-120311.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.08341>)

Author: Henry Han

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [quantization](<https://devfeed.tech/topics/quantization.md>), [Compression](<https://devfeed.tech/topics/compression.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-memory](<https://devfeed.tech/tags/agent-memory.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-agent-memory](<https://devfeed.tech/tags/ai-agent-memory.md>), [compress](<https://devfeed.tech/tags/compress.md>), [compression](<https://devfeed.tech/tags/compression.md>), [correlation](<https://devfeed.tech/tags/correlation.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [global](<https://devfeed.tech/tags/global.md>), [local](<https://devfeed.tech/tags/local.md>), [memory](<https://devfeed.tech/tags/memory.md>), [quantization](<https://devfeed.tech/tags/quantization.md>), [recall](<https://devfeed.tech/tags/recall.md>), [structure](<https://devfeed.tech/tags/structure.md>)

## AI overview

Compressed agent memories can preserve nearest neighbors while distorting broader structure: at 96 bytes per passage, rescored binary codes achieve local fidelity L=0.97 but shift 10.1% of passages to another theme, while 8-bit PCA codes at L=0.77 shift 1.7%. Rescoring does not change stored codes or global fidelity. The paper derives a bound relating global fidelity to near-far rank violations and introduces locality-aware quantization (LAQ), a hinge objective applied to OPQ codebooks that retains the index's size, rotation, and search. In the reported experiments, reconstruction-only optimization improved global fidelity in none of 52 held-out runs, while the far-end hinge and LAQ improved it in all 52. LAQ also had the highest global fidelity among seven equal-size quantizers in all 12 Multi-Doc-2025 runs; the abstract reports scaling to one million passages while retaining evidence recall.

## Source excerpt

arXiv:2611.08341v1 Announce Type: new Abstract: AI agents store text as embedding vectors and compress them at scale. A compression is accepted when each item's nearest neighbors survive, but agents also consolidate, delete, and compare memories, tasks that depend on which items lie far apart. We evaluate both ends with two label-free fidelities from our prior work: the local fidelity $L$ at 10 neighbors and the global fidelity $G$ at 30 to 50 percent of the memory. At 96 bytes per passage, rescored binary codes reach an $L$ of 0.97 yet move 10.1 percent of passages to another theme; PCA with 8-bit codes, at an $L$ of 0.77, moves 1.7 percent. Rescoring leaves the stored codes, and thus $G$, unchanged. We prove that across the $G$ band, $1-\nu_k$ is at most 2 to 2.18 times the square root of the near-far rank-violation rate, and that this rate follows the distance noise of the compression (correlation 0.979). Our locality-aware quantization (LAQ) turns the bound into a hinge objective on the codebooks of an OPQ index, keeping its bytes, rotation, and search. To our knowledge, LAQ is the first quantizer whose objective comes from a proven bound on the far end. Reconstruction alone raises $G$ in 0 of 52 held-out runs; the far hinge raises it in all 52. LAQ raises $G$ in all 52 ($p=8.5\times 10^{-4}$ over 13 memory-encoder groups), including the external FinDER memory, has the highest $G$ of seven equal-size quantizers in all 12 Multi-Doc-2025 runs, scales to a million passages, and keeps evidence recall.