Manuscript Offprint
arXiv:2611.08779Jacobian-Causal Memory Control for Persistent Memory in Language Model Systems
Abstract
Persistent-memory systems choose not only which records are retrieved but which prior information can alter current inference. We propose Jacobian-causal memory control (JCMC), which represents each authorized memory intervention by a predicted influence signature in a shared behavioral measurement space, selects interventions against a target effect and side-effect budget, and compares predicted with observed effects before retaining or rolling back the intervention. Under explicit smoothness and bounded-estimation assumptions, we prove a quadratic local-approximation bound, characterize the target effects reachable by a set of signatures, bound selection regret under signature error, and bound non-additive interactions between simultaneous memories. The paper reports no benchmark measurements; it defines a paired counterfactual estimator and an evaluation protocol comparing JCMC with relevance, graph, and policy-filtered retrieval baselines. The central claim is narrowed or falsified if those simpler baselines match effect targeting, side-effect control, and rollback utility under equal model, memory, policy, and cost budgets.
1 Introduction
Long-lived language model systems now maintain state across conversations and tasks. Personal and agent memory systems retain preferences, project facts, files, summaries, tool outputs, and prior decisions, allowing future inference to start from accumulated context rather than an empty prompt [10, 11, 12]. Open-weight frontier models are also increasingly optimized for agentic tool use and long-context work [14]. These trends make memory a runtime control problem: the model does not merely retrieve information; it is shaped by what the system allows to become cognitively available. The motivating case is emergent memory, in which useful context forms through repeated work, reinforcement, forgetting, and revision rather than being stored by hand [1]; the controller proposed here applies to persistent memory in general.
Retrieval-augmented generation (RAG) selects external information for generation [2]. Graph, hierarchical, and agent-memory systems broaden the retrieval substrate and representation [3, 4, 5, 6]. Mechanistic interpretability and model-editing work shows that causal interventions on model internals can localize or alter behavior [8, 9]. Influence functions trace training examples to predictions [7]. These literatures supply useful tools, but a persistent organizational memory system needs a distinct runtime question:
Which memory intervention should be permitted to affect this model now, what effect is expected, and what should happen if the effect is wrong?
This paper proposes Jacobian-causal memory control (JCMC) for persistent AI memory, named for the Jacobian-based local estimate of a memory's effect in Section 3.2. The central claim is narrow: persistent memory should be governed as a reversible, observed, lineage-bearing intervention rather than as a relevance-ranked context append. The claim is falsified or narrowed if simpler retrieval, graph-reranking, or prompt-policy baselines match the proposed controller on effect-targeting accuracy, side-effect control, and rollback utility under equal model, memory, policy, and cost budgets.
Contributions. We (i) distinguish memory relevance from memory influence (Section 2); (ii) specify influence signatures, constrained selection, paired observation, rollback, and lineage (Sections 3.2–3.4); (iii) prove four conditional properties covering local approximation, reachability, selection regret, and multi-memory interaction (Section 4); (iv) analyze implementation cost and controllability (Section 6); and (v) provide a reproducible evaluation protocol (Section 7). This architecture-and-analysis preprint reports no benchmark measurements.
where is an embedding function and a similarity measure, possibly combined with lexical, graph, metadata, or learned reranking features. Relevance answers whether a memory appears useful for the request. It does not measure the behavioral direction in which the memory will move a model once it is included.
For a compliance recommendation, a semantically relevant pricing memory may shift generation toward cost reduction when the intended effect is caution. A stale project summary may match the prompt while suppressing newer evidence. A high-confidence memory may become risky when combined with a particular user, tool, or policy state. In each case, the system needs an influence estimate, not only a relevance score.
We model a memory intervention as an operator that applies memory through an application target , such as the context window, a memory tool, an attention mechanism, or a latent-state interface. The intervention acts on a current model state and changes a future output distribution or a projected behavioral measurement . The object of control is therefore
where is a model or task state and is the applicable authorization and policy regime.
| Dimension | Relevance retrieval | Jacobian-causal memory control |
|---|---|---|
| Primary question | What matches the request? | What will this memory cause the model to do? |
| Selection target | Passage, file, node, or summary | Reversible memory intervention |
| Evidence object | Similarity, metadata, graph proximity | Predicted and observed behavioral effect |
| Safety boundary | Filter before or after retrieval | Hard admissibility plus side-effect budget |
| Runtime feedback | Optional click, rating, or trace | Prediction, observation, divergence, lineage |
| Failure response | Drop, rerank, or ignore | Roll back, suppress, quarantine, refresh |
Table 1: Relevance is a candidate signal. Jacobian-causal memory control treats recall as an intervention with expected and observed effects.
3 Architecture
The proposed controller contains six runtime components: a signature estimator, a signature store, an effect specification interface, an admissible-memory selector, an effect observer, and a lineage-governed rollback mechanism.

