betaFeedback

WorksComputer Science

When to Remember, When to Abstain: Category-Conditioned Retention for Reliable Agent Memory

Abstract

Persistent agent memory is only as reliable as its retention decision: an assertion weakly supported by its source can be stored and later reused as established fact. We study whether the retention decision should be governed by a confidence bar conditioned on the semantic category of the assertion rather than by a single global threshold, retaining well-evidenced categories liberally while abstaining more aggressively where inference is unreliable. We evaluate this in a deployed cold-start memory pipeline on 100 synthetic personas. The empirical evaluation is motivated by a sharp reliability asymmetry: across 4{,}715 candidate assertions, only 77.9% of value and belief assertions are supported by their source, versus 96.2% for all other categories. A global confidence threshold cannot separate these: it either admits unsupported value claims or discards well-evidenced ones. Conditioning the threshold on category resolves the tradeoff. In repeated held-out evaluation, a stricter bar on values alone reduces unsupported retentions from 6.2% to 4.0% (an ≈36%{\approx}36\% relative reduction, modest but consistent across folds) and, as corroborating evidence, preserves an estimated 13 percentage points more coverage (95% CI 9.8–16.0) than a global threshold at comparable retention. Our results suggest that reliable retention depends on the type of assertion, not on confidence alone, and that a category-conditioned threshold can act as a simple, effective form of selective prediction at the write boundary.

Introduction

Long-term memory lets agents personalize by accumulating facts about a user across sessions. Most work on agent memory studies organization and retrieval: how memories are structured, updated, and recalled at inference time ([6, 7, 12, 10]). Reliability at the write boundary, whether a candidate assertion should enter memory at all, has only recently begun to receive attention ([11]). Yet this is where reliability is won or lost. A weakly supported assertion that gets written is not just noise; it is later recalled and reused as established fact, and downstream agents act on its stored confidence instead of rechecking the source ([5]).

In deployed cold-start pipelines, where memory is initialized from a user’s existing content before any conversation, the default is to write every extracted assertion (our NO-FILTERING condition). The natural first step toward selectivity is a single global confidence threshold, which we adopt as our comparison point. That threshold assumes confidence means the same thing for every kind of assertion, and we find that it does not. Source support varies sharply by semantic category: assertions about a user’s values and beliefs are supported only 77.9% of the time, against 96.2% for all other categories. This asymmetry makes a single global threshold ill-posed rather than merely suboptimal.

We treat the write boundary as a selective-prediction problem. A retention policy conditions the confidence bar on semantic category and abstains when an assertion fails the bar for its category. Selective prediction with a reject option is well studied in machine learning generally ([3]); our contribution is empirical, showing why it matters at the memory-write boundary, through the category-dependent faithfulness asymmetry above, and that acting on it improves faithfulness while retaining more supported content than a global threshold. The policy needs only two signals per assertion, a confidence score and a category, both already produced at extraction time. Because it acts only at the write step and uses signals already produced during extraction, it drops into an existing memory pipeline without changing how memories are stored or retrieved. We instantiate it in a deployed cold-start pipeline and evaluate it on 4,715 candidate assertions from 100 synthetic personas.

Related Work

Prior agent memory systems concentrate on extracting, consolidating, and retrieving information [6, 7, 12, 10], and increasingly structure it by semantic type, whether by classifying entity types [1] or by mining and annotating attributes [8]. Memory failures are also well documented and MirageBench [9] shows that personalized LLMs pervasively over-infer user attributes and that confidence is inversely related to fabrication, echoing broader findings that grounded LLMs can be confidently wrong [2]. Both diagnose the problem without acting on it. Recent work on memory admission control gates what is written by scoring candidates on predicted utility, novelty, recency, and a content-type prior [11]. Predicting utility at the write boundary presumes a future query distribution that has not been observed, and it leaves the failure we target untouched, since a fabricated assertion can still be useful. We gate on faithfulness instead, which is decidable from the source already in hand, and we reuse the confidence and category the extractor already emits, so the decision adds no further inference. We show that a single pre-specified category threshold dominates any global threshold at matched retention, and identify the conditions that make this work: unsupported assertions concentrate in one category, and confidence separates supported from unsupported assertions within it. Selective prediction and abstention are well studied for classification and question answering [3, 4]; we apply them at the memory-write boundary

