Jacobian-Causal Memory Control for Persistent Memory in Language Model Systems

Marvin DanigarXiv 2026

TL;DR

Jacobian-Causal Memory Control (JCMC) shifts the paradigm of AI memory from "finding relevant documents" to "steering model behavior." By treating memory as a causal intervention with a predictable "influence signature," the system can select memories that achieve specific behavioral targets, monitor their actual impact in real-time, and roll them back if they cause unintended side effects.

What Problem Does This Paper Address?

Current Retrieval-Augmented Generation (RAG) systems rely on relevance. If a user asks about a project, the system finds the most semantically similar documents. However, "relevant" information isn't always "helpful" or "safe." A relevant but stale document might lead a model to give outdated advice, or a highly relevant pricing sheet might push a model toward aggressive sales tactics when the system policy requires caution.

The authors argue that as LLMs become long-lived agents with persistent memory, we need to move from an open-loop "retrieve and append" model to a closed-loop control problem. The core challenge is: How do we predict what a memory will actually cause a model to do before we show it to the model, and how do we fix it if we’re wrong?

Methods

The paper proposes a framework called Jacobian-Causal Memory Control (JCMC). It treats every memory as an "intervention" on the model's internal state. Key components include:

  • Influence Signatures ($\phi_m$): Instead of just an embedding vector, each memory is assigned a signature that estimates the directional shift it causes in the model's output space (the "J-space"). In a differentiable system, this is calculated using a local linearization (a Jacobian) of the model's output with respect to the memory input.
  • Constrained Selection: At runtime, the system doesn't just look for high similarity. It solves an optimization problem to find memories that match a target effect while staying within a side-effect budget and respecting policy constraints.
  • Paired Counterfactual Observation: After applying a memory, the system runs a "shadow" version of the inference without that memory (using shared randomness to reduce noise). By comparing the two, it measures the actual behavioral delta ($\hat{\Delta}_m$).
  • Rollback and Lineage: If the observed effect diverges significantly from the predicted signature, the system can "roll back" the intervention (e.g., remove the context or revoke a tool result) and log the failure to improve future estimates.
Table 1: A comparison between traditional relevance-based retrieval and the proposed JCMC framework.

Datasets

Not discussed in the paper. This is an "architecture and analysis preprint." The authors explicitly state that the paper reports no benchmark measurements. Instead, it defines a rigorous evaluation protocol and calls for future empirical work to test JCMC against baselines like dense top-k retrieval and graph-reranking.

Key Insights and Ideas

  • Relevance $\neq$ Influence: This is the foundational "aha moment." A document can be perfectly relevant to a query but have a disastrous influence on the model's behavior.
  • The "J-space": The authors propose a shared measurement space where predictions and observations can be compared. This doesn't have to be the full logit space; it could be a task-specific token subspace or a vector of "probe" scores.
  • Formal Guarantees: The paper provides four theorems that bound the errors of this approach. For example, Theorem 1 proves that the first-order influence signature is a good local approximation as long as the model's behavior is relatively smooth (Lipschitz Jacobian).
  • Multi-Memory Interaction: Theorem 4 provides a bound on "non-additive interactions." It helps identify when two memories will play nicely together versus when their combined effect will be unpredictable and nonlinear.

Key Results

As a theoretical paper, the "results" are the formal properties and the architectural specification:

  • Local Approximation Bound: The error between the predicted signature and actual effect is bounded by a quadratic term related to the "size" of the memory intervention.
  • Selection Regret: The authors prove that if your signature estimation error is bounded by $\epsilon$, the "regret" (how much worse your selected memory is compared to the theoretical best) is bounded by $2\epsilon$.
  • Falsifiability: The authors provide clear criteria for how their theory could be proven wrong—specifically, if simpler baselines (like relevance retrieval + policy filtering) can match JCMC's performance on side-effect control at a lower computational cost.

Limitations and Future Work

  • Computational Overhead: Calculating Jacobians and running paired counterfactual inferences is significantly more expensive than simple vector search. The authors suggest using low-rank approximations or cached signatures to mitigate this.
  • The "Boundary" Problem: Rollback is powerful, but it cannot undo an action that has already left the system (e.g., an email already sent to a human).
  • Smoothness Assumptions: The mathematical proofs rely on the model's behavior being "smooth." If a single memory causes a "phase shift" in behavior (like a sudden "Refuse" response), the linear approximations may fail.
  • Future Work: The authors point toward implementing this protocol in Cognoscenti, an open benchmark framework for AI memory, to gather the first empirical data on JCMC's effectiveness.

Summary updated

BibTeX
@misc{danig2026jacobian,
  author = {Marvin Danig},
  title = {{Jacobian-Causal Memory Control for Persistent Memory in Language Model Systems}},
  year = {2026},
  eprint = {2611.08779},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.08779},
}
Figure