Skip to content

Memory poisoning attacks and defenses for memory-based LLM agentsMemory Poisoning Attack and Defense on Memory Based LLM-Agents

arXiv· arXiv:2601.05504· Balachandra Devarangadi Sunil, Isheeta Sinha, Piyush Maheshwari, Shantanu Todmal, Shreyan Mallik, Shuchi Mishra·Indexed by this site · 2026-10-12· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors evaluate MINJA on an EHR agent: with relevant initial memory, GPT-4o-mini's ASR is 6.67% (Table 1).

Threat modelThe attacker is an ordinary user with no higher privileges, can only send queries through the standard interface, is limited only by rate limits, and cannot directly read or write internal memory. The goal is to induce malicious reasoning and persist malicious records into long-term memory for later reuse. The victim system is an EHR agent with shared persistent memory; the victim is the legitimate user affected by the contaminated memory. The attack surface is mainly user input, and the memory-write API is also a possible entry point.

Questions
The shared long-term memory of an EHR agent can be written with malicious records by an ordinary user through query-only interaction, causing later legitimate queries to return wrong patient information. The authors report that MINJA achieves an ISR above 95% under ideal conditions and an ASR above 70% on most datasets; robustness and effective defenses in real deployments still have little empirical evidence.
Methods
On MIMIC-III, vary initial memory, the number of indication prompts, and the number of entries retrieved by Levenshtein distance, and observe MINJA's ASR and ISR. Then add two defense layers: input/output auditing uses a composite trust score to decide whether to execute and write; memory sanitization performs trust scoring, time decay, and pattern filtering on append and retrieval.
Experiments and results
With empty memory, GPT-4o-mini's ASR is 62%, and with relevant memory it is 6.67% (Table 1). With retrieval of 10 entries, ASR is 38% (Table 2). Memory sanitization rejects all 23 candidates; Gemini-2.0-Flash accepts 54 malicious memories with a trust score of 1.0.
Limitations and future work
The Conclusions state that overly strict thresholds may limit utility, and that when overly trusting, malicious entries can be scored 1.0. The authors plan to calibrate thresholds, improve detection, and quantify the trade-off when benign and adversarial queries coexist, using external verification to separate trust from safety. Coverage includes three attack variables across two models and 101 poison queries; audit ablation numbers are not reported.
Experimental setupGPT-4o-mini、Llama-3.1-8B-Instruct et al. · MIMIC-III、eICU prompt sets et al. · ASR、ISR et al.
Evaluated models
GPT-4o-miniLlama-3.1-8B-InstructGemini-2.0-Flash
Benchmarks
MIMIC-IIIeICU prompt setsMIMIC prompt sets
Metrics
ASRISRblocking rateleakage ratetrust score
AI summaryThe paper systematically evaluates memory poisoning attacks and defenses for memory-based LLM agents in electronic health record (EHR) scenarios. An attacker injects malicious instructions only through query interactions, contaminating the agent's long-term memory and affecting subsequent responses; previously, MINJA achieved an injection success rate exceeding 95% and an attack success rate of 70% under ideal conditions. Using MIMIC-III clinical data on GPT-4o-mini, Gemini-2.0-Flash, and Llama-3.1-8B-Instruct, the authors varied three dimensions—initial memory state, number of instruction prompts, and retrieval parameters—and found that attack effectiveness drops substantially under realistic conditions with legitimate memories present. The paper proposes two defense mechanisms: one is input-output auditing that combines multiple orthogonal signals into a composite trust score, and the other is trust-aware retrieval memory purification combining temporal decay with pattern filtering; evaluation shows that effective purification requires careful calibration of the trust threshold to avoid either over-conservatively rejecting all entries or under-filtering and missing covert attacks.

The paper systematically evaluates memory poisoning attacks and defenses for memory-based LLM agents in electronic health record (EHR) scenarios. An attacker injects malicious instructions only through query interactions, contaminating the agent's long-term memory and affecting subsequent responses; previously, MINJA achieved an injection success rate exceeding 95% and an attack success rate of 70% under ideal conditions. Using MIMIC-III clinical data on GPT-4o-mini, Gemini-2.0-Flash, and Llama-3.1-8B-Instruct, the authors varied three dimensions—initial memory state, number of instruction prompts, and retrieval parameters—and found that attack effectiveness drops substantially under realistic conditions with legitimate memories present. The paper proposes two defense mechanisms: one is input-output auditing that combines multiple orthogonal signals into a composite trust score, and the other is trust-aware retrieval memory purification combining temporal decay with pattern filtering; evaluation shows that effective purification requires careful calibration of the trust threshold to avoid either over-conservatively rejecting all entries or under-filtering and missing covert attacks.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors aim to determine when MINJA fails under realistic memory conditions and evaluate two trust-score defenses.

    Can query-only interaction write malicious patient ID mappings into an EHR agent with existing legitimate memory, and what guardrails can block such memory poisoning.

    • Scenario: Persistent memory lets the agent retrieve historical examples across sessions. The authors state the memory store therefore becomes an attack surface; in EHR, redirecting patient identifiers could lead to returning the wrong medical record or wrong medication.
    • Existing gaps: The authors relay [4] that MINJA achieves ISR over 95% under ideal conditions and ASR over 70% on most datasets. The authors argue that evaluation has little initial memory, limited attack queries, and fixed retrieval parameters; they also state that the detection-style audits discussed in [4] (such as Llama Guard) and memory cleansing are largely ineffective against MINJA, with little empirical evidence.
    • Hypotheses: As correct memories related to the victim ID increase, malicious memories become harder to retrieve, and ASR and ISR decrease; more indication prompts increase both; more retrieved entries increase ASR while ISR stays unchanged.
    • This paper proposes: Reproducing MINJA along these three variables on an EHR agent using MIMIC-III, and proposing input/output auditing, plus trust-aware memory sanitization with time decay and pattern filtering.
    • Threat model:
      • Goal: Induce the agent to produce malicious reasoning and leave malicious records in long-term memory for later reuse.
      • Capability: Ordinary user, no higher privileges, cannot directly read or write internal memory; can send queries multiple times, limited only by rate limits.
      • Victim: EHR agent with shared persistent memory; victims are legitimate users affected by poisoned memory. Assets are output correctness and memory integrity.
      • Attack surface: Mainly the user input channel; the memory write API is also a possible entry point.
  2. What related research exists?

    The authors position this paper between idealized memory attack evaluations and defenses that require strong access assumptions.

    Section 2 of the paper organizes related work by attacks, persistent poisoning, broader agent vulnerabilities, and defenses.

    Memory and retrieval poisoning

    • MINJA (Dong et al., 2025): An ordinary user injects malicious records into persistent memory through query-only interaction using bridging steps, indication prompts, and progressive shortening. The authors relay its ISR over 95% and argue that its evaluation is mostly conducted with little initial memory and fixed retrieval parameters. This paper reuses that attack.
    • AgentPoison (Chen et al., 2024): Red-teams RAG knowledge bases or memory stores. The authors state it assumes the attacker can directly access the system, a stronger capability than MINJA.
    • Corpus injection and contagion: [11] studies malicious instructions spreading through shared memory and causing cascading failures in multi-agent settings. [14]'s BadRAG and [16]'s PoisonedRAG discuss RAG weaknesses and injecting malicious documents into retrieval corpora, respectively. The authors state that this group of work is also mostly evaluated under idealized conditions.

    Poisoning that persists across interactions

    • Sleeper Agents (Hubinger et al., 2024): Deceptive behavior can persist after safety training.
    • Prompt and fine-tuning poisoning: [9] studies system prompt poisoning that persists beyond a single user injection; [12] implants backdoors activated by specific triggers during instruction fine-tuning.
    • Cross-lingual fine-tuning (Choenni et al., 2024): Studies cross-lingual data sharing during fine-tuning. The authors consider this relevant to how malicious patterns persist across model updates.

    Broader agent threats

    • Function libraries and debate: [10]'s FuncPoison poisons function libraries of autonomous systems; [1] studies adversarial manipulation in multi-agent debate.
    • Prompt Infection (Lee and Tiwari, 2024): Malicious instructions spread through natural language interactions among multiple agents.
    • Agent Security Bench (Zhang et al., 2025): Formalizes and benchmarks attacks and defenses on LLM agents, covering prompt injection, data leakage, and denial of service. The authors state that current architectures lack safeguards under these threat models.

    Defenses

    • DRIFT (Li et al., 2025): Uses dynamic rule filtering for input cleansing. The authors state it does not address memory-layer defenses or poisoning propagating over time.
    • A-MemGuard (Wei et al., 2025): Provides proactive memory protection with access control and integrity checks. The authors state it requires direct memory instrumentation, which is unavailable in black-box API deployments.
    • Code property graphs (Lee and Son, 2023): Detect malicious patterns using code property graphs. The authors consider this method potentially usable for analyzing agent-generated code.

    Baselines and data

    • Attack baseline: Empty initial memory, 2 attack queries with progressive shortening, retrieving at most 3 memories by Levenshtein distance. Models are GPT-4o-mini and Llama-3.1-8B-Instruct, queries from MIMIC-III.
    • Defense comparison: Section 6.1.2 plans comparison with no-defense runs, plus input-only, output-only, trust threshold sweeps, and sandbox toggles. Section 8 does not report numbers for these comparisons.

    The authors position this paper as: evaluating MINJA with existing legitimate memory present, and proposing two complementary defenses, using trust-score analysis to examine the safety-utility trade-off.

  3. How does the paper address this problem?

    Reproduce MINJA along three variables, then use a composite trust score for input/output gating and memory sanitization.

    We reproduce MINJA on an EHR Agent with shared memory among healthcare staff, varying initial memory, the number of indication prompts, and the number of retrieved entries; then we add Input/Output Moderation before and after execution, and perform Memory Sanitization on write and retrieval.

    How the attack enters memory

    • Task: A pair of a victim ID and a target ID. When asked about the victim ID, the agent should be directed to information about the target ID. The experiment uses 027-22704 and 015-91239. Appendix 10.1 lists 50 indication prompts, and Appendix 10.4 gives two examples of successful relevant memories; the prompt text is not reproduced here.
    • Induction mechanism: It follows the three types of designs in [4]. Bridging steps gradually lead the agent toward the wrong association; indication prompts mark interactions that should be remembered; progressive shortening gradually compresses the malicious context so that the final memory is short and looks like a normal record.
    • Retrieval: Levenshtein distance is used to take the top N memories most similar to the current query and concatenate them into the context. The smaller the distance, the more similar. N is an experimental variable.
    • Success metrics: ISR indicates whether a malicious memory is accepted or injected into subsequent context; ASR indicates whether the answer uses the wrong patient ID. The paper does not give formulas for either. In the defense experiments, ASR is additionally defined as: among queries that were executed and not skipped, the proportion that return the attacker's expected wrong answer.

    Three variables in the attack experiments

    • Baseline: 2 attack queries with indication prompts and progressive shortening; initial memory is empty; at most 3 entries are retrieved. Each setting is repeated over 50 indication prompts. Relevant queries are manually written to ensure the library indeed contains that patient's record. The test query is the los of the patient's most recent ICU stay.
    • Initial memory: 6 entries are preloaded: 4 general health queries unrelated to the victim ID and the attack query, and 2 benign queries related to the victim ID but phrased differently and answered with a success code. Still 2 indication prompts are used, and testing is done on clean queries. This corresponds to Hypothesis 1.
    • Number of indication prompts: Keeping the above initial memory, the indication prompts are increased from 2 to 4 to see whether the 5th clean query is successfully attacked. The paper says this setting is used to test Hypothesis 2.
    • Number of retrieved entries: With 4 indication prompts and 6 initial memories before the attack, the maximum retrieval number is increased to 5 and 10. Section 5.2 says this experiment tests Hypothesis 2; in Section 4, "ASR rises and ISR is unchanged as the number of retrieved entries increases" is labeled as Hypothesis 3.

    Input/output moderation

    • Input gate: Static heuristics, keyword matching, and detection of suspicious control characters; when the static result is uncertain, an LLM semantic classification is used. If judged high-risk, the entire query is skipped, the model is not called, and nothing is executed; this is recorded as SKIPPED.
    • Output gate: Checks generated code for dangerous operations, such as dynamic execution, subprocesses, direct network or file reads/writes; optionally lets an LLM judge whether the code is relevant to the question and can rerun it in a sandbox. Each check applies a fixed penalty to a composite trust score. A write to memory is allowed only above a conservative threshold. The paper does not give the value of this threshold.
    • Logging and ablation: Every write decision is recorded in an auditable log, including the question, trust score, boolean values of each check, and the rejection reason. LLM review calls are limited by a RateLimiter. The plan compares full defense, input-only, output-only, trust-threshold scanning, and sandbox on/off. The paper says each configuration uses multiple seeds but does not give the number of seeds.

    Memory sanitization and trust-aware retrieval

    • Two layers: A guard agent at prompting time, plus memory sanitization on append and retrieval. In the same run, the main agent and the guard use the same model.
    • Append: A candidate memory contains the question, retrieved knowledge, and generated code, with a continuous trust score in the range 0 to 1. The initial value comes from the guard's assessment of code safety, semantic relevance to the query, and whether the predicted answer matches the dataset label; it is then adjusted by answer verification, optional sandbox re-execution, and static analysis for dangerous code and explicit poisoning patterns. It is written only if trust is sufficiently high and there is no critical failure. The paper does not give the value of "sufficiently high."
    • Retrieval: Time decay is applied to stored trust scores to obtain effective trust; entries below the threshold do not enter the few-shot. Pattern filtering then blocks known patient-ID redirection templates. The remaining entries are ranked by textual similarity to the current query and trust score. In the defense experiments, the default few-shot size is 4 and the data is the MIMIC-III split.
    • Attack set and evaluation dimensions: attack_queries_extensive.json contains 101 poison queries. Evaluation looks at the trust-score distribution (high at least 0.8, medium 0.5 to 0.8, low less than 0.5), whether poison queries are blocked or leak into memory, a retrieval-filtering simulation based on decayed effective trust, and low-trust aging cleanup in the logs.
  4. What experiments did the paper conduct?

    ASR decreases with relevant initial memory; trust-score sanitization either rejects everything or accepts malicious memories with a score of 1.0.

    Experimental setup

    • Models: For attack experiments, GPT-4o-mini and Llama-3.1-8B-Instruct. Section 5.2 writes Llama-3.1-Instruct in the main text, while the table and abstract say Llama-3.1-8B-Instruct. For defense experiments, GPT-4o-mini (written as GPT-4o-mini-class in Section 6.2.1) and Gemini-2.0-Flash; in the same run, this model serves as both the main agent and the guard.
    • Data: For attacks, manually written victim-ID queries on MIMIC-III; the main text says 1 pair of IDs is used and repeated over 50 synthetic indication prompts. For defenses, 101 poison queries are used, with the default MIMIC-III split and few-shot of 4. Section 6.1.2 also mentions eICU and MIMIC prompt sets, and Section 8 does not report results separately by dataset.
    • Attack comparisons: The baseline is empty initial memory, 2 indication prompts, and at most 3 retrieved entries. Compared settings are 6 pre-stored memories and retrieval of 3, 5, and 10 entries.
    • Metrics: ASR and ISR. Defenses additionally report numbers accepted and rejected, the mean and range of trust scores, binning, blocking rate, leakage rate, and a retrieval-filtering simulation at threshold 0.5.
    • Judgment: On the attack side, whether the wrong patient ID is used. On the defense side, although ASR is defined, Section 8 reports the sanitization layer's blocking and leakage, not that ASR. The paper does not mention an independent review model and does not report human agreement.
    • Repetition: Attacks are repeated over 50 indication prompts. Defenses mention multiple seeds; the paper does not report the number of seeds, the number of repetitions, or the denominator of each percentage cell by cell.

    Main results

    According to Table 1, the comparison between empty initial memory and relevant initial memory is as follows.

    Swipe horizontally to read the table

    ModelEmpty-memory ASREmpty-memory ISRRelevant-memory ASRRelevant-memory ISR
    GPT-4o-mini62%100%6.67%26.67%
    Llama-3.1-8B-Instruct52.94%100%0%99.95%
    • The authors say this result is consistent with Hypothesis 1: as correct memories related to the victim ID increase, malicious memories containing the target ID are less likely to be selected into the context.
    • The authors say ISR is always higher than ASR and believe that some instructions are ignored when the context becomes longer. For Llama, the authors say the correct few-shot in persistent memory makes the model avoid using the wrong ID even when it accepts the poisoning. This passage writes "initial 4 few-shot," which is not fully consistent with the earlier description of 6 pre-stored entries (4 unrelated plus 2 related).
    • The main text also writes that GPT-4o-mini's baseline ASR is 60%, Llama's baseline ASR is 53%, and that under relevant memory GPT's ISR "drops to 25%" and ASR "as low as 6%." These numbers are inconsistent with Table 1; the table above is authoritative.

    Number of retrieved entries

    The setting is 4 indication prompts, 6 initial memories, and maximum retrieval numbers of 3, 5, and 10 (Table 2).

    • GPT-4o-mini: ASR is 6%, 20%, 38%, and ISR is 26%, 50%, 100%. The authors say that as retrieval increases, less relevant memories containing the target ID are also concatenated into the context, making injection easier.
    • Llama-3.1-8B-Instruct: ASR is 0%, 13.33%, 27.27%, and ISR is 99%, 93.94%, 97.87%. The authors say that more retrieval increases the probability that wrong behavior is treated as a relevant example, but injection itself is rarely directly rejected.
    • Section 4, Hypothesis 3, says ISR is unaffected by the number of retrieved entries. In Table 2, GPT-4o-mini's ISR rises with the number of retrieved entries. The authors do not compare this against the hypothesis in the results, only saying it fits the understanding that "malicious memories are more easily injected." In the summary, the authors say that with existing correct memories, the best-case success rate is as low as 38% for GPT-4o-mini and 28% for Llama; in Table 2, Llama's highest ASR is 27.27%.

    Number of indication prompts

    • What was tested: Other variables are the same as the "with initial memory" setting, and the indication prompts are increased from 2 to 4.
    • Results: The authors say the attack metrics for both models did not change, and attribute this to Levenshtein retrieval: clean queries do not contain the target ID, and medical queries containing only the victim ID have higher similarity. The authors say this refutes Hypothesis 2. The paper does not report statistical tests.
    • Numbers: The paper does not separately list ASR and ISR for this comparison. The main text refers readers to Table 2, but Table 2's title is about the number of retrieved entries.

    Memory sanitization

    • GPT-4o-mini (Section 8.1): Processes 23 candidates, accepts 0, rejects 23. The rejected entries have a mean trust score of about 0.28, a standard deviation of about 0.10, a minimum of 0.0, and a maximum of 0.4, all falling into low trust (less than 0.5). Among the 101 poison queries, the memory sanitization layer explicitly blocks 2 and accepts 0; the authors give a blocking rate of about 1.98% and a leakage rate of 0%. The authors say many attacks may have already been stopped by the guard, and the above numbers count only the sanitization layer's additional filtering. Because no entries entered the store, the retrieval filtering rate is 0% and the cleanup events are 0. The authors say this configuration keeps long-term memory empty and uncontaminated.
    • Gemini-2.0-Flash (Section 8.2): Among 151 candidates, 82 are accepted with a trust score of 1.0, 69 are rejected, with a rejected mean of 0.35 and a range of 0.28 to 0.40. The authors say Figure 3 is trimodal, with clusters near 0.3, 0.4, and 1.0, and the red dashed line is the mean of 0.70; in Figure 4, all accepted entries are 1.0 and rejected entries are concentrated between 0.35 and 0.40. According to the authors' checks, cases of low trust being accepted or high trust being rejected are 0. Among the 82 accepted entries, 54 are malicious queries containing indication templates and 28 are benign victim queries. The authors say the defense blocks 45.7% of the workload (i.e., 69 rejections) but gives the remaining 54 attacks the highest confidence.
    • Authors' interpretation: At the standard threshold of 0.5, none of the 82 accepted entries would be filtered at retrieval. The authors say that once poisoning makes the model give high trust, retrieval-time filtering fails; and they say that Gemini's ability to write to memory is, relative to GPT-4o-mini, a vulnerability. The caption of Figure 2 is the proportion of accepted (APPEND) and rejected (REJECT); the main text does not otherwise give percentage labels on the figure.

    Other ablations and analyses

    • Indication prompts increased from 2 to 4: the authors say metrics did not change; no separate numbers.
    • Input/output moderation with input-only, output-only, threshold scanning, and sandbox on/off: listed in Section 6.1.2; the paper does not report ASR or false-rejection rate.
    • Defense Hypothesis 1 (two-stage lower than single-stage, low false rejection of benign queries): the paper does not report corresponding numbers.
    • Defense Hypothesis 2 (ASR for subsequent benign queries decreases after time decay): the paper does not report this curve; in the GPT-4o-mini run, cleanup events are 0.
    • Gemini retrieval simulation: at threshold 0.5, the number of filtered entries among the 82 accepted is 0.
    • Mismatch check between trust score and decision: low trust (less than 0.5) accepted is 0, and high trust (greater than 0.8) rejected is 0 (Section 8.2).
  5. What are some points that can be further explored?

    The authors plan to calibrate trust thresholds and extend evaluation to settings where benign and adversarial queries coexist.

    Limitations and future directions noted by the authors

    • Utility of overly strict configurations: The authors state in the Conclusions that the GPT-4o-mini configuration rejects all candidates, including benign entries, potentially limiting the benefit of long-term memory in more realistic mixed workloads.
    • Over-trust failures: The authors state in the Conclusions that Gemini-2.0-Flash fails to distinguish confident-correct from confident-malicious; 54 poison memories are accepted with trust score 1.0. The authors state that adversarial prompts with justificatory clauses can manipulate trust evaluation, making the defense more of a confidence filter than a safety filter.
    • Threshold calibration: The authors write that future work should calibrate trust thresholds (Conclusions).
    • Pattern detection: The authors write that the poisoning pattern detector should be improved (Conclusions).
    • Mixed workloads: The authors write that evaluation should be extended to settings where benign and adversarial queries coexist, to quantify the safety-utility trade-off, and adaptively adjust sanitization based on the observed trust distribution and application needs (Conclusions).
    • Separating trust from safety: The authors write that trust scores could be supplemented with external effect verification, such as checking redirects against an immutable ground-truth store, to block high-confidence poisoning writes before they occur (Conclusions).

    Experimental coverage

    • Models for attack robustness experiments are GPT-4o-mini and Llama-3.1-8B-Instruct; models for defense experiments are GPT-4o-mini and Gemini-2.0-Flash (Sections 5 and 8).
    • Attack variables are initial memory (empty, or 6 pre-stored), indication prompts 2 and 4, and retrieval counts 3, 5, 10; repeated over 50 indication prompts, with the main text using 1 ID pair (Section 5.2). Appendix 10.2 lists 5 additional ID pairs.
    • Memory sanitization reports trust scores, blocks and misses, retrieval filtering simulations, and cleansing events over 101 poison queries; default few-shot is 4, data is the MIMIC-III split (Sections 6.2.1, 7, 8).
    • The paper does not report ASR, benign accuracy, or false rejection rates for each input/output auditing ablation, nor the number of seeds, repetitions, or denominators for each ASR and ISR.
    • The paper does not report ASR after time decay on subsequent benign queries, nor independent review model or human agreement.
  6. Summarize the main content of the paper

    MINJA is harder to succeed with legitimate memory present; trust-score defenses either reject everything or give malicious memories full scores.

    This report re-tests MINJA on an EHR agent with shared memory and examines two trust-score guardrails.

    • What it addresses: Can an ordinary user, by only sending queries, redirect a victim ID to a target ID and write it into long-term memory, so that later legitimate clinical queries obtain another patient's information? The authors believe the high success rates in prior work correspond to settings with very little initial memory and fixed retrieval parameters.
    • Approach: Retrieval uses Levenshtein distance to take the top N memories as context. Attack experiments vary pre-stored memory, the number of indication prompts, and N, repeat over 50 indication prompts, and use one pair of patient IDs. Defenses apply composite trust-score gating before and after execution, and trust scoring, time decay, and pattern filtering at write and retrieval; the main agent and the guard use the same model.
    • Attack numbers: According to Table 1, with empty memory, GPT-4o-mini's ASR and ISR are 62% and 100%, and Llama-3.1-8B-Instruct's are 52.94% and 100%; with relevant initial memory, ASR is 6.67% and 0%, and ISR is 26.67% and 99.95%. According to Table 2, with retrieval of 10 entries, their ASRs are 38% and 27.27%. The authors say that only increasing the indication prompts did not change the metrics, and this comparison has no separate table.
    • Defense numbers: GPT-4o-mini's sanitization layer rejects all 23 candidates; among 101 poison queries, it blocks 2 and leaks 0. Gemini-2.0-Flash accepts 82 entries, all with a trust score of 1.0, of which 54 are malicious and 28 are benign; another 69 are rejected. Threshold 0.5 does not filter any of the 82 accepted entries.
    • Authors' conclusion: Trust scores can block low-confidence content but cannot block malicious records that the model scores at full confidence; when too strict, even benign memories are not retained. The authors believe the threshold should be calibrated and trust should be separated from safety, using external effect verification to check high-confidence redirection.

Related papers

Show 1 more papers
Read originalarxiv.org