Method

Memory pipeline and write boundary. We study a deployed cold-start memory extraction pipeline with a separate extractor per semantic category. Each extractor emits atomic candidate assertions with its own confidence score, so the retention policy reuses an existing model output and needs no additional training or inference. Candidates are deduplicated and then written; no other stage screens them for source support, so the write boundary is otherwise ungated. We insert one decision immediately before persistence: retain the assertion or abstain.

Policies and rationale. We compare three policies: writing every candidate, a global threshold applied to all categories, and a category-conditional threshold that may differ by category. The global policy is the special case in which every category receives the same threshold, so the category-conditional family contains it. Category-conditioning helps under two conditions: unsupported assertions must concentrate in one category, and confidence must separate supported from unsupported assertions within it. When both hold, a category-specific threshold removes the weak assertions there without applying the same cutoff to high-support categories. We evaluate the minimal instantiation, with "values" pre-specified as the only gated category and a single fitted threshold, so the held-out comparison tests one stated hypothesis rather than using the same personas to discover a category or fit a full per-category threshold vector.

Data & Controlled evaluation setup We run the pipeline over 100 synthetic personas, producing 4,715 candidate assertions. Synthetic personas are deliberate: because each persona’s source is complete and known, every assertion can be audited against the evidence the extractor actually saw, which real-user data rarely permits, and no real user content is processed. Thresholds are fit by 20 repetitions of five-fold cross-validation, split by persona: on each fit fold both thresholded policies take the threshold that maximizes faithfulness subject to retaining at least 80% of candidates, then apply it unchanged to held-out personas. The floor keeps the comparison meaningful, since faithfulness alone is maximized by extreme abstention; what we take to generalize is the ordering of policies, not the particular floor we set. Source support is labeled by our primary LLM judge, Gemini 2.5 Pro (T=0) using fixed rubrics. The judge is stochastic: re-scoring identical inputs flips 4.71% of verdicts. Appendix § 7 defines the metrics definitions, and Appendices § 8, § 9, and § 10 give the rubric, coverage, and calibration details

Results

Category Separation and Confidence support Source support differs sharply by semantic category (Figure 1a). The values category is the low-support outlier at 77.9% (95% CI 74.8–81.0), against 96.2% (95% CI 95.1–97.1) across all other categories. Values assertions are 21.5% of candidates but, at a 22.1% unsupported rate, contribute more unsupported assertions than all other categories combined. Within the values category, support rises from roughly 59% in the lowest populated confidence bin to roughly 90% in the highest, so confidence separates supported from unsupported assertions in exactly the category where the failure concentrates.

Figure 1. The problem and the targeted retention response. (a) Source-support rate by semantic category on the evaluation set (§ 3); error bars are 95% persona-clustered bootstrap confidence intervals. Values are the low-support outlier; the single-candidate communication-style category is omitted. (b) Held-out faithfulness against estimated source-fact coverage. The dashed line is the global-threshold sweep; markers show writing every candidate, the selected global threshold, and the values-targeted threshold, with error bars giving marginal (unpaired) fold intervals. At comparable retention the values-targeted point attains both higher faithfulness and higher coverage than the selected global threshold, and it lies above the global sweep (no global threshold dominates it on both axes); paired policy intervals appear in Table 1. Post-threshold coverage is estimated, so its magnitude is approximate.

Targeted abstention outperforms a global threshold. Figure 1b shows that no evaluated global threshold matches both the faithfulness and the estimated coverage of the values-targeted policy. On held-out personas the targeted rule reaches 96.03% faithfulness, 3.79 points above write-all, while estimated coverage falls by 2.01 points. The selected global rule reaches 93.83% faithfulness, 1.59 points above write-all, but estimated coverage falls by 14.97 points. Relative to the global rule, the targeted policy improves faithfulness by 2.21 points (95% paired interval 0.22–4.06) and estimated coverage by 12.96 points (9.80–16.04); the coverage difference has the same sign in all 100 folds, though its magnitude is approximate.

