Semantic Search
Standard retrieval-augmented generation relies on localized spatial proximity in static embedding spaces. True semantic search requires reconstructing dynamic state trajectories across extended contexts—moving past point-wise similarity to capture causal and temporal invariants.
Retrieval-Augmented Generation (RAG) and entity-centric knowledge graphs have become the default architectures for external memory in language models. Yet both rest on a fragile premise: that semantic relevance is an isotropic, localized distance metric in a static vector space.
In practice, embedding similarity operates as an unconstrained bag-of-concepts matcher. It identifies topical resonance while remaining blind to the stateful transformations that govern real-world narratives, legal frameworks, and system histories.
The Structural Failures of Vector Proximity
Cosine similarity over dense embeddings collapses three fundamental dimensions of meaning:
- Lack of Directionality: As established in our Alignment formalism, a symmetric distance metric () cannot encode asymmetric dependencies. Cause-and-effect, premise-and-conclusion, and state transitions are fundamentally directional operations that spatial proximity alone flattens.
- Absence of Temporal Cohesion: Vector embeddings embed isolated chunks without an intrinsic time-evolution operator. They cannot track state updates across sequential chapters, commits, or lifecycle events.
- Locality Blindness (The Horizon Problem): Standard embedding models compress fixed-window passages ( tokens) in isolation. They fail when the salient semantic payload is non-local—distributed across subtle narrative shifts, discontinuous dialogue, and distant causal anchors.
Ask a standard embedding retriever: “How was the protagonist dressed after Jamie was killed?” The index will eagerly return scenes where Jamie dies and scenes mentioning clothing, but it possesses no causal calculus to isolate the clothing state strictly on the post-event manifold.
Beyond Vectors and Static Graphs: The Dynamic World Model
Standard semantic search fails because it forces unstructured narrative into rigid, lossy representations:
- Dense Vector Spaces (RAG): Compress text into unconditioned topological points, losing sequence, hierarchy, and state mutations.
- Static Knowledge Graphs (GraphRAG): Force meaning into discrete, timeless triples, breaking down under temporal qualification, implicit state drift, and probabilistic dependencies.
Instead of indexing static snapshots or timeless nodes, we formulate semantic search as querying a dynamically unrolled world model. Building on the architecture introduced in our Plot Identification research, we replace unstructured vector indices with a Transformer Perception Layer writing to an external Graph State Engine.
Document comprehension is modeled as a dynamic transition system where a neural policy continuously compiles sequential tokens into a differentiable, temporally aware causal graph.
The Three-Tier Search Architecture
- The Perception Layer & Graph State Engine (): A state-space encoder that processes the document stream chunk-by-chunk. At each token horizon , the transformer emits explicit state-mutation commands to update a structured internal causal graph:
where tracks continuous latent configurations across all persistent entities (graph nodes) simultaneously.
- Causal Horizon Grounder (): This is a direct search-time application of our salient-structure operator (). Given a relational query , the grounder isolates the temporal anchor condition , target entity , and relational constraint . Rather than performing keyword or semantic matches, it directly infers the causal boundary index on the graph:
- Trajectory Invariant Evaluator (): Retrieval is executed as direct state-space decoding on the post-boundary trajectory sub-manifold . The evaluator parameterizes query projection and evaluates conditional support against the persistent graph state:
Mathematical Formulation: Causal State Retrieval
Formally, let an extended context be a sequential trajectory . We parameterize the unrolled policy as the state-trajectory operator , generating the continuous entity trajectory .
1. Event Conditioning & Temporal Boundary Operator
A query targeting a conditional state specifies anchor event and temporal direction (e.g., ‘after ’). The causal boundary index defines the post-event causal support mask :
2. Asymmetric Causal Similarity Metric
State-conditioned retrieval requires an asymmetric projection metric to satisfy the direction-sensitive requirement of our semantic distortion framework. This metric must heavily penalize pre-condition state leakage and directional causal violations.
Let be the query representation projected into . We define as:
The penalty term forces the retriever to isolate genuine state transitions occurring after the causal boundary in the graph, preventing it from blindly matching static background properties.
3. Contrastive State-Tracking Objective
To train the policy (via ) and projection jointly, we construct a time-aware contrastive objective across positive post-event states and hard negative pre-event states for the same entity:
This objective forces the encoder to orthogonalize representations across critical causal boundaries, preventing the model from confusing past entity attributes with their current, mutated state.
Current Frontiers & Research Reality
We are currently developing custom transformer-based encoders to learn these state-tracking representations directly from long-form sequential text.
The results remain far from solved. Current attention mechanisms still exhibit strong recency and lexical biases, frequently leaking pre-event attribute states into post-event queries or degrading across high-entropy narrative shifts. Transforming transformer representations from associative memory into faithful, queryable state-space decoders is an active, open research front at Robo Data Lab.