Paper record / Language-model systems
Davis Cache: O(1) Reasoning State Preservation via Topological Residue
Which reasoning-state information can be stored as a compact residue and recovered without repeating earlier work?
The research question
Which reasoning-state information can be stored as a compact residue and recovered without repeating earlier work?
Read the related research account for the project context and its evidence.
This is a concise, source-linked record of the public manuscript. The deposit’s abstract and files below retain the author’s wording and version. A public deposit does not by itself establish peer review or independent replication.
Read the deposited abstract / author’s description
Large language models exhibit a well-documented phenomenon of coherence degradation over extended conversations—colloquially described as "running out of steam." Current approaches focus on expanding context windows (4K → 8K → 32K → 200K tokens), but this extends the point of failure without addressing the fundamental issue: attention quality degrades as context grows, even within the window limit.
We present the Davis Cache, an O(1) memory architecture that preserves reasoning state across arbitrarily long conversations by storing topological invariants rather than textual content. The cache compresses high-dimensional hidden states (d = 384) to a fixed-size representation (~200 bytes) consisting of:
Potential Vector Φ: Unit-normalized projection capturing semantic direction
Topological Residue r = (Chart, Basin, Winding): Discrete invariants encoding reasoning context, local dynamics, and topological history
Key insight: Context windows are not memory limits. They are geometry limits. And geometry can be engineered.
Main Contributions
O(1) Architecture: Constant memory (200 bytes) regardless of conversation length—a 10-turn conversation and a 10,000-turn conversation require identical storage.
Topology-First Fidelity Metrics: We measure what matters for coherent reasoning (chart/basin/winding preservation) rather than reconstruction error. A system can exhibit 68% reconstruction error while maintaining 100% topological fidelity.
Empirical Validation: 100% accuracy on a 5-book recall task after 100 intervening conversations overflow a 4,096-token context window. Control condition: 0%.
Critical Engineering Insights:
Sentence-transformer embeddings (trained for semantic similarity) achieve 100% accuracy vs. 60% for GPT-2 embeddings (trained for next-token prediction)
Unit sphere normalization is essential—without it, geometric metrics are meaningless
Lower dimensionality (d_φ = 32) outperforms higher (d_φ = 64) by avoiding overfitting
Adversarial Stress Testing: Systematic characterization of breaking points across six attack vectors with precisely identified safe operating ranges.
The 5-Book Experiment
We calibrated the cache on five books with intentional semantic overlap (Meditations and SPQR both involve ancient Rome):
Dune (science fiction)
Pride and Prejudice (romance)
Meditations (Stoic philosophy)
Deep Learning (technical ML)
SPQR: A History of Ancient Rome (Roman history)
After 100 intervening conversations that overflow the context window (~6,500 tokens vs. 4,096 limit), the Davis Cache correctly identified all five books—including distinguishing Roman philosophy from Roman history with positive margin.
Control (no cache): 0/5 accessible (complete amnesia)Davis Cache: 5/5 correct (100% recall)
Relationship to Prior Work
This work operationalizes the theoretical framework developed in:
The Davis Conjecture (doi:10.5281/zenodo.17780665): Context windows as holonomy horizons
Field Equations of Semantic Coherence (doi:10.5281/zenodo.17771796): Geometric dynamics of meaning flow
Spectral Geometry of Transformer Cognition: Heat kernel analysis of attention patterns
The Davis Manifold (doi:10.5281/zenodo.17642038): Geometry-first detection with error budgets
The Davis Cache provides empirical validation of the core conjecture: coherence degrades because parallel transport accumulates phase error, not because storage runs out. By preserving topological invariants, we maintain coherence despite context overflow.
Patent Status
Related to U.S. Provisional Patent Application No. 63/927,445 (Davis Conjecture on Semantic Coherence).
Keywords
context windows, topological invariants, reasoning preservation, semantic geometry, transformer memory, O(1) compression, attention mechanisms, long-context models, geometric deep learning, coherence degradation
Manuscript and supporting files
- Davis_Cache__O_1__Reasoning_State_Preservation_via_Topological_Residue.pdf (md5:246985e878f750c7d6b9f0ec72df4e37)
- davis_cache_v3_geometric_analysis.txt (md5:5c97f6035dc8886f5333ffffe42d8873)
File availability and recorded checksums were read from the public API on 1 December 2026; this index does not claim to have rerun the paper’s experiments.
Paper, sources and reading path
2025-12-02 · Preprint · Publication record · Complete text reader