ReadPrintedHistoryCompareGraphs

v7.1 → v7.2

What changed from v7.1 to v7.2

From v7.1 (2 Jun) to v7.2 (2 Jun): 7,816 words to 8,162 words, 458 words in new or rewritten paragraphs and 112 taken out, 27 paragraphs changed.

Architecture figure and a note on which layers are now built

A small revision. The architecture section gains its first real diagram and a short picture of FMI as a zoomable map. The contributions list now says which of the near-term layers have since been built into the system the paper compares against.

  • New figure of the write, merge and search pipeline. The improvement notes had called the lack of diagrams the paper's biggest readability problem.
  • The links-between-memories section drops "missing" from its title and grows to say what now exists.
  • Small edits to the abstract, introduction, search section and conclusion.
v7.1 · 2 June 2026v7.2 · 2 June 2026
v7.1 · Fractal Reasoning# Fractal Reasoning
removed in v7.2
v7.1 · Fractal Reasoning**Author:** Research Report — Oscar / JarvisOne AI Research **Version:** v7.1 **Date:** June 2026 **Keywords:** fractal data structures, LLM memory, retrieval-augmented generation, self-similarity, memory compression, hierarchical indexing, fractal metacognition
removed in v7.2
v7.1 · Fractal Reasoning---
removed in v7.2

··· 1 unchanged paragraph folded ···

v7.1 · AbstractLLM-based agents store and retrieve information at a single granularity, yet language, knowledge, and reasoning exhibit statistical self-similarity across scales. We propose **Fractal Reasoning**, a framework that applies fractal mathematics to both the _data structures_ and the _cognitive processes_ of LLM-based systems. The **Fractal Memory Index (FMI)** integrates buffered consolidation for write-optimized ingestion, Hilbert-curve multi-resolution indexing for locality-preserving retrieval, and Iterated Function System (IFS) semantic compression. **Fractal Metacognition** structures agent reasoning into self-similar levels — from a pre-task retrieval check through task, process, and meta-pattern reasoning — where each level applies the same reflective operation at a different cognitive scale. Theoretical analysis shows O(1) amortized writes and O(L · log_B n) multi-resolution retrieval. We compare FMI against RAPTOR, MemGPT, standard RAG, and KV-cache compression, and show that existing systems like RAPTOR already exploit fractal self-similarity implicitly. We also ground the proposal against a deployed flat-index memory system, identifying the concrete query class where flat indexing fails and multi-resolution retrieval would succeed. This is a theoretical contribution and research agenda; empirical validation is the primary next step.
v7.2 · AbstractLLM-based agents store and retrieve information at a single granularity, yet language, knowledge, and reasoning exhibit statistical self-similarity across scales. We propose **Fractal Reasoning**, a framework that applies fractal mathematics to both the _data structures_ and the _cognitive processes_ of LLM-based systems. The **Fractal Memory Index (FMI)** integrates buffered consolidation for write-optimized ingestion, Hilbert-curve multi-resolution indexing for locality-preserving retrieval, and Iterated Function System (IFS) semantic compression. **Fractal Metacognition** structures agent reasoning into self-similar levels — from a pre-task retrieval check through task, process, and meta-pattern reasoning — where each level applies the same reflective operation at a different cognitive scale. Theoretical analysis shows O(1) amortized writes and O(L · log_B n) multi-resolution retrieval. We compare FMI against RAPTOR, MemGPT, standard RAG, and KV-cache compression, and show that existing systems like RAPTOR already exploit fractal self-similarity implicitly. We also ground the proposal against a deployed flat-index memory system, identifying the concrete query class where flat indexing fails and multi-resolution retrieval would succeed, and we report which of the framework's near-term layers have since been built into that system. This is a theoretical contribution and research agenda; empirical validation of the compression hypothesis is the primary next step.

··· 3 unchanged paragraphs folded ···