The two fitted policies retain comparable fractions of candidates, 80.3% for values-targeted and 81.8% for global (paired difference −1.55 points, −5.78 to +3.25), so the faithfulness gain is not explained by more aggressive filtering. Figure 1a identifies the low-support category; Figure 1b and Table 1 show that directing the threshold there beats a single system-wide cutoff.

PolicyFaith. (%)Est. cov. (%)Retained (%)
Write all92.2485.27100.0
Global93.83±1.1693.83 \pm1.1670.30±2.0970.30 \pm2.0981.8±2.081.8 \pm2.0
Values-targeted96.03±0.9396.03 \pm0.9383.26±1.7383.26 \pm1.7380.3±1.080.3 \pm1.0
Targeted −- global+2.21+2.21 [+0.22+0.22, +4.06+4.06]+12.96+12.96 [+9.80+9.80, +16.04+16.04]−1.55-1.55 [−5.78-5.78, +3.25+3.25]

Table 1. Held-out retention policies. Entries are fold means; ±\pm values are standard deviations. Brackets in the final row are paired 95% intervals. Write-all is the fixed full-sample reference. Post-threshold coverage is estimated.

Conclusion

Work on agent memory has largely focused on how memories are organized and retrieved. Our results point to an earlier decision that also affects reliability: which assertions are admitted at the write boundary. When confidence means different things for different kinds of assertion, a single global threshold can be a poor default. If unsupported assertions concentrate in one category while confidence still separates supported from unsupported assertions within it, a type-conditioned threshold can retain more supported content than a uniform cutoff at the same retention. This casts write-time retention as a selective-prediction problem, linking the literature on abstention to a decision that memory systems now make implicitly. Because the policy needs only a category label and a confidence score that extractors already produce, and changes neither representation nor retrieval, it can be adopted by an existing memory system at low computational cost. More broadly, our findings suggest treating what is not written to memory as a design question in its own right, alongside what to store and how to recall it.

Limitations

We highlight a few limitations that motivate future work. Faithfulness and coverage are scored by an LLM judge rather than by human annotation; across the judges we tested, the category ordering is stable, but absolute support levels, and the thresholds fit to them, are judge-dependent (Appendix § 11 reports cross-model robustness). The controlled evaluation uses a single synthetic corpus, which gives us complete source evidence and lets us measure faithfulness directly; while the pipeline runs in production on real users, the retention approach itself is evaluated only on synthetic data, so validating it on real users, other extractors, and downstream use is the main next step. We also study only the minimal form of the approach: one pre-specified category with a single threshold. Gating at the level of a whole category is coarse, so a miscalibrated threshold or a mislabeled category could systematically drop legitimate content within it; learned per-category thresholds or conditioning on other properties of an assertion are natural extensions that could mitigate this.

Metrics

Let AA be the set of 4,715 extracted candidate assertions, let πi∈{0,1}\pi_i \in\{0,1\} indicate whether policy π\pi retains candidate ii, and let yi∈{0,1}y_i \in\{0,1\} indicate whether the faithfulness judge finds candidate ii source-supported. We report retention QQ and faithfulness FF,

Q(π)=∑i∈Aπi∣A∣,F(π)=∑i∈Aπiyi∑i∈Aπi,Q(\pi)=\frac{\sum_{i\in A}\pi_i}{|A|}, \qquad F(\pi)=\frac{\sum_{i\in A}\pi_i y_i}{\sum_{i\in A}\pi_i},

where FF is the supported fraction among retained assertions. Coverage is recall over a separate population ZZ of salient source facts:

Csrc(π)=1∣Z∣∑z∈Zh(z,Aπ),C_{\mathrm{src}}(\pi)=\frac{1}{|Z|}\sum_{z\in Z}h(z,A_\pi),

