Papers
Topics
Authors
Recent
Search
2000 character limit reached

SCH: Stratified Context Hunting Framework

Updated 24 April 2026
  • Stratified Context Hunting (SCH) is a formal framework that addresses context-length limitations using hierarchical memory with three operators: extraction, coarsening, and traversal.
  • The framework employs quantitative information-theoretic metrics to guide memory hierarchy design and optimize retrieval performance, ensuring minimal information loss.
  • SCH subsumes multiple existing architectures by providing prescriptive rules and bounds, such as Fano-derived partition limits, for efficient context selection under resource constraints.

Stratified Context Hunting (SCH) is a formal framework addressing the context-length limitation in long-context and agentic systems through hierarchical memory. SCH decomposes memory organization and retrieval into three key operators—extraction (α), coarsening (C = (π, ρ)), and traversal (τ)—and introduces quantitative information-theoretic principles to guide the design and analysis of memory hierarchies and retrieval strategies. This formalism subsumes a wide spectrum of existing architectures, providing a unified vocabulary and prescriptive theory for optimizing context selection under resource constraints (Talebirad et al., 23 Mar 2026).

1. Core Components: Extraction, Coarsening, and Traversal

Extraction Operator (α)

The extraction operator α transforms raw or semi-structured data DDD \in \mathcal{D} (e.g., documents, conversation transcripts, execution traces) into a unit graph G0=(U0,E0)G_0 = (U_0, E_0). The atomic information units U0U_0 live in a product feature space F=F1××Fp\mathcal{F} = \mathcal{F}_1 \times \cdots \times \mathcal{F}_p, with one canonical factor Fc=Σ\mathcal{F}_c = \Sigma^* holding textual content φc(u)\varphi_c(u). Edge relations E0E_0 may encode syntactic or semantic relations. The extraction function is defined as

α:DG,α(D)=G0=(U0,E0)\alpha: \mathcal{D} \rightarrow \mathcal{G}, \qquad \alpha(D) = G_0 = (U_0, E_0)

where chunking, annotation, or segmentation procedures are encoded within α.

Coarsening Operator (C=(π,ρ)C = (\pi, \rho))

Coarsening reduces the granularity of G=(U,E)G = (U, E) to a smaller graph G0=(U0,E0)G_0 = (U_0, E_0)0 via:

  • Partitioning function G0=(U0,E0)G_0 = (U_0, E_0)1 surjectively groups units, inducing partitions G0=(U0,E0)G_0 = (U_0, E_0)2.
  • Representative function G0=(U0,E0)G_0 = (U_0, E_0)3 assigns a summary (representative) to each group in the same feature space. Coarsening decreases the number of information units, thus controlling memory footprint. G0=(U0,E0)G_0 = (U_0, E_0)4 may implement referential labels, abstractive summaries, or embedding centroids.

Traversal Operator (τ)

Traversal selects a subset G0=(U0,E0)G_0 = (U_0, E_0)5 of atomic units as context, taking as input the hierarchy G0=(U0,E0)G_0 = (U_0, E_0)6, a query G0=(U0,E0)G_0 = (U_0, E_0)7, and a token budget G0=(U0,E0)G_0 = (U_0, E_0)8:

G0=(U0,E0)G_0 = (U_0, E_0)9

with the constraint U0U_00. Practical traversal strategies include top-down refinement (beam search), collapsed search (ranking across all layers with expansion), multi-view parallel retrieval, and reasoning-based navigation.

2. Self-Sufficiency of Representatives and Coarsening–Traversal Coupling

The quality of a representative U0U_01 for a group U0U_02 is formalized by its self-sufficiency:

U0U_03

U0U_04 quantifies the fraction of Shannon information preserved by the representative. High self-sufficiency (U0U_05) enables retrieval of almost all group information from U0U_06, whereas low self-sufficiency (U0U_07) indicates primarily referential summaries.

A query-conditioned variant,

U0U_08

captures the proportion of query-relevant information retained.

The coarsening–traversal (C–T) coupling is a rate–distortion relationship: if all group representatives satisfy U0U_09, collapsed search yields at most F=F1××Fp\mathcal{F} = \mathcal{F}_1 \times \cdots \times \mathcal{F}_p0 fraction information loss for any query. For low-SS representatives, only top-down refinement ensures detailed recovery, as collapsed search is insufficient.

Branching factor is additionally bounded via Fano's inequality: the number of partition groups F=F1××Fp\mathcal{F} = \mathcal{F}_1 \times \cdots \times \mathcal{F}_p1 at a coarsened level is limited by the information content of representatives,

F=F1××Fp\mathcal{F} = \mathcal{F}_1 \times \cdots \times \mathcal{F}_p2

to achieve routing error at most F=F1××Fp\mathcal{F} = \mathcal{F}_1 \times \cdots \times \mathcal{F}_p3.

3. SCH Algorithmic Instantiation

A worked SCH algorithm illustrates these principles on a document F=F1××Fp\mathcal{F} = \mathcal{F}_1 \times \cdots \times \mathcal{F}_p4 (e.g., F=F1××Fp\mathcal{F} = \mathcal{F}_1 \times \cdots \times \mathcal{F}_p5 tokens, context budget F=F1××Fp\mathcal{F} = \mathcal{F}_1 \times \cdots \times \mathcal{F}_p6):

  1. Extraction (α): Split F=F1××Fp\mathcal{F} = \mathcal{F}_1 \times \cdots \times \mathcal{F}_p7 into F=F1××Fp\mathcal{F} = \mathcal{F}_1 \times \cdots \times \mathcal{F}_p8-token chunks, F=F1××Fp\mathcal{F} = \mathcal{F}_1 \times \cdots \times \mathcal{F}_p9, Fc=Σ\mathcal{F}_c = \Sigma^*0.
  2. Hierarchy Construction:
    • Fc=Σ\mathcal{F}_c = \Sigma^*1: Fc=Σ\mathcal{F}_c = \Sigma^*2 groups every Fc=Σ\mathcal{F}_c = \Sigma^*3 chunks (paragraph), Fc=Σ\mathcal{F}_c = \Sigma^*4 generates a 2-sentence LLM summary per group, producing Fc=Σ\mathcal{F}_c = \Sigma^*5.
    • Fc=Σ\mathcal{F}_c = \Sigma^*6: Fc=Σ\mathcal{F}_c = \Sigma^*7 clusters Fc=Σ\mathcal{F}_c = \Sigma^*8 into Fc=Σ\mathcal{F}_c = \Sigma^*9 topics via UMAP+GMM, φc(u)\varphi_c(u)0 generates a single-sentence topic summary per cluster, producing φc(u)\varphi_c(u)1.
  3. Traversal (τ) Decisions:
    • If φc(u)\varphi_c(u)2 and φc(u)\varphi_c(u)3 (measured with LLM-proxy φc(u)\varphi_c(u)4), use collapsed search:
      • Pool all units from φc(u)\varphi_c(u)5, rank by query relevance, expand non-leaf nodes, and select atomic units to fill the token budget.
    • If φc(u)\varphi_c(u)6 is low (e.g., only domain labels), perform top-down, stepwise refinement.

4. Comparative Analysis of SCH-Style Systems

The three-operator (α, π, ρ, τ) framework subsumes a broad set of hierarchical memory and retrieval systems. Empirical analysis maps at least eleven architectures, including RAPTOR, xMemory, H-MEM, SimpleMem, GraphRAG, PageIndex, MemoBrain, StackPlanner, AgeMem, InfiAgent, and Om, into this formalism.

Data-memory systems (e.g., RAPTOR, GraphRAG) typically differ in atomic extraction (sentence, entity-pair, episode), grouping schemes (e.g., clustering or structural mapping), representative quality (LLM summary vs. label vs. centroid), and traversal pattern (collapsed vs. refinement). Trace-memory systems (e.g., MemoBrain, StackPlanner) instantiate φc(u)\varphi_c(u)7 over execution steps, coarsen by causal or stack structures, and traverse for execution trace reassembly.

System Domain Extraction Unit Coarsening/Representative Traversal Pattern
Data-memory sentence, pair, episode LLM-summary, centroid collapsed/top-down
Trace-memory execution step causal/stack rep refinement

5. Design Insights and Theoretical Implications

SCH establishes several operational and theoretical principles:

  • A unified pipeline: extraction, coarsening, traversal applies across agentic and retrieval-based memory architectures.
  • Quantitative metrics (self-sufficiency φc(u)\varphi_c(u)8) link representative quality to retrieval performance.
  • Prescriptive design rule (C–T coupling): match high-SS representatives to collapsed search and low-SS representatives to incremental, top-down traversal.
  • Fano-derived bounds guide partition granularity based on representative informativeness.
  • Affinity or coherence in partitioning (φc(u)\varphi_c(u)9) is necessary for safe pruning during top-down traversal.

6. Limitations, Open Challenges, and Future Directions

Notable limitations of SCH include the assumption of static operators; dynamic, query-conditioned groupings or adaptive refinement of E0E_00 may violate the separability and Markov assumptions intrinsic to the current formalism. The existing framework does not model the feedback between query-conditioned coarsening and traversal. The theoretical bounds for self-sufficiency and routing rely on idealized Shannon information; practical computation of tight proxies for LLM-based E0E_01 remains an active area of research (Talebirad et al., 23 Mar 2026).

A plausible implication is that further advances in adaptive information-theoretic modeling and query-conditioned hierarchy construction may extend the prescriptive power of SCH to dynamic, online, and highly agentic language systems.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Stratified Context Hunting (SCH).