v7.1 · 1. IntroductionAI memory does not work this way. As LLMs power long-running agent systems, personal assistants, and enterprise knowledge platforms, they must manage information that far exceeds fixed context windows. Current solutions — retrieval-augmented generation (Lewis et al., 2020), hierarchical retrieval (Sarthi et al., 2024), OS-inspired memory management (Packer et al., 2023), and KV-cache compression (Xiao et al., 2023; Zhang et al., 2024a) — each address fragments of the problem. None provides a unified framework, and most retrieve at a single granularity. This paper is our attempt to bring the neocortex's multi-resolution, hierarchical organization to AI memory: indexing at the level of raw events, topic clusters, and abstract concepts at the same time.
v7.2 · 1. IntroductionAI memory does not work this way. As LLMs power long-running agent systems, personal assistants, and enterprise knowledge platforms, they must manage information that far exceeds fixed context windows. Current solutions — retrieval-augmented generation (Lewis et al., 2020), hierarchical retrieval (Sarthi et al., 2024), OS-inspired memory management (Packer et al., 2023), and KV-cache compression (Xiao et al., 2023; Zhang et al., 2024a) — each address fragments of the problem. None provides a unified framework, and most retrieve at a single granularity. This paper brings the neocortex's multi-resolution, hierarchical organization to AI memory: indexing at the level of raw events, topic clusters, and abstract concepts at the same time.
v7.1 · 1. IntroductionWe observe that these challenges share a common structure that fractal mathematics is well-positioned to address:
v7.2 · 1. IntroductionThese challenges share a common structure that fractal mathematics is well-positioned to address:

··· 4 unchanged paragraphs folded ···

v7.1 · 1. IntroductionThe fractal structure of intelligence extends beyond data. Most current LLM agents concentrate cognitive effort at a single level — the task at hand — with limited systematic mechanisms for accumulating meta-level insights across reasoning episodes. (Tree-of-thought and self-reflection approaches address aspects of this within single episodes; see §9.1.) Effective reasoning benefits from self-similarity across cognitive scales: an agent solving a problem (Level 1) benefits from reflecting on its problem-solving strategy (Level 2), which benefits from recognizing patterns across strategies (Level 3). Each level applies the same reflective operation at a different scale — and each discovers insights invisible from the level below.
v7.2 · 1. IntroductionThe fractal structure of intelligence extends beyond data. Most current LLM agents concentrate cognitive effort at a single level — the task at hand — with few systematic mechanisms for accumulating meta-level insights across reasoning episodes. (Tree-of-thought and self-reflection approaches address aspects of this within single episodes; see §9.1.) Effective reasoning benefits from self-similarity across cognitive scales: an agent solving a problem (Level 1) benefits from reflecting on its problem-solving strategy (Level 2), which benefits from recognizing patterns across strategies (Level 3). Each level applies the same reflective operation at a different scale, and each discovers insights invisible from the level below.

··· 3 unchanged paragraphs folded ···

v7.1 · 1.1 Contributions- A formal analysis of self-similarity in LLM memory systems, connecting fractal mathematics to practical memory challenges. - The FMI architecture integrating three components: buffered consolidation, space-filling curve indexing, and IFS-based compression. - Theoretical complexity analysis comparing FMI to existing approaches. - Identification of RAPTOR's implicit fractal structure and how formalizing it yields improvements. - A grounded comparison against a deployed flat anchor-to-chunk memory system, with a concrete query class where flat retrieval fails and multi-resolution retrieval would succeed (§5.5). - **Fractal Metacognition**: a framework for self-similar reasoning across cognitive scales — including a pre-task retrieval-confidence level — connecting fractal data structures to fractal cognition. - A concrete research agenda for empirical validation, particularly IFS-based semantic compression and the missing horizontal link layer between memories (§7.6).
v7.2 · 1.1 Contributions- A formal analysis of self-similarity in LLM memory systems, connecting fractal mathematics to practical memory challenges. - The FMI architecture integrating three components: buffered consolidation, space-filling curve indexing, and IFS-based compression. - Theoretical complexity analysis comparing FMI to existing approaches. - Identification of RAPTOR's implicit fractal structure and how formalizing it yields improvements. - A grounded comparison against a deployed flat anchor-to-chunk memory system, with a concrete query class where flat retrieval fails and multi-resolution retrieval would succeed (§5.5). - **Fractal Metacognition**: a framework for self-similar reasoning across cognitive scales — including a pre-task retrieval-confidence level — connecting fractal data structures to fractal cognition. - A concrete research agenda for empirical validation, particularly IFS-based semantic compression, and a report on which near-term layers — the horizontal link layer (§7.6) and bounded deliberation search (§9.6) — have since been built into the deployed baseline.

··· 29 unchanged paragraphs folded ···