where h(z,Aπ)h(z,A_\pi) indicates whether the retained set AπA_\pi represents source fact zz. The denominators are distinct: faithfulness and retention are computed over the 4,715 candidate assertions (partitioned by semantic category), whereas coverage is computed over the 2,634 salient source facts enumerated by the judge (partitioned by salience tier). These are different populations, not subsets, so the counts do not sum.

Faithfulness-Judge Rubric (Abridged)

Grounding is judged by corroboration, not verbatim entailment. An assertion is grounded if it is stated in the source or is a reasonable inference from converging evidence: several independent signals pointing to the same conclusion, or an explicit profile field. Abstracting a consistent pattern into the interest or value it reveals is legitimate when the evidence converges; asserting a detail with no support is not.

Supported: the assertion is either (a) directly stated in the source, or (b) a corroborated inference an ordinary reader would draw from converging evidence.

Not supported: the assertion has no basis in the source, contradicts it, overstates certainty well beyond the evidence, or rests on a single weak or isolated signal. A claim that is merely plausible or thematically consistent, with no specific supporting evidence, is not supported.

Interests vs. values: an interest or preference may be inferred from converging behavioral signals. A principled value or belief is a claim about what the user stands for and needs evidence of the principle itself, such as a stated conviction or a trade-off that demonstrates it. Activities alone do not establish a value; do not upgrade enjoys X into values Y without evidence of the underlying principle.

Internal Calibration: one explicit statement or profile field is sufficient on its own; an inferred preference, value, or trait requires converging evidence (roughly two or more independent signals); a lone weak signal is not enough.

For each assertion the judge returns a structured record with the assertion’s index and text, a supported or not-supported verdict, and a one-sentence rationale.

Coverage and Salience Rubric (Abridged)

The coverage judge enumerates the salient facts the source supports, tags each with a salience tier, and decides independently whether each is covered by the extracted assertions. It enumerates only source-present facts, marks a fact COVERED when any candidate expresses it (including by paraphrase, compression, or decomposition) and MISSING otherwise. HIGH denotes identity-central, durable facts; MEDIUM denotes stable but non-identity-defining preferences or affiliations; and LOW denotes incidental or stylistic detail. Salience is descriptive only: reported coverage is unweighted recall.

The reference set is generated afresh by the judge on every call; it is not a fixed or human-authored gold set, and the dataset’s golden-facts field is unused. The stored output records whether a source fact is covered by the full candidate set but not which candidate covers it, so post-threshold coverage relies on a lexical attribution from each covered fact to a candidate and is an estimate. The same estimator is applied to every policy, so coverage differences are directional; their exact magnitude is approximate.

Judge Calibration and Repeatability

Calibration cases were labeled by construction: positives were source-derived restatements or paraphrases, and negatives were controlled contradictions, fabrications, or plausible-but-unstated inferences. Boundary cases were resolved by strong-model adjudication and ambiguous ones were excluded; we do not claim a full independently human-labeled calibration set, though an independent human review served as a qualitative alignment bar on the hard cases. On the 67 retained cases (40 easy, 27 hard), taking not_supported as the positive class, the faithfulness judge reached an F1 of 0.900 on the hard tier and 0.967 overall against these constructed labels. We retain the aggregate calibration results but not the per-case adjudications. Separately, re-scoring identical evaluation inputs changed 4.71% of per-assertion verdicts, which we report as an empirical measure of the judge’s variability rather than treating it as deterministic.

Cross-Model Robustness of Source-Support Judgments

Judge configurationAllValuesNon-values
Gemini 2.5 Pro (T=0T=0)0.935 [0.914, 0.954]0.840 [0.768, 0.898]0.959 [0.939, 0.977]
Gemini 2.5 Pro (T=1T=1)0.928 [0.904, 0.951]0.845 [0.773, 0.908]0.949 [0.927, 0.968]
GPT-5 (T=1T=1)0.894 [0.874, 0.915]0.624 [0.540, 0.712]0.963 [0.952, 0.974]

Table 2. Source-support rates from three judge configurations on the same 954 assertions from 20 personas (194 values; 760 non-values), with 95% persona-clustered bootstrap intervals (10,000 resamples).

