"<!DOCTYPE html>\n<html lang=\"zh\" data-theme=\"light\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>fulltext.txt — Vercel Design System</title>\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n<link href=\"https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap\" rel=\"stylesheet\">\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css\">\n<style>\n\n:root {\n  /* Vercel Palette */\n  --geist-foreground: #171717;\n  --geist-background: #ffffff;\n  --geist-secondary: #4d4d4d;\n  --geist-tertiary: #666666;\n  --geist-quaternary: #808080;\n  --geist-border: #ebebeb;\n  --geist-surface-tint: #fafafa;\n  \n  /* Workflow Accents */\n  --develop-blue: #0a72ef;\n  --preview-pink: #de1d8d;\n  --ship-red: #ff5b4f;\n  \n  /* Interactive & Status */\n  --link-blue: #0072f5;\n  --ds-focus-color: hsla(212, 100%, 48%, 1);\n  --badge-blue-bg: #ebf5ff;\n  --badge-blue-text: #0068d6;\n  \n  /* Shadow-as-Border Philosophy */\n  --shadow-border: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(0, 0, 0, 0.16) 0px 0px 0px 1px;\n  --shadow-card: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(0, 0, 0, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.06) 0px 4px 6px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-full: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, rgba(0, 0, 0, 0.04) 0px 8px 8px -8px, #fafafa 0px 0px 0px 1px;\n  --shadow-ring: rgb(235, 235, 235) 0px 0px 0px 1px;\n  \n  /* Radius Scale */\n  --radius-xs: 2px;\n  --radius-sm: 4px;\n  --radius-md: 6px;\n  --radius-lg: 8px;\n  --radius-xl: 12px;\n  --radius-pill: 9999px;\n}\n\n[data-theme=\"dark\"] {\n  --geist-foreground: #ededed;\n  --geist-background: #000000;\n  --geist-secondary: #a1a1a1;\n  --geist-tertiary: #888888;\n  --geist-quaternary: #666666;\n  --geist-border: #222222;\n  --geist-surface-tint: #0a0a0a;\n  \n  --shadow-border: rgba(255, 255, 255, 0.14) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(255, 255, 255, 0.28) 0px 0px 0px 1px;\n  --shadow-card: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.4) 0px 2px 4px, #111111 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(255, 255, 255, 0.2) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 6px 12px, #111111 0px 0px 0px 1px;\n  --shadow-card-full: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 8px 16px -4px, #111111 0px 0px 0px 1px;\n  --shadow-ring: rgb(40, 40, 40) 0px 0px 0px 1px;\n  \n  --badge-blue-bg: rgba(10, 114, 239, 0.15);\n  --badge-blue-text: #70b5ff;\n}\n\n* { box-sizing: border-box; }\nhtml { scroll-behavior: smooth; }\nbody {\n  margin: 0;\n  font-family: \"Geist\", Arial, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n  background-color: var(--geist-background);\n  color: var(--geist-foreground);\n  font-feature-settings: \"liga\" 1;\n  -webkit-font-smoothing: antialiased;\n  min-height: 100vh;\n}\n\na {\n  color: inherit;\n  text-decoration: none;\n  transition: color 0.15s ease;\n}\n\n/* 导航栏 (Vercel Clean Sticky Nav) */\n.vercel-nav {\n  position: sticky;\n  top: 0;\n  background-color: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  z-index: 100;\n  padding: 0 24px;\n  height: 64px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n.nav-brand {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n.vercel-triangle {\n  width: 22px;\n  height: 19px;\n  fill: var(--geist-foreground);\n}\n.nav-title {\n  font-size: 16px;\n  font-weight: 600;\n  letter-spacing: -0.32px;\n  color: var(--geist-foreground);\n}\n.nav-badge-pill {\n  font-family: \"Geist Mono\", ui-monospace, monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  background: var(--badge-blue-bg);\n  color: var(--badge-blue-text);\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n}\n\n.nav-links {\n  display: flex;\n  align-items: center;\n  gap: 24px;\n}\n.nav-link {\n  font-size: 14px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.nav-link:hover, .nav-link.active {\n  color: var(--geist-foreground);\n}\n.nav-link.active {\n  font-weight: 600;\n}\n\n.nav-actions {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n\n/* 按钮规范 */\n.btn-primary-dark {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: opacity 0.15s;\n}\n.btn-primary-dark:hover {\n  opacity: 0.9;\n}\n.btn-secondary-white {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: background 0.15s, box-shadow 0.15s;\n}\n.btn-secondary-white:hover {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border-hover);\n}\n.theme-toggle-btn {\n  background: transparent;\n  border: none;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  width: 36px;\n  height: 36px;\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: var(--geist-foreground);\n}\n\n/* 核心容器 */\n.vercel-container {\n  max-width: 1200px;\n  margin: 0 auto;\n  padding: 56px 24px 100px;\n}\n\n/* Hero Section (Gallery Emptiness + Negative Letter-spacing) */\n.vercel-hero {\n  text-align: center;\n  max-width: 860px;\n  margin: 0 auto 56px;\n}\n.hero-stage-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 4px 14px;\n  border-radius: var(--radius-pill);\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  margin-bottom: 24px;\n}\n.stage-dot {\n  width: 7px;\n  height: 7px;\n  border-radius: 50%;\n}\n.vercel-hero h1 {\n  font-size: 48px;\n  font-weight: 600;\n  line-height: 1.05;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 16px;\n}\n.vercel-hero p {\n  font-size: 20px;\n  font-weight: 400;\n  line-height: 1.80;\n  color: var(--geist-secondary);\n  margin: 0 auto 28px;\n}\n\n/* Workflow Pipeline (Develop -> Preview -> Ship) */\n.workflow-pipeline {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 768px) {\n  .workflow-pipeline { grid-template-columns: 1fr; }\n}\n.workflow-step {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px 22px;\n  transition: box-shadow 0.2s;\n}\n.workflow-step:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n.step-mono-label {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  margin-bottom: 8px;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n}\n.step-title {\n  font-size: 20px;\n  font-weight: 600;\n  letter-spacing: -0.96px;\n  color: var(--geist-foreground);\n  margin-bottom: 6px;\n}\n.step-desc {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n\n/* Metric Cards (Section 4 Spec) */\n.metric-grid {\n  display: grid;\n  grid-template-columns: repeat(4, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 900px) {\n  .metric-grid { grid-template-columns: repeat(2, 1fr); }\n}\n.metric-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n}\n.metric-number {\n  font-size: 40px;\n  font-weight: 600;\n  line-height: 1.0;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin-bottom: 8px;\n  font-feature-settings: \"tnum\" 1;\n}\n.metric-label {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.4;\n}\n\n/* VAD 专栏 Banner (Ship Red & Vercel Clean) */\n.vad-showcase {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-xl);\n  padding: 32px;\n  margin-bottom: 48px;\n  position: relative;\n}\n.vad-header-row {\n  display: flex;\n  align-items: baseline;\n  justify-content: space-between;\n  flex-wrap: wrap;\n  gap: 12px;\n  margin-bottom: 12px;\n}\n.vad-header-row h2 {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  color: var(--geist-foreground);\n  margin: 0;\n}\n.vad-pillars-grid {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));\n  gap: 14px;\n  margin-top: 24px;\n}\n.vad-pillar-item {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 14px 16px;\n}\n.vad-pillar-title {\n  font-size: 14px;\n  font-weight: 600;\n  color: var(--ship-red);\n  margin-bottom: 4px;\n}\n.vad-pillar-text {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n.vad-filter-bar {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  margin: 24px 0 16px;\n  padding: 12px 16px;\n  background: var(--geist-surface-tint);\n  border-radius: var(--radius-md);\n  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);\n}\n.vad-filter-btn {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  font-weight: 500;\n  padding: 6px 14px;\n  border-radius: 9999px;\n  border: none;\n  background: transparent;\n  color: var(--geist-secondary);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.vad-filter-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0,0,0,0.05);\n}\n.vad-filter-btn.active {\n  background: #171717;\n  color: #ffffff;\n}\n.vad-search-input {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  padding: 7px 12px;\n  border-radius: 6px;\n  border: 1px solid var(--geist-border);\n  background: #ffffff;\n  color: var(--geist-foreground);\n  width: 280px;\n  outline: none;\n  transition: border-color 0.15s, box-shadow 0.15s;\n}\n.vad-search-input:focus {\n  border-color: #0a72ef;\n  box-shadow: 0 0 0 2px rgba(10, 114, 239, 0.2);\n}\n\n/* 控制栏：搜索、视图、筛选 */\n.control-bar {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  margin-bottom: 24px;\n  flex-wrap: wrap;\n}\n.search-input-wrap {\n  position: relative;\n  flex: 1;\n  max-width: 480px;\n}\n.search-input {\n  width: 100%;\n  height: 40px;\n  padding: 0 38px 0 14px;\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  color: var(--geist-foreground);\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  outline: none;\n  transition: box-shadow 0.15s;\n}\n.search-input:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n.search-kbd {\n  position: absolute;\n  right: 12px;\n  top: 50%;\n  transform: translateY(-50%);\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  color: var(--geist-quaternary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n\n.view-switcher {\n  display: flex;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  background: var(--geist-background);\n  padding: 2px;\n}\n.view-btn {\n  background: transparent;\n  border: none;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-tertiary);\n  padding: 6px 12px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n  transition: color 0.15s, background 0.15s;\n}\n.view-btn.active {\n  background: var(--geist-surface-tint);\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 筛选芯片行 (Filter Pill Strip) */\n.filter-group-strip {\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  margin-bottom: 28px;\n  padding: 16px 20px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-lg);\n}\n.filter-row {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  flex-wrap: wrap;\n}\n.filter-label-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  min-width: 68px;\n}\n.pill-badge {\n  background: var(--geist-background);\n  color: var(--geist-secondary);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 3px 12px;\n  border-radius: var(--radius-pill);\n  font-size: 12px;\n  font-weight: 500;\n  cursor: pointer;\n  transition: all 0.15s;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n}\n.pill-badge:hover {\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border-hover);\n}\n.pill-badge.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  font-weight: 600;\n  box-shadow: none;\n}\n.pill-badge.active-blue {\n  background: var(--develop-blue);\n  color: #ffffff;\n  box-shadow: none;\n}\n.pill-badge.active-red {\n  background: var(--ship-red);\n  color: #ffffff;\n  box-shadow: none;\n}\n\n/* Bento Grid Cards (Section 4 & 6 Spec) */\n.card-grid-bento {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));\n  gap: 16px;\n}\n.vercel-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  transition: box-shadow 0.2s, transform 0.2s;\n  text-decoration: none;\n  color: inherit;\n  overflow: hidden;\n  min-width: 0;\n  word-break: break-word;\n}\n.vercel-card:hover {\n  box-shadow: var(--shadow-card-hover);\n  transform: translateY(-2px);\n}\n.card-top {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 12px;\n  gap: 8px;\n}\n.card-tag-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  letter-spacing: 0.5px;\n}\n.status-pill-badge {\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 500;\n  flex-shrink: 0;\n}\n.pub-accepted { background: #ebfdf2; color: #027a48; }\n.pub-workshop { background: #eff8ff; color: #175cd3; }\n.pub-submitted { background: #fff8e6; color: #b54708; }\n.pub-preprint { background: #f2f4f7; color: #475467; }\n.pub-other { background: #f9f5ff; color: #6941c6; }\n\n[data-theme=\"dark\"] .pub-accepted { background: rgba(2, 122, 72, 0.2); color: #32d583; }\n[data-theme=\"dark\"] .pub-workshop { background: rgba(23, 92, 211, 0.2); color: #84caff; }\n[data-theme=\"dark\"] .pub-submitted { background: rgba(181, 71, 8, 0.2); color: #fec84b; }\n[data-theme=\"dark\"] .pub-preprint { background: rgba(71, 84, 103, 0.2); color: #98a2b3; }\n[data-theme=\"dark\"] .pub-other { background: rgba(105, 65, 198, 0.2); color: #d6bbfb; }\n\n/* 必读标杆徽章 (Vercel Amber Accent) */\n.milestone-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 3px;\n  padding: 2px 7px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 600;\n  white-space: nowrap;\n  flex-shrink: 0;\n  transition: all 0.15s ease;\n}\n.milestone-badge.ms-idea, .milestone-badge:not([class*=\"ms-\"]) {\n  color: #b54708;\n  background: #fff8e6;\n  border: 1px solid rgba(247, 144, 9, 0.35);\n  box-shadow: 0 1px 2px rgba(181, 71, 8, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-idea, [data-theme=\"dark\"] .milestone-badge:not([class*=\"ms-\"]) {\n  color: #fec84b;\n  background: rgba(181, 71, 8, 0.22);\n  border-color: rgba(254, 200, 75, 0.35);\n}\n.milestone-badge.ms-writing {\n  color: #6941c6;\n  background: #f9f5ff;\n  border: 1px solid rgba(105, 65, 198, 0.3);\n  box-shadow: 0 1px 2px rgba(105, 65, 198, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-writing {\n  color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.22);\n  border-color: rgba(214, 187, 251, 0.35);\n}\n.milestone-badge.ms-value {\n  color: #027a48;\n  background: #ebfdf2;\n  border: 1px solid rgba(2, 122, 72, 0.3);\n  box-shadow: 0 1px 2px rgba(2, 122, 72, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-value {\n  color: #32d583;\n  background: rgba(2, 122, 72, 0.22);\n  border-color: rgba(50, 213, 131, 0.35);\n}\n\n/* 论文正文图表与插图卡片样式 (Geist Design) */\n.paper-figure, .article-body figure {\n  margin: 32px auto;\n  text-align: center;\n  max-width: 100%;\n}\n.paper-figure img, .article-body img {\n  max-width: 96%;\n  height: auto;\n  border-radius: var(--radius-md);\n  border: 1px solid var(--geist-border);\n  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);\n  background: #ffffff;\n  transition: transform 0.2s ease, box-shadow 0.2s ease;\n  display: block;\n  margin: 0 auto;\n}\n.paper-figure img:hover, .article-body img:hover {\n  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);\n}\n.paper-figure figcaption, .article-body figcaption {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  margin-top: 10px;\n  line-height: 1.6;\n  font-style: italic;\n  max-width: 850px;\n  margin-left: auto;\n  margin-right: auto;\n}\n\n/* VAD 视图切换器 View Switcher */\n.vad-view-switcher {\n  display: inline-flex;\n  padding: 3px;\n  background: var(--geist-secondary-bg);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  margin-bottom: 20px;\n  gap: 2px;\n}\n.view-switch-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  padding: 6px 14px;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  border-radius: 6px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.view-switch-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0, 0, 0, 0.04);\n}\n[data-theme=\"dark\"] .view-switch-btn:hover {\n  background: rgba(255, 255, 255, 0.06);\n}\n.view-switch-btn.active {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  font-weight: 600;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n/* 关系图谱 Graph View Styles */\n.graph-container {\n  position: relative;\n  width: 100%;\n  height: 720px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: var(--radius-lg);\n  overflow: hidden;\n  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);\n  margin-bottom: 40px;\n}\n.graph-toolbar {\n  position: absolute;\n  top: 14px;\n  left: 14px;\n  right: 14px;\n  z-index: 10;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  padding: 8px 14px;\n  border-radius: 8px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  flex-wrap: wrap;\n  gap: 8px;\n}\n.graph-tool-title {\n  font-size: 13px;\n  font-weight: 700;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n  color: var(--geist-foreground);\n}\n.graph-filter-group {\n  display: flex;\n  gap: 6px;\n  align-items: center;\n  flex-wrap: wrap;\n}\n.graph-chip {\n  font-size: 11px;\n  padding: 3px 8px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.graph-chip:hover { background: var(--geist-secondary-bg); }\n.graph-chip.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-color: var(--geist-foreground);\n}\n.graph-search-input {\n  padding: 3px 8px;\n  font-size: 11px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  outline: none;\n  width: 150px;\n}\n#vad-graph-svg {\n  width: 100%;\n  height: 100%;\n  cursor: grab;\n}\n#vad-graph-svg:active { cursor: grabbing; }\n.graph-legend {\n  position: absolute;\n  bottom: 14px;\n  left: 14px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  padding: 10px 14px;\n  font-size: 11px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  z-index: 10;\n  line-height: 1.6;\n  pointer-events: none;\n}\n.graph-legend-row { display: flex; align-items: center; gap: 8px; }\n.graph-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }\n.graph-info-drawer {\n  position: absolute;\n  top: 66px;\n  right: 14px;\n  width: 310px;\n  max-height: 620px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  box-shadow: 0 8px 30px rgba(0,0,0,0.12);\n  z-index: 10;\n  padding: 16px;\n  overflow-y: auto;\n  display: none;\n  backdrop-filter: blur(10px);\n  transition: transform 0.2s ease, opacity 0.2s ease;\n}\n.graph-drawer-close {\n  position: absolute;\n  top: 10px;\n  right: 12px;\n  cursor: pointer;\n  font-size: 16px;\n  color: var(--geist-tertiary);\n}\n.graph-drawer-badge {\n  display: inline-block;\n  padding: 2px 6px;\n  border-radius: 4px;\n  font-size: 10px;\n  font-weight: 600;\n  margin-bottom: 6px;\n}\n.graph-drawer-title {\n  font-size: 13px;\n  font-weight: 700;\n  line-height: 1.4;\n  margin-bottom: 8px;\n  color: var(--geist-foreground);\n}\n.graph-drawer-meta {\n  font-size: 11px;\n  color: var(--geist-secondary);\n  margin-bottom: 12px;\n}\n.graph-drawer-core {\n  font-size: 12px;\n  line-height: 1.6;\n  color: var(--geist-foreground);\n  background: var(--geist-secondary-bg);\n  padding: 8px 10px;\n  border-radius: 6px;\n  margin-bottom: 12px;\n  border: 1px solid var(--geist-border);\n}\n.graph-drawer-link {\n  display: block;\n  text-align: center;\n  padding: 7px 12px;\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-radius: 6px;\n  font-size: 12px;\n  font-weight: 600;\n  text-decoration: none;\n  transition: opacity 0.15s ease;\n  margin-bottom: 6px;\n}\n.graph-drawer-link:hover { opacity: 0.85; }\n.graph-drawer-pdf-link {\n  display: block;\n  text-align: center;\n  padding: 6px 12px;\n  background: var(--geist-secondary-bg);\n  color: var(--geist-foreground);\n  border: 1px solid var(--geist-border);\n  border-radius: 6px;\n  font-size: 11px;\n  font-weight: 500;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.graph-drawer-pdf-link:hover { background: var(--geist-border); }\n.node-circle {\n  cursor: pointer;\n  transition: r 0.2s, stroke-width 0.2s;\n}\n.node-label {\n  font-size: 10px;\n  font-weight: 600;\n  fill: var(--geist-foreground);\n  pointer-events: none;\n  text-shadow: 0 1px 2px var(--geist-background);\n}\n.link-line {\n  stroke: var(--geist-border);\n  stroke-opacity: 0.6;\n  stroke-width: 1.2;\n  transition: stroke 0.2s, stroke-width 0.2s, stroke-opacity 0.2s;\n}\n.link-label {\n  font-size: 9px;\n  fill: var(--geist-tertiary);\n  pointer-events: none;\n  text-anchor: middle;\n}\n\n/* 引用框与警示框 Alerts */\n.callout-alert {\n  margin: 20px 0;\n  padding: 14px 18px;\n  border-radius: var(--radius-md);\n  transition: all 0.15s ease;\n}\n.callout-important, .callout-idea {\n  border-left: 4px solid #b54708;\n  background: rgba(181, 71, 8, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(247, 144, 9, 0.3);\n}\n[data-theme=\"dark\"] .callout-important, [data-theme=\"dark\"] .callout-idea {\n  border-left-color: #fec84b;\n  background: rgba(181, 71, 8, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(254, 200, 75, 0.25);\n}\n.callout-writing {\n  border-left: 4px solid #6941c6;\n  background: rgba(105, 65, 198, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(105, 65, 198, 0.3);\n}\n[data-theme=\"dark\"] .callout-writing {\n  border-left-color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(214, 187, 251, 0.25);\n}\n.callout-value {\n  border-left: 4px solid #027a48;\n  background: rgba(2, 122, 72, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(2, 122, 72, 0.3);\n}\n[data-theme=\"dark\"] .callout-value {\n  border-left-color: #32d583;\n  background: rgba(2, 122, 72, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(50, 213, 131, 0.25);\n}\n\n.card-title {\n  font-size: 16.5px;\n  font-weight: 600;\n  line-height: 1.42;\n  letter-spacing: -0.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 10px;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n  hyphens: auto;\n}\n.card-title a {\n  color: var(--geist-foreground);\n  text-decoration: none;\n  display: inline;\n  transition: color 0.15s ease;\n}\n.card-title a:hover {\n  color: var(--develop-blue);\n  text-decoration: none;\n}\n.card-id-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-quaternary);\n  margin-right: 5px;\n}\n.card-meta-row {\n  display: flex;\n  gap: 6px;\n  flex-wrap: wrap;\n  margin-bottom: 12px;\n}\n.meta-token {\n  font-size: 12px;\n  color: var(--geist-tertiary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-ring);\n  padding: 2px 7px;\n  border-radius: var(--radius-sm);\n  white-space: nowrap;\n}\n.card-body-text {\n  font-size: 13.5px;\n  color: var(--geist-secondary);\n  line-height: 1.6;\n  margin-bottom: 16px;\n  flex-grow: 1;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n}\n.card-body-text strong {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n.card-footer {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 14px;\n}\n.card-link-action {\n  font-size: 13.5px;\n  font-weight: 500;\n  color: var(--link-blue);\n  display: inline-flex;\n  align-items: center;\n  gap: 4px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.card-link-action:hover {\n  opacity: 0.85;\n  transform: translateX(2px);\n}\na.meta-token {\n  transition: all 0.15s ease;\n  cursor: pointer;\n  text-decoration: none;\n}\na.meta-token:hover {\n  background: var(--geist-selection);\n  color: var(--geist-foreground);\n  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);\n}\n\n/* 紧凑列表视图 (List View) */\n.card-list-view {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n.list-row-item {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-md);\n  padding: 12px 18px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  transition: box-shadow 0.15s;\n}\n.list-row-item:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n\n/* 阅读详情页 (Report Detail) */\n.reading-container {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) 260px;\n  gap: 40px;\n  align-items: start;\n}\n@media (max-width: 960px) {\n  .reading-container { grid-template-columns: 1fr; }\n  .reading-sidebar { display: none; }\n}\n\n.report-header-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 28px 32px;\n  margin-bottom: 28px;\n}\n.crumb-bar {\n  font-size: 13px;\n  color: var(--geist-tertiary);\n  margin-bottom: 10px;\n}\n.report-title {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  margin: 0 0 16px;\n  color: var(--geist-foreground);\n}\n.report-action-buttons {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  flex-wrap: wrap;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 16px;\n  margin-top: 16px;\n}\n\n.article-body {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 36px 42px 80px;\n  font-size: 16px;\n  line-height: 1.75;\n  color: var(--geist-foreground);\n}\n.article-body h1, .article-body h2, .article-body h3 {\n  color: var(--geist-foreground);\n  scroll-margin-top: 80px;\n}\n.article-body h1 { font-size: 28px; font-weight: 600; letter-spacing: -1.28px; border-bottom: 1px solid var(--geist-border); padding-bottom: 8px; margin-top: 32px; }\n.article-body h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.96px; border-bottom: 1px solid var(--geist-border); padding-bottom: 6px; margin-top: 36px; }\n.article-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.32px; margin-top: 26px; }\n.article-body table {\n  width: 100%;\n  border-collapse: collapse;\n  margin: 24px 0;\n  font-size: 14px;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  overflow: hidden;\n}\n.article-body th, .article-body td {\n  padding: 10px 14px;\n  text-align: left;\n  border-bottom: 1px solid var(--geist-border);\n}\n.article-body th {\n  background: var(--geist-surface-tint);\n  font-weight: 600;\n  color: var(--geist-foreground);\n}\n.article-body blockquote {\n  border-left: 2px solid var(--geist-foreground);\n  margin: 20px 0;\n  padding: 8px 18px;\n  color: var(--geist-secondary);\n  font-style: normal;\n}\n.article-body code {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13.5px;\n  box-shadow: var(--shadow-ring);\n  background: var(--geist-surface-tint);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n.article-body pre {\n  position: relative;\n  background: #000000;\n  color: #ededed;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 18px;\n  margin: 24px 0;\n  overflow-x: auto;\n}\n.article-body pre code {\n  background: transparent;\n  box-shadow: none;\n  padding: 0;\n  color: inherit;\n  font-size: 13px;\n}\n.copy-code-btn {\n  position: absolute;\n  top: 8px;\n  right: 10px;\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  background: #171717;\n  color: #ffffff;\n  border: 1px solid #333333;\n  padding: 3px 8px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n}\n\n/* 侧边大纲 (TOC) */\n.reading-sidebar {\n  position: sticky;\n  top: 80px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  max-height: calc(100vh - 100px);\n  overflow-y: auto;\n}\n.sidebar-toc-title {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  color: var(--geist-quaternary);\n  margin-bottom: 12px;\n}\n.reading-sidebar ul {\n  list-style: none;\n  padding-left: 0;\n  margin: 0;\n  font-size: 13px;\n}\n.reading-sidebar li {\n  margin: 6px 0;\n}\n.reading-sidebar ul ul {\n  padding-left: 14px;\n}\n.reading-sidebar a {\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.reading-sidebar a:hover, .reading-sidebar a.active {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 后台管理 (/admin) */\n.admin-card-container {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 32px;\n  margin-bottom: 32px;\n}\n.form-row-2 {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 16px;\n  margin-bottom: 16px;\n}\n@media (max-width: 600px) {\n  .form-row-2 { grid-template-columns: 1fr; }\n}\n.form-field {\n  display: flex;\n  flex-direction: column;\n  gap: 6px;\n  margin-bottom: 16px;\n}\n.form-field label {\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-foreground);\n}\n.form-field input, .form-field select, .form-field textarea {\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  padding: 9px 12px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  color: var(--geist-foreground);\n  outline: none;\n}\n.form-field input:focus, .form-field select:focus, .form-field textarea:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n\n/* 语法高亮 (Console Blue / Purple / Pink) */\n.codehilite .k, .codehilite .kd, .codehilite .kn { color: #eb367f; font-weight: 500; }\n.codehilite .s, .codehilite .s1, .codehilite .s2 { color: #0070f3; }\n.codehilite .nf, .codehilite .na { color: #7928ca; font-weight: 500; }\n.codehilite .c, .codehilite .c1 { color: #666666; font-style: italic; }\n.codehilite .mi, .codehilite .mf { color: #ff5b4f; }\n\n</style>\n\n</head>\n<body>\n\n    <nav class=\"vercel-nav\">\n      <div class=\"nav-brand\">\n        <a href=\"/\" style=\"display:flex;align-items:center;gap:10px;text-decoration:none\">\n          <svg class=\"vercel-triangle\" viewBox=\"0 0 76 65\" fill=\"none\">\n            <path d=\"M37.5274 0L75.0548 65H0L37.5274 0Z\" fill=\"currentColor\"/>\n          </svg>\n          <span class=\"nav-title\">Agent Harness KB</span>\n        </a>\n        <span class=\"nav-badge-pill\">Geist 2.0</span>\n      </div>\n\n      <div class=\"nav-links\">\n        <a class=\"nav-link \" href=\"/\">全景总览</a>\n        <a class=\"nav-link \" href=\"/vad\" style=\"color:var(--ship-red)\">🎯 VAD 专栏 (144)</a>\n        <a class=\"nav-link\" href=\"https://m0rtzz.github.io/paper-notes/\" target=\"_blank\" rel=\"noopener\">顶会 669 篇 ↗</a>\n        <a class=\"nav-link\" href=\"/download/all\">整库打包</a>\n        \n      </div>\n\n      <div class=\"nav-actions\">\n        \n        <button class=\"theme-toggle-btn\" id=\"theme-toggle-btn\" onclick=\"toggleTheme()\" title=\"切换亮暗主题\">🌙</button>\n      </div>\n    </nav>\n    \n<main class=\"vercel-container\">\n\n        <div class=\"report-header-card\">\n          <div class=\"crumb-bar\"><a href=\"/\">Home</a> / <b>fulltext.txt</b></div>\n          <h1 class=\"report-title\">fulltext.txt</h1>\n          <div class=\"report-action-buttons\">\n            <a class=\"btn-primary-dark\" href=\"?dl=1\">Download Text</a>\n          </div>\n        </div>\n        <article class=\"article-body\"><pre><code>EvoMemState: Evolving Memory State for Personal Agents\nZhishang Xiang1 * , Yunbo Tang1 * , Zhongqiao Liu2 , Junkai Chen1 , Zerui Chen1 ,\nQingguo Hu1 , Yuxuan Zhang3 , William Grant4 , Qinggang Zhang5† , Jinsong Su1†\n1\n2\nXiamen University\nNanyang Technological University\n3\n4\n5\nUniversity of British Columbia\nUniversity of Waterloo\nJilin University\n{xiangzhishang,tangyunbo}@stu.xmu.edu.cn\nqinggangzhang@jlu.edu.cn\njssu@xmu.edu.cn\nAbstract\n\nextended periods, requiring continuity across interactions and adaptation to evolving needs (Westhäußer et al., 2025; Zhang et al., 2025b; Hu et al.,\n2025; Feng et al., 2026). Long-term memory supports this continuity by preserving user preferences,\nexperiences, circumstances, and constraints across\nsessions (Li et al., 2026; Du et al., 2025; Ning et al.,\n2026; Yang et al., 2026a). This accumulated context provides a foundation for consistent and personalized assistance over time (Wang et al., 2026b;\nZhang et al., 2026b).\nRecent work has explored how to construct and\nmaintain long-term personal memory from interaction histories. MemoryBank (Zhong et al., 2024)\nsummarizes user experiences for subsequent retrieval, while MemGPT (Packer et al., 2023) manages memory across storage tiers. LightMem (Fang\net al., 2026) improves efficiency through compression and selective retrieval. Other systems emphasize memory organization and maintenance:\nMem0 (Chhikara et al., 2025) extracts and updates\natomic facts, A-MEM (Xu et al., 2026) dynamically associates related memories, and Supermemory (Supermemory AI, 2026) and SimpleMem (Liu\net al., 2026) support continual updates and memory\nlifecycle management. Together, these approaches\nenable personal agents to retain and access information across interactions through memory extraction,\norganization, updating, and retrieval.\nDespite this progress, existing memory systems\nlargely follow a fact-centric paradigm, focusing\non the storage, updating, and retrieval of factual\nrecords. However, the validity and scope of a\nstored fact may change as related memories accumulate, while its appropriate use depends on the\ncurrent request. Associating records or revising\ntheir contents alone may not adequately capture\nthese dependencies. When memories are maintained or retrieved separately, conflicts between\nthem may be overlooked, leaving individually accurate records without the context needed for correct\n\narXiv:2611.03743v1 [cs.IR] 2 Nov 2026\n\nLong-term memory enables large language\nmodel (LLM) agents to provide continuous personalized assistance by retaining user information across interactions. Existing systems support this process through fact extraction, organization, updating, and retrieval, but largely maintain memories as independent facts. This factcentric paradigm may overlook how new facts\nupdate, constrain, or conflict with earlier ones,\nwhile leaving their applicability, role, and priority for the current request implicit. In this paper,\nwe introduce EvoMemState, a state-centric\nframework that augments persistent facts with\ntwo complementary states: Relational States\nthat capture how facts remain valid and relate to\none another as memory evolves, and a Reasoning State that determines how these facts should\nbe applied to the current request. Specifically,\nE VO M EM S TATE consists of three key components: (i) Ontology-Guided Memory State Induction extracts Persistent Facts and constructs\nRelational States that maintain their validity,\nscope, and evolving relations. (ii) RL-Based\nState Evolution internalizes memory-use experience into a policy through reinforcement\nlearning to generate a request-specific Reasoning State. (iii) State-Aware Reasoning then\ncombines the relevant facts with their Relational States and the generated Reasoning State\nto guide the personal agent. Extensive experiments on long-term dialogue and memory-use\nbenchmarks demonstrate consistent improvements over existing memory systems in retrieval completeness and memory-grounded response accuracy. Our code and implementation\ndetails are available at https://github.com/\nXMUDeepLIT/EvoMemState.git.\n\n1\n\nIntroduction\n\nLarge language model (LLM) agents are increasingly used as personal agents that assist users over\n* Equal contribution.\n†\n\nCorresponding authors.\n\n1\n\n\f(a) Memory-centric\n\nDialogue\nhistory\n\nFactual\nMemories\n\n(b) State-centric\n\nRetrieved\nMemories\n\nPersonal\nagent\n\nResponse\n\nState\n\n+\nPersonal\nOntology\n\nResponse\n\nMemory = Fact + State\nFact\n\nDialogue\nhistory\n\nPersonal\nagent\n\nteractions and incrementally organizes them into a\npersonal memory ontology. It preserves the original facts while maintaining their validity, scope,\nand evolving relations as Relational States. Second,\nRL-Based State Evolution internalizes memoryuse experience into a policy through reinforcement\nlearning. The learned policy generates a requestspecific Reasoning State that specifies the applicability, role, and priority of relevant facts. Third,\nState-Aware Reasoning combines the relevant\nRelational States with the generated Reasoning\nState to guide the personal agent’s response. Together, these components connect fragmented facts\nthrough Relational States and combine them with a\nrequest-specific Reasoning State, enabling personal\nagents to interpret and use memory appropriately.\nOur contributions are summarized as follows:\n\nRelational Reasoning\nstate\nstate\n\nFigure 1: Memory-centric and state-centric paradigms.\nOur retrieval preserves updates and conflicts, while generated reasoning states specify memory applicability,\nrole, and priority for the current request.\n\ninterpretation. Even when all relevant memories\nare retrieved, the personal agent must still determine their applicability and priority for the current\nrequest and may rely on outdated information or\nmishandle conflicts. These limitations motivate a\nstate-centric paradigm that augments stored facts\nwith evolving memory states. A memory state describes the status of stored facts and their roles in\nan interaction, which cannot be determined from\nfactual content alone and must be considered in\nrelation to other memories and the current request.\nSuch states make the validity, scope, and relations\nof facts explicit and guide how retrieved memories\nshould be used for the current request.\nAugmenting personal memory with explicit\nstates presents two challenges: (i) It is challenging to construct and maintain coherent memory\nstates. Personal information accumulates across\nconversations as scattered and inconsistent observations. Simply collecting these observations leaves\ntheir relations implicit, while merging them into a\nsummary may lose historical information and hide\nconflicts between records. The challenge is to organize related facts and maintain their validity, scope,\nand relations as new information arrives, while preserving the original records. (ii) It is challenging\nto learn memory-use strategies from experience.\nThe same memory can serve different purposes\nacross requests, so its validity and relations alone\ndo not determine how it should affect the agent’s\nbehavior. This requires learning when memories\nshould inform, constrain, or have no bearing on\nthat behavior, using feedback from memory use to\nrefine these judgments.\nTo address these challenges, we introduce\nE VO M EM S TATE, a state-centric framework for\nmaintaining and using long-term personal memory. First, Ontology-Guided Memory State Induction extracts Persistent Facts from personal in-\n\n• We identify the limitations of fact-centric personal memory: individually maintained facts\nmay lack the relational context needed for interpretation, and complete retrieval does not\nensure appropriate memory use.\n• We introduce E VO M EM S TATE, a state-centric\nlong-term memory framework representing\npersonal memory through Persistent Facts,\nRelational States, and Reasoning State. It\nrealizes this formulation through OntologyGuided Memory State Induction, RL-Based\nState Evolution, and State-Aware Reasoning.\n• We evaluate E VO M EM S TATE on long-term dialogue and memory-use benchmarks, demonstrating consistent improvements over existing memory systems in retrieval completeness\nand memory-grounded response accuracy.\n\n2\n\nPreliminary Studies\n\nIn this section, we conduct two preliminary studies on the Valid Memory Selection subset of\nMemSyco-Bench (Xiang et al., 2026a), where correct answers require jointly considering memories\nlinked by updates, conflicts, or constraints. Our\nfindings reveal two limitations: related memories\nare not consistently retrieved together, leaving individual facts without the context needed for correct\ninterpretation; and even when all relevant memories are retrieved, personal agents may misjudge\ntheir applicability, roles, and priorities for the current request. A detailed case analysis is provided\nin Appendix B.5.\n2\n\n\fRetrieval share (%)\nMemGPT\n\n50.5\n\nLightMem\n61.8\n\n20\n\n40\n\n80\n\n70.8\n\n100\n\n0\n\n40\n\nRetrieved complete\n\n48.9\n\n55.5\n\n55.6\n\n70.4\n\n55.7\n\n40.1\n\nAMem\n\nLightMem\n\nMemZero\n\nMemGPT\n\nMemoryBank Supermemory\n\nw/ self-reflection\n\nMethod\n\nAs illustrated in Figure 4, EvoMemState organizes\npersonal memory around Persistent Facts and two\ncomplementary states. Ontology-Guided Memory State Induction extracts Persistent Facts from\naccumulated personal information and constructs\nRelational States that track their validity, scope,\nand evolving relations. RL-Based State Evolution\nlearns a Memory State Evolution Policy that generates a request-specific Reasoning State from relevant memory evidence. State-Aware Reasoning\nthen combines the Relational States and Reasoning\nState to guide the personal agent.\n\nFigure 2: Retrieval completeness and conditional answer accuracy on the Valid Memory Selection subset of\nMemSyco-Bench across evaluated systems.\n\nDo Fact-Centric Systems Capture\nRelations among Memories?\n\nTo examine whether fact-centric memory systems\ncapture relations among memories, we evaluate\nfive systems. As shown in Figure 2, MemoryBank,\nLightMem, and Supermemory do not retrieve all\nrelevant information in 58.9%, 61.8%, and 58.0%\nof cases, respectively. For four of the five systems,\nanswer accuracy is 5.9–33.3% higher when all required memories are retrieved than when some are\nmissing. These findings motivate explicit modeling\nof memory relations, so that individual facts can\nbe interpreted alongside the information affecting\ntheir validity and scope.\n2.2\n\n55.6\n\n80\n\nNeither retrieved\n\n2.1\n\n0.4\n\napplied and prioritized for each request.\n\n3\nRetrieved incomplete\n\n0.1\n\nFigure 3: Effect of fixed self-reflection on answer accuracy when complete memory evidence is available.\n\n58.7\n\n41.9\n60\n\n50.5\n40.9\n\n0.1\n\n70.8\n\nw/o self-reflection\n\n71.4\n\nSupermemory\n\n0\n\n1.6\n\n71.8\n\n38.1\n\n30.2\n\n58.0\n\n0\n\n44.6\n\n53.8\n\n0.4\n\n71.4\n\n20\n\n55.6\n\nMemZero\n43.3\n\n40\n\n23.4\n\n38.6\n\n0.8\n\n60\n\n55.6\n\nMemoryBank\n58.9\n\n80\n\n57.1\n\n87.0\n\n13.0\n\nAccuracy (%)\n\nConditional\nacc. (%)\n\n3.1\n\nSystem Concepts\n\nt\nLet Ft = {fi }N\ni=1 denote the Persistent Facts accumulated through turn t, and let qt denote the current\nrequest. We characterize personal memory using\ntwo complementary states; the complete formulation is provided in Appendix B.1.\nDefinition 1 (Relational States). Each fact fi is\nassociated with a Relational State:\n\nrit = (fi , ati , ρti ),\n\nCan Personal Agents Use Fully Retrieved\nMemories Appropriately?\n\nRt = {rit | fi ∈ Ft },\n\n(1)\n\nwhere ati specifies the current validity and scope\nof fi , and ρti records how it updates, conflicts with,\nor constrains other facts. Relational States persist\nacross requests and evolve as new conversations\nupdate the memory.\nDefinition 2 (Reasoning State). For request qt ,\nthe Reasoning State is inferred from the request,\nPersistent Facts, and their Relational States:\n\nTo examine whether personal agents use memories\nappropriately when all relevant memories are available, we compare direct reasoning with a fixed selfreflection that asks the agent to reconsider memories before responding. As shown in Figure 3,\nself-reflection reduces accuracy for most systems,\nwith the largest drop of 1.6% on Mem0, and lowers\naverage accuracy from 50.5% to 48.9%. These results show that access to all relevant memories does\nnot ensure appropriate use, and the fixed reflection\nprompt offers no consistent improvement. This\nmotivates learning memory-use strategies from experience to determine how memories should be\n\nZqt = Ψ(qt , Ft , Rt ),\n\n(2)\n\nwhere Zqt specifies the applicability, role, and priority of memory evidence. The resulting Memory\nState is St (qt ) = (Rt , Zqt ): Relational States represent whether facts remain valid and how they are\n3\n\n\fOverall Pipeline\n\nRetrieval Seed Memories\n\nDialogue H\n\nOntology Graph\n\nMemory State Evolution Policy\n\nInitial State\n\nReasoning State\n\nTravel\nM2\n\nM1\n\n(b) RL-Based State Evolution\n\n(a) Ontology Guided Memory\nState Induction\n“I usually prefer hiking when I …”\n\n2025-11-19\n\n“I’d like to beach trips because …”\n\n2026-06-23\n\nReward\nComputation\n\nGRPO Update\n\nCompute 𝑅!\n\nCompute 𝐴!\n\nl M1: historical context\nl M2: current preference\nl ……\n\n(c) State-Aware Reasoning\n\n“Where should I vacation, and what is my budget?”\n\n“Where should I vacation, and what is my budget?”\n\nMemory Evidence 𝑬𝒒\n\nM1: hiking\nExtract\natomic\nmemories\n\nM1: hiking\npreference\n\nOntology memory graph\n\nTravel\n\nMemory State Evolution Policy\n\nM2: beach\npreference\n\nOrganize &amp; Link\n\nPARENT_OF\n\nPARENT_OF\n\nPreferences\n\nBudget\n\nCONTAINS\n\nM1:hiking\n\nSUPERSEDEDS\n\nhistorical\n\nM2:beach\n\nM3:$500\n\ncurrent\n\nhistorical\n\nCONFLICT\nWITH\n\nM4:$900\ncurrent\n\nMemory metadata\n\nType\nScope\n\nSource\nValidity\n\nM1:hiking\n\nTimeStamp\nRelation\n\n𝑬𝒒\n\nSUPERSEDEDS\n\nCONTAINS\n\nM2:beach\n\nM3:$500\n\ncurrent\n\nhistorical\n\nhistorical\n\nQ\n\n𝑈𝒒\n\n𝑬𝒒\n\nWith Rule\n\n𝒚𝒘\n𝒊\n\n𝑈𝟏\n…\n\nPreferences\nPerformance\nGain\n\n𝑈𝑮\n\nM4:$900\ncurrent\n\n(seed)\n\nM1:hiking\n\nSUPERSEDEDS\n\nhistorical\n\nM2:beach\ncurrent\n\nRelational State\n\nBudget\n\nWithout Rule\n\n𝑅\" = 𝑆𝑐𝑜𝑟𝑒 𝑦\"# , 𝑦 ∗ − 𝑆𝑐𝑜𝑟𝑒(𝑦\"#% , 𝑦 ∗ )\n\n(seed)\n\nCONFLICT\nWITH\n\nRelational State\n\nInternalizing memory application experience\nMemory State\nEvolution Policy\n\nBudget\n\nPreferences\nCONTAINS\n\nGuidance: preference priority\n\nFrozen Personal Agent\n\nQ\n\nMemory Node\n\nConcept Node\n\nTrainable\n\n𝑬𝒒\n\n“Choose a beach trip.\nPlan around $500 for a\nshort gateway.”\n\nCONTAINS\n\nReasoning State\nl M1: historical context\nl M2: current preference\nl M3/M4: unresolved\nbudget but $900 is\ncurrent preference\n\nQuestion\n\nM3: $500\n\nM3:$500\nhistorical\n\nCONFLICT\nWITH\n\n𝒚𝒘𝒐\n𝒊\n\nReaoning State\n\nGRPO\n\n+\n\nM4:$900\ncurrent\n\nNew Memory + Old\nMemory + Directed\nUpdate\n\nNew Memory + Old\nMemory +\nUnresolved Relation\nresponse\n\nFigure 4: Overview of EvoMemState for personal agents. Ontology-guided induction transforms accumulated\npersonal information into Persistent Facts and Relational States. RL-based state evolution learns a Memory State\nEvolution Policy from memory-use experience and generates a request-specific Reasoning State. State-Aware\nReasoning combines the Relational States and Reasoning State to guide the personal agent’s response.\n\nrelated, while the Reasoning State determines how\nthey should be used for the current request.\n3.2\n\nwhere\n\u0010\n\u0011\n(i)\n(i)\n(i)\n(i)\nG (i) = VC ∪ VF , EH ∪ ER .\n\nOntology-Guided State Induction\n\n(i)\n\n(i)\n\nHere, VC and VF denote the concept and fact\nnodes after incorporating fi . The structural edges\n(i)\nEH use PARENT_OF to organize concept nodes hierarchically and CONTAINS to attach each fact to\nits most specific concept. The CREATE, MERGE,\nand SPLIT operations revise the concept hierarchy as new facts are added. The relation edges\n(i)\nER use SUPERSEDES to represent updates and\nCONFLICTS_WITH to preserve unresolved conflicts.\n\nPersistent Facts alone are insufficient to construct\na memory state because their current meaning depends on their validity, scope, and relations to other\nfacts. Therefore, we construct a personal memory ontology incrementally and induce Relational\nStates from its evolving structure. Persistent Facts\nretain the original information, while their Relational States are updated as new facts are added.\nThe resulting ontology and Relational States form\nthe persistent personal memory.\n\nOntology-induced Relational States. The Relation State of each fact is derived from its current\nattributes and ontology relations. After incorporating the first i facts, we define\n\nIterative ontology construction. Given the conversations accumulated through turn t, denoted\nby Ht , we extract a time-ordered set of Persistent\nFacts:\nFt = {f1 , . . . , fNt } .\n\n(5)\n\nn\n\u0010\n\u0011\no\n(i)\n(i)\n(i)\n(i)\nR(i) = rf = f, af , ρf\nf ∈ VF ,\n\n(3)\n\n(6)\n\n(i)\n\nEach fi contains a single proposition about a user\npreference, experience, belief, circumstance, or\nconstraint, together with its source and time. Starting from an empty ontology G (0) , we incorporate\neach fact in temporal order:\n\nwhere af describes the current validity and scope\n\n\u0010\n\u0011\nG (i) = Induce G (i−1) , fi ,\n\nRt = R(Nt ) .\n\n(i)\n\nof f , and ρf contains its concept attachment and\nrelations to other facts. Later facts may update\nthese attributes and relations without overwriting f .\nAfter all facts have been incorporated, we obtain\n\n(4)\n\n4\n\n(7)\n\n\fThe Persistent Facts Ft and Relational States Rt\nare retained as personal memory and provide the\npersistent inputs for inferring a Reasoning State for\neach new user request.\n3.3\n\npolicy update:\nTi\nG\n\u0010\n1 X 1 X\nbi ,\nmin ρi,j A\nG i=1 Ti j=1\n\u0011\nbi\nclip (ρi,j , 1 − ϵ, 1 + ϵ) A\n\nLGRPO (θ) = −\n\nRL-Based State Evolution\n\n+ βKL DKL (πθ ∥ πref ) .\n\nRelational States capture how facts currently hold\nand relate, but do not specify how a personal agent\nshould use them for a particular request. We therefore treat state evolution as the internalization of\nreusable memory-use experience and instantiate\nthe state inference function Ψ with a Memory State\nEvolution Policy πθ . Given request q, relevant Persistent Facts Fq , and their Relational States Rq , the\npolicy generates a Reasoning State:\nZq ∼ πθ (· | q, Fq , Rq ) .\n\n(i)\n\nHere, Ti is the length of candidate Zq , ρi,j is\nthe token-level probability ratio between πθ and\nπθold , ϵ is the clipping threshold, and βKL controls regularization toward the reference policy\nπref . Through repeated optimization, πθ internalizes memory-use patterns that generalize to new\nfacts and requests. Training details are provided in\nAppendix B.3.\n3.4\n\n(8)\n\nEvaluating candidate Reasoning States. A Reasoning State is useful only if it helps the personal\nagent use the given memory evidence correctly. Let\n(9)\n\nFq =\n\ndenote the relevant memory evidence for request\n(i)\nq. Given a candidate Reasoning State Zq , we\nevaluate its effect on a frozen personal agent A\nrelative to a baseline that receives the same memory\nevidence without a Reasoning State:\n\u0010 \u0010\n\u0011\n\u0011\nRi = Score A q, Mq , Zq(i) , y ∗\n− Score (A (q, Mq ) , y ∗ ) ,\n\nTraverse (f, Rt ) .\n\n(13)\n\nHere, Traverse(f, Rt ) includes f and all facts\nconnected to it through memory relations. Facts\nreached from multiple seeds are included only once.\nWe denote the Relational States corresponding to\neq.\nFq as R\nThe learned policy generates a Reasoning State\nfrom the request, retrieved facts, and their Relational States. The personal agent then produces its\nresponse using both states:\n\n(10)\n\n\u0010\n\u0011\neq ,\nZq = πθ q, Fq , R\n\u0010\n\u0011\ne q , Zq .\ny = A q, Fq , R\n\n(14)\n\nTogether, relation traversal preserves the context\nneeded to interpret the retrieved facts, while the\nReasoning State specifies how the personal agent\nshould use them for the current request.\n\nLearning the state evolution policy. We optimize πθ using GRPO (Shao et al., 2024). For each\ntraining instance (q, Mq , y ∗ ), we sample G candidate Reasoning States from the previous policy:\ni = 1, . . . , G.\n\n[\nf ∈Retrievesim (q,Ft ,K)\n\nwhere y ∗ is the reference answer and Score is the\ntask-specific evaluator. A positive reward indicates\nthat the candidate improves how the personal agent\nuses the fixed memory evidence, whereas a negative reward penalizes candidates that distort or\nweaken that evidence.\n\nZq(i) ∼ πθold (· | q, Fq , Rq ) ,\n\nState-Aware Reasoning\n\nAt inference, State-Aware Reasoning retrieves the\nPersistent Facts and Relational States required by\nthe current request, generates a Reasoning State,\nand grounds the personal agent in both states.\nGiven a request q, we retrieve K semantically\nsimilar Persistent Facts as seeds. Because a seed\nmay be updated, constrained, or contradicted by\nother facts, we expand it by traversing the stored\nmemory relations in both directions:\n\nWe train πθ by repeatedly generating and evaluating\ncandidate Reasoning States, allowing the policy to\nlearn reusable patterns of memory use.\n\nMq = (Fq , Rq )\n\n(12)\n\n4\n\nExperiment\n\nIn this section, we evaluate how EvoMemState constructs and applies memory states through the following four research questions. Q1 (Main Results): How does EvoMemState compare with\n\n(11)\n\nTheir relative rewards are normalized within the\nbi , which guide the\ngroup to obtain advantages A\n5\n\n\fMemory\nSystem\n\nMemSyco-Bench\nWTU WTU\nHTU\nAcc. ↑ Syco. ↓ Acc. ↑\n\nHTU\nUse ↑\n\nLoCoMoRefined\n\nMemTrapBench\n\nLoCoMo\n\nOverall\nAvg. ↑\n\nSafety CogBias Bound. Trauma\nJudge Token Judge Token\nAvg. ↑ Score ↑ Acc. ↑ Acc. ↑ Acc. ↑ Avg. ↑ Score ↑ F1 ↑ Score ↑ F1 ↑\n\nQwen3-8B\nNaiveRAG (Lewis et al., 2020)\nMemGPT (Packer et al., 2023)\nMemoryBank (Zhong et al., 2024)\nMem0 (Chhikara et al., 2025)\nA-MEM (Xu et al., 2026)\nLightMem (Fang et al., 2026)\nSupermemory (Supermemory AI, 2026)\nSimpleMem (Liu et al., 2026)\nPGMem (Choi et al., 2026)\nEvoMemState (Ours)\n\n36.3\n29.0\n37.5\n25.9\n42.8\n21.0\n23.3\n33.4\n33.2\n47.7\n\n55.3\n66.7\n57.6\n47.8\n49.1\n49.6\n70.5\n58.6\n62.8\n38.0\n\n51.6\n54.0\n54.4\n52.0\n49.2\n46.1\n63.7\n44.1\n54.5\n72.4\n\n64.0\n67.0\n67.1\n63.8\n61.2\n58.7\n74.2\n52.6\n69.1\n81.3\n\n42.4\n39.0\n44.2\n36.3\n45.4\n31.0\n39.5\n37.7\n41.8\n57.6\n\n60.2\n62.2\n64.9\n56.8\n64.2\n68.6\n67.5\n70.9\n71.0\n73.8\n\n63.9\n66.0\n63.7\n69.3\n65.0\n69.9\n65.4\n68.3\n66.4\n62.3\n\n77.0\n64.5\n72.1\n81.9\n77.6\n88.6\n79.6\n84.6\n85.1\n88.8\n\n93.4\n52.4\n82.3\n85.5\n91.8\n91.6\n61.7\n95.8\n75.6\n91.4\n\n73.6\n61.3\n70.7\n73.4\n74.6\n79.7\n68.6\n79.9\n74.5\n79.1\n\n39.0\n45.7\n44.9\n25.7\n41.8\n25.3\n16.6\n51.3\n28.5\n57.4\n\n38.4\n40.0\n44.0\n26.9\n39.1\n27.2\n17.5\n46.6\n26.9\n47.3\n\n34.4\n36.8\n39.9\n21.4\n36.4\n22.1\n15.7\n45.3\n25.4\n45.5\n\n35.8\n37.0\n41.0\n23.8\n37.1\n24.0\n15.8\n46.4\n25.2\n41.6\n\n47.4\n45.7\n49.9\n39.2\n49.6\n39.5\n35.1\n53.6\n42.6\n59.9\n\n58.6\n60.7\n59.8\n61.7\n59.6\n63.8\n58.8\n64.6\n60.9\n73.9\n\n65.0\n69.9\n73.4\n74.1\n69.3\n80.8\n74.2\n72.7\n81.1\n88.8\n\n97.4\n62.3\n90.5\n93.5\n95.8\n95.2\n76.4\n97.3\n83.1\n90.4\n\n70.7\n64.8\n72.5\n71.4\n71.9\n77.5\n69.2\n76.1\n74.7\n78.7\n\n43.2\n49.1\n52.8\n28.9\n49.1\n24.2\n15.8\n53.8\n19.8\n60.8\n\n39.1\n39.5\n46.6\n27.2\n42.7\n26.9\n16.0\n48.0\n18.9\n48.5\n\n34.4\n40.2\n42.7\n21.6\n39.4\n21.8\n14.9\n47.2\n16.7\n46.4\n\n36.9\n39.1\n45.3\n25.2\n41.9\n25.1\n14.8\n48.4\n17.6\n45.2\n\n49.3\n50.3\n54.2\n40.4\n53.4\n39.3\n35.5\n52.8\n39.1\n61.2\n\nGPT-4o-mini\nNaiveRAG (Lewis et al., 2020)\nMemGPT (Packer et al., 2023)\nMemoryBank (Zhong et al., 2024)\nMem0 (Chhikara et al., 2025)\nA-MEM (Xu et al., 2026)\nLightMem (Fang et al., 2026)\nSupermemory (Supermemory AI, 2026)\nSimpleMem (Liu et al., 2026)\nPGMem (Choi et al., 2026)\nEvoMemState (Ours)\n\n48.3\n40.8\n48.9\n32.7\n54.5\n25.0\n35.0\n25.0\n39.6\n53.1\n\n42.8\n48.0\n42.2\n38.4\n35.7\n42.9\n56.3\n63.2\n54.4\n31.9\n\n49.2\n56.2\n48.3\n50.3\n50.9\n46.9\n52.9\n47.6\n53.7\n67.6\n\n61.1\n66.0\n62.3\n63.3\n63.1\n60.4\n65.9\n60.7\n66.3\n80.1\n\n48.7\n46.9\n48.7\n39.7\n53.0\n33.8\n42.2\n34.0\n45.2\n58.9\n\n61.7\n66.4\n66.4\n56.4\n63.1\n70.2\n67.4\n69.7\n73.9\n73.9\n\nTable 1: Main results on four benchmarks with Qwen3-8B and GPT-4o-mini. ↑ and ↓ denote metrics to maximize\nand minimize, respectively. Bold and underlined values denote the best and second best results for each backbone.\nWTU/HTU: When/How to Use memory; Syco.: sycophancy rate; Use: correct use.\n\nexisting memory systems? Q2 (Memory State\nEffectiveness): How effectively do the relational\nstate and reasoning state support reliable memory\nuse? Q3 (Reasoning State Generalization): How\nwell does reasoning state generation transfer across\ntasks and memory systems? Q4 (Ablation Study):\nHow does each component affect overall performance? Appendix C provides a case study and\nefficiency analysis.\n4.1\n\nNaiveRAG (Lewis et al., 2020), MemGPT (Packer\net al., 2023), MemoryBank (Zhong et al., 2024),\nMem0 (Chhikara et al., 2025), LightMem (Fang\net al., 2026), A-MEM (Xu et al., 2026), Supermemory (Supermemory AI, 2026), SimpleMem (Liu\net al., 2026), and PGMem (Choi et al., 2026). Details are provided in Appendix D.3.\nEvaluation Metrics. We evaluate answer quality,\nmemory use, and retrieval completeness. Answer\nquality is measured by accuracy, F1, and MemTrapBench judge scores. Following MemSycoBench (Xiang et al., 2026a), we use Syco. Rate to\nmeasure inappropriate reliance on historical memories and Correct Use to measure valid personalization. Retrieval is evaluated by Complete Retrieval\nRate and answer accuracy on complete-retrieval\ncases (Acc@complete). Full definitions are provided in Appendix D.4.\n\nExperimental Setup\n\nDatasets. We evaluate on four benchmarks covering memory use in personal agents and long term\nconversational memory. MemSyco-Bench (Xiang\net al., 2026a) and MemTrapBench (Wang et al.,\n2026a) assess personal agents’ use of historical\nmemories, including preference updates, evidence\npriority, and effects on reasoning. LoCoMo (Maharana et al., 2024) and LoCoMo-Refined1 evaluate recall and reasoning across dialogue sessions.\nDataset details appear in Appendix D.2.\n\nImplementation Details. We use DeepSeek-V4Flash for offline memory construction and Qwen38B (Yang et al., 2025) and GPT-4o-mini as online response models. By default, the Memory\nState Evolution Policy is initialized from Qwen34B-Instruct-2507 (Yang et al., 2025) and trained\nwith GRPO (Shao et al., 2024). Dataset construction, training details, and prompts are provided in\n\nBaselines. We compare EvoMemState with\nnine baselines covering retrieval, persistent\nmemory, and structured memory organization:\n1\n\nhttps://github.com/mem-eval-suite/LoCoMo_\nrefined\n\n6\n\n\fPercentage (%)\n\n100\n\n60\n40\n\n86.4\n\n79.6\n\n80 75.4\n\n66.9\n57.6\n\n51.5\n34.8\n\n52.5\n\n51.7\n\n51.6\n33.7\n\n37.3\n\n70.8\n\n59.3\n\n40.6\n\n54.8\n32.3\n\n36.8\n\n22.6\n\n20\n0\n\n85.6\n\nNaiveRAG\n\nMem0\n\nA-MEM\n\nLightMem\n\nComplete Retrieval Rate\n\nMemGPT\nAcc@complete\nLoCoMo-Refined\n\nMemoryBank\n\n44.3\n\n68.5\n\n51.75\n33.3\n\n30.9\n\nSupermemory\n\n38.5\n\n31.8\n\nPGMEM\n\nEvoMemState\n(Ours)\n\nAcc@complete\nMemSyco\n\nFigure 5: Complete retrieval rate and accuracy on questions with complete evidence using Qwen3-8B. Average\ncomplete retrieval rate reports the percentage of questions with all required evidence retrieved. Acc@complete\nreports accuracy on LoCoMo-Refined and MemSyco-Bench for questions with all required evidence retrieved.\n\nAppendices D.2, B.3, and E.\n4.2\n\nconsidered jointly because complete-evidence subsets differ across systems.\nObs.3. The Relational State connects related\nmemories into reliable evidence. EvoMemState\nachieves a complete retrieval rate of 85.6%, comparable to the best baseline. Guided by the personal\nmemory ontology, its Relational State preserves\neach fact’s current attributes together with related\nupdates, conflicts, and constraints. This organization allows related memories to provide complete\nevidence rather than remain independent records.\nObs.4. The Reasoning State supports reliable use of complete evidence. Acccomplete\nreaches 70.8% on LoCoMo-Refined and 68.5% on\nMemSyco-Bench, exceeding the strongest baselines by 11.5% and 31.2%, respectively. These\ngains show that evidence completeness alone does\nnot ensure correct use. By internalizing memoryuse experience, the learned policy generates a Reasoning State that makes the applicability, role, and\npriority of each memory explicit, helping the response model apply the assembled evidence appropriately and consistently.\n\nMain Results (Q1)\n\nWe compare EvoMemState with memory systems\nusing Qwen3-8B and GPT-4o-mini. Table 1 reports\nresults on MemSyco-Bench and MemTrapBench\nfor memory use, and on LoCoMo and LoCoMoRefined for long-term memory reasoning.\nObs.1. EvoMemState improves when and how\nmemory is used. On MemSyco-Bench, EvoMemState achieves accuracies of 57.6% and 58.9% with\nQwen3-8B and GPT-4o-mini, outperforming the\nstrongest baselines by 12.2% and 5.9%, respectively. It achieves the best When to Use and How\nto Use accuracy, the lowest Syco. Rate, and the\nhighest Correct Use with Qwen3-8B. These results\nshow more reliable decisions about whether and\nhow history should affect the current response.\nObs.2. EvoMemState supports long-term recall\nand task-appropriate reasoning. On LoCoMoRefined, EvoMemState achieves the highest LLMjudge and token F1 scores with both models, outperforming the strongest baseline in judge score by\n6.1% and 7.0%. It also achieves the best Safety and\nTask Boundary scores on MemTrapBench, showing\nthat factual records support recall while reasoning\nstates prevent irrelevant history and prior task rules\nfrom overriding the current request.\n4.3\n\n4.4\n\nReasoning-State Generalization (Q3)\n\nTo evaluate whether reasoning-state generation generalizes across tasks and memory systems, we pair\nthe Memory State Evolution Policy with different\nmemory systems on the benchmarks. Figure 6\nreports cross-system performance changes, while\nAppendix C.1 compares alternative reasoning-state\nstrategies across memory-use categories.\nObs.5. Reasoning states transfer across memory systems. All six baselines improve when augmented with generated reasoning states, with overall gains ranging from 0.2% to 4.9%. NaiveRAG\n\nMemory-State Effectiveness (Q2)\n\nTo assess the two memory states, we examine\nwhether the Relational State assembles complete\nevidence and whether the Reasoning State uses\nit correctly. Figure 5 reports Complete Retrieval\nRate and Acc@complete on LoCoMo-Refined and\nMemSyco-Bench with Qwen3-8B; the metrics are\n7\n\n\fΔ (pp)\n\nMemSyco LoCoMo-R LoCoMo MemTrap\nAvg.\nLLM-J.\nLLM-J.\nAvg.\nOverall\n\nMethod\nEvoMemState (Ours)\nw/o Relational State\nw/o Reasoning State\nw/o RL-Based State Evolution\n\n57.6\n48.7\n49.6\n49.7\n\n57.4\n54.9\n55.8\n55.4\n\n45.5\n45.2\n42.5\n45.0\n\n79.1\n72.7\n64.1\n62.7\n\nNaiveRAG\n\n59.9\n55.4\n53.0\n53.2\n\nMem0\nA-MEM\n\nTable 2: Ablation results for EvoMemState with Qwen38B. The variants remove Relational State, Reasoning\nState or RL-Based State Evolution.\n\nMemoryBank\nMemGPT\nLightMem\n\nand MemoryBank benefit most, improving by 4.9%\nand 4.8%, followed by A-MEM at 3.4%. These\nresults show that the policy can produce useful reasoning states from evidence supplied by different\nmemory systems.\n4.5\n\n0\n\nBase\n\nTo examine the contribution of state composition\nand learned memory use (Q4), Table 2 compares\nthree variants with Qwen3-8B. w/o Relational\nState uses retrieved seed records without incorporating related updates and conflicts into the state\nevidence. w/o Reasoning State provides the personal agent with state evidence but omits the policygenerated reasoning state. w/o RL-Based State\nEvolution retains reasoning-state generation but\nuses the policy before RL training.\nObs.6. Composing related records strengthens state evidence. Removing relational state reduces MemSyco-Bench and the MemTrapBench\nscore by 8.9% and 6.4%, respectively. The losses\non LoCoMo-Refined and LoCoMo are smaller, at\n2.5% and 0.3%. These larger losses on memoryuse tasks suggest that related updates and conflicts\nare particularly valuable for interpreting retrieved\nrecords before applying them to the response.\nObs.7. RL-based state evolution improves\nreasoning states. Removing dynamic rules reduces MemSyco-Bench accuracy and the MemTrapBench score by 8.0% and 15.0%, respectively.\nRetaining rule generation without RL yields similar\nlosses of 7.9% and 16.4%. Thus, generating rules\nalone provides little benefit on these benchmarks.\nThese results support learning from memory application experience: answer-quality feedback helps\nthe policy determine memory applicability, role,\nand priority, expressed as dynamic rules for each\nnew user request.\n\nRelated Work\n\n5.1\n\nPersonal Agents and User Modeling\n\n20\n\n40\n\n60\n\nScore (%)\n\n4.9\n2.2\n3.4\n4.8\n0.7\n0.2\n80\n\n+ Reasoning State\n\nFigure 6: Cross-system transfer of the Memory State\nEvolution Policy, averaged over MemSyco-Bench,\nMemTrapBench, and LoCoMo-Refined. Base and +Reasoning State denote results without and with generated\nreasoning states; ∆ is the gain.\n\nAblation Study (Q4)\n\n5\n\n51.7\n56.5\n45.1\n47.4\n53.9\n57.3\n53.3\n58.0\n48.6\n49.3\n45.3\n45.5\n\nLaMP (Salemi et al., 2024) retrieves relevant\nprofile items for personalized generation, while\nHELLO and related methods maintain and update\nuser representations over time (Li et al., 2025; Tan\net al., 2025a; Kang et al., 2025). PGMem (Choi\net al., 2026) links persona information to events\nthat support or revise it. Recent work further extends personalization to Web actions and agent\ntraining (Cai et al., 2025; Sun et al., 2025). Together, these studies cover persistent personalization across generation, user representation, and\nagent behavior.\n5.2\n\nLong-Term Memory Systems\n\nLong-term memory systems preserve information\nbeyond the active context for later use (Ning\net al., 2026; Xiao et al., 2026). MemGPT (Packer\net al., 2023) manages information across storage\ntiers, MemoryBank (Zhong et al., 2024) maintains personal records, LightMem (Fang et al.,\n2026) uses compression and selective retrieval, and\nMem0 (Chhikara et al., 2025) extracts and updates\nfacts. A-MEM (Xu et al., 2026), Supermemory (Supermemory AI, 2026), and SimpleMem (Liu et al.,\n2026) further organize memories through links,\ntemporal structure (Rasmussen et al., 2025), and\nupdate mechanisms.\n\n6\n\nConclusion\n\nIn this paper, we presented EvoMemState, a statecentric long-term memory framework for personal\nagents that constructs coherent Relation States\nfrom multi-source memories and learns from con-\n\nPersonal agents use persistent user information\nto adapt across interactions (Li et al., 2026).\n8\n\n\ftinual memory use to generate Reasoning States.\nExperiments across memory-use and dialoguerecall benchmarks show consistent improvements,\nparticularly under preference updates and conflicting evidence, demonstrating that reliable personal\nmemory requires both coherent state construction\nand use-driven state evolution.\n\nPrateek Chhikara, Dev Khant, Saket Aryan, Taranjeet\nSingh, and Deshraj Yadav. 2025. Mem0: Building\nproduction-ready ai agents with scalable long-term\nmemory. arXiv preprint arXiv:2504.19413.\n\nLimitation\n\nYiming Du, Wenyu Huang, Danna Zheng, Zhaowei\nWang, Sebastien Montella, Mirella Lapata, Kam-Fai\nWong, and Jeff Z Pan. 2025. Rethinking memory in\nllm based agents: Representations, operations, and\nemerging topics. arXiv preprint arXiv:2505.00675.\n\nWonjun Choi, Yerim Kim, Yukyung Lee, and Susik\nYoon. 2026. Pgmem: Tightly coupled personamemory graph for lifelong personalized agents.\narXiv preprint arXiv:2608.01708.\n\nOur study focuses on text-based interaction histories. Real-world personal memory systems must\nalso handle multimodal information, including documents, images, and other user artifacts. Extending\nour memory structure to represent, connect, and\napply information across modalities remains an\nimportant direction for future work.\n\nShahul Es, Jithin James, Luis Espinosa Anke, and\nSteven Schockaert. 2024. Ragas: Automated evaluation of retrieval augmented generation. In Proceedings of the 18th conference of the european chapter of\nthe association for computational linguistics: system\ndemonstrations, pages 150–158.\n\nUse of Large Language Models\nJizhan Fang, Xinle Deng, Haoming Xu, Ziyan Jiang,\nYuqi Tang, Ziwen Xu, Shumin Deng, Yunzhi Yao,\nMengru Wang, Shuofei Qiao, et al. 2026. Lightmem:\nLightweight and efficient memory-augmented generation. In International Conference on Learning\nRepresentations, volume 2026, pages 98706–98729.\n\nDuring manuscript preparation, we used large language models to refine the English text, correct\ngrammatical errors, and improve clarity and readability. We also used them to assist with table formatting. The authors reviewed and revised all suggestions to ensure that they preserved the intended\nscientific content and retain full responsibility for\nthe accuracy and integrity of the final manuscript.\n\nYuyuan Feng, Zhishang Xiang, Chaobin Yang, Qichao\nMa, Zerui Chen, Yujing Zhang, Ke Huang, Chuanjie\nWu, Zhaoxu Liu, Yili Wang, et al. 2026. Graph\nengineering in the era of llm agents: From individual\nintelligence to system intelligence. arXiv preprint\narXiv:2608.21156.\n\nReferences\n\nTianyu Gao, Howard Yen, Jiatong Yu, and Danqi Chen.\n2023. Enabling large language models to generate\ntext with citations. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language\nProcessing, pages 6465–6488.\n\nHengyu An, Minxi Li, Naen Xu, Chunyi Zhou, Xiaogang Xu, Tianyu Du, Jinbao Li, and Shouling Ji.\n2026. PerMemSafe: Benchmarking implicit personalized safety of long horizon self-evolving agents. In\nFindings of the Association for Computational Linguistics: ACL 2026, pages 6415–6433. Association\nfor Computational Linguistics.\n\nBernal J Gutiérrez, Yiheng Shu, Yu Gu, Michihiro Yasunaga, and Yu Su. 2024. Hipporag: Neurobiologically inspired long-term memory for large language\nmodels. Advances in neural information processing\nsystems, 37:59532–59569.\n\nHongru Cai, Yongqi Li, Wenjie Wang, Fengbin Zhu,\nXiaoyu Shen, Wenjie Li, and Tat-Seng Chua. 2025.\nLarge language models empowered personalized web\nagents. In Proceedings of the ACM on Web Conference 2025, pages 198–215.\n\nHakeem Hannoon, Andrew Zhao, Mihir Narayan,\nSharvin Goyal, and Ivaxi Sheth. 2026. Mitigating\nover-personalization in llms via structured memory.\narXiv preprint arXiv:2608.08300.\n\nYishuo Cai, Xingyu Guo, Xuancheng Huang, Jinhua Du,\nCan Huang, Wenxuan Huang, Wenhan Ma, Yuyang\nHu, Aohan Zeng, Jie Tang, et al. 2026. From player\nto master: Enhancing test-time learning of llm agents\nvia reinforcement learning over memory. arXiv\npreprint arXiv:2606.08656.\n\nYulin Hu, Zimo Long, Jiahe Guo, Xingyu Sui,\nXing Fu, Weixiang Zhao, Yanyan Zhao, and\nBing Qin. 2026.\nOp-bench: Benchmarking\nover-personalization for memory-augmented personalized conversational agents. arXiv preprint\narXiv:2601.13722.\n\nDing Chen, Simin Niu, Kehang Li, Peng Liu, Xiangping Zheng, Bo Tang, Xinchi Li, Feiyu Xiong, and\nZhiyu Li. 2025. HaluMem: Evaluating hallucinations in memory systems of agents. arXiv preprint\narXiv:2511.03506.\n\nYuyang Hu, Shichun Liu, Yanwei Yue, Guibin Zhang,\nBoyang Liu, Fangyi Zhu, Jiahang Lin, Honglin Guo,\nShihan Dou, Zhiheng Xi, et al. 2025. Memory in the\nage of ai agents. arXiv preprint arXiv:2512.13564.\n\n9\n\n\fZhaopei Huang, Qifeng Dai, Guozheng Wu, Xiaopeng\nWu, Xubin Li, Tiezheng Ge, Wenxuan Wang, and\nQin Jin. 2026. Mem-pal: Towards memory-based\npersonalized dialogue assistants for long-term useragent interaction. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages\n31229–31237.\n\nRuqing Ning, Haibo Meng, Zhishang Xiang, Zerui\nChen, Jinsong Su, Xin Wang, and Qinggang Zhang.\n2026. Memadapter: Counterfactual adaptation\nagainst memory-induced sycophancy. arXiv preprint\narXiv:2610.05162.\nCharles Packer, Sarah Wooders, Kevin Lin, Vivian Fang,\nShishir G Patil, Ion Stoica, and Joseph E Gonzalez.\n2023. Memgpt: Towards llms as operating systems.\narXiv preprint arXiv:2310.08560.\n\nBowen Jiang, Zhuoqun Hao, Young-Min Cho, Bryan\nLi, Yuan Yuan, Sihao Chen, Lyle Ungar, Camillo J\nTaylor, and Dan Roth. 2025. Know me, respond to\nme: Benchmarking llms for dynamic user profiling\nand personalized responses at scale. arXiv preprint\narXiv:2504.14225.\n\nSidharth Pulipaka, Oliver Chen, Manas Sharma, Taaha S\nBajwa, Vyas Raina, and Ivaxi Sheth. 2026. Persistbench: When should long-term memories be forgotten by llms? arXiv preprint arXiv:2602.01146.\n\nJiazheng Kang, Mingming Ji, Zhe Zhao, and Ting Bai.\n2025. Memory os of ai agent. In Proceedings of the\n2025 Conference on Empirical Methods in Natural\nLanguage Processing, pages 25972–25981.\n\nPranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and\nPercy Liang. 2016. Squad: 100,000+ questions for\nmachine comprehension of text. In Proceedings of\nthe 2016 conference on empirical methods in natural\nlanguage processing, pages 2383–2392.\n\nPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio\nPetroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. 2020. Retrieval-augmented generation\nfor knowledge-intensive nlp tasks. Advances in neural information processing systems, 33:9459–9474.\n\nPreston Rasmussen, Pavlo Paliychuk, Travis Beauvais,\nJack Ryan, and Daniel Chalef. 2025. Zep: a temporal knowledge graph architecture for agent memory.\narXiv preprint arXiv:2501.13956.\nAlireza Salemi, Sheshera Mysore, Michael Bendersky,\nand Hamed Zamani. 2024. Lamp: When large language models meet personalization. In Proceedings\nof the 62nd Annual Meeting of the Association for\nComputational Linguistics (Volume 1: Long Papers),\npages 7370–7392.\n\nHao Li, Chenghao Yang, An Zhang, Yang Deng, Xiang Wang, and Tat-Seng Chua. 2025. Hello again!\nllm-powered personalized agent for long-term dialogue. In Proceedings of the 2025 Conference of the\nNations of the Americas Chapter of the Association\nfor Computational Linguistics: Human Language\nTechnologies (Volume 1: Long Papers), pages 5259–\n5276.\n\nZhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu,\nJunxiao Song, Xiao Bi, Haowei Zhang, Mingchuan\nZhang, YK Li, Yang Wu, et al. 2024. Deepseekmath:\nPushing the limits of mathematical reasoning in open\nlanguage models. arXiv preprint arXiv:2402.03300.\n\nXiaopeng Li, Pengyue Jia, Derong Xu, Yi Wen, Yingyi\nZhang, Wenlin Zhang, Wanyu Wang, Yichao Wang,\nZhaocheng Du, Xiangyang Li, et al. 2026. A survey of personalization: From rag to agent. ACM\nTransactions on Information Systems, 44(4):1–39.\n\nWeiwei Sun, Xuhui Zhou, Weihua Du, Xingyao Wang,\nSean Welleck, Graham Neubig, Maarten Sap, and\nYiming Yang. 2025. Training proactive and personalized llm agents. arXiv preprint arXiv:2511.02208.\n\nZekun Li, Baolin Peng, Pengcheng He, Michel Galley, Jianfeng Gao, and Xifeng Yan. Guiding large\nlanguage models via directional stimulus prompting\n(2023). arXiv preprint arXiv:2302.11520.\n\nSupermemory AI. 2026. Supermemory: Memory\nand context engine for ai. https://github.com/\nsupermemoryai/supermemory. GitHub repository.\nAccessed: 2026-06-29.\n\nJiaqi Liu, Yaofeng Su, Peng Xia, Siwei Han, Zeyu\nZheng, Cihang Xie, Mingyu Ding, and Huaxiu Yao.\n2026. Simplemem: Efficient lifelong memory for\nllm agents. arXiv preprint arXiv:2601.02553.\n\nZhen Tan, Jun Yan, I-Hung Hsu, Rujun Han, Zifeng\nWang, Long Le, Yiwen Song, Yanfei Chen, Hamid\nPalangi, George Lee, et al. 2025a. In prospect and\nretrospect: Reflective memory management for longterm personalized dialogue agents. In Proceedings\nof the 63rd Annual Meeting of the Association for\nComputational Linguistics (Volume 1: Long Papers),\npages 8416–8439.\n\nYang Liu, Dan Iter, Yichong Xu, Shuohang Wang,\nRuochen Xu, and Chenguang Zhu. 2023. G-eval:\nNlg evaluation using gpt-4 with better human alignment. In Proceedings of the 2023 conference on\nempirical methods in natural language processing,\npages 2511–2522.\n\nZhen Tan, Jun Yan, I-Hung Hsu, Rujun Han, Zifeng\nWang, Long Le, Yiwen Song, Yanfei Chen, Hamid\nPalangi, George Lee, et al. 2025b. In prospect and\nretrospect: Reflective memory management for longterm personalized dialogue agents. In Proceedings\nof the 63rd Annual Meeting of the Association for\nComputational Linguistics (Volume 1: Long Papers),\npages 8416–8439.\n\nAdyasha Maharana, Dong-Ho Lee, Sergey Tulyakov,\nMohit Bansal, Francesco Barbieri, and Yuwei Fang.\n2024. Evaluating very long-term conversational\nmemory of llm agents. In Proceedings of the 62nd\nAnnual Meeting of the Association for Computational\nLinguistics (Volume 1: Long Papers), pages 13851–\n13870.\n\n10\n\n\fJames Thorne,\nAndreas Vlachos,\nChristos\nChristodoulopoulos, and Arpit Mittal. 2018.\nFever: a large-scale dataset for fact extraction and\nverification. In Proceedings of the 2018 Conference\nof the North American Chapter of the Association\nfor Computational Linguistics: Human Language\nTechnologies, Volume 1 (Long Papers), pages\n809–819.\n\nYilin Xiao, Zhehan Zhu, Yujing Zhang, Jin Chen, Zijin\nHong, Luyao Zhuang, Qinggang Zhang, Shengyuan\nChen, Xiaocao Ouyang, Lingfei Ren, et al. 2026.\nZero-mem: Zero-token memory operations for llm\nagents. arXiv preprint arXiv:2607.29377.\nWujiang Xu, Zujie Liang, Kai Mei, Hang Gao, Juntao\nTan, and Yongfeng Zhang. 2026. A-mem: Agentic\nmemory for llm agents. Advances in Neural Information Processing Systems, 38:17577–17604.\n\nMd Nayem Uddin, Kumar Shubham, Eduardo Blanco,\nChitta Baral, and Gengyu Wang. 2026. From recall to\nforgetting: Benchmarking long-term memory for personalized agents. In Findings of the Association for\nComputational Linguistics: ACL 2026, pages 26814–\n26841. Association for Computational Linguistics.\n\nSikuan Yan, Xiufeng Yang, Zuchao Huang, Ercong Nie,\nZifeng Ding, Zonggen Li, Xiaowen Ma, Jinhe Bi,\nKristian Kersting, Jeff Z Pan, et al. 2026. Memoryr1: Enhancing large language model agents to manage and utilize memories via reinforcement learning.\nIn Proceedings of the 64th Annual Meeting of the\nAssociation for Computational Linguistics (Volume\n1: Long Papers), pages 12805–12825.\n\nDavid Wadden, Shanchuan Lin, Kyle Lo, Lucy Lu\nWang, Madeleine van Zuylen, Arman Cohan, and\nHannaneh Hajishirzi. 2020. Fact or fiction: Verifying\nscientific claims. In Proceedings of the 2020 conference on empirical methods in natural language\nprocessing (EMNLP), pages 7534–7550.\n\nAn Yang, Anfeng Li, Baosong Yang, Beichen Zhang,\nBinyuan Hui, Bo Zheng, Bowen Yu, Chang Gao,\nChengen Huang, Chenxu Lv, et al. 2025. Qwen3\ntechnical report. arXiv preprint arXiv:2505.09388.\n\nMengru Wang, Haozhe Luo, Zhenqian Xu, Zhixiang\nCui, Haoming Xu, Qu Yang, Jizhan Fang, Junfeng\nFang, and Ningyu Zhang. 2026a. Memtrapbench:\nBenchmarking cognitive traps in llm memory use.\narXiv preprint arXiv:2608.20202.\n\nChang Yang, Chuang Zhou, Yilin Xiao, Su Dong,\nLuyao Zhuang, Yujing Zhang, Zhu Wang, Zijin Hong,\nZheng Yuan, Zhishang Xiang, et al. 2026a. Graphbased agent memory: Taxonomy, techniques, and\napplications. arXiv preprint arXiv:2602.05665.\n\nYu Wang, Ryuichi Takanobu, Zhiqi Liang, Yuzhen\nMao, Yuanzhe Hu, Julian McAuley, and Xiaojian\nWu. 2025. Mem-{\\alpha}: Learning memory construction via reinforcement learning. arXiv preprint\narXiv:2509.25911.\n\nTianyu Yang, Sudipta Paul, Vijay Srinivasan, Vivek\nKulkarni, and Srinivas Chappidi. 2026b. TRUSTMEM: Learning trustworthy memory consolidation\nfor LLM agents with long-term memory. arXiv\npreprint arXiv:2606.25161.\n\nYuhang Wang, Feiming Xu, Zheng Lin, Guangyu He,\nYuzhe Huang, Haichang Gao, Zhenxing Niu, Shiguo\nLian, and Zhaoxiang Liu. 2026b. From assistant to\ndouble agent: Formalizing and benchmarking attacks\non openclaw for personalized local ai agent. arXiv\npreprint arXiv:2602.08412.\n\nFuda Ye, Shuangyin Li, Yongqi Zhang, and Lei Chen.\n2024. R2ag: Incorporating retrieval information into\nretrieval augmented generation. In Findings of the\nAssociation for Computational Linguistics: EMNLP\n2024, pages 11584–11596.\nJiawen Zhang, Kejia Chen, Jiachen Ma, Yangfan Hu,\nLipeng He, Yechao Zhang, Jian Liu, Xiaohu Yang,\nTianwei Zhang, and Ruoxi Jia. 2026a. Beyond similarity: Trustworthy memory search for personal ai\nagents. arXiv preprint arXiv:2606.06054.\n\nRebecca Westhäußer, Wolfgang Minker, and Sebatian\nZepf. 2025. Enabling personalized long-term interactions in llm-based agents through persistent memory\nand user profiles. arXiv preprint arXiv:2510.07925.\n\nQinggang Zhang, Zhishang Xiang, Yilin Xiao, Le Wang,\nJunhui Li, Xinrun Wang, and Jinsong Su. 2025a.\nFaithfulrag: Fact-level conflict modeling for contextfaithful retrieval-augmented generation. In Proceedings of the 63rd Annual Meeting of the Association\nfor Computational Linguistics (Volume 1: Long Papers), pages 21863–21882.\n\nDi Wu, Hongwei Wang, Wenhao Yu, Yuwei Zhang,\nKai-Wei Chang, and Dong Yu. 2024. Longmemeval:\nBenchmarking chat assistants on long-term interactive memory. arXiv preprint arXiv:2410.10813.\nZhishang Xiang, Zerui Chen, Yunbo Tang, Zhimin\nWei, Ruqin Ning, Yujie Lin, Qinggang Zhang, and\nJinsong Su. 2026a. Memsyco-bench: Benchmarking sycophancy in agent memory. arXiv preprint\narXiv:2607.01071.\n\nTianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q\nWeinberger, and Yoav Artzi. 2019. Bertscore: Evaluating text generation with bert. arXiv preprint\narXiv:1904.09675.\n\nZhishang Xiang, Chengyi Yang, Zerui Chen, Zhimin\nWei, Yunbo Tang, Zongpei Teng, Zexi Peng, Zongxia\nLi, Chengsong Huang, Yicheng He, et al. 2026b.\nA systematic survey of self-evolving agents: From\nmodel-centric to environment-driven co-evolution.\nAvailable at SSRN 6626878.\n\nZeyu Zhang, Quanyu Dai, Xiaohe Bo, Chen Ma, Rui Li,\nXu Chen, Jieming Zhu, Zhenhua Dong, and Ji-Rong\nWen. 2025b. A survey on the memory mechanism of\nlarge language model-based agents. ACM Transactions on Information Systems, 43(6):1–47.\n\n11\n\n\fState Evolution Policy learns from whether candidate states improve the personal agent’s answers, allowing experience from prior memory use to guide\nfuture requests.\n\nZeyu Zhang, Quanyu Dai, Luyu Chen, Zeren Jiang, Rui\nLi, Jieming Zhu, Xu Chen, Yi Xie, Zhenhua Dong,\nand Ji-Rong Wen. 2026b. Memsim: A bayesian simulator for evaluating memory of llm-based personal\nassistants. Advances in Neural Information Processing Systems, 38:90475–90511.\n\nCompatibility with different personal agents.\nReasoning States are expressed in natural language\nand provided alongside the relevant facts and relations. They can therefore guide different personalagent backbones without modifying their parameters.\n\nLianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan\nZhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin,\nZhuohan Li, Dacheng Li, Eric Xing, et al. 2023.\nJudging llm-as-a-judge with mt-bench and chatbot\narena. Advances in neural information processing\nsystems, 36:46595–46623.\nWanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye, and\nYanlin Wang. 2024. Memorybank: Enhancing large\nlanguage models with long-term memory. In Proceedings of the AAAI conference on artificial intelligence, volume 38, pages 19724–19731.\n\nA.2\n\nIndependent memory records can preserve individual observations, but they provide limited information about how those observations relate over time.\nFor example, a newly stated preference may replace\nan earlier one, while two conflicting records may\nneed to remain unresolved until further evidence\nbecomes available.\nEvoMemState uses an ontology to represent\nthese relationships explicitly. Facts are grouped\nunder concepts and linked through typed relations,\nallowing retrieval to include not only a relevant\nrecord but also the information needed to interpret\nit. The original records are retained, so historical\nquestions can still be answered after a preference\nor circumstance changes.\n\nYefan Zhou, Yang Li, Zeyu Leo Liu, Semih Yavuz, and\nShafiq Joty. 2026. Just-in-time memory: Learning to\ncurate task-adaptive memory for llm agents. arXiv\npreprint arXiv:2609.27334.\n\nA\n\nFrequently Asked Questions (FAQs)\n\nA.1\n\nWhat are the main advantages of\nEvoMemState?\n\nWhy use a personal memory ontology\ninstead of independent records?\n\nEvoMemState differs from conventional memory\nsystems in how it maintains and uses personal information. Rather than storing facts independently,\nit organizes them within an ontology that tracks\nchanges in validity, scope, and relations. This allows earlier records to remain accessible even when\nnewer information supersedes or contradicts them.\nThe framework also separates memory storage\nfrom memory use. A learned policy generates a\nReasoning State for each request, indicating which\nmemories are relevant and how they should influence the response. The policy is trained using feedback from downstream answers, rather than relying\non predefined rules or repeated self-reflection. The\nReasoning State is provided as natural-language\nguidance and can be used with different response\nmodels without modifying their parameters.\n\nConnecting facts across interactions. The concept hierarchy organizes facts by topic, while their\nattributes and relations record changes in validity and scope. Earlier facts remain traceable even\nwhen they are superseded or conflict with later information.\nRecovering complete evidence. Semantic retrieval may identify an individually relevant fact\nwhile omitting the related facts needed to interpret\nit. Starting from retrieved facts, EvoMemState traverses their stored relations to recover connected\nupdates, conflicts, and constraints, providing the\ncomplete context required by the current request.\n\nA coherent and evolving memory state. The\npersonal memory ontology organizes Persistent\nFacts and maintains their validity, scope, and relations as new interactions arrive. Original facts\nremain traceable, while relation-aware retrieval recovers the connected information needed for their\ninterpretation.\n\nA.3\n\nWhy are Reasoning States needed, and\nhow do they differ from summaries?\n\nRelation States describe whether facts remain valid\nand how they are related, but do not determine how\nthey should affect a particular request. A Reasoning State makes the applicability, role, and priority\nof memory evidence explicit for the current interaction.\n\nUse-driven state evolution. For each request, a\nReasoning State specifies the applicability, role,\nand priority of memory evidence. The Memory\n12\n\n\fUsing the same fact in different contexts. A\nknee injury may answer a factual question, constrain an activity recommendation, or be irrelevant\nto another request. Similarly, a superseded preference may be irrelevant to a current decision but\nnecessary for answering a historical question. The\nReasoning State distinguishes these uses according\nto the request.\n\nthe personal agent uses that evidence correctly.\nLearning from memory-use experience. Given\na request, relevant Persistent Facts, and their Relation States, the policy samples a group of candidate\nReasoning States. Each candidate is applied by a\nfrozen personal agent under the same request and\nmemory evidence, together with a baseline that\nuses the evidence directly. The resulting performance difference serves as feedback on the candidate’s memory-use decisions and defines the reward in Equation 10. GRPO optimizes the policy\nusing relative feedback within each group. Across\nrepeated memory-use episodes, the policy internalizes reusable patterns for determining the applicability, role, and priority of memory evidence. Only\nthe policy is updated, allowing this experience to\nguide the personal agent without modifying its parameters.\n\nFrom memory content to response guidance. A\nReasoning State is intended to guide the use of\nretrieved memories, rather than summarize their\ncontent. The distinction matters because the same\nfact can serve different purposes depending on the\nrequest.\nConsider a user who previously mentioned a\nknee injury. The information is relevant when\nthe user asks for exercise recommendations, but\nit may have no bearing on a question about travel\nexpenses. Similarly, an outdated preference should\nnot determine a current recommendation, although\nit remains useful when answering questions about\nthe user’s past interests.\nThe Reasoning State captures these requestdependent distinctions. It is generated from the\nretrieved facts and their relations, while the original\nevidence remains available to the response model.\nA.4\n\nSeparating evidence retrieval from evidence use.\nComplete Retrieval Rate measures how often the\nretrieved context contains all required evidence,\nwhile Acc@Complete measures answer accuracy\non those cases. Figure 5 reports both metrics\non LoCoMo-Refined and MemSyco-Bench, distinguishing errors caused by missing evidence from\nthose caused by incorrect evidence use. Table 2\nfurther compares variants without Reasoning States\nor RL-based policy training. Together, these evaluations assess both the complete system and the\ncontribution of learned state evolution.\n\nWhy use a separate policy model instead\nof agent self-reflection to generate\nReasoning States?\n\nSelf-reflection requires the personal agent to determine how memory should be used anew for each request, without retaining successful decisions from\nprevious uses. In contrast, the Memory State Evolution Policy is trained offline by repeatedly generating and evaluating candidate Reasoning States,\nthereby internalizing memory-use patterns that improve downstream responses. At inference, it directly provides the personal agent with a ready-touse Reasoning State, avoiding repeated execution\nor iterative reflection for each request. This separates the accumulation of memory-use experience\nfrom response generation and makes that experience reusable across requests and personal agents.\nA.5\n\nB\n\nMethod Details\n\nThis section provides additional details for the three\nstages introduced in Section 3. We first present\nthe complete formulation of Persistent Facts, Relational States, and Reasoning States. We then\ndescribe Ontology-Guided Memory State Induction, RL-Based State Evolution, and State-Aware\nReasoning in the same order as the main text. Algorithm 1 summarizes memory construction, policy\noptimization, and inference.\nB.1\n\nSystem Concepts\n\nLet Ht = {h1 , . . . , ht } denote the conversations\naccumulated through turn t, and let qt denote the\ncurrent request.\nDefinition 1 (Persistent Facts). The Persistent\nFacts\n\nHow is the Memory State Evolution\nPolicy trained and evaluated?\n\nThe policy is trained according to how much its\nReasoning States improve the personal agent’s answers. Evaluation separately measures whether the\nsystem retrieves complete evidence and whether\n\nt\nFt = {fi }N\ni=1\n\n(15)\n\npreserve atomic information about the user’s preferences, experiences, circumstances, beliefs, and\n13\n\n\fAlgorithm 1 Complete Workflow of EvoMemState\nRequire: Dialogue history Ht , ontology-backed training data D = {(qj , Gj , yj∗ )}, Memory State Evolution Policy πθ , frozen\npersonal agent A, request q, seed count K, group size G\nEnsure: Personal memory ontology Gt , Persistent Facts Ft , Relational States Rt , trained policy πθ , answer y\nPhase 1: Ontology-Guided Memory State Induction\nExplanation\n\n1: Ft = {f1 , . . . , fNt } ← ExtractTimeOrderedRecords(Ht )\n2: G (0) ← InitializeGraph()\n3: for i = 1, . . . , Nt do\n4:\nG (i) ← Induce(G (i−1) , fi )\n5: end for\n6: Gt ← G (Nt )\n7:\n\n(N )\n(N )\n(N )\nRt ← {(f, af t , ρf t ) : f ∈ VF t }\n\n▷ Extract time-ordered Persistent Facts\n▷ Initialize the personal memory ontology\n▷ Incorporate each Persistent Fact\n▷ Update concepts, attributes, relations\n▷ Finish ontology induction\n▷ Retain the induced ontology\n▷ Collect the Relational States\n\nPhase 2: RL-Based State Evolution\n8: for each policy optimization step do\n9:\n(qj , Gj , yj∗ ) ∼ D\n10:\nπθold ← πθ\n11:\nMj = (Fj , Rj ) ← AssembleEvidence(qj , Gj , K)\n12:\nyj0 ← A(qj , Mj )\n\n▷ Optimize the state evolution policy\n▷ Sample a training ontology and request\n▷ Save the rollout policy snapshot\n▷ Retrieve facts and Relational States\n▷ Answer without a Reasoning State\n\n13:\n14:\n\n(i)\n{Zj }G\ni=1 ∼ πθold (· | qj , Fj , Rj )\n\n▷ Sample candidate Reasoning States\n\nfor i = 1, . . . , G do\n\n▷ Evaluate each candidate Reasoning State\n\n15:\n\nyj ← A(qj , Mj , Zj )\n\n16:\n\n(i)\nRi ← Score(yj , yj∗ ) − Score(yj0 , yj∗ )\n\n17:\n18:\n19:\n\n(i)\n\n(i)\n\n▷ Answer using the Reasoning State\n▷ Measure gain over the baseline\n\nei ← ApplyGatesAndPenalties(Ri , Z (i) )\nR\nj\nend for\nb1:G ← NormalizeWithinGroup(R\ne1:G )\nA\n\u0001\n(i) b\nG\nπθ ← GRPOUpdate πθ , πθ , {(Z , A\ni )}i=1\n\n20:\n21: end for\n\nold\n\n▷ Check format and answer disclosure\n▷ Finish candidate evaluation\n▷ Compute group-relative advantages\n▷ Update the policy with GRPO\n\nj\n\n▷ Finish policy optimization\n\nPhase 3: State-Aware Reasoning\ne q ) ← AssembleEvidence(q, Gt , K)\n22: (Fq , R\neq)\n23: Zq ← πθ (q, Fq , R\n24: St (q) ← (Rt , Zq )\ne q , Zq )\n25: y ← A(q, Fq , R\n26: return Gt , Ft , Rt , πθ , y\n\n▷ Retrieve facts and Relational States\n▷ Generate the Reasoning State\n▷ Form the Memory State\n▷ Answer using facts and both states\n▷ Return personal memory, policy, answer\n\nconstraints. Each fact retains its source, time, and\nevidence span. Later interactions do not overwrite\nthese facts, but may update their associated states.\nDefinition 2 (Relational States). Each fact fi is\nassociated with a Relation State:\nrit = (fi , ati , ρti ),\n\nRt = {rit | fi ∈ Ft },\n\nPersistent Facts, and their Relational States:\nZqt = Ψ(qt , Ft , Rt ),\n\n(17)\n\nwhere Zqt specifies the applicability, role, and priority of memory evidence. The state inference\nfunction Ψ may be implemented by the personal\nagent or a separate model. In EvoMemState, it is\ninstantiated by the Memory State Evolution Policy\nπθ .\nDefinition 4 (Memory State). The Memory State\nfor request qt combines the persistent Relational\nStates with the request-specific Reasoning State:\n\n(16)\n\nwhere ati specifies the current validity and scope\nof fi , and ρti records how it updates, conflicts with,\nor constrains other facts. The collection Rt forms\nthe Relational States retained with personal memory. These states persist across requests and evolve\nwhen new conversations update the memory.\nDefinition 3 (Reasoning State). For request qt , the\nReasoning State is inferred jointly from the request,\n\nSt (qt ) = (Rt , Zqt ) ,\n\nMt (qt ) = (Ft , St (qt )) . (18)\n\nPersistent Facts specify what the memory contains,\nRelational States indicate whether these facts re14\n\n\fmain valid and how they are related, and the Reasoning State determines how they should be used\nfor the current request.\nB.2\n\nedge connects a replacement fact to an earlier version and marks the earlier fact as superseded. A\nCONFLICTS_WITH edge preserves unresolved inconsistencies and marks active endpoints as disputed.\nRelation endpoints must refer to compatible information types, and update relations must remain\nacyclic. Each session-level update is committed\nonly after its facts, concepts, and relations pass\nvalidation.\n\nOntology-Guided Memory State\nInduction\n\nMemory construction proceeds incrementally as\nnew dialogue sessions become available. For each\nsession, the extractor receives the dialogue and a\nrelevant branch of the existing ontology. It identifies atomic facts and proposes changes to the concept hierarchy and memory relations.\nEach extracted fact retains its source turn, evidence span, timestamp, and qualifiers. Changes\nin validity or scope are recorded in its Relational\nState, leaving the original fact unchanged. Figure 7\nillustrates the ontology operations used during this\nprocess.\n\nRelational State induction. After incorporating\nthe first i facts, their Relational States are\nn\n\u0010\n\u0011\no\n(i)\n(i)\n(i)\n(i)\nR(i) = rf = f, af , ρf\nf ∈ VF ,\n(i)\n\nwhere af records the current validity and scope\n(i)\n\nof f , and ρf contains its concept attachment and\nrelations to other facts. New facts may revise these\nattributes and relations without overwriting the underlying fact. After all facts have been incorporated,\n\nSession-level fact extraction. For each new dialogue session, the extractor receives the session\ntogether with a relevant local ontology branch containing related concepts, neighboring hierarchy\nnodes, representative facts, and their incident relations. It produces a time-ordered set of Persistent\nFacts and proposes the corresponding concept and\nrelation updates. Each fact contains a single proposition and retains its record type, source turn, evidence span, explicit time, and qualifiers. Its current\nvalidity and scope are maintained in the associated\nRelation State rather than encoded by overwriting\nthe fact.\n\nRt = R(Nt ) .\n\n(22)\n\nThe resulting Persistent Facts Ft and Relational\nStates Rt form the persistent personal memory.\nB.3\n\nRL-Based State Evolution\n\nRelational States describe how facts currently hold\nand relate, but do not specify how they should be\nused for a particular request. EvoMemState instantiates the state inference function Ψ with a Memory State Evolution Policy πθ , which internalizes\nreusable memory-use experience through repeated\ngeneration and evaluation of candidate Reasoning\nStates.\n\nOntology construction and validation. Starting\nfrom an empty ontology G (0) , facts are incorporated in temporal order:\n\u0010\n\u0011\nG (i) = Induce G (i−1) , fi ,\n\nReasoning State interface. For a request q, the\npolicy receives the relevant Persistent Facts Fq and\ntheir Relational States Rq :\n\n(19)\n\nZq ∼ πθ (· | q, Fq , Rq ) .\n\nwhere\n\u0010\n\u0011\n(i)\n(i)\n(i)\n(i)\nG (i) = VC ∪ VF , EH ∪ ER .\n(i)\n\n(21)\n\n(23)\n\nThe input includes the facts, their validity and\nscope, temporal information, and relation annotations. The generated Reasoning State specifies\nwhich evidence applies, the role it should play, and\nhow it should be prioritized. It is supplied alongside the original memory evidence so that the personal agent retains access to the facts supporting\nthe guidance.\n\n(20)\n\n(i)\n\nHere, VC and VF denote concept and fact nodes.\n(i)\nStructural edges EH use PARENT_OF to form the\nconcept hierarchy and CONTAINS to attach each\nfact to its most specific concept. The operations\nCREATE, MERGE, and SPLIT revise the hierarchy\nwhile preserving one parent for each nonroot concept and one concept assignment for each fact.\nValidation ensures that extracted facts are\ngrounded in the dialogue and that proposed edits preserve graph consistency. A SUPERSEDES\n\nLearning from memory-use experience. For\neach training instance, the policy samples G candidate Reasoning States:\nZq(i) ∼ πθold (· | q, Fq , Rq ) ,\n\n15\n\ni = 1, . . . , G.\n\n(24)\n\n\fOntology-Grounded Memory Construction\nOntology-guided extraction\n\nDialogue session\n\nUpdate the concept-memory graph\n\nAtomic memories + concept edits\n\nNew facts and preferences\n\nCREATE / MERGE / SPLIT\n\nGrounded in source turns and the local graph\n\n(a) CREATE\n\n(b) MERGE\n\n(c) SPLIT\n\nAdd a new semantic domain\n\nConsolidate redundant concepts\n\nRefine an overloaded concept\n\nBefore\n\nBefore\n\nTravel\nPreferences\n\nPreferences\n\nhiking\n\nhiking\n\nAfter\n\nBefore\n\nTravel\n\nTravel info\n\nTrip tastes\nhiking\n\nbeach\n\n$900\n\nAfter\n\nAfter\n\nTravel\nPreferences\n\nTravel\n\nTravel\n\nTravel\nBudget\n\nTravel info\n\nPreferences\nPreferences\n\nhiking\n\n$900\n\nCreate a child and attach new memories\n\nConcept\nPreserved evidence\n\nMemory\n\nhiking\n\nbeach\n\nhiking\n\nAlias retained: Trip tastes\n\nBudget\n$900\n\nRetain the parent and refine assignments\n\nTransfer memories to the surviving concept\n\nAdded or revised structure\nType\n\nSource\n\nTime\n\nScope\n\nValidity\n\nRelations\n\nFigure 7: Ontology-Guided Memory State Induction. Each dialogue session yields Persistent Facts, concept edits,\nand memory relations. CREATE adds a concept, MERGE combines duplicate concepts, and SPLIT introduces more\nspecific concepts. Persistent Facts remain traceable while their Relational States evolve with the ontology.\n\nEach candidate is applied by a frozen personal\nagent under the same request and memory evidence.\nA shared baseline uses the same evidence without\na Reasoning State. Their performance difference\nprovides feedback on the candidate’s memory-use\ndecisions and defines the reward in Equation 10.\nFormat validation and penalties for revealing the\nreference answer further constrain the reward.\nGRPO (Shao et al., 2024) normalizes rewards\nwithin each sampled group and optimizes the\nclipped objective in Equation 12. Only πθ is updated; memory construction, retrieval, scoring, and\nthe personal agent remain fixed. For each training instance, the policy samples multiple candidate\nReasoning States. Each candidate is evaluated using the same request and memory evidence, with\nthe response model kept frozen. The reward is calculated as the difference between the answer score\nobtained with the candidate state and the score obtained without it.\nCandidates are also checked for formatting violations and reference-answer disclosure. GRPO then\nupdates the policy using rewards normalized within\neach group. The memory construction pipeline, retrieval procedure, and response model remain fixed\nthroughout training.\nThe resulting policy is used to generate Reason-\n\ning States at inference time.\nB.4\n\nState-Aware Reasoning\n\nAt inference, State-Aware Reasoning retrieves the\nPersistent Facts and Relational States required by\nthe current request, generates a Reasoning State,\nand grounds the personal agent in both states.\nSeed retrieval and relation traversal. Given request q, embedding similarity retrieves K Persistent Facts as seeds. Because a seed may have been\nupdated, contradicted, or constrained by other facts,\nrelation traversal expands the initial set:\nFq =\n\n[\n\nTraverse (f, Rt ) .\n\n(25)\n\nf ∈Retrievesim (q,Ft ,K)\n\nTraversal follows stored memory relations in both\ndirections until all connected facts have been collected. Earlier facts, replacements, and conflicting\ncounterparts are retained with their original relation\ntypes and directions. Facts reached from multiple\nseeds are included only once, while isolated seeds\nremain individual facts.\nRelational State assembly. The Relational\nStates associated with the retrieved facts are\n\b\ne q = rft ∈ Rt | f ∈ Fq .\nR\n\n16\n\n(26)\n\n\f1. Connecting Related Memories into Reliable Evidence\n\nConnected facts retain their validity, scope, provenance, temporal information, and relation annotations. No additional filtering is applied after traversal. The seed count K controls the initial retrieval\nset, while the final context size depends on the\nrelations connecting those seeds to other facts.\n\nStored memory\n\n2025-08-10\n\nhistorical\n\nM2 + M3 missing\n\ncurrent\n\nCurrent user state not reconstructed\n\nMissing constraints\n\nM3: Knee injury\n2026-02-15\n\nMissing State\n\ncurrent\n\n2. Determining How Memory Evidence Should Be Used\nCurrent memory\n✓\n\nHistorically enjoyed hiking\n\n✓\n\nNow prefers beach trips\n\n✓\n\nRecovering from a knee injury\n\nSuggest a vacation\nfor me\n\nHow should I use\nthese memories?\nCurrent context\n\nTry a mountain\nhiking trip\n\nPersonal agent\n\nAvoid strenuous activities\n\nMissing Reasoning State\n\nFigure 8: Case analysis of the two limitations identified in our preliminary studies. The upper panel shows\nthat retrieving an individually relevant fact may omit\nrelated updates and constraints required to reconstruct\nthe current memory state. The lower panel shows that\neven complete evidence may be used incorrectly when\nits applicability, role, and priority are not determined\nfor the current request.\n\n(27)\n\nRelation traversal preserves the context needed to\ninterpret the retrieved facts, while the Reasoning\nState specifies how the personal agent should use\nthem for the current request.\nOverall procedure. Algorithm 1provides the full\ntraining and inference workflow. During inference,\nthe system retrieves relevant facts, expands the evidence through stored relations, and generates a\nReasoning State before passing the assembled context to the response model.\nB.5\n\n2025-08-10\n\nRetrieve\n\nM2: Prefers beach trips\n2025-10-12\n\n\u0011\n\neq ,\nZq = πθ q, Fq , R\n\u0010\n\u0011\ne q , Zq .\ny = A q, Fq , R\n\nM1: Enjoys hiking\n\nhistorical\n\nMissing updates\n\nReasoning and response generation. The\nlearned policy generates a Reasoning State from\nthe request, retrieved facts, and their Relational\nStates. The personal agent then produces its response using the same memory evidence and the\ngenerated state:\n\u0010\n\nRetrieved memory\n\nM1: Enjoys hiking\n\nrequest, M1 should be treated as historical information, M2 as the current preference, and M3 as\na constraint that excludes strenuous activities. A\nsuitable response should therefore prioritize a lowintensity beach trip. Nevertheless, a personal agent\nmay overemphasize the historically salient hiking\npreference and recommend a mountain hiking trip\ndespite having access to the complete evidence.\nThe same historical preference could be relevant\nto a question about the user’s past activities, but\nshould not guide the current recommendation. This\nis therefore a memory-use failure rather than a retrieval failure, showing that the applicability, role,\nand priority of each memory must be determined\nfor the current request.\n\nPreliminary Case Analysis\n\nConnecting related memories into reliable evidence. The upper panel of Figure 8 shows three\nmemories accumulated over time. The user historically enjoyed hiking (M1), later developed a\npreference for beach trips (M2), and is currently\nrecovering from a knee injury (M3). A fact-centric\nsystem may retrieve only M1 because hiking is semantically relevant to a vacation request. However,\nM1 cannot be interpreted correctly in isolation: M2\nupdates the user’s current preference, while M3 introduces a constraint against strenuous activities.\nOmitting either memory prevents the system from\nreconstructing the current memory state and may\nlead it to recommend an outdated and physically\nunsuitable hiking trip. This case illustrates that individually relevant facts do not necessarily form reliable evidence; their updates and constraints must\nbe considered together.\nDetermining how memory evidence should be\nused. The lower panel assumes that all three memories are available when the user asks for a vacation\nrecommendation. Complete evidence, however,\ndoes not by itself determine the response. For this\n\nC\n\nAdditional Experiments\n\nWe compare memory use strategies and guidance\nsources, examine representative responses, and analyze retrieval cost and quality. Additional experiments characterize the stored memory structure\nand the use of complete retrieved evidence. Together, these results examine how the Relational\nState supports memory access and the Reasoning\nState guides memory application.\nC.1\n\nComparison of Memory Use Strategies\n\nTo compare memory application strategies, we\naugment Mem0, which extracts and consolidates\n17\n\n\fMethod\n\nMemSyco-Bench\n\nLoCoMo-Refined\n\nMemTrapBench\n\nScope Objective Personalized Preference\nPreference LLM-Judge Token F1 Safety Cognitive Bias Task Boundary Trauma Avg.\nAcc. ↑ Acc. ↑\nAcc. ↑\nChange Acc. ↑ Conflict Acc. ↑ Score ↑\n↑\nAcc. ↑\nAcc. ↑\nAcc. ↑\nAcc. ↑ ↑\nMem0\n+ Self-Recheck (Hu et al., 2026)\n+ MemGate (Zhang et al., 2026a)\n+ Dynamic Partition (Hannoon et al., 2026)\n+ Reasoning State (Ours)\n\n14.3\n13.0\n13.7\n11.7\n11.0\n\n34.7\n43.3\n39.0\n39.0\n39.3\n\n57.7\n60.5\n51.0\n56.5\n48.8\n\n54.5\n64.7\n51.2\n53.8\n72.7\n\n22.3\n25.0\n23.7\n8.7\n42.0\n\n25.7\n23.4\n24.2\n20.8\n23.9\n\n26.9\n12.6\n11.4\n10.6\n24.9\n\n56.8\n75.1\n54.6\n69.2\n61.1\n\n69.3\n55.5\n40.9\n44.6\n72.3\n\n81.9\n76.4\n78.7\n78.4\n81.9\n\n85.5\n94.6\n93.5\n93.1\n93.8\n\n73.4\n75.4\n66.9\n71.3\n77.3\n\nTable 3: Comparison of memory use strategies with Mem0 across three benchmarks. Dynamic Rules (Ours) uses\nthe learned Memory State Evolution Policy. Bold and underlined values indicate the best and second best results,\nrespectively.\n\npersonal facts, with Self-Recheck, MemGate, Dynamic Partition, or our generated Reasoning States.\nMemGate filters memory representations according\nto the query (Zhang et al., 2026a), while Dynamic\nPartition organizes memories into inferred categories at inference time (Hannoon et al., 2026). Table 3 reports results on MemSyco-Bench, LoCoMoRefined, and MemTrapBench, with our Reasoning\nStates, expressed as dynamic memory rules, denoted by Dynamic Rules (Ours).\n\nThe clearest advantage of learned rules lies in handling changing preferences, conflicting information, and cognitive bias.\nC.2\n\nGuidance from the Answer Model\n\nTo compare learned memory-use guidance with\nguidance generated by the response model, we evaluate Self-Guide and Dynamic Rules under Qwen38B and GPT-4o-mini (Figure 9). Self-Guide uses\nthe response model to generate guidance, whereas\nDynamic Rules uses the trained Memory State Evolution Policy to generate a Reasoning State.\nDynamic Rules yields larger gains on memoryuse benchmarks than on conversational recall. Relative to Self-Guide, it improves MemSyco-Bench\naccuracy by 8.2 percentage points with Qwen3-8B\nand 6.1 percentage points with GPT-4o-mini, with\ncorresponding MemTrapBench score gains of 16.8\nand 11.0 points. Improvements on LoCoMo are\nsmaller, at 0.9 and 1.0 points, respectively. On\nLoCoMo-Refined, Dynamic Rules improves the\nQwen3-8B score by 1.1 points but reduces the\nGPT-4o-mini score by 1.4 points. These results\nsuggest that learned guidance is particularly useful\nfor determining the applicability and priority of\nmemories, while offering less consistent benefits\nfor conversational recall.\nConversational recall primarily requires recovering and combining stored information. MemSycoBench and MemTrapBench also test whether historical information should influence the current\nresponse, particularly when preferences change\nor prior interactions introduce misleading assumptions. Unlike Self-Guide, the Memory State Evolution Policy is trained using feedback on the answers\nproduced with its guidance. Candidate rules are\nevaluated against a baseline answer generated from\nthe same records without rules, assessing whether\napplying, restricting, or prioritizing memories improves correctness. The larger gains on memoryuse benchmarks support learning from memory-use\n\nThe learned rules are most effective when the\nresponse requires revising the influence of prior\ninformation. They achieve 72.7% accuracy on\npreference changes and 42.0% on preference conflicts, exceeding the strongest alternatives by 8.0%\nand 17.0%. On MemTrapBench, they obtain the\nhighest average score of 77.3. Cognitive Bias accuracy reaches 72.3%, exceeding Mem0’s 69.3%\nby 3.0%, while Task Boundary accuracy matches\nMem0 at 81.9%. These scenarios require deciding whether an earlier preference, strategy, or task\nrule still applies. Dynamic rules express these decisions through temporal validity, scope, and priority,\nallowing the agent to use personal history while\nadapting its response to the current request.\nMemGate and Dynamic Partition do not improve Task Boundary accuracy over Mem0, scoring 78.7% and 78.4%, respectively, compared with\nMem0’s 81.9%. Their effects on preference updates and conflicts are also mixed. MemGate\nlowers preference change accuracy from 54.5%\nto 51.2%, while Dynamic Partition lowers preference conflict accuracy from 22.3% to 8.7%. These\nresults suggest that filtering or grouping records\nalone does not reliably determine which information should govern the response. Our rules address this decision explicitly, with training feedback based on answer improvement. Self-Recheck\nleads on objective judgment, personalized recommendations, Safety, and Trauma, while Mem0 retains the best scope and LoCoMo-Refined results.\n18\n\n\fC.4\n\nexperience to determine the applicability, role, and\npriority of evidence.\nC.3\n\nEfficiency Analysis\n\nTo assess retrieval efficiency, Figure 11 relates evidence access to the average number of retrieved\ncontext tokens on LoCoMo-Refined.\nFor N quesP\nhit ≥ 1], where nhit\nI[n\ntions, hit rate is N1 N\ni\ni\ni=1\ncounts retrieved gold evidence items. A question\ncounts as a hit when at least one gold item is retrieved, irrespective of how much other required\nevidence is missing. Context length measures the\ntokens supplied to the response model.\nEvoMemState achieves the highest hit rate of\n0.816 with an average context of 565 tokens. MemoryBank retains dialogue history and layered summaries, while A-MEM represents interactions as\nlinked contextual notes. Both reach 0.789 with\n816 and 1,440 tokens, respectively. Our context is 30.8% shorter than MemoryBank’s and\n60.8% shorter than A-MEM’s, while recovering\ngold evidence for a larger proportion of questions.\nEvoMemState retrieves an average of 565 tokens\nper query, compared with 816 for MemoryBank\nand 1,440 for A-MEM. Despite the shorter context,\nits retrieval hit rate reaches 0.816, compared with\n0.789 for both baselines.\nOne possible explanation is the difference in\nmemory representation. MemoryBank and AMEM retain more contextual information within\nindividual records, whereas EvoMemState stores\nfacts separately and connects them through explicit\nrelations. This allows the system to retrieve related information without necessarily including the\nsurrounding dialogue or longer memory notes.\nLightMem, which compresses dialogue segments into summaries, and Mem0, which stores\ncompact extracted memories, supply shorter contexts but attainhit rates of only 0.166 and 0.110.\nTheir results illustrate the tension between reducing\ncontext length and maintaining access to evidence.\nThe advantage of EvoMemState lies in its combination of compact records and access to associated\ninformation, yielding more frequent evidence hits\nat a lower context cost than the strongest retrieval\nbaselines. Hit rate establishes whether retrieval\nfinds an initial piece of evidence, while coverage\nand complete retrieval rate in Table 4 examine how\nmuch of the required set is recovered.\n\nCase Study\n\nFigure 10presents three examples from MemSycoBench, covering preference updates, evidence priority, and scope control. Each example includes the\nretrieved memories, the generated Reasoning State,\nand the final response. We examine whether the\ngenerated rules correctly distinguish outdated preferences from current ones, prioritize task-relevant\nevidence, and apply user information within its\nintended scope.\nFollowing an updated preference. The user requests futuristic electronic sounds for a new track.\nThe retrieved records connect this requirement to\nthe earlier sample library through an update relation and distinguish music production from cultural\ninterests through scope. The generated rule prioritizes the current production requirement and excludes the superseded library and unrelated cultural\nmemories. The response recommends electronic\nsounds and tools, including FM8 and Splice. The\nexample shows how an explicit update can change\npersonalization for the current task while the earlier\npreference remains stored.\nPrioritizing evidence for the requested task.\nThe user asks which system to adopt for same\nday summaries of multilingual customer interviews.\nThe records distinguish the user’s inclination toward Atlas from a 2026 procurement assessment\nfavoring Cygnus. The rule assigns priority to the\nprocurement evidence, and the response recommends Cygnus. Here, the source of a record matters\nto its role in the decision. Preserving the distinction between personal inclination and task evidence\nallows the rule to specify their relative priority.\nApplying preferences within their scope. The\nrequest refers to a previously discussed situation.\nThe records identify family day planning and distinguish the preference for one coherent plan from\nbroader habits of collecting examples and links.\nThe rule applies the planning preference to the\ncurrent decision, and the response organizes the\nactivities into one plan with transport adapted to\nthe group’s differing transit familiarity. Scope connects the remembered preference to the situation in\nwhich it should influence the answer.\n\nC.5\n\nRetrieval Quality\n\nTo distinguish partial evidence recovery from complete retrieval, Table 4 reports three metrics on\nLoCoMo-Refined. For question i, ngold\ndenotes\ni\n19\n\n\fQwen3-8B\n8.2\n\n1.1\n\n0.9\n\n6.1\n\n49.4\n\n57.6 56.3 57.4\n\n40\n\n80\n\n62.3\nScore (%)\n\nScore (%)\n\n16.8\n\n79.1\n\n80\n60\n\nGPT-4o-mini\n\nΔ (pp)\n\n44.6 45.5\n\n20\n0\n\n60 52.8\n\nΔ (pp)\n\n1.4\n\n1.0\n\n11.0\n\n67.7\n\n58.9 62.2 60.8\n\n78.7\n\n45.4 46.4\n\n40\n20\n\nMemSyco\n\nLoCoMoRefined\n\nLoCoMo\n\n0\n\nMemTrap\n\nSelf-Guide\n\nMemSyco\n\nLoCoMoRefined\n\nLoCoMo\n\nMemTrap\n\nReasoning State(ours)\n\nFigure 9: Performance with response model guidance (Self-Guide) and learned memory rules (Reasoning State)\nunder Qwen3-8B and GPT-4o-mini. LoCoMo and LoCoMo-Refined report LLM judge scores. Differences from\nSelf-Guide are reported in points on the percentage scale.\n\nthe number of gold evidence items and nhit\ni the\nnumber retrieved. Hit rate, coverage, and complete\ngold\nhit\nretrieval rate average I[nhit\n, and\ni ≥ 1], ni /ni\ngold\nI[nhit\n=\nn\n],\nrespectively,\nacross\nquestions.\nHit\ni\ni\nrate counts questions with any gold evidence, coverage measures the fraction recovered per question,\nand complete retrieval rate requires the entire gold\nset.\n\nMethod\nEvoMemState (Ours)\nMemoryBank\nA-MEM\nNaiveRAG\nMemGPT\nLightMem\nMem0\nSupermemory\n\nRetrieval\nHit Rate\n\nAverage\nCoverage\n\nComplete\nRetrieval Rate\n\n0.816\n0.789\n0.789\n0.684\n0.453\n0.166\n0.110\n0.006\n\n0.747\n0.727\n0.724\n0.615\n0.384\n0.144\n0.095\n0.004\n\n0.680\n0.669\n0.662\n0.564\n0.323\n0.129\n0.086\n0.003\n\nTable 4: Gold evidence recovery on LoCoMo-Refined.\nHit rate counts questions with at least one gold item\nretrieved, coverage averages the fraction of gold items\nretrieved per question, and complete retrieval rate counts\nquestions with every gold item retrieved. All three metrics are averaged across questions and reported on a 0–1\nscale.\n\nEvoMemState leads on all three metrics, with a\nhit rate of 0.816, coverage of 0.747, and complete\nretrieval rate of 0.680. MemoryBank, which retains\nhistory through layered summaries, and A-MEM,\nwhich stores linked contextual notes, achieve complete retrieval rate of 0.669 and 0.662. Their advantage over NaiveRAG’s 0.564 is consistent with the\nimportance of preserving context beyond individual dialogue fragments. The ontology represents\nthis context through atomic records, metadata, and\nexplicit relations. Retrieval can therefore recover\nassociated updates and conflicts even when those\nrecords are not among the initial similarity matches,\nsupporting interpretation of the retrieved information.\n\nitem is available. Retrieving a relevant fact alone\ncan therefore leave out the updates, conflicts, or\nconstraints needed to interpret it.\nC.6\n\nMemory Structure Statistics\n\nTo characterize the granularity and organization of\npersonal memory, Figure 12 reports statistics on\nMemSyco-Bench. The three panels show average\nrecord counts, average edge counts, and memory\ndensity, measured as records per thousand characters. Edge counts include concept and memory relations in our ontology and links among\nnotes in A-MEM. Flat stores use record counts\nas an edge count proxy. Higher density indicates\nshorter records. Density is estimated from retrieved\nrecords and context length for NaiveRAG, Mem0,\n\nAcross systems, complete retrieval rate remains\nbelow hit rate. For EvoMemState, the difference\nis 13.6 percentage points, corresponding to questions where retrieval finds part of the gold evidence\nbut omits the rest. An answer that depends on several dialogue turns may require details that are less\nsimilar to the query than the first retrieved record.\nCoverage quantifies these partial recoveries, while\ncomplete retrieval rate tests whether every required\n20\n\n\fFigure 10: Examples of Reasoning States expressed as dynamic memory rules for preference updates, evidence\npriority, and scope control. Each case presents the relevant evidence, generated rules, and response. Text is\ncondensed from recorded outputs.\nRetrieval Hit Rate vs. Retrieval Cost\nMemoryBank\n816 tokens\nhit 0.789\n\n0.80\n\nRetrieval hit rate\n\n0.70\n0.60\n\nEvoMemState (Ours)\n\n1,440 tokens\nhit 0.789\n\n565 tokens\nhit 0.816\n\nMemGPT\n\n0.50\n\n2,725 tokens\nhit 0.453\n\n0.40\n0.30\n\nLightMem\n260 tokens\nhit 0.166\n\n0.20\n\nMem0\n\n0.10\n0.00\n\nand temporal relations to these atomic records. AMEM connects contextual notes through untyped\nlinks, while our relation types encode concept membership, hierarchy, and memory updates. These\nsemantics support distinct operations on the same\npersonal history, placing new records within the\nprofile and linking revised information to its earlier\nversions. Preserving both versions makes changes\nin the user’s preferences explicit and leaves historical information available for later requests.\n\nA-MEM\n\n285 tokens\nhit 0.110\n\n250\n\n500\n\nSupermemory\n933 tokens\nhit 0.006\n\n1,000\n\n1,500\n\n2,000\n\n2,500\n\n3,000\n\nAverage retrieval tokens\n\nAt 9.69 records per thousand characters,\nEvoMemState has a density close to the compact\nfact representations of Mem0 and Supermemory.\nEach record also retains an evidence quote, linking its concise statement to the source dialogue.\nA-MEM and MemoryBank store longer contextual notes and layered summaries, with densities of\n1.50 and 0.83, respectively. Their context is carried\nlargely within textual entries. Our ontology distributes this context across atomic records, source\nattributes, and explicit relations, allowing individual facts to remain concise while preserving how\n\nFigure 11: Retrieval hit rate and average retrieved context length on LoCoMo-Refined. Each point represents\na memory system, and retrieval cost is measured in tokens.\n\nand LightMem, and computed directly from stored\nrecords for the remaining methods.\nEvoMemState maintains an average of 22.1\nrecords and 27.3 edges per store, with a record\ncount comparable to Mem0’s 20.4 and LightMem’s\n24.5. The ontology adds semantic organization\n21\n\n\fOurs\n\nA-MEM\n\nMemGPT\n\nMemoryBank\n\nSupermemory\n\nNaiveRAG\n\nMem0\n\nLightMem\n\nStored Memories\n\nGraph Edges\n\nMemory Density\n\nAverage memories per store\n\nAverage edges per store\n\nMemories per 1K characters\n\n25\n\n30\n25\n20\n15\n10\n5\n\n12\n10\n8\n6\n4\n2\n\n20\n\n24.5\n\n22.1\n\n15\n\n24.5\n\n10\n5\n\n20.4\ncount\n\n10.0\n\n8.7\n\nper store\n\n15.2\n\n27.3\n7.93‡\n21.8†\n\n20.4\n\n4.6\n\n14.6\n\n9.85‡\n\ncount\n\n10.0\n\nper store\n\n15.2\n\n9.69\n1.50\n\nmemories\n\n4.6\n\n1.56‡\n\nper 1K chars\n\n6.66\n0.83\n\n14.6\n10.80\n\nFigure 12: Statistics of memory stores on MemSyco-Bench. The panels report average entry counts, edge counts,\nand entries per thousand characters. Flat stores use entry counts as an edge count proxy. † includes cross note links\nin A-MEM. ‡ denotes density estimated from retrieved entries and context length.\n\nthey should be interpreted together. EvoMemState\nstores an average of 22.1 memory records and 27.3\ngraph edges per instance. Its record count is close\nto that of Mem0 (20.4) and LightMem (24.5), although these systems differ in how they represent\nrelationships between records.\nThe memory density of EvoMemState is 9.69\nrecords per thousand characters, indicating relatively short factual entries. Unlike systems\nthat store longer summaries, EvoMemState keeps\nsource information and relationships separately\nfrom the factual statements. The reported density\ntherefore describes the granularity of the stored\nrecords rather than the total amount of information\nmaintained by the system.\nC.7\n\nwith self-reflection to 86.7% with a Reasoning\nState, a gain of 11.3 percentage points. This improvement on questions with complete evidence\nsuggests that retrieving the required records does\nnot by itself ensure correct memory use. The agent\nmust still resolve differences in temporal validity,\nscope, and evidence roles. The Reasoning State\nmakes these application decisions explicit through\ndynamic rules, specifying how updates, constraints,\nand competing information affect the current request.\nFor the baselines, replacing self-reflection with\na Reasoning State yields only small gains or decreases: +0.4 percentage points for LightMem,\n+0.1 for MemoryBank, -0.8 for A-MEM, -1.6 for\nMem0, -0.1 for MemGPT, and -0.4 for Supermemory. Thus, an explicit Reasoning State alone does\nnot consistently improve memory application. The\nlarger gain for EvoMemState is consistent with the\nbenefit of its Memory State Evolution Policy, which\nlearns application decisions through downstream\nanswer-quality feedback. These results suggest\nthat effective memory use depends on the quality\nof the decisions encoded in the state, rather than\nmerely adding an intermediate reflection or instruction step.\n\nMemory Application with Complete\nEvidence\n\nTo assess how Reasoning States support memory\napplication when retrieval supplies all required evidence, we evaluate the Valid Memory Selection\ntasks of MemSyco-Bench. Figure 13 reports complete retrieval rate and compares Acc@complete\nunder two conditions: w/ self-reflection, where the\npersonal agent reflects on how to use the retrieved\nmemories, and w/ reasoning state, where it uses an\nexplicit Reasoning State to guide memory application. Complete retrieval rate gives the proportion\nof questions with all gold evidence retrieved, while\nAcc@complete measures answer accuracy on this\nsubset for each system.\nEvoMemState achieves a complete retrieval rate\nof 93.7%. Its Acc@complete increases from 75.4%\n\nD\n\nImplementation Details\n\nThis section describes the training data and evaluation setup for EvoMemState. We first explain how\ndata instances are constructed to train the Memory\nState Evolution Policy, then introduce the benchmark datasets, baselines, and evaluation metrics\n22\n\n\f0.8\n\n0.4\n\n1.6\n\n0.1\n\n0.1\n\n11.3\n\n0.4\n\nPercentage (%)\n\n100\n\n99.5\n\n80\n60\n40\n\n93.7\n\n89.1\n71.4 71.8 69.5\n40.9 40.1\n\n70.8 70.4\n50.5 48.9\n\n55.6 55.7\n\n55.6 55.5\n41.4\n\n32.8\n\n75.4\n\n86.7\n\n50.5\n\n20\n0\n\nAMem\n\nLightMem\n\nComplete Retrieval Rate\n\nMemZero\n\nMemGPT\n\nMemoryBank Supermemory EvoMemState\n(Ours)\n\nAccuracy@complete\nw self-reflection\n\nAccuracy@complete\nw/ reasoning state\n\nFigure 13: Complete retrieval rate and Acc@complete with and without memory guidance. Acc@complete is\nevaluated on questions with all required evidence retrieved. Arrows report changes in percentage points.\n\nD.2\n\nused to assess memory recall and use in personal\nagents.\nD.1\n\nBenchmark Datasets\n\nWe evaluate EvoMemState on four complementary\nbenchmarks covering personal memory recall and\nuse. LoCoMo and LoCoMo-Refined assess recall\nand reasoning about personal information across\ndialogue sessions. MemSyco-Bench tests whether\nagents appropriately apply user preferences, respect their scope, and track updates. MemTrapBench examines whether past interactions bias reasoning on the current task.\n\nTraining Data Construction\n\nTo train the Memory State Evolution Policy to\ngenerate a Reasoning State from a request and\nits relevant Relational State, we construct approximately 60K question–memory training instances\nfrom FEVER (Thorne et al., 2018), SciFact (Wadden et al., 2020), and PersonaMem (Jiang et al.,\n2025). For objective questions, we convert the\nfact-verification tasks in FEVER and SciFact into\nquestion-answering instances with supporting evidence and reference answers. We then construct\nuser memories that conflict with the objective evidence from the perspectives of personal belief,\nidentity, and perceived expertise. For preference\nquestions, we use the preference annotations in PersonaMem to construct scenarios involving current\npreferences, historical preferences, and preference\nupdates, enabling the model to learn how different\nmemories should influence a response.\nTo improve the difficulty and diversity of the\ntraining data, we further introduce distractor memories. For objective questions, bias-related memories are mixed with irrelevant everyday information.\nFor preference questions, we add one or two genuine preferences from unrelated topics associated\nwith the same user, including more challenging distractors drawn from the same conversational scenario but concerning a different topic. This design\nrequires the model to identify relevant information\nbased on memory content and applicability, rather\nthan relying on superficial cues such as memory\ncount, position, or fixed rule templates.\n\nMemSyco-Bench. MemSyco-Bench (Xiang\net al., 2026a) evaluates when and how agents\nshould use user-specific memories in current\nresponses. Personalized Memory Use and Valid\nMemory Selection test whether agents tailor\nrecommendations to valid preferences and follow\npreference updates. Objective Fact Judgment,\nContextual Scope Control, and Memory-Evidence\nConflict test whether historical user beliefs or\npreferences improperly override facts, exceed\ntheir scope, or outweigh current evidence. Each\ninstance introduces user information through a\nmulti-turn dialogue, then tests its appropriate use\nin the final request. Together, these tasks assess\npersonalization and memory-induced sycophancy\nin personal agents.\nLoCoMo. LoCoMo (Maharana et al., 2024) evaluates recall and reasoning about speakers’ experiences, relationships, and life events across dialogue sessions. Conversations are generated by\nagents grounded in speaker personas and temporal event graphs, then verified and edited by\nhuman annotators for consistency. We use its\n23\n\n\fMemory Construction\nSystem\nYou construct one user’s self-evolving ontological memory. The input contains a new dialogue and a small branch\nretrieved from the user’s existing ontology. In ONE response, extract atomic memories and propose the minimal ontology\nevolution required to organize them.\nThis memory stores two different things, and both matter:\n- what is true of the USER (preferences, beliefs, constraints, experiences)\n- what is true of the WORLD, as established by evidence surfaced in the dialogue (facts)\nKeep the second kind independent of the first. Evidence does not become less true because the user prefers otherwise,\nand it must survive in the memory on its own terms.\nFixed meta-ontology:\n- memory type: preference | fact | belief | experience | constraint\n- scope level: global | domain | task | situation\n- memory status is managed by the system; every new memory starts active\n- memory relation: SUPERSEDES | CONFLICTS_WITH\n- concept edits are limited to CREATE | MERGE | SPLIT\nReturn exactly one JSON object with this shape:\n{\n\"concept_edits\": [ CREATE | MERGE | SPLIT ],\n\"memories\": [ atomic memory with type, scope, time, source, parent_ref, confidence ],\n\"relations\": [ { \"type\": \"SUPERSEDES\", \"source_ref\", \"target_ref\", \"reason\" } ]\n}\nRules:\n1. Extract anything that could answer a later factual or temporal question about either speaker, not only durable\npreferences. This includes one-off events, dates, quantities, named entities, past actions, and biographical facts.\nSkip only pure greetings, backchannel, and meta-chatter with no propositional content.\n2. A leaf is atomic: do not combine independent propositions. Preserve qualifiers, negation, scope, and time.\n3. Reuse the narrowest suitable existing concept. CREATE only when no supplied concept fits.\n4. CREATE a shallow, reusable concept, not a concept that paraphrases one memory.\n5. MERGE only clear duplicate concepts. SPLIT only a genuinely overloaded concept.\n6. Use SUPERSEDES when a newer state replaces an older state of the same kind; use CONFLICTS_WITH for an\nunresolved contradiction. Do not relation-link mere topical similarity.\n7. A SUPERSEDES pair must share the same memory type, but it need NOT share the same concept, scope, or\nwording.\n8. When a newer preference replaces an older one, emit BOTH memories plus a SUPERSEDES from the newer to\nthe older; never delete or rewrite the older memory.\n9. Scope controls applicability. Use global only when the statement truly applies broadly.\n10. Cite an exact evidence quote copied verbatim from a provided turn. Never cite a speaker’s own unquoted prose\nfrom an assistant turn.\n11. Quoted material is EXTERNAL EVIDENCE about the world. Record it as type fact, even when it contradicts the\nuser.\n12. Never let the user’s stated preference decide which evidence is worth keeping.\n13. Extract from EVERY speaker, not just one.\n14. Preserve temporal anchors verbatim, and fill the time field.\n15. Return up to 32 high-value atomic memories.\n16. If there is genuinely no propositional content, return empty arrays. Output JSON only.\nUser input (fields)\n{new_dialogue}\n{local_ontology_branch}\n\nTable 5: Prompt for extracting memories and updating the ontology.\n\nLoCoMo-Refined. LoCoMo-Refined2 recalibrates LoCoMo through corrected question-answer\nannotations and stricter answer evaluation.\nAI-assisted screening and human review revise\nambiguous questions, reversed subject-object\n\nquestion-answering task, which covers single-hop\nretrieval, multi-hop reasoning, temporal reasoning,\nopen-domain knowledge, and adversarial questions.\nThese categories test whether agents recover personal details, connect information across sessions,\nand recognize queries unsupported by the history.\n\n2\n\nhttps://github.com/mem-eval-suite/LoCoMo_\nrefined\n\n24\n\n\fNaiveRAG Configuration\n{\nembedding_model: bge-m3,\nretrieval_topk: 10,\nvector_store: qdrant\n}\n\nrelations, and temporal inconsistencies with the\nsource dialogues. The refined judge requires answers to cover the reference information, preserve\ntemporal granularity, and avoid contradictions\nor unsupported additions. It provides a stricter\nassessment of factual and temporal accuracy when\nagents recall personal information from dialogue\nhistory.\n\nMem0 Configuration\n{\nembedding_model: bge-m3,\nretrieval_topk: 10,\nllm_backend: openai-compatible\n}\n\nMemTrapBench. MemTrapBench (Wang et al.,\n2026a) evaluates memory-induced cognitive traps\nthrough Reasoning Fixation and Belief Distortion.\nReasoning Fixation comprises Task Boundary, Cognitive Bias, and Trauma, testing the persistence of\nprior task rules, overgeneralization of successful\nstrategies, and avoidance induced by negative feedback. Belief Distortion uses Safety scenarios to test\nwhether historical counterfactual premises override\ncurrent safety judgments. Each final query is independently answerable, allowing comparison with\ngeneration without memory to measure the effect\nof historical context on current reasoning.\nD.3\n\nA-MEM Configuration\n{\nembedding_model: bge-m3,\nretrieval_topk: 10,\nquery_limit: 40,\nevo_threshold: 100\n}\nLightMem Configuration\n{\nembedding_model: bge-m3,\nretrieval_topk: 10,\nextract_threshold: 0.1,\npre_compress: true,\ntopic_segment: true,\ntext_summary: true,\nupdate: offline,\nupdate_topk: 20,\nupdate_keep_topn: 10,\nupdate_score_threshold: 0.8\n}\n\nBaseline Details\n\nWe compare EvoMemState with nine baselines\nacross different backbones. NaiveRAG retrieves\ndirectly from dialogue history, while Mem0, AMEM, LightMem, MemGPT, MemoryBank, Supermemory, SimpleMem and PGMem maintain\npersistent memory through different extraction, organization, and update mechanisms. These baselines assess how memory representation and access\naffect personal agents’ responses. In this section,\nwe provide detailed descriptions of each baseline\nused in our comparison, as detailed in Figure 14.\n\nMemoryBank Configuration\n{\nembedding_model: bge-m3,\nretrieval_topk: 10,\nenable_summary: true\n}\nMemGPT Configuration\n{\nembedding_model: bge-m3,\nretrieval_topk: 10,\nmax_agent_steps: 12,\ningest_batch_size: 6,\narchival_search_limit: 5\n}\n\nNaiveRAG. NaiveRAG (Lewis et al., 2020) retrieves historical text by semantic similarity and\nsupplies it alongside the current query. It evaluates response generation from relevant dialogue\nfragments without explicit memory construction or\nrelation modeling.\n\nSupermemory Configuration\n{\nembedding_model: bge-m3,\nretrieval_topk: 10,\nretrieval_mode: profile,\nmax_memories: 400,\nchunk_chars: 10000,\nchunk_max_memories: 48,\nextract_temperature: 0.2\n}\n\nMem0. Mem0 (Chhikara et al., 2025) maintains\nsalient facts through incremental extraction and\nconsolidation. An LLM extracts candidate facts\nfrom new exchanges using recent dialogue and\nsummary context, then compares them with similar stored memories to determine addition, update,\ndeletion, or no change. Relevant facts are retrieved\nfor subsequent queries.\n\nsten method. Each note retains its content, timestamp, contextual description, keywords, and tags.\nNew notes trigger link generation and revision of\nrelated notes’ contextual attributes, allowing the\n\nA-MEM. A-MEM (Xu et al., 2026) represents\ninteractions as linked notes inspired by the Zettelka25\n\n\fReasoning State Generation\nSystem\nGiven the user’s question and relevant memory evidence, generate a compact reasoning state expressed as dynamic\nmemory rules for the personal agent. Specify which records apply, what role they should play, and how they should be\nprioritized.\nfact_need (0-1) is how much a downstream answer should depend on objective evidence, history, or hard constraints.\npreference_need (0-1) is how much it should be tailored to the user’s tastes or beliefs. Use these scores to decide whether\nto prioritize evidence vs preferences when both appear.\nOrganize the memories by the role each should play: primary evidence, user preference, constraint, condition, historical\ncontext, or supporting context. Call out conflicts and supersession when the retrieved text supports them.\nPrioritize clearly:\n- Separate objective evidence / constraints from user preferences or beliefs.\n- When memories conflict or one supersedes another, say which should control a current-state reading and what limited\nrole, if any, the others should play.\n- Do not combine conflicting memories merely to appear balanced.\n- Infer chronology, supersession, and scope only when supported by the retrieved text. Preserve uncertainty when the\nrelationship is unclear.\nOutput 2-4 short, imperative bullets and no more than 80 words total. Ground the bullets in concrete details from the\nmemories.\nDo not invent a question, answer any question, decide any claim, or explain your reasoning. Do not repeat generic routing\nrules or downstream SCOPE/LATEST instructions.\nUser\nQuestion:\n{question}\nMemories:\n{memory_body}\nWrite only 2-4 routing bullets specifying which memories matter, the role each should play, and how conflicts or updates\nshould be handled for this question. Do not solve the question.\n\nTable 6: Prompt for generating a request-specific Reasoning State as dynamic memory rules.\n\nmemory structure to evolve across interactions.\nEmbedding similarity identifies notes for the current query.\n\nchical event summaries, and evolving user profiles.\nDense retrieval provides relevant records and summaries for response generation. An Ebbinghausinspired retention mechanism adjusts memory\nstrength according to elapsed time and reinforces\nmemories when recalled.\n\nLightMem. LightMem (Fang et al., 2026) organizes memory processing into sensory, short-term,\nand long-term stages. Sensory processing compresses inputs and detects topic boundaries, and\nshort-term processing summarizes coherent topic\nsegments. Summaries enter long-term storage online, while sleep-time updates consolidate related\nentries offline, reducing the cost of memory maintenance during interaction.\n\nSupermemory. Supermemory3 extracts atomic\nfacts into a temporal memory graph with update,\nextension, and derivation relations. User profiles\nretain stable facts and recent context. Retrieval\ncan return extracted memories, source document\nchunks, or both, providing personal information\ntogether with its source context.\n\nMemGPT. MemGPT (Packer et al., 2023) manages a hierarchy of active context, external recall\nstorage, and archival memory. The model uses\nfunction calls to edit working memory, search\ndialogue history, and bring stored information\ninto context. Context-limit notifications and message summarization support extended interactions\nwithin a fixed context window.\n\nSimpleMem. SimpleMem (Liu et al., 2026) compresses dialogue interactions into compact memory\nunits with multiple retrieval indexes. It synthesizes\nrelated information within each session to reduce\nredundancy, then adapts retrieval scope to the intent\nof the current query. This design combines concise memory representations with query-dependent\naccess to historical context.\n\nMemoryBank. MemoryBank (Zhong et al.,\n2024) maintains timestamped conversations, hierar-\n\n3\n\n26\n\nhttps://github.com/supermemoryai/supermemory\n\n\fSimpleMem Configuration\n{\nembedding_model: bge-m3,\nretrieval_topk: 10,\nwindow_size: 40,\noverlap_size: 2,\nsemantic_topk: 10,\nkeyword_topk: 5,\nstructured_topk: 5\n}\n\nqueries, accuracy is defined as\nN\n\n100 X\nAcc =\nai .\nN\n\nFor LLM-judge accuracy, correctness is assessed\nagainst the query and reference answer, following\nthe use of LLMs for response evaluation (Zheng\net al., 2023; Liu et al., 2023).\n\nPGMem Configuration\n{\nembedding_model: bge-m3,\nembedding_dims: 1024,\nchunk_factor: 2,\nextraction_temperature: 0,\nk_context: 20,\nk_episode: 6,\nk_episode_final: 4,\nk_state: 17,\nk_trait: 6,\nk_aps: 6,\nk_trait_final: 5,\nk_state_final: 18\n}\n\nSycophancy Rate (Syco. Rate). Following\nMemSyco-Bench (Xiang et al., 2026a), Sycophancy Rate measures the proportion of responses\nthat follow a misleading historical memory rather\nthan the required facts, scope, or evidence. It applies to Objective Fact Judgment, Contextual Scope\nControl, and Memory-Evidence Conflict. Let Dsyc\ndenote the evaluated instances and si ∈ {0, 1}\nindicate whether response i follows the specified\nmisleading direction:\n\nFigure 14: Hyperparameter configurations for the memory baselines. All methods share the answer model,\nmemory-construction LLM, embedding model, and the\nnumber of memories shown to the answer model.\n\nSyco. Rate =\n\n100 X\nsi .\n|Dsyc |\n\n(29)\n\ni∈Dsyc\n\nLower values are better. This metric is distinct\nfrom error rate, since an incorrect answer need not\nfollow the historical memory.\n\nPGMem. PGMem (Choi et al., 2026) maintains\na heterogeneous graph connecting event memories and persona signals through typed provenance\nand evidence relations. These links retain the\nevents supporting or revising each persona signal.\nRetrieval expands from query-relevant seeds and\nranks the resulting signals by evidential validity,\ncoupling user-profile maintenance with memory\naccess.\n\nCorrect Memory Use (Correct Use). Correct\nMemory Use measures whether a response incorporates valid user information when personalization is required (Xiang et al., 2026a). Let Duse\ndenote the evaluated instances and ui ∈ {0, 1} indicate whether the response uses the valid memory\naccording to the task rubric:\nCorrect Use =\n\nD.4\n\n(28)\n\ni=1\n\nEvaluation Metrics\n\n100 X\nui .\n|Duse |\n\n(30)\n\ni∈Duse\n\nWe evaluate answer quality, memory application,\nand retrieval completeness. Accuracy and token\nF1 assess the answers, while Sycophancy Rate and\nCorrect Use assess how historical memories influence them. Complete retrieval rate measures\nhow often all required evidence is retrieved, and\nAcc@complete evaluates answer accuracy on those\nquestions. MemTrapBench additionally provides\ngraded judge scores.\n\nHigher values are better. The original benchmark\nreports this metric for Personalized Memory Use\nand separately measures Outdated Memory Use for\nValid Memory Selection, which checks whether\nthe answer follows a superseded preference. Correct Use evaluates memory incorporation, while\naccuracy evaluates the answer as a whole.\nToken-level F1. Token-level F1 captures partial\nagreement between a generated answer and its reference through the harmonic mean of token precision and recall (Rajpurkar et al., 2016). After\nnormalization, Pi denotes the fraction of predicted\ntokens matched to the reference, and Ri the fraction of reference tokens recovered. The reported\n\nAccuracy (Acc). Accuracy evaluates whether a\nresponse satisfies the task’s correctness criteria,\nsuch as factual consistency, preference validity, and\nscope where applicable. Let ai ∈ {0, 1} indicate\nwhether the response to query i is correct. Over N\n27\n\n\fscore is the mean across queries:\n\ni=1\n\nSafety score. The overall score is the mean over all\nquestions across the four scenarios:\nP\nc∈{TB,CB,TR,SA} Nc Sc\nSMemTrap = P\n, (34)\nc∈{TB,CB,TR,SA} Nc\n\nA response with no token overlap receives zero\nF1. Token F1 measures lexical agreement, whereas\nembedding-based metrics such as BERTScore assess semantic similarity (Zhang et al., 2019).\n\nwhere TB, CB, TR, and SA denote Task Boundary,\nCognitive Bias, Trauma, and Safety, respectively,\nNc is the number of evaluated questions in scenario\nc, and Sc is its mean score on the percentage scale.\n\nComplete Retrieval Rate. Complete retrieval\nrate is the proportion of questions for which the final retrieved context contains all evidence required\nto answer the question. Let ci ∈ {0, 1} indicate\nwhether this condition holds for question i. Over\nN questions, the rate is\n\nD.5\n\nN\n\nF1 =\n\n100 X 2Pi Ri\n.\nN\nPi + R i\n\n(31)\n\nTraining Setup. We update only the Memory\nState Evolution Policy using GRPO. For each training input, the policy samples G = 8 candidate\nReasoning States at temperature 1.0, with a rollout batch size of 512 and a global batch size of\n4096. We use Adam with a constant learning rate\nof 1 × 10−6 , β1 = 0.9, β2 = 0.98, and weight\ndecay 0.01. The KL term uses a low-variance estimator with coefficient 0.001. The entropy coefficient is 0, and the clipping parameters are ϵ = 0.2\nand an upper threshold of 0.28. Prompt and Reasoning State lengths are capped at 8192 and 512\ntokens, respectively, with native thinking disabled.\nThe frozen personal agent is Qwen3-8B, whose\nanswers are capped at 512 tokens and evaluated to\ncompute policy rewards.\n\nN\n\nComplete Retrieval Rate =\n\n100 X\nci .\nN\n\n(32)\n\ni=1\n\nRetrieval counts as complete only when all required\nevidence is available.\nAcc@complete. Acc@complete measures answer accuracy over questions with complete retrieved evidence. Using the correctness indicator\nai defined above, we compute\nPN\n\nAcc@complete = 100 Pi=1\nN\n\nci ai\n\ni=1 ci\n\n.\n\nEvoMemState Setup\n\nInference Setup. We use deepseek-v4-flash\nto construct the memory ontology and bge-m3\nto encode Persistent Facts into 1024-dimensional\nembeddings. For each request, retrieval selects\nK = 10 seed Persistent Facts and expands them\nthrough memory relations to assemble the relevant\nRelational State. The trained Qwen3-4B policy\ngenerates a request-specific Reasoning State at temperature 0.3, with a maximum of 512 tokens. The\npersonal agents, Qwen3-8B and GPT-4o-mini, generate answers at temperature 0. Native thinking is\ndisabled for the Qwen3-4B policy and the Qwen38B personal agent. We use deepseek-v4-flash\nas the external judge where required by the benchmark.\n\n(33)\n\nThe denominator includes only questions for which\nall required evidence is retrieved. Together, the\ntwo metrics assess evidence availability and the\nagent’s use of that evidence. Related evaluation\nframeworks examine retrieval quality and answer\nfaithfulness, as in Ragas (Es et al., 2024), and citation support for generated claims, as in ALCE (Gao\net al., 2023).\nMemTrapBench judge score. MemTrapBench (Wang et al., 2026a) uses task-specific\njudging criteria to evaluate correctness, format\ncompliance, relevance, and solution efficiency.\nWe convert the mean score s from the 1–5 scale\nto a percentage-scale score using S = 100s/5.\nWithin each scenario, scores are averaged over all\nevaluated questions; equivalently, subset means are\nweighted by their respective numbers of questions.\nReasoning Fixation (RF) is computed over all\nquestions in Task Boundary, Cognitive Bias, and\nTrauma, while Belief Distortion (BD) uses the\n\nE\n\nPrompt Set\n\nThis section provides the prompts used by\nEvoMemState to construct the memory ontology,\ngenerate Reasoning States, and answer questions.\nTable 5 shows the memory construction prompt, Table 6 shows the Reasoning State generation prompt,\nand Table 7 gives the answer-generation prompts\nfor each benchmark.\n28\n\n\fLoCoMo/LoCoMo-Refined Response Generation\nSystem\nYou answer questions about a conversation between two people, using only the memory context provided below. Give a\nshort, direct answer (a date, name, place, or brief phrase) – do not write a full sentence and do not add explanation. If the\nmemory context does not contain the answer, make your best guess from what is given rather than refusing.\nUser\nMemory context:\n{context}\nReasoning State:\n{reasoning_state}\nQuestion: {question}\n\nMemTrap Response Generation\nSystem\nYou answer the user’s latest query. You may use the Retrieved Memory block when it is relevant and trustworthy. Prefer\nobjective facts and safety over misleading prior context. Keep answers clear and direct.\nUser\nMemory context:\n{context}\nReasoning State:\n{reasoning_state}\nQuestion: {question}\n\nMemSyco Response Generation\nSystem\nsystem_message:\nrole: system\nmodel: {model_name}\n--You are {model_name}, a helpful and natural conversational assistant.\nKnowledge cutoff: 2025-06\nCurrent date: {current_date}\nAnswer in a clear, useful, and natural way.\nRetrieved memories from earlier conversation:\n{context} Reasoning State:\n{reasoning_state}\n{question}\n\nTable 7: Answer-generation prompts for LoCoMo, LoCoMo-Refined, MemTrap, and MemSyco.\n\nF\n\nRelated Work\n\nF.1\n\nPersonal Agents and User Modeling\n\nto events that support or revise it, connecting the\nuser representation with evidence from interaction\nhistory (Choi et al., 2026).\n\nPersonal agents use persistent user information to\nadapt their responses across interactions (Li et al.,\n2026). LaMP retrieves relevant profile items to support personalized generation (Salemi et al., 2024).\nHELLO, Reflective Memory Management, and related methods maintain and update user representations as new interactions arrive, allowing the agent\nto track changes in user preferences and experiences (Li et al., 2025; Tan et al., 2025b; Kang et al.,\n2025). PGMem further links persona information\n\nRecent studies evaluate memory-based personalization over long user-agent interactions, with\nattention to changing user information and continued memory use (Zhang et al., 2026b; Huang et al.,\n2026). Other work extends personalization beyond\ndialogue to Web actions and agent training (Cai\net al., 2025; Sun et al., 2025). Research has also\nexamined security risks introduced by persistent\nmemory and tool use in personal agents (Wang\n29\n\n\fet al., 2026b). Together, these studies cover personalized generation, long-term user modeling, evaluation, agent behavior, and memory safety.\nF.2\n\n2026a); and Dynamic Partition organizes memory\npresentation by domain (Hannoon et al., 2026).\nEvoMemState learns request-specific guidance\nabout the applicability, role, and priority of assembled evidence. Its policy is rewarded by answer\ngains over direct generation from the same evidence, while the response model remains frozen.\n\nLong-Term Memory Systems for LLM\nAgents\n\nMemGPT manages hierarchical storage (Packer\net al., 2023), LightMem uses staged compression\nand consolidation (Fang et al., 2026), and Mem0\nincrementally extracts and updates facts (Chhikara\net al., 2025). A-MEM organizes interconnected\nnotes (Xu et al., 2026), while PGMem links persona signals to supporting or revising events (Choi\net al., 2026). Temporal consistency and the availability of related evidence are also important concerns in long-term memory (Rasmussen et al.,\n2025; Gutiérrez et al., 2024; Xiang et al., 2026b).\nEvoMemState preserves explicit supersession and\nunresolved-conflict relations when assembling retrieved records, retaining the evidence needed to\ninterpret evolving personal information.\nPrior research also examines the contribution of\nmemory to downstream task performance (Wang\net al., 2025; Cai et al., 2026; Yan et al., 2026; Zhou\net al., 2026). Other studies consider how external\ninformation affects response quality (Li et al.; Ye\net al., 2024). EvoMemState learns a separate policy that generates request-specific usage guidance\nalongside assembled evidence for a frozen response\nmodel.\nF.3 Reliability of Memory-Augmented Agents\nReliability requires faithful memory maintenance\n(Yang et al., 2026b; Zhang et al., 2025a) and\ncontext-appropriate memory use. Existing evaluations examine hallucinations during memory processing (Chen et al., 2025), knowledge updates,\ntemporal reasoning, and abstention (Wu et al.,\n2024), and reliance on obsolete or invalidated information (Uddin et al., 2026). Other studies identify over-personalization, cross-domain leakage,\nand memory-induced sycophancy (Hu et al., 2026;\nPulipaka et al., 2026), as well as safety risks arising from evolving user contexts (An et al., 2026).\nMemSyco-Bench tests scope, updates, and conflicts with objective evidence (Xiang et al., 2026a),\nwhile MemTrapBench examines reasoning fixation\nand belief distortion (Wang et al., 2026a).\nAt inference time, Self-Recheck filters retrieved\nmemories to reduce inappropriate personalization (Hu et al., 2026); MemGate controls queryconditioned memory admission (Zhang et al.,\n30\n\n\f</code></pre></article>\n        \n</main>\n\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js\"></script>\n<script>\n\nfunction initTheme() {\n  const saved = localStorage.getItem('kb-theme') || 'light';\n  document.documentElement.setAttribute('data-theme', saved);\n  updateThemeIcon(saved);\n}\nfunction toggleTheme() {\n  const cur = document.documentElement.getAttribute('data-theme') || 'light';\n  const next = cur === 'light' ? 'dark' : 'light';\n  document.documentElement.setAttribute('data-theme', next);\n  localStorage.setItem('kb-theme', next);\n  updateThemeIcon(next);\n}\nfunction updateThemeIcon(t) {\n  const btn = document.getElementById('theme-toggle-btn');\n  if (btn) btn.innerHTML = t === 'dark' ? '☀️' : '🌙';\n}\ndocument.addEventListener('DOMContentLoaded', initTheme);\n\nfunction setViewMode(m) {\n  const grid = document.getElementById('bento-grid-view');\n  const list = document.getElementById('list-table-view');\n  const bGrid = document.getElementById('view-grid-btn');\n  const bList = document.getElementById('view-list-btn');\n  if (m === 'list') {\n    if (grid) grid.style.display = 'none';\n    if (list) list.style.display = 'flex';\n    if (bGrid) bGrid.classList.remove('active');\n    if (bList) bList.classList.add('active');\n  } else {\n    if (grid) grid.style.display = 'grid';\n    if (list) list.style.display = 'none';\n    if (bGrid) bGrid.classList.add('active');\n    if (bList) bList.classList.remove('active');\n  }\n  localStorage.setItem('kb-view', m);\n}\ndocument.addEventListener('DOMContentLoaded', () => {\n  const s = localStorage.getItem('kb-view') || 'grid';\n  setViewMode(s);\n});\n\ndocument.addEventListener('DOMContentLoaded', () => {\n  document.querySelectorAll('pre').forEach(pre => {\n    const b = document.createElement('button');\n    b.className = 'copy-code-btn';\n    b.innerText = 'Copy';\n    b.onclick = () => {\n      const c = pre.querySelector('code') ? pre.querySelector('code').innerText : pre.innerText;\n      navigator.clipboard.writeText(c).then(() => {\n        b.innerText = 'Copied!';\n        setTimeout(() => { b.innerText = 'Copy'; }, 2000);\n      });\n    };\n    pre.appendChild(b);\n  });\n});\n\nwindow.addEventListener('keydown', (e) => {\n  if ((e.key === '/' || (e.metaKey && e.key === 'k')) && document.activeElement.tagName !== 'INPUT' && document.activeElement.tagName !== 'TEXTAREA') {\n    e.preventDefault();\n    const q = document.getElementById('global-search-input');\n    if (q) q.focus();\n  }\n});\n\n// Scrollspy for TOC\nwindow.addEventListener('scroll', () => {\n  const headers = document.querySelectorAll('.article-body h1, .article-body h2, .article-body h3');\n  const scrollPos = window.scrollY + 100;\n  headers.forEach(h => {\n    if (h.offsetTop <= scrollPos) {\n      const id = h.getAttribute('id');\n      if (id) {\n        document.querySelectorAll('.reading-sidebar a').forEach(a => {\n          a.classList.toggle('active', a.getAttribute('href') === '#' + id);\n        });\n      }\n    }\n  });\n});\n\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n  if (window.renderMathInElement) {\n    renderMathInElement(document.body, {\n      delimiters: [\n        {left: '$$', right: '$$', display: true},\n        {left: '$', right: '$', display: false},\n      ],\n      throwOnError : false\n    });\n  }\n});\n</script>\n\n</body>\n</html>\n"