Figure 1: Jacobian-causal memory control loop for persistent memory. The diagram omits product-specific coefficients, thresholds, and storage schemas; the research object is the observable control loop.
3.1 Model J-space
Predicted and observed effects must be comparable. We call their shared representation model J-space, a measurement space rather than a claim about the model's hidden state. It may be a full output-logit space, a task-specific token subspace, a sparse-feature space, a probe-score vector, or another projected measurement space. The choice is an engineering and evaluation decision. The publication-level requirement is that the system records the model version, prompt or probe protocol, projection, decoding policy, and measurement method used to produce each effect vector.
3.2 Influence signatures
For memory entity , an influence signature estimates the directional shift caused by applying through a memory intervention operator. In a differentiable implementation, a local linearization can be written
where is memory content, maps the content into an intervention perturbation, is a future-output Jacobian or integrated influence map at state , and projects the result into model J-space. When internal gradients are unavailable, can instead be estimated through finite differences, controlled probes, or learned local maps. This paper does not require one estimator to be universal.
A signature record should be treated as provisional unless it carries reliability evidence: model version, computation method, prompt or probe cohort, confidence intervals or residuals, staleness status, and calibration history. The record belongs to the memory governance layer, not to the memory text alone.
3.3 Effect specification and selection
At runtime, a requester or policy process supplies a cognitive-effect specification containing a target influence vector , prohibited regions, side-effect budget, policy constraints, and intervention criticality. The selector evaluates only authorized candidates and may minimize
where is the component of orthogonal to (the off-target influence), is policy risk, is signature uncertainty, and are weights set by the deployment. The formula is illustrative of the control objective: target the intended shift, penalize off-target influence, respect policy, and prefer reliable signatures. Candidates that violate hard access, provenance, or prohibited-region constraints are excluded rather than softly downweighted.
3.4 Observation and rollback
After a memory intervention is applied, an observer estimates its effect through a paired counterfactual contrast. Let be an output statistic under runtime state , intervention coordinate , and decoding randomness , and let project that statistic into model J-space. For paired runs using the same seeds or sampling draws in each intervention-baseline pair, define
Here 0 denotes the matched run without the memory intervention. Shared randomness reduces decoding variance; deterministic decoding is the special case . When shared randomness is unavailable, independent runs require uncertainty intervals wide enough to include sampling variance. The controller compares the paired estimate with the predicted signature using
where keeps the ratio defined when is near zero. If exceeds a threshold determined by criticality and uncertainty, the controller executes a response appropriate to the application target: remove context, revoke a memory-tool result, discard an attention bias, restore a checkpoint, suppress future selection, or quarantine the memory pending review. Rollback cannot undo effects that have already crossed the model boundary; it governs subsequent state and action.
4 Formal Properties
4.1 Notation and assumptions
Fix a model version and runtime state , including the prompt, conversation history, tool state, policy state, and decoding configuration. Let be an intervention coordinate, with denoting no memory intervention and denoting the coordinate induced by memory content . Let be an integrable output statistic and a fixed projection into model J-space. Define
For deterministic decoding, the expectation contains one outcome. For stochastic decoding, it is taken over a declared sampling distribution. The Jacobian is , and the first-order influence signature is ; for memory , write . Because already includes the projection , this notation is equivalent to the projected form in Section 3.2. Vector norms are Euclidean; matrix norms and bilinear-map norms are the induced operator norms.
The results below use only the assumptions named in each statement. In all cases, the model version and state h are held fixed, intervention and baseline runs differ only through , and the projection P is unchanged. The term causal refers to this controlled intervention contrast. It does not identify causal effects from uncontrolled observational logs.
Theorem 1 (Local influence approximation). Suppose is continuously differentiable on the line segment and its Jacobian is -Lipschitz there:
Then the first-order signature satisfies
Proof. The fundamental theorem of calculus gives
Taking norms and applying the Lipschitz assumption yields
Theorem 1 justifies a local signature only when the intervention is small relative to the curvature of . It does not justify transporting the signature across model versions or substantially different runtime states.
Theorem 2 (Reachable target effects). Let collect influence signatures, let be a target effect, and let be the orthogonal projector onto the column space of , where is the Moore–Penrose pseudoinverse. Under the first-order additive model, unrestricted coefficients satisfy
The target is exactly reachable if and only if lies in the column space of .
Proof. Decompose . The two terms are orthogonal, every vector lies in the column space of , and is the unique closest point in that subspace. The residual is therefore , which vanishes exactly when belongs to the column space.
Authorization, sign, sparsity, or magnitude constraints on can only increase this minimum error. The theorem is therefore an optimistic lower bound for a constrained deployment, not evidence that arbitrary effects should be pursued.
Theorem 3 (Selection regret under bounded estimation error). Let be a finite set of authorized memory interventions. Let be the true deployment loss and its signature-based estimate. Suppose
If and , then
Proof. By the uniform error bound and the optimality of under the estimated loss,
If the effect-dependent part of the loss is -Lipschitz and every estimated signature is within of its corresponding expected effect, while all other loss terms are exact, then and the regret bound becomes . The guarantee is only as strong as the uniform calibration bound.
Theorem 4 (Bound on multi-memory interaction). Suppose is twice continuously differentiable on the parallelogram and its second derivative satisfies
for all points in that set and all . Define the non-additive interaction
Then
Proof. Applying the fundamental theorem of calculus along both intervention coordinates gives
The stated bound follows by taking norms and applying the uniform Hessian bound over the integration region.
Theorem 4 states when independent signatures may be approximately composed. Large curvature, large intervention norms, or a failure of smoothness invalidates the additive approximation and requires direct joint measurement. These four theorems are conditional properties of the specification; none establishes empirical advantage over a retrieval baseline.
5 Analytic Consequences
C1: The retrieval unit changes. The selected object is no longer simply the most relevant document or passage. It is an admissible intervention expected to move model behavior in a desired direction.
C2: Side effects become measurable design objects. A memory can be on-topic and still harmful because it pushes the model toward an unwanted frame. JCMC makes off-target projection a first-class cost.
C3: Reliability is memory-specific and model-version-specific. A signature estimated for one checkpoint, prompt protocol, or tool interface may become stale when the model, decoding policy, or memory application target changes.
C4: Memory safety includes reversibility. Access control prevents unauthorized use; reversibility addresses authorized memories whose effects are inaccurate, stale, adversarial, or contextually unsafe.
C5: Lineage converts failures into calibration data. Every confirmed or rolled-back intervention provides evidence about estimator quality, memory staleness, multi-memory interaction, and policy adequacy.
6 Cost and Controllability
Influence estimation is more expensive than ordinary retrieval. A practical system therefore separates offline signature preparation, cheap candidate filtering, and high-fidelity validation for sensitive contexts. Full Jacobians are usually impractical at runtime for frontier-scale models; integrated gradients, low-rank approximations, probe-based estimates, and cached signatures are more plausible operational regimes.
For memory entities and influence dimension , dense signature storage costs before compression. Candidate selection can be reduced using approximate nearest-neighbor search over signatures after authorization and metadata filters. Observed-effect measurement costs depend on probe count, output horizon, and whether the system can inspect logits or only scored responses.
Control-theoretic diagnostics are useful when planning multiple interventions. For a plan of interventions , a reachability matrix or controllability Gramian over their signatures can identify target directions poorly reachable by memory injection alone:
Small eigenvalue directions should be treated cautiously: failure to reach them may reflect the limits of the memory substrate rather than a selection bug. An observability analogue can test whether the proposed probe set can reliably distinguish the intended influence direction from noise.
7 Evaluation and Falsification
The proposed architecture should be evaluated against simpler baselines before deployment claims are made. We propose matched comparisons among:
-
dense or hybrid top- retrieval;
-
graph retrieval or memory-tool recall without influence signatures;
-
relevance retrieval plus policy filtering;
-
influence reranking without observation;
-
full JCMC with observation, rollback, reliability, and lineage.
Tasks should include compliance-sensitive recommendations, temporal supersession, project-memory recall, contradiction handling, tool-use planning, multi-session agent work, and adversarial or stale memory injection. Primary metrics should include target-effect alignment, side-effect magnitude, answer accuracy, provenance completeness, stale-memory false-positive rate, rollback precision, post-rollback recovery quality, calibration error, latency, token cost, and human audit time.
The central claim is narrowed if relevance or graph baselines match target-effect alignment and side-effect control at lower cost. It is falsified if observed-effect measurement fails to predictably distinguish beneficial interventions from harmful ones, or if rollback and lineage do not improve post-failure recovery.
Reproducibility protocol. A future empirical paper should publish or escrow the corpus snapshot or synthetic generator, memory schema, authorization rules, signature-estimation protocol, projection definition, model and decoding versions, random seeds, probe templates, per-task traces, selected and rejected memories, observed effects, rollback events, and aggregate plus per-stratum metrics. This preprint releases no benchmark dataset, production thresholds, or product implementation.
Prospective evaluation infrastructure. The protocol could be implemented as a dedicated JCMC study within Cognoscenti, an open benchmark framework for AI memory systems. Such a study requires new intervention-level instrumentation for paired counterfactual runs, predicted and observed influence signatures, divergence detection, rollback, and post-rollback recovery. No JCMC evaluation has yet been conducted using Cognoscenti; the workload, implementation, and results remain future work.
8 Limitations, Failure Modes, and Scope
Limits of this paper. The paper reports no measurements, so every benefit claimed for JCMC is a hypothesis until the evaluation in Section 7 is run. The Jacobian estimate in Section 3.2 is local: it describes small perturbations around the state and may mislead when a memory changes the model's behavior sharply, as when a single recalled policy flips a recommendation from approve to decline. For closed-weight models served through an API, gradients are unavailable, so signatures must come from finite differences or probes, which cost more and are noisier.
The formal results are conditional. Theorems 1 and 4 require local smoothness; Theorem 2 uses a first-order additive model with unrestricted coefficients; and Theorem 3 assumes a uniform loss-estimation bound that must itself be measured. None of these assumptions establishes that influence signatures are accurate for a deployed model.
Failure modes. JCMC also creates its own risks:
-
Signature leakage. Stored signatures may reveal private memories if not protected. For example, a signature that reliably shifts answers toward a particular vendor can disclose that a confidential negotiation with that vendor exists.
-
Probe overfitting. Probe protocols may overfit to narrow behavior. A probe set built from compliance questions may report a pricing memory as harmless while it still shifts tone in sales conversations the probes never cover.
-
Incomplete rollback. Rollback cannot recall what has already left the model boundary. If an agent has already sent an email drafted under a stale project summary, removing the summary only protects future answers.
-
Non-composition. Multi-memory interactions can be nonlinear, making single-memory signatures unreliable. Two memories that are each benign, a deadline and a budget cut, may together push the model toward skipping a safety review that neither would trigger alone.
-
Adversarial memories. Attackers may craft memories with benign surface meaning and harmful influence signatures, such as a routine-looking meeting note written to make later answers dismiss a security alert.
-
Manipulation. A controller optimized for target effect can become manipulative if targets are not constrained by user intent, organizational policy, and law, for instance by selecting memories that steer a user toward an upsell rather than the answer they asked for.
The intended scope is not short-lived factual question answering over a small corpus. The architecture is most relevant for long-running agents, enterprise memory, compliance-sensitive work, model-assisted decision processes, and settings where memory influence must be attributable and reversible.
9 Related Work and Claim Boundary
RAG and its graph or hierarchical variants improve the selection and organization of external information for generation [2, 3, 4]. Agent-memory systems such as MemGPT, temporal knowledge-graph memory, Claude memory features, and ChatGPT memory systems address persistence, summarization, and continuity across sessions [5, 6, 11, 10]. Mechanistic interpretability and model-editing work studies causal circuits and interventions within models [8, 9]. Influence functions attribute predictions to training examples [7]. Recent interpretability work on global workspace-like structures suggests that modern language models may expose controllable internal patterns relevant to deliberate reasoning [13].
Two recent systems independently test parts of this paper's motivating argument empirically. Srivastava reframes memory selection as an interventional decision problem and reports that selecting by estimated causal contribution outperforms vector (0.839), graph (0.824), and summary (0.723) retrieval on a causal question-answering benchmark (task score 0.846), though vector retrieval edges it out on temporal sub-questions specifically [15]; this is direct empirical evidence for the distinction drawn in Section 2 between relevance and influence. The estimator there is a black-box ablation over three forward passes scored against a fixed threshold, not a stored per-memory signature, and selection is not posed as matching a target effect under a side-effect budget; there is no post-application observation step and no rollback. Yu et al. report that dependency-graph-guided rollback recovers substantially more accuracy (0.853) than full-context reset (0.407) or naive deletion (0.340) after a memory fault [16], independent empirical support for this paper's claim that reversibility is only useful if it is targeted (Section 3.4). Their rollback is triggered by a diagnosis supplied by an external detector after a failure is already observed, not by comparing a pre-registered prediction against a paired post-application observation, and selecting which memory to apply in the first place is out of scope for that work. Neither system stores a causal signature per memory before application or verifies it against an observed effect afterward, which is the specific loop this paper proposes.
This paper does not claim those components independently. The proposed contribution is the ordered runtime architecture: persistent memory entities carry influence signatures; a controller selects interventions by target effect, side-effect budget, policy risk, and uncertainty; observed effects are compared to predicted effects; and divergence triggers rollback, suppression, quarantine, and lineage updates.
10 Conclusion
Persistent memory changes the status of retrieval: a recalled memory is an intervention that can alter future model behavior. JCMC specifies how to predict that influence, constrain side effects, compare prediction with a paired observed effect, and preserve lineage when prediction fails. Under the stated assumptions, the formal results bound local approximation error, characterize first-order reachability, limit selection regret, and quantify pairwise interaction. They do not establish empirical advantage. That question requires the matched evaluation defined in Section 7.
Declarations
Author contributions. Marvin Danig conceived the architecture, developed the analytic specification, and wrote the manuscript.
Funding. This research received no external funding.
Patent and rights notice. The work is associated with Achiral Research and U.S. provisional patent application materials concerning Jacobian-causal memory control for persistent AI memory systems. Publication of this preprint does not grant any patent license.
Data, code, and materials availability. This paper reports an architectural specification, formal analysis, and an evaluation protocol; it introduces no experimental dataset or benchmark code. A companion research essay and public preprint links are maintained at achiral.ai/research/jacobian-causal-memory-control and achiral.ai/papers.
Ethics and limitations. The proposed system could be misused to manipulate model behavior through persistent memory. Deployment requires user-intent constraints, authorization before scoring, privacy protection for signatures, robust audit logs, calibrated rollback, and human review for high-stakes memory effects.
References
[1] Danig, M. Emergent Memory Systems. Achiral, 2026. achiral.ai/blog/emergent-memory-systems.
[2] Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W.-t., Rocktäschel, T., Riedel, S., and Kiela, D. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. Advances in Neural Information Processing Systems, 33:9459–9474, 2020. arXiv:2005.11401.
[3] Edge, D., Trinh, H., Cheng, N., Bradley, J., Chao, A., Mody, A., Truitt, S., Metropolitansky, D., Ness, R. O., and Larson, J. From Local to Global: A Graph RAG Approach to Query-Focused Summarization. 2024. arXiv:2404.16130.
[4] Sarthi, P., Abdullah, S., Tuli, A., Khanna, S., Goldie, A., and Manning, C. D. RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval. International Conference on Learning Representations, 2024. arXiv:2401.18059.
[5] Packer, C., Wooders, S., Lin, K., Fang, V., Patil, S. G., Stoica, I., and Gonzalez, J. E. MemGPT: Towards LLMs as Operating Systems. 2023. arXiv:2310.08560.
[6] Rasmussen, P., Paliychuk, P., Beauvais, T., Ryan, J., and Chalef, D. Zep: A Temporal Knowledge Graph Architecture for Agent Memory. 2025. arXiv:2501.13956.
[7] Koh, P. W. and Liang, P. Understanding Black-box Predictions via Influence Functions. In Proceedings of the 34th International Conference on Machine Learning, PMLR 70:1885–1894, 2017. PMLR.
[8] Wang, K. R., Variengien, A., Conmy, A., Shlegeris, B., and Steinhardt, J. Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small. International Conference on Learning Representations, 2023. arXiv:2211.00593.
[9] Meng, K., Bau, D., Andonian, A., and Belinkov, Y. Locating and Editing Factual Associations in GPT. Advances in Neural Information Processing Systems, 2022. arXiv:2202.05262.
[10] OpenAI. Dreaming: Better memory for a more helpful ChatGPT. 2026. openai.com.
[11] Anthropic. Memory for Claude Managed Agents: agents that learn across sessions. 2026. claude.com.
[12] Anthropic. Bringing memory to Claude. 2025. claude.com.
[13] Anthropic. A global workspace in language models. 2026. anthropic.com.
[14] Kimi Team. Kimi K2: Open Agentic Intelligence. 2025. arXiv:2507.20534.
[15] Srivastava, S. S. Causal Intervention-Based Memory Selection for Long-Horizon LLM Agents. 2026. arXiv:2605.17641.
[16] Yu, C., Wang, Y., Zhang, J., Duan, Y., Zheng, M., Wu, Z., Shi, K., and Cai, T. Dependency-Guided Rollback Repair for Memory-Augmented Agents. 2026. arXiv:2608.10502.