v7.1 · 3. The Fractal Memory Index ArchitectureThe Fractal Memory Index (FMI) is a three-component architecture that maps fractal principles to LLM memory operations. One image holds the three together: **a flat vector index is like having only the street-level view of a map — precise but useless for seeing the big picture, while FMI is like Google Maps, where you zoom from street level to continent level and the map shows useful information at every scale.**
v7.2 · 3. The Fractal Memory Index ArchitectureThe Fractal Memory Index (FMI) is a three-component architecture that maps fractal principles to LLM memory operations. One image holds the three together: **a flat vector index is like having only the street-level view of a map — precise but useless for seeing the big picture — while FMI is like Google Maps, where you zoom from street level to continent level and the map shows useful information at every scale.**
not in v7.1
v7.2 · 3. The Fractal Memory Index Architecture```{=latex} \begin{figure}[htbp] \centering \includegraphics[width=\linewidth,height=0.85\textheight,keepaspectratio]{images/fmi-architecture.png} \caption{FMI consolidation-and-retrieval pipeline: input memories flow through the write buffer, periodic consolidation (clustering, summarization, IFS compression), and the Hilbert-curve multi-resolution index; queries traverse the index once and return ranked results at the requested granularity.} \label{fig:fmi-architecture} \end{figure} ```

··· 8 unchanged paragraphs folded ···

v7.1 · 3.1 Component 1: Buffered Memory Consolidation (BMC)**Biological parallel:** The write buffer corresponds to episodic encoding, consolidation to offline replay, and the persistent index to long-term semantic storage. The key design insight — borrowed from neuroscience — is that consolidation is _lossy by design_: memories compress into gists, with details available only if explicitly retained.
v7.2 · 3.1 Component 1: Buffered Memory Consolidation (BMC)**Biological parallel:** The write buffer corresponds to episodic encoding, consolidation to offline replay, and the persistent index to long-term semantic storage. The key design insight, borrowed from neuroscience, is that consolidation is _lossy by design_: memories compress into gists, with details available only if explicitly retained.

··· 16 unchanged paragraphs folded ···

v7.1 · 3.3 Component 3: IFS Semantic Compression (ISC)**Theoretical compression ratio:** If the embedding space has intrinsic fractal dimension d and ambient dimension D, the compression ratio scales as O(d/D). For typical LLM embeddings (D = 768-4096) with estimated intrinsic dimensionality of 50-200 (based on persistent homology studies; Birdal et al., 2021), this suggests compression ratios in a range that depends heavily on domain structure and embedding model. We deliberately avoid quoting a single range here — the actual ratio is an empirical question that §7.1 proposes to answer.
v7.2 · 3.3 Component 3: IFS Semantic Compression (ISC)**Theoretical compression ratio:** If the embedding space has intrinsic fractal dimension d and ambient dimension D, the compression ratio scales as O(d/D). For typical LLM embeddings (D = 768-4096) with estimated intrinsic dimensionality of 50-200 (based on persistent homology studies; Birdal et al., 2021), the actual ratio depends heavily on domain structure and embedding model. We deliberately avoid quoting a single range — the ratio is an empirical question that §7.1 proposes to answer.

··· 2 unchanged paragraphs folded ···

v7.1 · 3.3 Component 3: IFS Semantic Compression (ISC)**Connection to existing work:** ISC generalizes fractal image compression (Jacquin, 1992) from pixel space to semantic embedding space. While fractal image compression fell out of favor due to slow encoding, the characteristics of memory compression — offline encoding, online decoding, multi-resolution access — align with the fractal approach's strengths. Whether this advantage transfers to high-dimensional semantic spaces remains to be demonstrated.
v7.2 · 3.3 Component 3: IFS Semantic Compression (ISC)**Connection to existing work:** ISC generalizes fractal image compression (Jacquin, 1992) from pixel space to semantic embedding space. Fractal image compression fell out of favor due to slow encoding, but the characteristics of memory compression — offline encoding, online decoding, multi-resolution access — align with the fractal approach's strengths. Whether this advantage transfers to high-dimensional semantic spaces remains to be demonstrated.

··· 1 unchanged paragraph folded ···

v7.1 · 3.4 Integrated ArchitectureThe three components integrate as follows:
removed in v7.2
v7.1 · 3.4 Integrated Architecture``` Input memories → [Write Buffer (BMC)] → periodic consolidation → [Clustering + Summarization] → [IFS Compression (ISC)] → [Hilbert-Curve Index (HMRI)]
removed in v7.2
v7.1 · 3.4 Integrated ArchitectureQuery → [HMRI multi-resolution lookup] → [ISC decompression if needed] → [Ranked results at requested granularity] → LLM context ```
removed in v7.2
not in v7.1
v7.2 · 3.4 Integrated ArchitectureThe three components form a single pipeline. Incoming memories land in the write buffer (BMC). Periodic consolidation clusters and summarizes the buffered entries, applies IFS compression (ISC) to redundant clusters, and writes the result into the Hilbert-curve index (HMRI). At query time, a single multi-resolution lookup against HMRI — decompressing through ISC only when raw detail is required — returns ranked results at the requested granularity, which are then packed into the LLM context. Figure 1 traces both paths.