Values is the lowest-support category under every configuration, while non-values stays between 0.949 and 0.963. Temperature has little effect: the paired difference on values (T=1T=1 minus T=0T=0) is +0.005 [−0.046, +0.056], with zero near the middle, whereas the cross-model values gap (Gemini T=0T=0 vs. GPT-5) is +0.216 [+0.138, +0.295] on the same assertions. The ordering appears consistent across configurations, and temperature does not seem to drive it, while the absolute magnitude is model-dependent. On non-values the two judges show no detectable difference (cross-model −0.004 [−0.026, +0.017]), so the cross-model difference is concentrated in the values category. All are LLM judges, so this reflects cross-model robustness rather than correctness against human labels.

References

  1. [1]Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav. Mem0: Building production-ready AI agents with scalable long-term memory. arXiv preprint arXiv:2504.19413, 2025.arxiv.org/abs/2504.19413
  2. [2]Nick Hagar, Wilma Agustiano, and Nicholas Diakopoulos. Not wrong, but untrue: LLM overconfidence in document-based queries. arXiv preprint arXiv:2509.25498, 2025.arxiv.org/abs/2509.25498
  3. [3]Kilian Hendrickx, Lorenzo Perini, Dries Van der Plas, Wannes Meert, and Jesse Davis. Machine learning with a reject option: A survey. Machine Learning, 113:3073–3110, 2024. doi: 10.1007/s10994-024-06534-x.DOI
  4. [4]Polina Kirichenko, Mark Ibrahim, Kamalika Chaudhuri, and Samuel J. Bell. Abstentionbench: Reasoning LLMs fail on unanswerable questions. In Thirty-Ninth Conference on Neural Information Processing Systems (NeurIPS 2025), Datasets and Benchmarks Track, 2025.arxiv.org/abs/2506.09038
  5. [5]Alex Kwon. Manufactured confidence: How memory consolidation turns hearsay into confident facts. arXiv preprint arXiv:2606.29279, 2026.arxiv.org/abs/2606.29279
  6. [6]Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. MemGPT: Towards LLMs as operating systems. arXiv preprint arXiv:2310.08560, 2023.arxiv.org/abs/2310.08560
  7. [7]Joon Sung Park, Joseph C. O’Brien, Carrie J. Cai, Meredith Ringel Morris, Percy Liang, and Michael S. Bernstein. Generative agents: Interactive simulacra of human behavior. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology (UIST), 2023.arxiv.org/abs/2304.03442
  8. [8]Rana Salama, Jason Cai, Michelle Yuan, Anna Currey, Monica Sunkara, Yi Zhang, and Yassine Benajiba. MemInsight: Autonomous memory augmentation for LLM agents. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics, 2025. ACL Anthology 2025.emnlp-main.1683.arxiv.org/abs/2503.21760
  9. [9]Yushi Sun, Yanjie Zhang, and Rui Sheng. The personalization mirage: How LLMs fabricate user profiles, and why self-monitoring misleads. arXiv preprint arXiv:2608.04570, 2026.arxiv.org/abs/2608.04570
  10. [10]Wujiang Xu, Kai Mei, Hang Gao, Juntao Tan, Zujie Liang, and Yongfeng Zhang. A-MEM: Agentic memory for LLM agents. arXiv preprint arXiv:2502.12110, 2025.arxiv.org/abs/2502.12110
  11. [11]Guilin Zhang, Wei Jiang, Xiejiahsan Wang, Aisha Behr, Kai Zhao, Jeffrey Fridman, Xu Chu, and Amine Anoun. Adaptive memory admission control for LLM agents. In ICLR 2026 Workshop on MemAgent, 2026. arXiv:2603.04549.arxiv.org/abs/2603.04549
  12. [12]Wanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye, and Yanlin Wang. MemoryBank: Enhancing large language models with long-term memory. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 19724–19731, 2024. doi: 10.1609/aaai.v38i17.29946. URL https://ojs.aaai.org/index.php/AAAI/article/view/29946.DOI

Paper details

vlnc:W_dhsrdwbt
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 4

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents