FAME: Evaluating false memories in autonomous agents with counterfactual reasoningBeyond the Shadows of Plato's Cave: Evaluating False Memory in Autonomous Agents via Counterfactual Reasoning
FAME evaluates agent false memories using hidden state concept drift under counterfactual queries, achieving AUROC of 76.2%–96.7% across three settings.
- When autonomous agents use memory to generalize to unseen environments, the memory can carry beliefs entangled with specific environments into new tasks, forming false memories. These arise from internal beliefs and are hard to reliably assess from answers or rewards.
- FAME is a training-free framework: it performs counterfactual queries on memory, estimates concept drift using leave-one-out hidden state differences, then projects onto decision boundaries according to robust or adapted expectations, providing a false memory signal before generating an answer.
- On Llama-3B, FAME achieves AUROC of 0.922, 0.966, 0.869, and 0.762 for spurious correlation keeping/removal, environment shift, and knowledge conflict, respectively (Table 1). It exceeds the listed baselines on GSM-Symbolic, GitChameleon, and BigBench-Hard (Table 2). Answer confidence distributions overlap, and the authors state that false memory is hard to identify from answers alone.
- The authors note that FAME requires agent hidden states and counterfactual queries; future work could include automatic counterfactual generation, independent belief representations, and mitigation methods (Conclusion). Experiments use Llama-3B with hidden states taken from layer 14; controlled settings use 40 (SC) and 30 (ES, KC) memory groups, each with 6 demonstrations.
- Evaluated models
- Llama-3B
- Benchmarks
- Rotten Tomatoes(虚假相关、环境偏移)自建版本知识冲突GSM-SymbolicGitChameleon-2.0BigBench-Hard
- Metrics
- AUROCPearson rR²behavioral margin shiftfalse memory ratememory retention rate
Researchers propose FAME, a training-free framework that evaluates autonomous agents' false memories through the evolution of agent beliefs under counterfactual reasoning. The work formalizes false memories as phenomena caused by spurious correlations, environmental shifts, and knowledge conflicts, and points out that they originate from agents' internal beliefs and are easily confused with ordinary generalization failures. FAME shifts latent concepts in the memory through hypothetical interventions and measures the resulting concept drift to distinguish faithful memories from false memories; these concepts can be estimated from the agent's hidden states before answer generation, without requiring reward design or answer sampling. Experiments show that monitoring only answers often fails to detect false memories, while FAME achieves AUROC of 76.2% - 96.7% across various false memory settings, and outperforms the best baseline by 3.4% - 23.3% on real benchmarks including mathematical reasoning (GSM-Symbolic), code generation (GitChameleon), and complex reasoning (BigBench-Hard). The authors also release the corresponding counterfactual templates.
Related events and news
1 events · 0 news mentions
- This event's paper
FAME框架评估自主Agent虚假记忆
Paper analysis
What problem does this paper attempt to solve?
How to evaluate whether an agent's memory has become false memory without generating answers or designing rewards.
The core problem is: when autonomous agents apply memory to unseen environments, internal beliefs may no longer apply, and such false memories are hard to separate from ordinary generalization failure and are not easily visible from answers.
- Scenario and importance: The authors argue that after training, agent capabilities are largely fixed, requiring memory to accumulate experience, refine skills, and adapt to new problems. Memory encodes beliefs entangled with training or practice environments, biasing internal beliefs when applied to unseen environments. The authors formalize this as false memory, with sources including spurious correlations, environment shift, and knowledge conflict, drawing an analogy to Plato's cave allegory.
- Shortcomings of existing approaches: The authors claim existing work often conflates false memory with generalization failure and evaluates using observable answers. Other approaches require designing rewards or costly fine-tuning to construct evaluation data. The authors argue false memory originates from internal beliefs rather than observable outputs, making answer evaluation and reward calibration insufficient, especially when human expertise and annotations are limited.
- Core observation: Memory induces a latent concept approximable via hidden states; under counterfactual scenarios, this concept drifts, and whether the drift enters the decision region can distinguish faithful from false memory. The authors claim this signal can be obtained before answer generation, without designing rewards or sampling answers.
- What the paper proposes: Proposes a training-free framework, FAME, which evaluates false memory using concept drift under counterfactual reasoning; provides a taxonomy covering spurious correlation, environment shift, and knowledge conflict, along with counterfactual-based identifiability and hidden state implementation; and releases corresponding counterfactual templates.
What related research exists?
The authors place related work along the lines of agent memory, sources of false beliefs, and using hidden states to represent contextual concepts.
The introduction and problem setup mainly draw on existing work to explain memory, belief updating, and concept representation, with no separate Related Work section. Below is organized by the groups the paper actually cites and discusses.
- Agent memory and continual adaptation: Brown et al. (2020), Kaplan et al. (2020), and Bommasani et al. (2021) illustrate capabilities from large-scale training; Shinn et al. (2023)'s Reflexion, Niu et al. (2022), and Chen et al. (2026) are used to show that capabilities are largely fixed after training and require test-time adaptation. Abel et al. (2023) and Lu et al. (2020) correspond to continual learning. Wang et al. (2023)'s Voyager, Yang et al. (2024)'s Buffer of Thoughts, and Zhao et al. (2024)'s ExpeL are used to illustrate retaining successful experiences via memory; Mi et al. (2026)'s Skill-pro and Wang et al. (2024)'s Agent Workflow Memory correspond to reusable skills. The authors use these works to show the importance of memory for unseen environments and note that agents remain limited by what they have seen and believed.
- Three sources of false memory: Du et al. (2023)'s shortcut learning and Creager et al. (2021) correspond to spurious correlation; Amodei et al. (2016) corresponds to environment shift; Xu et al. (2024)'s knowledge conflict survey, Zhao et al. (2026)'s reconciliation of parametric and contextual knowledge, and GitChameleon (Misra et al.), later used as a benchmark, correspond to knowledge conflict. Cobbe et al. (2019), Hu et al. (2026), and Liao et al. (2026) are grouped as work that evaluates the problem together with generalization failure or observable behavior. The authors claim these approaches are insufficient to identify false memory from internal beliefs alone.
- Concepts, belief states, and counterfactuals: Hendel et al. and Todd et al. (marked as [38, 40] in the text) are used to show that demonstrations make a model converge on a concept; [42, 43] show that internal belief states change when processing new information. Pearl's three-step counterfactual framework [44], twin networks [45], and ETT [46] are used as formalizations of concept drift. Hidden state sufficiency cites [40, 41]. Work using rewards or fine-tuning to construct evaluation data is marked as [30, 31, 32], which the authors claim requires substantial human expertise.
Baseline methods and benchmarks/datasets: Baselines for controlled experiments (Table 1) are Cloud distance, Task vector [40], Surface, Input similarity [50], and Logit confidence; data are spurious correlation and environment shift on Rotten Tomatoes sentiment, plus self-built version naming knowledge conflict. Real-world benchmarks (Table 2) add Function vector [41], EigenScore (INSIDE [53]), ContextCite [54], and Entity-aware probe [25]; benchmarks are GSM-Symbolic [51], GitChameleon-2.0 [26], and BigBench-Hard [52].
The authors position this paper as: evaluating false memory before answer generation using concept drift under counterfactuals, and providing a taxonomy, identifiability analysis, and counterfactual templates, rather than retraining or scoring by answers.
How does the paper address this problem?
FAME frames false memory evaluation as whether hidden state concept drift caused by counterfactual queries crosses a decision boundary.
FAME constructs counterfactual queries on given memories, estimates concept drift with leave-one-out hidden state differences, then projects the drift onto the boundary according to whether robustness or adaptation is expected, determining false memory before generating answers.
Problem Setting and Formalization
- Memory and false memory: Memory space is M. The retrieved memory set M = {(qi, ai)} induces concept θM = f(M), which maximizes expected reward on the memory task. When the target query falls outside past experience and applying θM yields significantly lower reward, the authors call it false memory, written as r̂(θM | q̂) ≪ E[r(θ | q, a)].
- Answer-independent evaluation objective: The authors argue that reward-based definitions require designing rewards for both memory and target tasks and generating answers. Instead, they measure alignment of concept drift with acceptable regions on counterfactual query set Q′, F(M) = E[⟨Δθ(q′), A(q′)⟩].
Belief Updating under Counterfactuals
- Structural causal model: Memory, memory concept, query, and updated concept are connected by an SCM. The authors claim memory first concentrates beliefs into θ, then updates to θ′ under the new query, and only then generates answers. Figure 2 shows M → ΘM, and Q and ΘM jointly point to Θ′.
- Three-step counterfactual: Given factual evidence, do abduction, do(Q = q′) while keeping memory concept fixed, then predict the updated concept. Proposition 1 states that under Markovian SCM, P(Θ′_{Q=q′} | M = m) = P(Θ′ | Q = q′, M = m).
- Concept drift as ETT: Theorem 1 writes the concept change from factual query q0 to counterfactual query q′ as Effect of Treatment on the Treated. The final expression approximates with hidden state extraction function γh, in practice using the same memory segment prepended to q0 and q′ for in-context learning.
Hidden State Geometry and Decision Boundary
- Approximating concepts with hidden states: Theorem 2 states that if demonstrations sufficiently represent a consistent concept and the residual stream hidden state at the answer submission position is sufficient for the predictive distribution, then encoder Dl applied to h(M + q) approximates p(· | θM, q). Drift is implemented as the average of N leave-one-out differences: Δθ(q′) = (1/N) Σ [h(M_{−i} + q′) − h(M_{−i} + qi)].
- Two expectations: When the concept is expected to remain robust to changes (e.g., retaining driving skills when the environment changes), the acceptable region A takes the memory reference cloud ΘM, and projections outside the boundary are judged as false memory. When the concept is expected to adapt to new situations (e.g., "X" shifting from academic context to social network), A takes the region outside the reference cloud along the counterfactual direction, and staying within the boundary is judged as false memory.
- Projection onto answer direction: Assumption 1 states that the logit difference of binary answer tokens is linear in the answer submission hidden state. Assumption 2 states that retrieved memories are consistent with submitted answers. Theorem 3 gives Δℓ = ⟨Δθ, ḡO⟩, meaning without generating answers, the projection of drift onto the answer readout direction corresponds to answer preference change. Corollary 1 writes the boundary as that projection equal to threshold τ.
- Algorithm 1: For the robust case, use the covariance of drift as ḡO, and Mahalanobis distance exceeding τ is judged as false memory; for the adaptation case, use ḡO = w_{Y(q′)} − w_{Y(M)}, and projection below τ is judged as false memory. The authors claim the former corresponds to the uncertain region around memory, and the latter to the behavioral difference from memory to counterfactual.
Three Types of False Memory and Counterfactual Construction
- Spurious correlation: Memory entangled with surface features. Figure 3 uses "Urgent!" in tickets as an example. Robust memory must pass both spurious keeping (retain spurious features, change context, expect adaptation) and spurious removal (remove spurious features, retain context, expect robustness). Counterfactual is written as q′ = Tsc(s(M), c(q)); one approach in the paper treats repeated words as spurious features.
- Environment shift: Skills entangled with a specific environment, target unchanged, environment factors often implicit. Figure 3 middle uses switching from S3 to Azure Blob as an example, expecting the concept to be robust to environment changes. q′ = Tenv(e(M)).
- Knowledge conflict: Knowledge in memory inconsistent with prior, the authors cite policies and documents in RAG, and "larger version numbers indicate older". The concept is expected to stay within the memory-induced region. q′ = Tkc(κ(M)), pulling the rule or policy in memory toward the prior direction.
Success Determination
- Signal rather than generation: The main metric is AUROC between predicted labels and false memory ground truth. The readout direction ḡO is characterized by expected answers of true and false memories, e.g., negative/positive for sentiment tasks, newer/older for version tasks. On real benchmarks, five levels of counterfactual intensity are set: low levels use rewrites close to context, high levels add phrases that draw attention to false memory.
What experiments did the paper conduct?
On Llama-3B, FAME's AUROC ranges from 0.762 to 0.966 across the four controlled categories, and exceeds the listed baselines on all three real-world benchmarks.
Experimental Setup
- Model: The experiments use Llama-3B. The hidden state is taken from layer 14; the authors say this follows prior work, with further explanation in Appendix C.1.
- Controlled settings: Spurious correlation uses Rotten Tomatoes, where every positive review in memory is tagged with [!]; keeping adds [!] to negative reviews, removal removes [!] but keeps positive reviews, and the reverse setting is also done. Environment shift keeps the memory as movie reviews, changes the counterfactual queries to tweets, and keeps the sentiment target unchanged. Knowledge conflict makes the memory "larger numbers mean older versions," and the counterfactual asks whether a higher number is newer or older.
- Scale: SC constructs 40 memory sets, ES and KC each 30 sets; each set has 6 demonstrations. Each SC set evaluates 3 counterfactual queries, and ES and KC each evaluate 4.
- Real benchmarks: GSM-Symbolic tests spurious correlation (e.g., treating "in total" as addition) and environment shift (e.g., sensitivity to number magnitude) in mathematical reasoning; GitChameleon-2.0 tests knowledge conflict, requiring maintaining the library version specified by memory rather than prior knowledge; BigBench-Hard tests spurious correlation in complex reasoning, with tasks including boolean expression, date understanding, logical deduction, and tracking shuffled objects. Template scale: GSM 40 (spurious correlation and environment shift), Git 18 (knowledge conflict), BBH 11; each template evaluates 5 intensity levels, with 20 BBH and 50 GSM and Git counterfactual queries per level.
- Baselines: Controlled experiments use Cloud distance, Task vector, Surface (first-layer representation), Input similarity, Logit confidence. Real benchmarks additionally use Function vector, EigenScore, ContextCite, Entity-aware probe.
- Metrics: AUROC, computed between predicted labels and the ground truth of the spurious memory. Figure 5 also reports Pearson r and R² for concept drift and behavioral margin shift. The paper does not report the number of repetitions.
Main Results
From Table 1 (controlled, AUROC↑, Llama-3B):
Swipe horizontally to read the table
Method Spurious Keeping Spurious Removal Environment Shift Knowledge Conflict Cloud distance 0.078 0.757 0.788 0.612 Task vector 0.334 0.639 0.460 0.652 Surface 0.742 0.746 0.573 0.635 Input similarity 0.782 0.751 0.599 0.593 Logit confidence 0.499 0.681 0.613 0.589 FAME 0.922 0.966 0.869 0.762 From Table 2 (real benchmarks, AUROC↑):
Swipe horizontally to read the table
Method GSM SK GSM SR GSM ES Git KC BBH SK BBH SR Input similarity 0.464 0.705 0.797 0.621 0.230 0.636 Surface 0.553 0.602 0.826 0.564 0.437 0.634 Logit confidence 0.530 0.372 0.539 0.452 0.669 0.762 Task vector 0.485 0.289 0.651 0.564 0.475 0.417 Function vector 0.595 0.660 0.781 0.665 0.576 0.837 EigenScore 0.668 0.696 0.838 0.546 0.494 0.828 ContextCite 0.693 0.569 0.547 0.494 0.583 0.816 Entity-aware probe 0.427 0.462 0.499 0.582 0.501 0.808 FAME 0.786 0.790 0.860 0.716 0.815 0.861 - Authors' interpretation of Table 1: FAME is higher than the table baselines on all four categories; the authors say AUROC is 0.87–0.97 on keeping, removal, and environment shift, and claim improvements over the best baseline in each category exceed 14% (keeping), 20% (removal), 8% (environment shift), and 11% (knowledge conflict). The abstract also writes AUROC as 76.2%–96.7%, 3.4%–23.3% higher than the best baseline (the latter corresponding to real benchmarks).
- Authors' interpretation of Table 2: FAME is the highest in the table on GSM SK 0.786, SR 0.790, ES 0.860, Git KC 0.716, BBH SK 0.815, SR 0.861. The authors specifically note a 58.5% improvement over Input similarity on BBH spurious keeping.
- Drift magnitude alone is insufficient: Cloud distance is 0.078 on spurious keeping. The authors say large magnitude is not necessarily a spurious memory; a small drift that crosses the boundary is more informative than a large drift that stays within the correct region; Figure 6 compares the density of drift magnitude for correct versus false memory.
Is the Answer Sufficient
- What was measured: Figure 4 compares the answer confidence density of correct versus false memory answers; Figure 5 compares answer-free drift with behavioral margin shift.
- Results: In Figure 4, the two density curves for all four categories overlap and are generally shifted left. Figure 5 is annotated as: Spurious Keeping r=0.98, R²=0.97; Spurious Removal r=0.82, R²=0.67; Environment Shift r=0.83, R²=0.69; Knowledge Conflict r=0.48, R²=0.23. The main text also writes Pearson r = 0.48–0.98, p < 0.001, and slope-like numbers 1.50, 1.84, 1.79, 0.37 in the figure.
- Authors' interpretation: The authors say that if answers alone could separate them, false memory should be concentrated at low confidence and correct at high confidence, but the figure shows no such left-right separation; therefore the answer distribution contains almost no identification signal. Figure 5 is used to support Theorem 3: changes in behavioral margin are linearly encoded in hidden-state drift, and evaluation can occur before generating an answer. Knowledge conflict has lower r and R² than the other three categories, and the authors do not provide further explanation in the main text.
Memory Scale and Cases
- Number of memory items: The left panel of Figure 8 is the false memory rate on GSM spurious-keeping versus the number of memory demonstrations. Readable points in the figure include about 32% at 2 demonstrations and a 59% level; the right panel is the memory retention rate on Git knowledge conflict, with readable endpoints including about 58% and 87% near 16–32 demonstrations, and a 100% level. The authors say more demonstrations make the concept more concentrated in memory, less willing to adapt in keeping, and memory retention rises in knowledge conflict; if memory induces a false belief, retrieving more makes the false memory worse, and vice versa. The exact readings of several bars in the middle of the coordinates do not align after text conversion and are not filled in here.
- Cases: Figure 7 gives two examples where answers are generated only for verification. The age question memory pairs "younger" with addition, and still does addition when the counterfactual requires subtraction; the shapely==2.0.1 memory uses unary_union, and on the counterfactual query switches back to cascaded_union. The authors say both cases are false memories identified by FAME before generating an answer. Appendix D.1 has additional cases, and Appendix E and Figure 17 give the template forms for L0–L4 on BBH: retaining or replacing surface cues, and progressively adding instructions that pull behavior toward memory.
Other Ablations and Analyses
- The main text experiments do not list a separate hyperparameter sweep table; layer selection rationale is in Appendix C.1, and further analysis of real benchmarks is in Appendix D.
- Graded protocol: five intensity levels are used to separate faithful and false distributions; the paper does not give per-level AUROC in the main text.
- Negative results: In Table 1, Cloud distance is 0.078 on spurious keeping and Task vector is 0.334; in Table 2, several baselines are below 0.5, e.g., Task vector 0.289 and Logit confidence 0.372 on GSM SR, and Logit confidence 0.452 and ContextCite 0.494 on Git KC.
What are some points that can be further explored?
The authors note that FAME relies on hidden states and counterfactual queries, and plan automatic counterfactual generation, independent belief representations, and mitigation methods.
Limitations and future directions noted by the authors
- Requires hidden states and counterfactual queries: The Conclusion states that despite usable results, FAME requires access to agent hidden states and counterfactual queries. (Conclusion)
- Automatic counterfactual generation: The authors list automatically constructing counterfactual queries as future work. (Conclusion)
- Independent belief representations: The authors propose exploring independent belief representations that do not depend on the current readout method. (Conclusion)
- Mitigation rather than only evaluation: The authors propose studying mitigation methods toward more trustworthy autonomous agents. (Conclusion)
- Templates for future research: The authors state that releasing counterfactual templates is to facilitate future research on false memory; this is planned research support, not an additional empirical conclusion. (Abstract, Conclusion)
Experimental coverage
- The tested model is Llama-3B, with hidden states taken from layer 14 (Sec. 5.1).
- Controlled evaluation includes spurious correlation (keeping and removal, including reversed settings), environment shift from movie reviews to tweets, and knowledge conflict over version naming conventions; memory group counts are 40 for SC and 30 each for ES and KC, with 6 demonstrations per group and 3 or 4 counterfactual queries per group (Sec. 5.1).
- Real-world benchmarks are GSM-Symbolic (SK, SR, ES), GitChameleon-2.0 (KC), and BigBench-Hard (SK, SR; subtasks include boolean expression, date understanding, logical deduction, tracking shuffled objects), with template counts of 40, 18, and 11 respectively, and 5 intensity levels per template (Sec. 6.1).
- The metric is AUROC; Figure 5 reports Pearson r and R² across the four categories, with p < 0.001. The paper does not report the number of repetitions, nor does it give per-intensity-level AUROC values in the main text.
- Compared baselines include Cloud distance, Task vector, Surface, Input similarity, and Logit confidence; real-world benchmarks additionally include Function vector, EigenScore, ContextCite, and Entity-aware probe (Sec. 5.1, Sec. 6.1). Answers in case studies are used only for verification (Figure 7).
Summarize the main content of the paper
FAME uses counterfactual-induced hidden state concept drift to distinguish faithful memory from false memory before generating answers.
FAME is a training-free evaluation framework to determine whether an autonomous agent's memory has become false memory under spurious correlations, environment shifts, or knowledge conflicts.
- Problem: Memory brings beliefs entangled with the old environment to new queries. The authors attribute this to internal beliefs; evaluating with answer confidence or designing rewards for the task is expensive and easily conflated with ordinary wrong answers.
- Method: Intervene on queries in a structural causal model, estimate concept drift with leave-one-out hidden state differences. When robustness is expected, projections outside the memory reference cloud are judged as false memory; when adaptation is expected, staying within the cloud is judged as false memory. Projections use answer token directions or drift covariance, with threshold τ used by Algorithm 1. Three scenario types construct counterfactual queries for keeping/removal, environment change, and pulling toward prior.
- Controlled results: On Llama-3B, layer 14, FAME's AUROC is 0.922 for keeping, 0.966 for removal, 0.869 for environment shift, 0.762 for knowledge conflict (Table 1), higher than baselines in the same table. Pearson r between concept drift and behavioral margin is 0.48–0.98 (Figure 5, p < 0.001). In Figure 4, answer confidence densities for correct and false memory overlap, and the authors claim that looking only at answers cannot identify false memory.
- Real benchmarks: In Table 2, FAME achieves 0.786, 0.790, 0.860 on GSM-Symbolic, 0.716 on GitChameleon knowledge conflict, and 0.815, 0.861 on BigBench-Hard keeping and removal, all highest in that table. The authors claim BBH keeping is 58.5% higher than Input similarity. In Figure 8, GSM keeping false memory rate and Git memory retention rate increase with the number of demonstrations.
- Authors' conclusion: Concept drift can identify false memory before generating answers; the authors also note the method requires hidden states and counterfactual queries, with future directions including automatic counterfactual generation, independent belief representations, and mitigation methods, and they release counterfactual templates for future research.