··· 13 unchanged paragraphs folded ···

v7.1 · 4.3 Compression Analysis**Important caveat:** Low intrinsic dimensionality does not automatically imply fractal self-similarity. The embedding manifold could be low-dimensional but smooth, in which case standard dimensionality reduction would suffice and IFS compression would offer no additional benefit. The specific contribution of ISC depends on the presence of _self-similar structure_ — patterns that repeat at multiple scales — which is a stronger property than low dimensionality alone.
v7.2 · 4.3 Compression Analysis**Important caveat:** Low intrinsic dimensionality does not imply fractal self-similarity. The embedding manifold could be low-dimensional but smooth, in which case standard dimensionality reduction would suffice and IFS compression would offer no additional benefit. The specific contribution of ISC depends on the presence of _self-similar structure_ — patterns that repeat at multiple scales — which is a stronger property than low dimensionality alone.

··· 19 unchanged paragraphs folded ···

v7.1 · 5.5 FMI vs. a Deployed Flat-Index SystemFMI is easy to motivate in the abstract; it is more convincing against a real baseline. We compare it to a production agent-memory system that uses a flat anchor-to-chunk index: topic keywords map directly to memory segments, giving O(1) lookup but limiting retrieval to near-exact keyword and single-granularity similarity matches. The system stores interactions as an append-only event log — one record per turn — with full-text search scored by term frequency, and no edges between events. (We refer to this design as the flat-index baseline throughout; it is representative of the simplest production memory backends and of an internal system we examined directly.)
v7.2 · 5.5 FMI vs. a Deployed Flat-Index SystemFMI is easy to motivate in the abstract; it is more convincing against a real baseline. We compare it to a production agent-memory system that uses a flat anchor-to-chunk index: topic keywords map directly to memory segments, giving O(1) lookup but limiting retrieval to near-exact keyword and single-granularity similarity matches. The system stores interactions as an append-only event log — one record per turn — with full-text search scored by term frequency, and (originally) no edges between events. We refer to this design as the flat-index baseline throughout; it is representative of the simplest production memory backends and of an internal system we examined directly.

··· 3 unchanged paragraphs folded ···

v7.1 · 5.5 FMI vs. a Deployed Flat-Index SystemThe flat-index baseline also exposes the most actionable gap, discussed in §7.6: with no edges between events, "what does this touch?" can only be answered by re-running similarity search every turn, rather than by following stored links.
v7.2 · 5.5 FMI vs. a Deployed Flat-Index SystemThe flat-index baseline also exposed the most actionable gap, discussed in §7.6: with no edges between events, "what does this touch?" could only be answered by re-running similarity search every turn. That gap has since been closed in the deployed system by a horizontal link layer; §7.6 reports what was built and what it does not yet solve.

··· 32 unchanged paragraphs folded ···

v7.1 · 7.6 The Horizontal Layer: Links Between Memories### 7.6 The Missing Horizontal Layer: Links Between Memories
v7.2 · 7.6 The Horizontal Layer: Links Between Memories### 7.6 The Horizontal Layer: Links Between Memories
v7.1 · 7.6 The Horizontal Layer: Links Between MemoriesFMI as described is _vertical_: it indexes the same content at multiple levels of abstraction (event → cluster → concept). It says little about _horizontal_ structure — explicit edges between memories at the same level. The flat-index baseline of §5.5 has the same gap in starker form: its events have no edges at all, so "what does this touch?" is answered by re-running similarity search on every turn rather than by following stored references.
v7.2 · 7.6 The Horizontal Layer: Links Between MemoriesFMI as described is _vertical_: it indexes the same content at multiple levels of abstraction (event → cluster → concept). It says little about _horizontal_ structure — explicit edges between memories at the same level. The flat-index baseline of §5.5 had the same gap in starker form: its events had no edges at all, so "what does this touch?" was answered by re-running similarity search on every turn rather than by following stored references.

··· 1 unchanged paragraph folded ···

