TRANSMISSION // 2609.15011v2

How AI Agents Can Keep Exact Values Local

Source published

Trustworthy Virtual Memory sends an opaque reference to the remote model, resolves it locally for tool use, and reprojects tool observations. Two test pipelines report low measured exposure, with important limits.

AI-generated conceptual illustration for How AI Agents Can Keep Exact Values Local
AI-generated conceptual illustration; not documentary evidence.

An AI agent may encounter sensitive details in stored examples or tool results. In some workflows, a tool may also need an exact value to act. This preprint tests a local system that gives the remote model a substitute reference while keeping the value itself in a trusted local runtime.

A tool-using AI agent may retrieve stored examples, propose an action and then use the tool’s response to decide what to do next. If the model runs remotely, messages sent to its provider may contain private details from those examples or responses. Yet removing every detail could make some actions harder to construct or execute.

Yu Li, Qikun Cai, Tao Huang and Chen Hou propose Trustworthy Virtual Memory (TVM), a local runtime designed to mediate this exchange. It replaces selected values with opaque references before remote inference. The remote model can reason with those references; a trusted local resolver can substitute the exact values into actions before execution. TVM then reprojects tool observations before they are reused in a later remote request. This describes the system’s intended workflow, not a guarantee that every form of sensitive information is always removed.

Replacing values while retaining context

The paper compares two projection styles. Whole-field projection replaces an entire field. Span-level projection replaces selected text within a field, leaving surrounding content visible. In the paper’s example, a lookup operation can remain visible while a protected patient identifier is replaced by a reference. The reference can be resolved locally before the tool call, and the resulting observation can be reprojected before reuse.

The span-level method, called Semantic-TVM, uses a trusted local model to predict which spans to protect. The paper says this predictor does not receive the evaluation manifest—the list of protected values used to assess exposure. A local recovery store maintains the links between references and exact values. The threat model assumes the remote provider can inspect and retain every message it receives, while the local mediator, recovery store and executor are trusted and isolated from the provider.

The authors tested two pipelines with two remote providers. Memory-EHR uses retrieved examples in a medical-record query task; Memory-RAP uses stored WebShop examples to construct search actions. They measured whether manifest-listed protected values appeared in provider-bound messages, alongside execution success and, where available, task success. Incomplete trials were treated as privacy-unknown and excluded from the leak-rate calculation.

What the tests reported

In the paper’s reported results, the no-defense setup exposed protected values in 78.50% of EHR trials and all RAP trials. One-way masking reduced exposure in EHR, but could not restore values for tool execution; reported EHR execution success was 44.83%–59.33%. In RAP, the unmediated return path in the masking setup allowed up to 22.67% exposure.

TVM’s span-level version had reported leak rates of at most 1.00% in EHR and 12.00% in RAP. Its execution success was 87.50%–92.33% in EHR and at least 99.78% in RAP. These figures describe the tested setups and metrics, not a general privacy guarantee.

The authors also compared projection granularity. EHR task success with span-level projection was 84.17% for one remote provider and 76.83% for the other; the corresponding whole-field results were 52.33% and 6.17%. A control used the same local predictor to select fields but replaced each selected field in full, with results close to whole-field projection. The authors interpret the comparison as evidence that preserving operators, relationships and argument structure helped the remote model construct usable actions around protected references.

An ablation—an experiment that switches system components on or off—suggested distinct roles for recovery and local scene information. Recovery links a projected action to an exact value for local execution; scene information helps the projector predict protected spans across different memory structures. In the RAP ablation, when recovery was enabled, adding the local adapter reduced the reported leak rate from 89.11% to 7.11%.

Limits of the evidence

The audit measures occurrences of manifest-listed values in provider-bound messages, using exact or conservatively normalized matching. It does not measure broader privacy risk, such as whether a model could infer a value from other information. The authors also note that the local predictor may miss sensitive content or over-project, particularly in adversarial retrieved context. TVM’s references reveal some structural information, including whether values are repeated. The study does not measure local computational cost.

The evidence covers two pipelines and two remote providers, not the range of agent designs, tools or data used in practice. RAP has no independent ground-truth answers, so execution success is its utility measure. The main comparisons used three seeds, while failure staging used a single-seed EHR run. The supplied paper extraction has damaged results tables; the numerical comparisons here follow results stated in the prose and the legible ablation table, rather than a complete independent reconstruction of every table.

This is an arXiv preprint, so its findings should be treated as preliminary. Within these two pipelines, the reported measurements suggest that recoverable references and preserved context can support tool execution while limiting occurrences of specified values in remote messages. They do not establish that TVM prevents disclosure or inference in other settings.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.