v7.1 · 7.6 The Horizontal Layer: Links Between MemoriesThis is a self-contained, near-term addition that does not depend on the unresolved ISC question. Two design choices govern it. **Scope:** per-store links are simple but lose most of the value, since a Zettelkasten's payoff is cross-document linking; a global link store recovers the value at the cost of global reference resolution. **Aggressiveness:** linking every extracted entity yields high recall but a noisy graph, whereas restricting to explicit links plus a curated entity set yields high precision but lower coverage. We flag both as decisions to be made empirically rather than assumed. The main risk is reference deduplication across paraphrases ("the bank loan" vs. "el préstec del banc" collapsing to one logical target), which normalization mitigates only partly and entity linking would address more fully.
v7.2 · 7.6 The Horizontal Layer: Links Between MemoriesThis layer has since been built into the deployed baseline of §5.5 as a self-contained addition that does not depend on the unresolved ISC question. A mention parser extracts both explicit `[[wikilink]]` references and entity references from each event; a link index appends them to an append-only log (mirroring the event store) while maintaining forward and backward edge maps rebuilt on read; and the retrieval path expands a retrieved event with its backlinks as a one-hop graph walk, budget permitting. Two design choices remain live. **Scope:** per-store links are simple but lose most of the value, since a Zettelkasten's payoff is cross-document linking; a global link store recovers the value at the cost of global reference resolution. **Aggressiveness:** linking every extracted entity yields high recall but a noisy graph, whereas restricting to explicit links plus a curated entity set yields high precision but lower coverage. The main unsolved risk is reference deduplication across paraphrases ("the bank loan" vs. "el préstec del banc" collapsing to one logical target), which normalization mitigates only partly and entity linking would address more fully. The build ships normalization-only and documents the limitation.

··· 12 unchanged paragraphs folded ···

not in v7.1
v7.2 · 9. Fractal Metacognition```{=latex} \begin{figure}[htbp] \centering \includegraphics[width=\linewidth,height=0.85\textheight,keepaspectratio]{images/metacognition-levels.png} \caption{Fractal Metacognition levels: a stack from Level 0 (retrieval confidence) through Level 1 (task), Level 2 (process), and Level 3+ (meta-pattern), where each level applies the same observe-evaluate-adapt operation to the output of the level below, and higher levels fire more rarely.} \label{fig:metacognition-levels} \end{figure} ```

··· 22 unchanged paragraphs folded ···

v7.1 · 9.5 Connection to Fractal Data StructuresWe note that the mathematical formalism here is less rigorous than in the FMI sections. The claim is structural: both systems apply the same operation recursively across scales. Whether this structural parallel yields the same quantitative benefits (provable complexity bounds, measurable compression) in the cognitive domain is a question for empirical investigation.
v7.2 · 9.5 Connection to Fractal Data StructuresThe mathematical formalism here is less rigorous than in the FMI sections. The claim is structural: both systems apply the same operation recursively across scales. Whether this structural parallel yields the same quantitative benefits (provable complexity bounds, measurable compression) in the cognitive domain is a question for empirical investigation.

··· 4 unchanged paragraphs folded ···

not in v7.1
v7.2 · 9.6 From Reflection to SearchA bounded version of this loop has since been built into the deployed system: a pure reasoning-tree data structure (expand, evaluate, select-frontier, prune, backtrack, best-leaf) drives an async search whose depth, branching factor, beam width, token, and latency budgets are all enforced, and which is off by default and gated behind explicit configuration. The build confirms the engineering is tractable under hard budgets; it does not settle the scorer question, which remains the open empirical variable.

··· 9 unchanged paragraphs folded ···

v7.1 · 10. ConclusionThe framework's value is modular. Buffered consolidation, Hilbert-curve indexing, and the horizontal link layer (§7.6) are immediately buildable and independently useful. IFS compression offers the highest potential impact but depends on an unresolved empirical question: whether LLM embedding spaces exhibit sufficient self-similar structure. The central validation experiment — measuring fractal dimension across diverse corpora, including a real agent-memory log (§7.1) — will determine ISC's viability and, more broadly, the quantitative reach of the fractal perspective.
v7.2 · 10. ConclusionThe framework's value is modular, and the modularity has held up in practice. Buffered consolidation, Hilbert-curve indexing, the horizontal link layer (§7.6), and bounded deliberation search (§9.6) are independently useful; the link layer and the search loop have already been built into the deployed baseline as self-contained additions that do not wait on the unresolved compression question. IFS compression offers the highest potential impact but depends on that question: whether LLM embedding spaces exhibit sufficient self-similar structure. The central validation experiment — measuring fractal dimension across diverse corpora, including a real agent-memory log (§7.1) — will determine ISC's viability and, more broadly, the quantitative reach of the fractal perspective.

··· 40 unchanged paragraphs folded ···

Changed paragraphs in the same form, for scripts: JSON · Markdown