"<!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>Published as a conference paper at ICLR 2026\n\nAGENTIC C ONTEXT E NGINEERING : E VOLVING C ON TEXTS FOR S ELF -I MPROVING L ANGUAGE M ODELS\nQizheng Zhang1∗ , Changran Hu2∗ , Shubhangi Upasani2 , Boyuan Ma2 , Fenglu Hong2 ,\nVamsidhar Kamanuru2 , Jay Rainton2 , Chen Wu2 , Mengmeng Ji2 , Hanchen Li3 ,\nUrmish Thakker2 , James Zou1 , Kunle Olukotun1\n1\nStanford University 2 SambaNova Systems, Inc. 3 UC Berkeley\n\nA BSTRACT\nLarge language model (LLM) applications such as agents and domain-specific\nreasoning increasingly rely on context adaptation: modifying inputs with instructions, strategies, or evidence, rather than weight updates. Prior approaches improve usability but often suffer from brevity bias, which drops domain insights for\nconcise summaries, and from context collapse, where iterative rewriting erodes\ndetails over time. We introduce ACE (Agentic Context Engineering), a framework that treats contexts as evolving playbooks that accumulate, refine, and organize strategies through a modular process of generation, reflection, and curation.\nACE prevents collapse with structured, incremental updates that preserve detailed\nknowledge and scale with long-context models. Across agent and domain-specific\nbenchmarks, ACE optimizes contexts both offline (e.g., system prompts) and online (e.g., agent memory), consistently outperforming strong baselines: +10.6%\non agents and +8.6% on finance, while significantly reducing adaptation latency\nand rollout cost. Notably, ACE could adapt effectively without labeled supervision\nand instead by leveraging natural execution feedback. On the AppWorld leaderboard, ACE matches the top-ranked production-level agent on the overall average\nand surpasses it on the harder test-challenge split, despite using a smaller opensource model. These results show that comprehensive, evolving contexts enable\nscalable, efficient, and self-improving LLM systems with low overhead.\n\n1\n\nI NTRODUCTION\n\nAgent: AppWorld\n\nDomain Knowledge: FiNER Numerical Reasoning: Formula\n\n80\n59.5% 82.5\n60\n80.0\n76.5%\n78.3%\n55\n77.5\n75\n51.9%\n71.5%\n75.0\n50\n73.5%74.2%\n72.3%\n69.5%\n46.0%46.4%\n70\n72.5 70.7%\n45 42.4%\n67.5%67.0%\n70.0\n40\n65\nM ICL GEPA DC ACE\nM ICL GEPA DC ACE\nL\nL\nL\nL\nLLM ICL GEPA DC ACE\nBase\nBase\nBase\n\nAccuracy (%)\n\narXiv:2510.04618v3 [cs.LG] 29 Mar 2026\n\n{qizhengz,kunle}@stanford.edu\nchangran_hu@berkeley.edu\n∗\nEqual contribution.\n§ ace-agent/ace\n ace-agent.github.io\n\nFigure 1: Overall Performance Results. Our proposed framework, ACE, consistently outperforms\nstrong baselines across agent and domain-specific tasks.\nModern AI applications based on large language models (LLMs), such as LLM agents (Yao et al.,\n2023; Yang et al., 2024) and compound AI systems (Zaharia et al., 2024), increasingly depend on\ncontext adaptation. Instead of modifying model weights, context adaptation improves performance\nafter model training by incorporating clarified instructions, structured reasoning steps, or domain1\n\n\fPublished as a conference paper at ICLR 2026\n\nspecific input formats directly into the model’s inputs. Contexts underpin many AI system components, including system prompts that guide downstream tasks (Opsahl-Ong et al., 2024; Agrawal\net al., 2025), memory that carries past facts and experiences (Suzgun et al., 2025; Xu et al., 2025),\nand factual evidence that reduces hallucination and supplements knowledge (Asai et al., 2024).\nAdapting through contexts rather than weights offers several key advantages. Contexts are interpretable and explainable for users and developers (Wei et al., 2022; Wang et al., 2023), allow rapid\nintegration of new knowledge at runtime (Lewis et al., 2020; Borgeaud et al., 2022), and can be\nshared across models or modules in a compound system (Khot et al., 2023). Meanwhile, advances in\nlong-context LLMs (Peng et al., 2024) and context-efficient inference such as KV cache reuse (Gim\net al., 2024; Yao et al., 2025) are making context-based approaches increasingly practical for deployment. As a result, context adaptation is emerging as a central paradigm for building capable,\nscalable, and self-improving AI systems.\nDespite this progress, existing approaches to context adaptation face two limitations. First, brevity\nbias: many prompt optimizers prioritize concise applicable instructions over comprehensive accumulation. For example, GEPA (Agrawal et al., 2025) highlights brevity as a strength, but such\nabstraction can omit domain-specific heuristics, tool-use guidelines, or common failure modes that\nmatter in practice (Gao et al., 2025). This objective aligns with validation metrics in some settings,\nbut often fails to capture the detailed strategies required by agents and knowledge-intensive applications. Second, context collapse: methods that rely on monolithic rewriting by an LLM often degrade\ninto shorter, less informative summaries over time, causing sharp performance declines (Figure 2).\nIn domains such as interactive agents (Trivedi et al., 2024; Patil et al., 2024; Zhang et al., 2024),\ndomain-specific programming (Ye et al., 2023; Zhang et al., 2025a;b; Mang et al., 2025), and financial or legal analysis (Loukas et al., 2022; Guha et al., 2023; Wang et al., 2025a), strong performance\ndepends on retaining detailed, task-specific knowledge rather than compressing it away.\nAs applications like agents and knowledge-intensive reasoning demand greater reliability, recent\nwork has shifted toward saturating contexts with abundant, potentially useful information (Jiang\net al., 2025; Chung et al., 2025; Chen et al., 2025), enabled by advances in long-context LLMs (Peng\net al., 2024; Mao et al., 2024). We argue that contexts should function not as concise summaries,\nbut as comprehensive, structured playbooks that are detailed, inclusive, and rich with domain\ninsights. Unlike humans, who often benefit from concise generalization, LLMs are more effective\nwhen provided with long, detailed contexts and can distill relevance autonomously (Jiang et al.,\n2025; Liu et al., 2025b; Suzgun et al., 2025). Thus, instead of compressing away domain-specific\nheuristics and tactics, contexts should preserve them, allowing the model to decide what matters\nduring inference time.\nTo address these limitations, we introduce ACE (Agentic Context Engineering), a framework for\ncomprehensive context adaptation in both offline settings (e.g., system prompt optimization) and\nonline settings (e.g., test-time memory adaptation). Rather than compressing contexts into distilled\nsummaries, ACE treats them as evolving playbooks that accumulate and organize strategies over\ntime. By design, ACE incorporates a modular workflow of generation, reflection, and curation,\nwhile adding structured, incremental updates guided by a grow-and-refine principle. This design\npreserves detailed, domain-specific knowledge, prevents context collapse, and yields contexts that\nremain comprehensive and scalable throughout adaptation.\nWe evaluate ACE on two categories of LLM applications that most benefit from comprehensive,\nevolving contexts: (1) agents (Trivedi et al., 2024), which require multi-turn reasoning, tool use,\nand environment interaction, where accumulated strategies can be reused across episodes; and (2)\ndomain-specific benchmarks, which demand specialized tactics and knowledge, like financial analysis (Loukas et al., 2022; Wang et al., 2025a). Our key findings are:\n• ACE consistently outperforms strong baselines, yielding average gains of 10.6% on agents and\n8.6% on domain-specific benchmarks, across both offline and online adaptation settings.\n• ACE is able to construct effective contexts without labeled supervision, instead leveraging execution feedback and environment signals, key ingredients for self-improving LLMs and agents.\n• On the AppWorld benchmark leaderboard (AppWorld), ACE surpasses the top-1-ranked\nproduction-level agent IBM-CUGA (Marreed et al., 2025) (powered by GPT-4.1) while using\nan open-source model (DeepSeek-V3.1).\n\n2\n\n\fPublished as a conference paper at ICLR 2026\n\n• ACE requires significantly fewer rollouts and achieves lower adaptation latency than existing\nadaptive methods, demonstrating that scalable self-improvement can be achieved with both higher\naccuracy and lower cost.\n\n2\n\nBACKGROUND AND M OTIVATION\n\n2.1\n\nC ONTEXT A DAPTATION\n\nContext adaptation (or context engineering) refers to methods that improve model behavior by constructing or modifying inputs to an LLM, rather than altering its weights. The current state of the art\nleverages natural language feedback (Shinn et al., 2023; Yuksekgonul et al., 2025; Agrawal et al.,\n2025). In this paradigm, a language model inspects the current context along with signals such as\nexecution traces, reasoning steps, or validation results, and generates natural language feedback on\nhow the context should be revised. This feedback is then incorporated into the context, enabling iterative adaptation. Representative methods include Reflexion (Shinn et al., 2023), which reflects on\nfailures to improve agent planning; TextGrad (Yuksekgonul et al., 2025), which optimizes prompts\nvia gradient-like textual feedback; GEPA (Agrawal et al., 2025), which refines prompts iteratively\nbased on execution traces and achieves strong performance, even surpassing reinforcement learning\napproaches in some settings; and Dynamic Cheatsheet (Krause et al., 2019), which constructs an\nexternal memory that accumulates strategies and lessons from past successes and failures during\ninference. These natural language feedback methods represent a major advance, offering flexible\nand interpretable signals for improving LLM systems beyond weight updates.\n2.2\n\nL IMITATIONS OF E XISTING C ONTEXT A DAPTATION M ETHODS\n\nBrevity Bias A recurring limitation of context adaptation methods is brevity bias: the tendency of\noptimization to collapse toward short, generic prompts. Gao et al. (Gao et al., 2025) document this\neffect in prompt optimization for test generation, where iterative methods repeatedly produced nearidentical instructions (e.g.,, “Create unit tests to ensure methods behave as expected”), sacrificing\ndiversity and omitting domain-specific detail. This convergence not only narrows the search space\nbut also propagates recurring errors across iterations, since optimized prompts often inherit the same\nfaults as their seeds. More broadly, such bias undermines performance in domains that demand detailed, context-rich guidance—such as multi-step agents, program synthesis, or knowledge-intensive\nreasoning—where success hinges on accumulating rather than compressing task-specific insights.\n# Tokens: 18,282\nAccuracy: 66.7\n\nAccuracy w/o context: 63.7\n\n# Tokens: 122\nAccuracy: 57.1\n\nFigure 2: Context Collapse. Monolithic rewriting of context by an LLM can collapse it into shorter,\nless informative summaries, leading to sharp performance drops.\nContext Collapse In a case study on the AppWorld benchmark (Trivedi et al., 2024), we observe\na phenomenon we call context collapse, which arises when an LLM is tasked with fully rewriting\nthe accumulated context at each adaptation step. As the context grows large, the model tends to\ncompress it into much shorter, less informative summaries, causing a dramatic loss of information.\nFor instance, at step 60 the context contained 18,282 tokens and achieved an accuracy of 66.7, but\nat the very next step it collapsed to just 122 tokens, with accuracy dropping to 57.1—worse than\nthe baseline accuracy of 63.7 without adaptation. While we highlight this through Dynamic Cheat3\n\n\fPublished as a conference paper at ICLR 2026\n\nsheet (Suzgun et al., 2025), the issue is not specific to that method; rather, it reflects a fundamental\nrisk of end-to-end context rewriting with LLMs, where accumulated knowledge can be abruptly\nerased instead of preserved.\n\nFigure 3: Example ACE-Generated Context on the AppWorld Benchmark (partially shown).\nACE-generated contexts contain detailed, domain-specific insights along with tools and code that\nare readily usable, serving as a comprehensive playbook for LLM applications.\n\n3\n\nAGENTIC C ONTEXT E NGINEERING (ACE)\n\nWe present ACE (Agentic Context Engineering), a framework for scalable and efficient context\nadaptation in both offline (e.g., system prompt optimization) and online (e.g., test-time memory\nadaptation) scenarios. Instead of condensing knowledge into terse summaries or static instructions,\nACE treats contexts as evolving playbooks that continuously accumulate, refine, and organize strategies over time. Inspired by the agentic design of Dynamic Cheatsheet (Suzgun et al., 2025), ACE\nintroduces a structured division of labor across three roles (Figure 4): the Generator, which produces reasoning trajectories; the Reflector, which distills concrete insights from successes and errors; and the Curator, which integrates these insights into structured context updates. This mirrors\nhow humans learn: experimenting, reflecting, and consolidating, while avoiding the bottleneck of\noverloading a single model with all responsibilities.\nTo address the limitations of prior methods discussed in §2.2 (notably brevity bias and context collapse) ACE introduces three key innovations: (1) a dedicated Reflector that separates evaluation and\ninsight extraction from curation, improving context quality and downstream performance (§4.6); (2)\nincremental delta updates (§3.1) that replace costly monolithic rewrites with localized edits, reducing both latency and compute cost (§4.7); and (3) a grow-and-refine mechanism (§3.2) that balances\nsteady context expansion with redundancy control.\nAs shown in Figure 4, the workflow begins with the Generator producing reasoning trajectories for\nnew queries, which surface both effective strategies and recurring pitfalls. The Reflector critiques\nthese traces to extract lessons, optionally refining them across multiple iterations. The Curator\nthen synthesizes these lessons into compact delta entries, which are merged deterministically into\nthe existing context by lightweight, non-LLM logic. Because updates are itemized and localized,\nmultiple deltas can be merged in parallel, enabling batched adaptation at scale. ACE further supports\nmulti-epoch adaptation, where the same queries are revisited to progressively strengthen the context.\n4\n\n\fPublished as a conference paper at ICLR 2026\n\nIterative Refinement\nQuery\nInsights\n\nTrajectory\nGenerator\n\nReflector\n\nContext\nPlaybook\n\nCurator\n\nUpdate\nDelta Context Items\n\nFigure 4: The ACE Framework. Inspired by Dynamic Cheatsheet, ACE adopts an agentic architecture with three specialized components: a Generator, a Reflector, and a Curator.\n3.1\n\nI NCREMENTAL D ELTA U PDATES\n\nA core design principle of ACE is to represent context as a collection of structured, itemized bullets,\nrather than a single monolithic prompt. The concept of a bullet is similar to the concept of a memory\nentry in LLM memory frameworks like Dynamic Cheatsheet (Suzgun et al., 2025) and A-MEM (Xu\net al., 2025), but builds on top of that and consists of (1) metadata, including a unique identifier\nand counters tracking how often it was marked helpful or harmful; and (2) content, capturing a\nsmall unit such as a reusable strategy, domain concept, or common failure mode. When solving new\nproblems, the Generator highlights which bullets were useful or misleading, providing feedback that\nguides the Reflector in proposing corrective updates.\nThis itemized design enables three properties: (1) localization, so only the relevant bullets are updated; (2) fine-grained retrieval, so the Generator can focus on the most pertinent knowledge; and (3)\nincremental adaptation, allowing efficient merging, pruning, and de-duplication during inference.\nRather than regenerating contexts in full, ACE incrementally produces compact delta contexts: small\nsets of candidate bullets distilled by the Reflector and integrated by the Curator. This avoids the\ncomputational cost and latency of full rewrites, while ensuring that past knowledge is preserved and\nnew insights are steadily appended. As contexts grow, this approach provides the scalability needed\nfor long-horizon or domain-intensive applications.\n3.2\n\nG ROW- AND -R EFINE\n\nBeyond incremental growth, ACE ensures that contexts remain compact and relevant through periodic or lazy refinement. In grow-and-refine, bullets with new identifiers are appended, while existing\nbullets are updated in place (e.g., incrementing counters). A de-duplication step then prunes redundancy by comparing bullets via semantic embeddings. This refinement can be performed proactively\n(after each delta) or lazily (only when the context window is exceeded), depending on application\nrequirements for latency and accuracy.\nTogether, incremental updates and grow-and-refine maintain contexts that expand adaptively, remain\ninterpretable, and avoid the potential variance introduced by monolithic context rewriting.\n\n4\n\nR ESULTS\n\nOur evaluation of ACE shows that:\n• Enabling High-Performance, Self-Improving Agents. ACE enables agents to self-improve by\ndynamically refining their input context, both in offline and online settings. It boosts accuracy on\nthe AppWorld benchmark by up to 17.1% by learning to engineer better contexts from execution\nfeedback alone, without needing ground-truth labels. (§4.3)\n• Large Gains on Domain-Specific Benchmarks. On complex financial reasoning benchmarks,\nACE delivers an average performance gain of 8.6% over strong baselines by constructing comprehensive playbooks with domain-specific concepts and insights. (§4.4)\n5\n\n\fPublished as a conference paper at ICLR 2026\n\n• Effective by Design. Ablation studies confirm our design choices are key to success, with components like the Reflector, multi-epoch refinement, and incremental delta update each contributing\nsubstantial performance gains. (§4.6)\n• Lower Cost and Adaptation Latency. ACE achieves these gains efficiently, reducing adaptation\nlatency by 86.9% on average, while requiring fewer rollouts and lower token dollar costs. (§4.7)\n4.1\n\nTASKS AND DATASETS\n\nWe evaluate ACE on two categories of LLM applications that benefit most from evolving contexts:\n(1) LLM agent, which require multi-turn reasoning, tool use, and environment interaction; with\nACE, agents can accumulate and reuse strategies across episodes and environments; and (2) domainspecific reasoning, which demand mastery of specialized concepts and tactics; we focus on financial\nanalysis as a main case study, and show additional results on medical reasoning and text-to-SQL.\n• LLM Agent: AppWorld (Trivedi et al., 2024) is a suite of autonomous agent tasks involving API\nunderstanding, code generation, and environment interaction. It provides a realistic execution environment with common applications and APIs (e.g., email, file system) and tasks of two difficulty\nlevels (normal and challenge). A public leaderboard (AppWorld) tracks performance, where, at\nthe time of submission, the best system achieved only 60.3% average accuracy, highlighting the\nbenchmark’s difficulty and realism.\n• Domain-Specific Reasoning: Financial, Medical, and Text-to-SQL Benchmarks We use finance as our main case study in §4.4. For financial analysis, we focus on FiNER (Loukas et al.,\n2022) and Formula (Wang et al., 2025a), which test LLMs on financial reasoning tasks that rely on\nthe eXtensible Business Reporting Language (XBRL). FiNER requires labeling tokens in XBRL\nfinancial documents with one of 139 fine-grained entity types, a key step for financial information\nextraction in regulated domains. Formula focuses on applying financial concepts and performing\ncomputations to answer queries, i.e., numerical reasoning. Beyond finance, we evaluate on two\nadditional domain tasks from StreamBench (Wu et al., 2024): DDXPlus (Fansi Tchango et al.,\n2022) (medical reasoning) and BIRD-SQL (Li et al., 2023) (text-to-SQL).\nEvaluation Metrics For AppWorld, we follow the official benchmark protocol and report Task\nGoal Completion (TGC) and Scenario Goal Completion (SGC) on both the test-normal and testchallenge splits. For FiNER, Formula and DDXPlus, we follow the original setup and report accuracy, measured as the proportion of predicted answers that exactly match the ground truth. For\nBIRD-SQL, we use GPT-4o-mini (OpenAI, 2024) under LLM-as-a-judge (Zheng et al., 2023).\nAll datasets follow the original train/validation/test splits. For offline context adaptation, methods\nare optimized on the training split and evaluated on the test split with pass@1 accuracy. For online\ncontext adaptation, methods are evaluated sequentially on the test split: for each sample, the model\nfirst predicts with the current context, then updates its context based on that sample. The same\nshuffled test split is used across all methods.\n4.2\n\nBASELINES AND M ETHODS\n\nBase LLM The base model is evaluated directly on each benchmark without any context engineering, using the default prompts provided by dataset authors. For AppWorld, we follow the official\nReAct (Yao et al., 2023) implementation released by the benchmark authors, and build all other\nbaselines and methods on top of this framework.\nIn-Context Learning (ICL) (Agarwal et al., 2024) ICL provides the model with task demonstrations in the input prompt (few-shot or many-shot). This allows the model to infer the task format\nand desired output without weight updates. We supply all training samples when they fit within the\nmodel’s context window; otherwise, we fill the window with as many demonstrations as possible.\nMIPROv2 (Opsahl-Ong et al., 2024) MIPROv2 is a popular prompt optimizer for LLM\napplications that works by jointly optimizing system instructions and in-context demonstrations via bayesian optimization. We use the official DSPy implementation (DSPy, b), setting\nauto=\"heavy\" to maximize optimization performance.\n6\n\n\fPublished as a conference paper at ICLR 2026\n\nGEPA (Agrawal et al., 2025) GEPA (Genetic-Pareto) is a sample-efficient prompt optimizer\nbased on reflective prompt evolution. It collects execution traces (reasoning, tool calls, intermediate outputs) and applies natural-language reflection to diagnose errors, assign credit, and propose\nprompt updates. A genetic Pareto search maintains a frontier of high-performing prompts, mitigating local optima. Empirically, GEPA outperforms reinforcement learning methods such as GRPO\nand prompt optimizers like MIPROv2, achieving up to 10–20% higher accuracy with as much as\n35× fewer rollouts. We use the official DSPy implementation (DSPy, a), setting auto=\"heavy\"\nto maximize optimization performance.\nDynamic Cheatsheet (DC) (Suzgun et al., 2025) DC is a test-time learning approach that introduces an adaptive external memory of reusable strategies and code snippets. By continuously updating this memory with newly encountered inputs and outputs, DC enables models to accumulate\nknowledge and reuse it across tasks, often leading to substantial improvements over static prompting methods. A key advantage of DC is that it does not require ground-truth labels: the model can\ncurate its own memory from its generations, making the method highly flexible and broadly applicable. We use the official implementation released by the authors (Suzgun et al.) and set it to use\nthe cumulative mode (DC-CU).\nACE (ours) ACE optimizes LLM contexts for both offline and online adaptation through an agentic context engineering framework. To ensure fairness, we use the same LLM for the Generator,\nReflector, and Curator (non-thinking mode of DeepSeek-V3.1 (Liu et al., 2024a)), preventing knowledge transfer from a stronger Reflector or Curator to a weaker Generator. This isolates the benefit\nof context construction itself. We additionally evaluate ACE with other backbone LLMs in the appendix, where we observe consistent gains. We adopt a batch size of 1 (constructing a delta context\nfrom each sample). We set the maximum number of Reflector refinement rounds and the maximum\nnumber of epoch in offline adaptation to 5.\n4.3\n\nR ESULTS ON AGENT B ENCHMARK\n\nMethod\n\nGT Labels\n\nTest-Normal\nTGC↑\n\nReAct\n\nSGC↑\n\nTest-Challenge\nTGC↑\n\nSGC↑\n\nDeepSeek-V3.1-671B as Base LLM\n63.7\n42.9\n41.5\n\nReAct + ICL\nReAct + GEPA\nReAct + ACE\nReAct + ACE\n\n✓\n✓\n✓\n✗\n\nOffline Adaptation\n64.3+0.6\n46.4+3.5\n46.0+4.5\n64.9+1.2\n44.6+1.7\n46.0+4.5\n76.2+12.5 64.3+21.4 57.3+15.8\n75.0+11.3 64.3+21.4 54.4+12.9\n\nReAct + DC (CU)\nReAct + ACE\n\n✗\n✗\n\nOnline Adaptation\n65.5+1.8\n58.9+16.0 52.3+10.8\n69.6+5.9\n53.6+10.7 66.0+24.5\n\nAverage\n\n21.6\n\n42.4\n\n27.3+5.7\n30.2+8.6\n39.6+18.0\n35.2+13.6\n\n46.0+3.6\n46.4+4.0\n59.4+17.0\n57.2+14.8\n\n30.8+9.2\n48.9+27.3\n\n51.9+9.5\n59.5+17.1\n\nTable 1: Results on the AppWorld Agent Benchmark (DeepSeek-V3.1-671B as the Base LLM).\n“GT labels” indicates whether ground-truth labels are available to the Reflector during adaptation.\nWe evaluate the ACE framework against multiple baselines on top of the official ReAct implementation, both for offline and online context adaptation. ReAct + ACE outperforms selected baselines\nby an average of 10.6%, and could achieve good performance even without access to GT labels.\nAnalysis: AppWorld As shown in Table 1, ACE consistently improves over strong baselines\non AppWorld. In the offline setting, ReAct + ACE outperforms both ReAct + ICL and ReAct\n+ GEPA by significant margins (12.3% and 11.9%, respectively), demonstrating that structured,\nevolving, and detailed contexts enable more effective agent learning than fixed demonstrations or\nsingle optimized instruction prompts. These gains extend to the online setting, where ACE continues\nto outperform prior adaptive methods such as Dynamic Cheatsheet by an average of 7.6%.\nIn the agent use case, ACE remains effective even without access to ground-truth labels during\nadaptation: ReAct + ACE achieves an average improvement of 14.8% over the ReAct baseline\n7\n\n\fPublished as a conference paper at ICLR 2026\n\nin this setting. This robustness arises because ACE leverages signals naturally available during\nexecution (e.g., code execution success or failure) to guide the Reflector and Curator in forming\nstructured lessons of successes and failures. Together, these results establish ACE as a strong and\nversatile framework for building self-improving agents that adapt reliably both with and without\nlabeled supervision.\nNotably, on the latest AppWorld leaderboard (as of September 20, 2025; Figure 5), ReAct + ACE\n(59.4% average) matches the top-1-ranked IBM CUGA (60.3%)1 , a production-level GPT-4.1–based\nagent (Marreed et al., 2025), despite using the much smaller open-source model DeepSeek-V3.1.\nWith online adaptation, ReAct + ACE even surpasses IBM CUGA by 8.4% in TGC and 0.7%\nin SGC on test-challenge, underscoring the effectiveness of ACE in building comprehensive and\nself-evolving contexts for agents.\n4.4\n\nR ESULTS ON D OMAIN -S PECIFIC B ENCHMARK\nMethod\n\nGT Labels\n\nFiNER (Acc↑)\n\nFormula (Acc↑)\n\nAverage\n\nBase LLM\n\nDeepSeek-V3.1 as Base LLM\n70.7\n67.5\n\nICL\nMIPROv2\nGEPA\nACE\nACE\n\n✓\n✓\n✓\n✓\n✗\n\nOffline Adaptation\n72.3+1.6\n67.0−0.5\n72.4+1.7\n69.5+2.0\n73.5+2.8\n71.5+4.0\n78.3+7.6\n85.5+18.0\n71.1+0.4\n83.0+15.5\n\n69.6+0.5\n70.9+1.8\n72.5+3.4\n81.9+12.8\n77.1+8.0\n\nDC (CU)\nDC (CU)\nACE\nACE\n\n✓\n✗\n✓\n✗\n\nOnline Adaptation\n74.2+3.5\n69.5+2.0\n68.3−2.4\n62.5−5.0\n76.7+6.0\n76.5+9.0\n67.3−3.4\n78.5+11.0\n\n71.8+2.7\n65.4−3.7\n76.6+7.5\n72.9+3.8\n\n69.1\n\nTable 2: Results on Financial Analysis Benchmark (DeepSeek-V3.1-671B as the Base LLM).\n“GT labels” indicates whether ground-truth labels are available to the Reflector during adaptation.\nWith GT labels, ACE achieves consistent improvements in both offline and online settings, highlighting the advantage of structured and evolving contexts for domain-specific reasoning. However,\nwe also observe that in the absence of reliable feedback signals (e.g., ground-truth labels or execution outcomes), both ACE and other adaptive methods such as Dynamic Cheatsheet may degrade,\nsuggesting that context adaptation depends critically on feedback quality.\nAnalysis: Finance Benchmark As shown in Table 2, ACE delivers strong improvements on financial analysis benchmarks. In the offline setting, when provided with ground-truth answers from\nthe training split, ACE surpasses ICL, MIPROv2, and GEPA by clear margins (an average of 10.9%),\nshowing that structured and evolving contexts are particularly effective when tasks require precise\ndomain knowledge (e.g., financial concepts, XBRL rules) that goes beyond fixed demonstrations or\nmonolithic optimized prompts. In the online setting, ACE continues to exceed prior adaptive methods such as DC by an average of 6.2%, further confirming the benefit of agentic context engineering\nfor accumulating reusable insights across specialized domains.\nMoreover, we also observe that when ground-truth supervision or reliable execution signals are\nabsent, both ACE and DC may degrade in performance. In such cases, the constructed context can\nbe polluted by spurious or misleading signals, highlighting a potential limitation of inference-time\nadaptation without reliable feedback. This suggests that while ACE is robust under rich feedback\n(e.g., code execution results or formula correctness in agent tasks), its effectiveness depends on the\n1\nWe mention IBM CUGA as a rough contextual reference to show that ACE operates in a similar performance range on the AppWorld leaderboard. It is not used as a methodological baseline, and we do not make\ndirect comparisons. CUGA’s internal design differs from ACE’s context-adaptation focus, and all baselines are\nevaluated under identical setups to isolate methodological effects rather than agent-engineering choices.\n\n8\n\n\fPublished as a conference paper at ICLR 2026\n\navailability of signals that allow the Reflector and Curator to make sound judgments. We return to\nthis limitation in §5.\nAnalysis: Medical and Text-to-SQL Benchmark While this subsection focuses on finance as\na detailed case study, ACE is not finance-specific: we also see consistent gains on other domainspecific tasks, including medical reasoning and text-to-SQL, suggesting that the same playbookstyle context adaptation transfers across domains. Full results are reported in Appendix §A.2.\n4.5\n\nG ENERALIZATION ACROSS LLM S\n\nTable 1 and Table 2 use our default backbone (DeepSeek-V3.1), but ACE is not specific to this\nmodel. We can swap in other LLMs without changing the algorithm or prompts, and still see consistent gains on AppWorld and Finance benchmarks. Appendix §A.1 reports full results on GPTOSS-120B, GPT-5.1, and Llama-3.3-70B-Instruct, where ACE improves over the corresponding\nbase agents or models. These results suggest ACE is a generalizable method for test-time context\nevolution across LLM families.\n4.6\n\nA BLATION S TUDY AND S ENSITIVITY A NALYSIS\n\nAblation Study Table 3 reports ablation studies on AppWorld, analyzing how individual design\nchoices of ACE contribute to effective context adaptation. We examine three factors: (1) the Reflector with iterative refinement, our addition to the agentic framework beyond Dynamic Cheatsheet,\n(2) multi-epoch adaptation, which refines contexts over training samples multiple times, and (3)\noffline warmup, which initializes the context through offline adaptation before online adaptation begins. Additionally, we study the effect of incremental context update and why it is a key enabler for\nACE’s performance gain in Appendix §A.5.\nMethod\n\nTest-Normal\n\nGT Labels\n\nTGC↑\n\nTest-Challenge\n\nSGC↑\n\nTGC↑\n\nSGC↑\n\nDeepSeek-V3.1 as Base LLM\n63.7\n42.9\n\nAverage\n\n41.5\n\n21.6\n\n42.4\n\nReAct + ACE w/o Reflector or multi-epoch\nReAct + ACE w/o multi-epoch\nReAct + ACE\n\nOffline Adaptation\n✓\n70.8+7.1 55.4+12.5\n✓\n72.0+8.3 60.7+17.8\n76.2+12.5 64.3+21.4\n✓\n\n55.9+14.4\n54.9+13.4\n57.3+15.8\n\n38.1+17.5\n39.6+18.0\n39.6+18.0\n\n55.1+12.7\n56.8+14.4\n59.4+17.0\n\nReAct + ACE\nReAct + ACE + offline warmup\n\nOnline Adaptation\n✗\n67.9+4.2\n51.8+8.9\n✗\n69.6+5.9 53.6+10.7\n\n61.4+19.9\n66.0+24.5\n\n43.2+21.6\n48.9+27.3\n\n56.1+13.7\n59.5+17.1\n\nReAct\n\nTable 3: Ablation Studies on AppWorld. We study how particular design choices of ACE (iterative\nrefinement, multi-epoch adaptation, and offline warmup) could help high-quality context adaptation.\nRobustness to Reflection Quality ACE is robust to reflection quality: it remains effective with\na much weaker Reflector and shows only modest additional gains from stronger reflectors, and it\ndegrades gracefully under noisy/harmful reflections, staying above the base model except under\nfully adversarial updates every iteration. Full experiment results are in Appendix §A.4.\nSensitivity to Hyperparameter Choice ACE’s gains are stable across a wide range of reasonable\nhyperparameter settings (e.g., Reflector refinement rounds, number of adaptation epochs, and growand-refine thresholds): performance changes are modest, and ACE consistently remains above the\ncorresponding baselines. Full discussion and detailed results are reported in Appendix §A.6.\n4.7\n\nC OST AND S PEED A NALYSIS\n\nDue to its support for incremental, “delta” context updates and non-LLM-based context merging and\nde-duplication, ACE demonstrates particular advantages in reducing the cost (in terms of the number\nof rollouts or the amount of dollar cost for token ingestion/generation) and latency of adaptation.\nAs examples, on the offline adaptation of AppWorld, ACE achieves 82.3% reduction in adaptation\nlatency and 75.1% reduction in the number of rollouts as compared to GEPA (Table 4(a)). On\n9\n\n\fPublished as a conference paper at ICLR 2026\n\nthe online adaptation of FiNER, ACE achieves 91.5% reduction in adaptation latency and 83.6%\nreduction in token dollar cost for token ingestion/generation as compared to DC (Table 4(b)).\nMethod\n\nLatency (s)↓\n\n# Rollouts↓\n\nMethod\n\nLatency (s)↓\n\nToken Cost ($)↓\n\nReAct + GEPA\nReAct + ACE\n\n53898\n9517(-82.3%)\n\n1434\n357(-75.1%)\n\nDC (CU)\nACE\n\n65104\n5503(-91.5%)\n\n17.7\n2.9(-83.6%)\n\n(b) Online (FiNER).\n\n(a) Offline (AppWorld).\n\nTable 4: Cost and Speed Analysis. We measure the context adaptation latency, number of rollouts,\nand dollar costs of ACE against GEPA (offline) and DC (online).\nFine-Grained Cost Analysis We conduct a fine-grained cost analysis of ACE and GEPA (as a representative baseline). On AppWorld, ACE is substantially cheaper during offline adaptation, reducing input/output token usage by 80.8%/83.6% vs. GEPA: ACE avoids GEPA’s prompt-validation\nloop and replaces repeated full rewrites with localized delta updates. At evaluation time, while ACE\nmay use more raw input tokens due to a richer playbook, this does not necessarily translate to higher\nbilled serving cost because a large fraction of the context is reused by KV caching; we quantify this\neffect in the next paragraph. Full results, including a component-wise token breakdown for both\nmethods, are in Appendix §A.3.\nKV Cache Reuse: Longer Context ̸= Higher Serving Cost Although ACE produces longer\ncontexts than methods such as GEPA, this does not translate to linearly higher inference cost or GPU\nmemory usage. Modern serving infrastructures are increasingly optimized for long-context workloads through techniques such as the reuse (Gim et al., 2024; Yao et al., 2025), compression (Liu\net al., 2024c;b), and offload (Lee et al., 2024; Li et al., 2025) of KV cache. These mechanisms\nallow frequently reused context segments to be cached locally or remotely, avoiding repetitive and\nexpensive prefill operations. Ongoing advances in ML systems suggest that the amortized cost of\nhandling long contexts is likely to decrease, making context-rich approaches like ACE increasingly\npractical in deployment. In our prompt-caching study with the OpenAI API (GPT-5.1), we find that\nACE achieves high cache reuse: 91.8% of input tokens are served from cache during evaluation\nstage, which reduces billed input-token cost by 82.6% relative to counting raw context tokens.\n\n5\n\nD ISCUSSION\n\nImplications for Online and Continual Learning Online and continual learning are key research\ndirections in machine learning for addressing issues like distribution shifts (Koh et al., 2021; Gulrajani &amp; Lopez-Paz, 2021) and limited training data (Pan &amp; Yang, 2010; Hutchinson et al., 2017;\nZhuang et al., 2019). ACE offers a flexible and efficient alternative to conventional model finetuning, as adapting contexts is generally cheaper than updating model weights (Brown et al., 2020;\nLester et al., 2021; Li &amp; Liang, 2021; Hu et al., 2022). Moreover, because contexts are humaninterpretable, ACE enables selective unlearning (Cao &amp; Yang, 2015; Bourtoule et al., 2021; Liu\net al., 2025a), whether due to privacy or legal constraints (gdp, 2016; ccp, 2018), or when outdated\nor incorrect information is identified by domain experts. These are promising directions for future\nwork, where ACE could play a central role in advancing continuous and responsible learning.\nLimitations and Challenges A limitation of ACE is its reliance on a reasonably strong Reflector:\nif the Reflector fails to extract meaningful insights from generated traces or outcomes, the constructed context may become noisy or even harmful. In domain-specific tasks where no model can\nextract useful insights, the resulting context will naturally lack them. This dependency is similar to\nDynamic Cheatsheet (Suzgun et al., 2025), where the quality of adaptation hinges on the underlying\nmodel’s ability to curate memory. We also note that not all applications require rich or detailed\ncontexts. Tasks like HotPotQA (Yang et al., 2018) often benefit more from concise, high-level instructions (e.g., how to retrieve and synthesize evidence) than from long contexts. Similarly, games\nwith fixed strategies such as Game of 24 (Suzgun et al., 2025) may only need a single reusable rule,\nrendering additional context redundant. Overall, ACE is most beneficial in settings that demand detailed domain knowledge, complex tool use, or environment-specific strategies that go beyond what\nis already embedded in model weights or simple system instructions.\n10\n\n\fPublished as a conference paper at ICLR 2026\n\nACKNOWLEDGEMENT\nWe thank the anonymous reviewers and area chair for their constructive feedback, which improved\nthis paper. Qizheng Zhang is supported by NSF award CNS-2211384 and DARPA award TFAWIHR00112520038. We also thank Lakshya A Agrawal, Xuekai Zhu, Yuhan Liu, Junchen Jiang, and\nAzalia Mirhoseini for helpful discussions.\n\nE THICS S TATEMENT\nThis work does not raise specific ethical concerns. Our contributions focus on developing algorithms\nand system frameworks for effective context adaptation in large language models (LLMs). All\nexperiments are conducted on publicly available benchmarks with open-source models, without\ninvolving human subjects, sensitive data, or privacy-related information. No potential conflicts of\ninterest are present.\n\nR EPRODUCIBILITY S TATEMENT\nOur code is available at github.com/ace-agent/ace. We provide detailed descriptions of\nour experimental setup, including datasets, benchmarks, evaluation metrics, baselines, and hyperparameter choices. Additional details, such as prompts for large language models and extended\nexperimental settings, are included in the appendix. With this information, readers with reasonable\ncomputational resources should be able to reproduce our results.\n\nR EFERENCES\nGeneral Data Protection Regulation (GDPR) Article 17: Right to Erasure. EU Regulation 2016/679,\n2016.\nCalifornia Consumer Privacy Act, Civil Code §1798.105: Right to Delete. State of California Civil\nCode, 2018.\nRishabh Agarwal, Avi Singh, Lei Zhang, Bernd Bohnet, Luis Rosias, Stephanie Chan, Biao Zhang,\nAnkesh Anand, Zaheer Abbas, Azade Nova, et al. Many-Shot In-Context Learning. Advances in\nNeural Information Processing Systems (NeurIPS), 37:76930–76966, 2024.\nLakshya A Agrawal, Shangyin Tan, Dilara Soylu, Noah Ziems, Rishi Khare, Krista Opsahl-Ong,\nArnav Singhvi, Herumb Shandilya, Michael J Ryan, Meng Jiang, et al. GEPA: Reflective Prompt\nEvolution Can Outperform Reinforcement Learning. arXiv preprint arXiv:2507.19457, 2025.\nAppWorld. Leaderboard. https://appworld.dev/leaderboard. Accessed: 09/2025.\nAkari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi. Self-RAG: Learning to\nRetrieve, Generate, and Critique through Self-Reflection. In The Twelfth International Conference\non Learning Representations (ICLR), 2024.\nSebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George Bm Van Den Driessche, Jean-Baptiste Lespiau, Bogdan Damoc, Aidan Clark, et al.\nImproving Language Models by Retrieving from Trillions of Tokens. In International Conference\non Machine Learning (ICML), pp. 2206–2240. PMLR, 2022.\nLucas Bourtoule, Varun Chandrasekaran, Christopher Choquette-Choo, Hengrui Jia, Adelin Travers,\nBaiwu Zhang, David Lie, and Nicolas Papernot. Machine Unlearning. In IEEE Symposium on\nSecurity and Privacy (IEEE S&amp;P), 2021.\nTom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal,\nArvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language Models are\nFew-Shot Learners. Advances in Neural Information Processing Systems (NeurIPS), 33:1877–\n1901, 2020.\n11\n\n\fPublished as a conference paper at ICLR 2026\n\nYinzhi Cao and Junfeng Yang. Towards Making Systems Forget with Machine Unlearning. In IEEE\nSymposium on Security and Privacy (IEEE S&amp;P), 2015.\nTianxiang Chen, Zhentao Tan, Xiaofan Bo, Yue Wu, Tao Gong, Qi Chu, Jieping Ye, and Nenghai Yu. Flora: Effortless Context Construction to Arbitrary Length and Scale. arXiv preprint\narXiv:2507.19786, 2025.\nYeounoh Chung, Gaurav T Kakkar, Yu Gan, Brenton Milne, and Fatma Özcan. Is Long Context\nAll You Need? Leveraging LLM’s Extended Context for NL2SQL. Proceedings of the VLDB\nEndowment, 18(8):2735–2747, 2025.\nDSPy. dspy.GEPA: Reflective Prompt Optimizer. https://dspy.ai/api/optimizers/\nGEPA/overview/, a. Accessed: 09/2025.\nDSPy. dspy.MIPROv2: Multiprompt Instruction PRoposal Optimizer Version 2. https://dspy.\nai/api/optimizers/MIPROv2/, b. Accessed: 09/2025.\nArsene Fansi Tchango, Rishab Goel, Zhi Wen, Julien Martel, and Joumana Ghosn. DDXPlus:\nA New Dataset For Automatic Medical Diagnosis. Advances in neural information processing\nsystems (NeurIPS), 2022.\nShuzheng Gao, Chaozheng Wang, Cuiyun Gao, Xiaoqian Jiao, Chun Yong Chong, Shan Gao, and\nMichael Lyu. The Prompt Alchemist: Automated LLM-Tailored Prompt Optimization for Test\nCase Generation. arXiv preprint arXiv:2501.01329, 2025.\nIn Gim, Guojun Chen, Seung-seob Lee, Nikhil Sarda, Anurag Khandelwal, and Lin Zhong. Prompt\nCache: Modular Attention Reuse for Low-Latency Inference. Proceedings of Machine Learning\nand Systems (MLSys), 6:325–338, 2024.\nNeel Guha, Julian Nyarko, Daniel Ho, Christopher Ré, Adam Chilton, Alex Chohlas-Wood, Austin\nPeters, Brandon Waldon, Daniel Rockmore, Diego Zambrano, et al. LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Models. Advances in\nneural information processing systems (NeurIPS), 2023.\nIshaan Gulrajani and David Lopez-Paz. In Search of Lost Domain Generalization. In International\nConference on Learning Representations (ICLR), 2021.\nEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang,\nand Weizhu Chen. LoRA: Low-Rank Adaptation of Large Language Models. In The Tenth\nInternational Conference on Learning Representations (ICLR), 2022.\nMaxwell L Hutchinson, Erin Antono, Brenna M Gibbons, Sean Paradiso, Julia Ling, and Bryce\nMeredig. Overcoming Data Scarcity with Transfer Learning. arXiv preprint arXiv:1711.05099,\n2017.\nMingjian Jiang, Yangjun Ruan, Luis Lastras, Pavan Kapanipathi, and Tatsunori Hashimoto. Putting\nIt All into Context: Simplifying Agents with LCLMs. arXiv preprint arXiv:2505.08120, 2025.\nTushar Khot, Harsh Trivedi, Matthew Finlayson, Yao Fu, Kyle Richardson, Peter Clark, and Ashish\nSabharwal. Decomposed Prompting: A Modular Approach for Solving Complex Tasks. In International Conference on Learning Representations (ICLR), 2023.\nPang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie, Marvin Zhang, Akshay Balsubramani, Weihua Hu, Michihiro Yasunaga, Richard Lanas Phillips, Irena Gao, et al. WILDS: A\nBenchmark of in-the-Wild Distribution Shifts. In International conference on machine learning\n(ICML), 2021.\nBen Krause, Emmanuel Kahembwe, Iain Murray, and Steve Renals. Dynamic Evaluation of Transformer Language Models. arXiv preprint arXiv:1904.08378, 2019.\nWonbeom Lee, Jungi Lee, Junghwan Seo, and Jaewoong Sim. InfiniGen: Efficient Generative\nInference of Large Language Models with Dynamic KV Cache Management. In 18th USENIX\nSymposium on Operating Systems Design and Implementation (OSDI 24), pp. 155–172, 2024.\n12\n\n\fPublished as a conference paper at ICLR 2026\n\nBrian Lester, Rami Al-Rfou, and Noah Constant. The Power of Scale for Parameter-Efficient Prompt\nTuning. In Proceedings of the 2021 conference on empirical methods in natural language processing (EMNLP), pp. 3045–3059, 2021.\nPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal,\nHeinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. Advances in neural information processing systems\n(NeurIPS), 2020.\nHanchen Li, Qiuyang Mang, Runyuan He, Qizheng Zhang, Huanzhi Mao, Xiaokun Chen, Hangrui\nZhou, Alvin Cheung, Joseph Gonzalez, and Ion Stoica. Continuum: Efficient and Robust MultiTurn LLM Agent Scheduling with KV Cache Time-to-Live. arXiv preprint arXiv:2511.02230,\n2025.\nJinyang Li, Binyuan Hui, Ge Qu, Jiaxi Yang, Binhua Li, Bowen Li, Bailin Wang, Bowen Qin,\nRuiying Geng, Nan Huo, et al. Can LLM Already Serve as A Database Interface? A BIg Bench\nfor Large-Scale Database Grounded Text-to-SQLs. Advances in Neural Information Processing\nSystems (NeurIPS), 2023.\nXiang Lisa Li and Percy Liang. Prefix-Tuning: Optimizing Continuous Prompts for Generation. In\nProceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the\n11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers),\npp. 4582–4597, 2021.\nAixin Liu, Bei Feng, Bing Xue, Bingxuan Wang, Bochao Wu, Chengda Lu, Chenggang Zhao,\nChengqi Deng, Chenyu Zhang, Chong Ruan, et al. DeepSeek-V3 Technical Report. arXiv preprint\narXiv:2412.19437, 2024a.\nSijia Liu, Yuanshun Yao, Jinghan Jia, Stephen Casper, Nathalie Baracaldo, Peter Hase, Yuguang\nYao, Chris Yuhao Liu, Xiaojun Xu, Hang Li, et al. Rethinking Machine Unlearning for Large\nLanguage Models. Nature Machine Intelligence, 7(2):181–194, 2025a.\nYuhan Liu, Hanchen Li, Yihua Cheng, Siddhant Ray, Yuyang Huang, Qizheng Zhang, Kuntai Du,\nJiayi Yao, Shan Lu, Ganesh Ananthanarayanan, et al. CacheGen: KV Cache Compression and\nStreaming for Fast Large Language Model Serving. In Proceedings of the ACM SIGCOMM 2024\nConference, pp. 38–56, 2024b.\nZhining Liu, Rana Ali Amjad, Ravinarayana Adkathimar, Tianxin Wei, and Hanghang Tong. SelfElicit: Your Language Model Secretly Knows Where is the Relevant Evidence. In Proceedings\nof the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long\nPapers), pp. 9153–9173, 2025b.\nZirui Liu, Jiayi Yuan, Hongye Jin, Shaochen Zhong, Zhaozhuo Xu, Vladimir Braverman, Beidi\nChen, and Xia Hu. KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache. In\nInternational Conference on Machine Learning (ICML), 2024c.\nLefteris Loukas, Manos Fergadiotis, Ilias Chalkidis, Eirini Spyropoulou, Prodromos Malakasiotis,\nIon Androutsopoulos, and Georgios Paliouras. FiNER: Financial Numeric Entity Recognition for\nXBRL Tagging. In Proceedings of the 60th Annual Meeting of the Association for Computational\nLinguistics (Volume 1: Long Papers), pp. 4419–4431, 2022.\nQiuyang Mang, Wenhao Chai, Zhifei Li, Huanzhi Mao, Shang Zhou, Alexander Du, Hanchen Li,\nShu Liu, Edwin Chen, Yichuan Wang, et al. FrontierCS: Evolving Challenges for Evolving Intelligence. arXiv preprint arXiv:2512.15699, 2025.\nYansheng Mao, Jiaqi Li, Fanxu Meng, Jing Xiong, Zilong Zheng, and Muhan Zhang. LIFT:\nImproving Long Context Understanding Through Long Input Fine-Tuning. arXiv preprint\narXiv:2412.13626, 2024.\nSami Marreed, Alon Oved, Avi Yaeli, Segev Shlomov, Ido Levy, Offer Akrabi, Aviad Sela, Asaf Adi,\nand Nir Mashkif. Towards Enterprise-Ready Computer Using Generalist Agent. arXiv preprint\narXiv:2503.01861, 2025.\n13\n\n\fPublished as a conference paper at ICLR 2026\n\nOpenAI. GPT-4o mini: Advancing Cost-Efficient Intelligence. https://openai.com/\nindex/gpt-4o-mini-advancing-cost-efficient-intelligence/, 2024.\nKrista Opsahl-Ong, Michael J Ryan, Josh Purtell, David Broman, Christopher Potts, Matei Zaharia,\nand Omar Khattab. Optimizing Instructions and Demonstrations for Multi-Stage Language Model\nPrograms. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language\nProcessing (EMNLP), pp. 9340–9366, 2024.\nSinno Jialin Pan and Qiang Yang. A Survey on Transfer Learning. IEEE Transactions on Knowledge\nand Data Engineering, 22(10):1345–1359, 2010.\nShishir G Patil, Tianjun Zhang, Xin Wang, and Joseph E Gonzalez. Gorilla: Large Language Model\nConnected with Massive APIs. Advances in Neural Information Processing Systems (NeurIPS),\n2024.\nBowen Peng, Jeffrey Quesnelle, Honglu Fan, and Enrico Shippole. YaRN: Efficient Context Window\nExtension of Large Language Models. In The Twelfth International Conference on Learning\nRepresentations (ICLR), 2024.\nNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language Agents with Verbal Reinforcement Learning. Advances in Neural Information\nProcessing Systems (NeurIPS), 2023.\nMirac Suzgun, Mert Yuksekgonul, Federico Bianchi, Dan Jurafsky, and James Zou. Dynamic Cheatsheet: Test-Time Learning with Adaptive Memory. https://github.com/\nsuzgunmirac/dynamic-cheatsheet. Accessed: 09/2025.\nMirac Suzgun, Mert Yuksekgonul, Federico Bianchi, Dan Jurafsky, and James Zou. Dynamic Cheatsheet: Test-Time Learning with Adaptive Memory. arXiv preprint arXiv:2504.07952, 2025.\nHarsh Trivedi, Tushar Khot, Mareike Hartmann, Ruskin Manku, Vinty Dong, Edward Li, Shashank\nGupta, Ashish Sabharwal, and Niranjan Balasubramanian. AppWorld: A Controllable World\nof Apps and People for Benchmarking Interactive Coding Agents. In Proceedings of the 62nd\nAnnual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp.\n16022–16076, 2024.\nDannong Wang, Jaisal Patel, Daochen Zha, Steve Y Yang, and Xiao-Yang Liu. FinLoRA:\nBenchmarking LoRA Methods for Fine-Tuning LLMs on Financial Datasets. arXiv preprint\narXiv:2505.19819, 2025a.\nXuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-Consistency Improves Chain of Thought Reasoning in Language\nModels. In The Eleventh International Conference on Learning Representations (ICLR), 2023.\nZora Zhiruo Wang, Jiayuan Mao, Daniel Fried, and Graham Neubig. Agent Workflow Memory. In\nForty-second International Conference on Machine Learning (ICML), 2025b.\nJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny\nZhou, et al. Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. Advances\nin neural information processing systems (NeurIPS), 35:24824–24837, 2022.\nCheng-Kuang Wu, Zhi R Tam, Chieh-Yen Lin, Yun-Nung Chen, and Hung-yi Lee. StreamBench:\nTowards Benchmarking Continuous Improvement of Language Agents. Advances in Neural Information Processing Systems (NeurIPS), 2024.\nWujiang Xu, Kai Mei, Hang Gao, Juntao Tan, Zujie Liang, and Yongfeng Zhang. A-Mem: Agentic\nMemory for LLM Agents. Advances in neural information processing systems (NeurIPS), 2025.\nJohn Yang, Carlos E Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan,\nand Ofir Press. SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering. Advances in Neural Information Processing Systems (NeurIPS), 2024.\n14\n\n\fPublished as a conference paper at ICLR 2026\n\nZhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William Cohen, Ruslan Salakhutdinov,\nand Christopher D Manning. HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question\nAnswering. In Proceedings of the 2018 conference on empirical methods in natural language\nprocessing (EMNLP), pp. 2369–2380, 2018.\nJiayi Yao, Hanchen Li, Yuhan Liu, Siddhant Ray, Yihua Cheng, Qizheng Zhang, Kuntai Du, Shan\nLu, and Junchen Jiang. CacheBlend: Fast Large Language Model Serving for RAG with Cached\nKnowledge Fusion . In Proceedings of the Twentieth European Conference on Computer Systems\n(EuroSys), pp. 94–109, 2025.\nShunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao.\nReAct: Synergizing Reasoning and Acting in Language Models. In International Conference on\nLearning Representations (ICLR), 2023.\nJiacheng Ye, Chengzu Li, Lingpeng Kong, and Tao Yu. Generating Data for Symbolic Language\nwith Large Language Models. In Proceedings of the 2023 conference on empirical methods in\nnatural language processing (EMNLP), pp. 8418–8443, 2023.\nMert Yuksekgonul, Federico Bianchi, Joseph Boen, Sheng Liu, Pan Lu, Zhi Huang, Carlos Guestrin,\nand James Zou. Optimizing Generative AI by Backpropagating Language Model Feedback. Nature, 639(8055):609–616, 2025.\nMatei Zaharia, Omar Khattab, Lingjiao Chen, Jared Quincy Davis, Heather Miller, Chris Potts,\nJames Zou, Michael Carbin, Jonathan Frankle, Naveen Rao, and Ali Ghodsi. The Shift from\nModels to Compound AI Systems. https://bair.berkeley.edu/blog/2024/02/\n18/compound-ai-systems/, 2024.\nGenghan Zhang, Weixin Liang, Olivia Hsu, and Kunle Olukotun. Adaptive Self-Improvement LLM\nAgentic System for ML Library Development. In Forty-second International Conference on Machine Learning (ICML), 2025a.\nGenghan Zhang, Shaowei Zhu, Anjiang Wei, Zhenyu Song, Allen Nie, Zhen Jia, Nandita Vijaykumar, Yida Wang, and Kunle Olukotun. AccelOpt: A Self-Improving LLM Agentic System for AI\nAccelerator Kernel Optimization. arXiv preprint arXiv:2511.15915, 2025b.\nQizheng Zhang, Ali Imran, Enkeleda Bardhi, Tushar Swamy, Nathan Zhang, Muhammad Shahbaz,\nand Kunle Olukotun. Caravan: Practical Online Learning of In-Network ML Models with Labeling Agents. In 18th USENIX Symposium on Operating Systems Design and Implementation\n(OSDI), pp. 325–345, 2024.\nQizheng Zhang, Michael Wornow, and Kunle Olukotun. Agentic Plan Caching: Test-Time Memory for Fast and Cost-Efficient LLM Agents. In The Thirty-ninth Annual Conference on Neural\nInformation Processing Systems (NeurIPS), 2025c.\nLianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang,\nZi Lin, Zhuohan Li, Dacheng Li, Eric Xing, et al. Judging LLM-as-a-Judge with MT-Bench and\nChatbot Arena. Advances in neural information processing systems (NeurIPS), 36:46595–46623,\n2023.\nHuichi Zhou, Yihang Chen, Siyuan Guo, Xue Yan, Kin Hei Lee, Zihan Wang, Ka Yiu Lee, Guchun\nZhang, Kun Shao, Linyi Yang, et al. AgentFly: Fine-tuning LLM Agents without Fine-tuning\nLLMs. arXiv preprint arXiv:2508.16153, 2025.\nYujun Zhou, Yufei Han, Haomin Zhuang, Kehan Guo, Zhenwen Liang, Hongyan Bao, and Xiangliang Zhang. Defending Jailbreak Prompts via In-Context Adversarial Game. In Proceedings\nof the 2024 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp.\n20084–20105, 2024.\nFuzhen Zhuang, Zhiyuan Qi, Keyu Duan, Dongbo Xi, Yongchun Zhu, Hengshu Zhu, Hui Xiong,\nand Qing He. A Comprehensive Survey on Transfer Learning. arXiv:1911.02685, 2019.\n\n15\n\n\fPublished as a conference paper at ICLR 2026\n\nA\n\nE XTENDED R ESULTS\n\nA.1\n\nG ENERALIZATION ACROSS D IFFERENT LLM S\n\nACE is a model-agnostic framework that operates on execution traces and contextual deltas, and\ndoes not rely on any architectural or training-specific features of DeepSeek-V3.1 (the default backbone we use in the main text). We evaluated ACE with three additional models of varying size,\ncost, and capability: GPT-OSS-120B (Table 5 and 7), GPT-5.1 (Table 6 and 8), and Llama-3.3-70BInstruct (Table 9). In each case, the Generator, Reflector, and Curator were all switched to the new\nmodel without changes to the algorithm.\nAnalysis Across all four LLM families we tested (DeepSeek-V3.1, GPT-OSS-120B, GPT-5.1, and\nLlama-3.3-70B-Instruct), ACE consistently improves performance over both the base LLM/agent,\nGEPA, and other baselines, often by 5 to 12 points depending on the task and supervision setting.\nThe relative gains of ACE remain stable even when switching to models that differ significantly\nin size, cost, and training recipe, and ACE delivers benefits with or without ground-truth labels,\nvalidating the robustness of its context adaptation mechanism. The online variant reliably achieves\nthe strongest performance across all models.\nWe note that the magnitude of improvement can vary across model families: for example, Llama3.3-70B-Instruct shows smaller gains compared to GPT-5.1 or GPT-OSS-120B. This is expected\nsince ACE relies on the quality of intermediate reflections and calibrations, and smaller or weaker\nmodels naturally generate noisier feedback. Even in these cases, however, ACE remains beneficial,\ndemonstrating that the framework is broadly applicable while still reflecting the inherent capability\nlimits of the underlying LLM, as we discussed in the “Limitations and Challenges” paragraph in §5.\nMethod\n\nGT Labels\n\nTest-Normal\nTGC↑\n\nReAct\n\nSGC↑\n\nTest-Challenge\n\nAverage\n\nTGC↑\n\nSGC↑\n\nGPT-OSS-120B as Base LLM\n54.8\n33.9\n34.5\n\n15.1\n\n34.6\n\nReAct + GEPA\nReAct + ACE\nReAct + ACE\n\n✓\n✓\n✗\n\nOffline Adaptation\n56.0+1.2\n33.9+0.0\n40.1+5.6\n61.3+6.5 39.3+5.4 40.3+5.8\n58.3+3.5 41.1+7.2 39.6+5.1\n\n20.9+5.8\n20.9+5.8\n18.7+3.6\n\n37.7+3.1\n40.5+5.9\n39.4+4.8\n\nReAct + DC (CU)\nReAct + ACE\n\n✗\n✗\n\nOnline Adaptation\n49.4−5.4\n33.9+0.0\n30.8−3.7\n60.7+5.9 44.6+10.7 43.2+8.7\n\n18.2+3.1\n20.1+5.0\n\n33.1−1.5\n42.2+7.6\n\nTable 5: Results on the AppWorld Agent Benchmark (GPT-OSS-120B as the Base LLM). “GT\nlabels” indicates whether ground-truth labels are available to the Reflector during adaptation. We\nevaluate the ACE framework against multiple baselines on top of the official ReAct implementation, both for offline and online context adaptation.\nA.2\n\nB EYOND F INANCE : A DDITIONAL D OMAIN TASKS\n\nWe evaluate ACE on two additional domain tasks from StreamBench (Wu et al., 2024) under the\nnon-streaming setting (i.e., offline adaptation): DDXPlus (Fansi Tchango et al., 2022) for medical\nreasoning (Table 10) and BIRD-SQL (Li et al., 2023) for Text-to-SQL generation (Table 11). For\nACE, we perform offline adaptation using 1000 randomly sampled training examples. For GEPA,\nwe use the same 1000 examples for training, and reserve a separate validation set of 500 examples\nfor BIRD-SQL or 372 examples for DDXPlus (StreamBench provides 1372 train/val examples for\nDDXPlus in total). All other settings follow the main-text configuration unless stated otherwise.\nAnalysis On DDXPlus, ACE substantially improves over the base LLM, rising from 75.2 to 90.2\naccuracy (+15.0). In contrast, GEPA yields a much smaller gain (76.4, +1.2). This suggests that\nACE’s test-time evolving context transfers well to multi-step, domain-heavy diagnostic reasoning.\n16\n\n\fPublished as a conference paper at ICLR 2026\n\nMethod\n\nTest-Normal\n\nGT Labels\n\nTGC↑\n\nAverage\n\nSGC↑\n\nReAct\n\nGPT-5.1 as Base LLM\n61.9\n46.4\n\n54.2\n\nReAct + GEPA\nReAct + ACE\nReAct + ACE\n\nOffline Adaptation\n✓\n64.3+2.4\n48.2+1.8\n✓\n66.7+4.8\n53.6+7.2\n67.3+5.4\n55.4+9.0\n✗\n\n56.2+2.0\n60.2+6.0\n61.3+7.1\n\nReAct + DC (CU)\nReAct + ACE\n\nOnline Adaptation\n✗\n62.5+0.6\n55.4+9.0\n✗\n72.6+10.7 58.9+12.5\n\n58.9+4.7\n65.8+11.6\n\nTable 6: Results on the AppWorld Agent Benchmark (GPT-5.1 as the Base LLM). “GT labels”\nindicates whether ground-truth labels are available to the Reflector during adaptation. We evaluate\nthe ACE framework against multiple baselines on top of the official ReAct implementation, both\nfor offline and online context adaptation.\n\nMethod\n\nGT Labels\n\nFiNER (Acc↑)\n\nFormula (Acc↑)\n\nAverage\n\nBase LLM\n\nGPT-OSS-120B as Base LLM\n66.6\n71.5\n\nGEPA\nACE\nACE\n\n✓\n✓\n✗\n\nOffline Adaptation\n67.9+1.3\n71.5+0.0\n73.8+7.2\n88.5+17.0\n69.7+3.1\n84.0+12.5\n\n69.7+0.6\n81.2+12.1\n76.9+7.8\n\nDC\nACE\n\n✗\n✗\n\nOnline Adaptation\n55.8−10.8\n66.0−5.5\n70.5+3.9\n85.0+13.5\n\n60.9−8.2\n77.8+8.7\n\n69.1\n\nTable 7: Results on Financial Analysis Benchmark (GPT-OSS-120B as the Base LLM). “GT\nlabels” indicates whether ground-truth labels are available to the Reflector during adaptation.\n\nMethod\n\nGT Labels\n\nFiNER (Acc↑)\n\nFormula (Acc↑)\n\nGPT-5.1 as Base LLM\n73.5\n73.0\n\nBase LLM\n\nAverage\n73.3\n\nGEPA\nACE\nACE\n\n✓\n✓\n✗\n\nOffline Adaptation\n74.5+1.0\n73.0+0.0\n81.0+7.5\n84.5+11.5\n78.2+4.7\n76.5+3.5\n\n73.8+0.5\n82.8+9.5\n77.4+4.1\n\nDC\nACE\n\n✗\n✗\n\nOnline Adaptation\n70.0−3.5\n69.0−4.0\n75.2+1.7\n79.0+6.0\n\n69.5−3.8\n77.1+3.8\n\nTable 8: Results on Financial Analysis Benchmark (GPT-5.1 as the Base LLM). “GT labels”\nindicates whether ground-truth labels are available to the Reflector during adaptation.\n\nOn BIRD-SQL, ACE also improves consistently over the base model on all splits, achieving better\noverall average (52.9, +5.1). The gains are driven mainly by the Simple subset (53.5, +7.1). While\nGEPA yields larger gains on Moderate and Challenging, ACE still improves over the base model on\nboth splits. Overall, these results indicate that ACE generalizes beyond finance to both knowledgeintensive reasoning and structured code generation tasks.\n17\n\n\fPublished as a conference paper at ICLR 2026\n\nMethod\n\nGT Labels\n\nFiNER (Acc↑)\n\nLlama-3.3-70B-Instruct as Base LLM\nBase LLM\n62.5\nGEPA\nACE\nACE\n\nOffline Adaptation\n✓\n59.41−3.09\n64.9+2.4\n✓\n✗\n64.2+1.7\n\nDC\nACE\n\nOnline Adaptation\n✗\n59.0−3.5\n63.6+1.1\n✗\n\nTable 9: Results on Financial Analysis Benchmark (Llama-3.3-70B-Instruct as the Base LLM).\n“GT labels” indicates whether ground-truth labels are available to the Reflector during adaptation.\n\nMethod\n\nAccuracy (↑)\n\nDeepSeek-V3.1 as Base LLM\nBase LLM\n75.2\nOffline Adaptation\nGEPA\n76.4+1.2\nACE\n90.2+15.0\nTable 10: Results on Medical Reasoning Benchmark (DeepSeek-V3.1-671B as the Base LLM).\nWe use DDXPlus from StreamBench.\nMethod\nBase LLM\nGEPA\nACE\n\nSimple (↑)\n\nModerate (↑)\n\nChallenging (↑)\n\nAverage\n\nDeepSeek-V3.1 as Base LLM\n46.4\n48.2\n55.1\n\n47.8\n\nOffline Adaptation\n51.6+5.2\n51.9+3.7\n57.2+2.1\n53.5+7.1\n50.7+2.5\n56.6+1.5\n\n52.2+4.4\n52.9+5.1\n\nTable 11: Results on Text-to-SQL Benchmark (DeepSeek-V3.1-671B as the Base LLM). We use\nBIRD-SQL from StreamBench.\nA.3\n\nF INE -G RAINED C OST A NALYSIS\n\nWe perform a fine-grained cost analysis of ACE and GEPA for both the adaptation and evaluation\nstages (offline adaptation setting), using AppWorld as a representative application. For ACE, we\nrun offline adaptation with 1 epoch and 1 reflector refinement round. While increasing the number\nof epochs or refinement rounds will increase cost, the qualitative trends below should remain: ACE\navoids expensive validation-time re-evaluation and performs localized updates rather than repeated\nfull rewrites. For GEPA, we use the official DSPy implementation (DSPy, b) with auto=\"heavy\"\nto maximize optimization strength.\nAdaptation Stage Across adaptation (Table 12 and Table 13), ACE reduces input-token usage by\n80.8% relative to GEPA (204.1M → 39.3M) and output-token usage by 83.6% (1.87M → 0.31M).\nThis gap is primarily driven by (1) GEPA’s prompt-validation loop, which repeatedly evaluates\ncandidate prompts on a held-out validation set (57 queries), incurring substantial additional LLM\ncalls and validation tokens, and (2) ACE’s incremental context updates, which replace full prompt\nrewrites with localized Generator-Reflector-Curator updates.\nEvaluation Stage At evaluation time (Table 14 and Table 15), ACE uses more raw input tokens\nper query than GEPA due to its richer, more actionable playbook. However, output-token usage\n18\n\n\fPublished as a conference paper at ICLR 2026\n\nis similar (115.0 vs. 101.8), and the number of rollouts is comparable across methods. Moreover,\nunder modern prompt/KV-caching infrastructures, the additional input tokens can be largely amortized: using OpenAI’s default prompt caching, 91.8% of ACE’s input tokens are served from cache,\nresulting in an 82.6% reduction in billed input-token cost (see §4.7).\nMethod\n\nTotal # input tokens\n\nTotal # output tokens\n\nTotal # rollouts\n\nTotal # queries\n\n65,005,192\n139,070,904\n204,076,096\n\n1,266,090\n604,098\n1,870,188\n\n429\n1,026\n1,455\n\n90\n57\n147\n\n31,012,122\n4,685,840\n3,552,963\n39,250,925 (-80.8%)\n\n198,847\n70,487\n37,794\n307,128 (-83.6%)\n\n1,790\n161\n124\n2,075 (+42.6%)\n\n90\n90\n90\n90 (-38.8%)\n\nGEPA (prompt generation)\nGEPA (prompt validation)\nGEPA (total)\nACE (Generator)\nACE (Reflector)\nACE (Curator)\nACE (total)\n\nTable 12: Adaptation-Stage Aggregate Cost Statistics on AppWorld. The percentages compare\nACE (total) against GEPA (total).\nMethod\n\nAvg # input / rollout\n\nAvg # output / rollout\n\nAvg # input / query\n\nAvg # output / query\n\nTotal # rollouts\n\nTotal # queries\n\n151,600.4\n135,550.8\n140,291.8\n\n2,951.4\n589.2\n1,285.4\n\n722,279.9\n2,439,840.4\n1,387,538.4\n\n14,067.7\n10,600.0\n12,721.7\n\n429\n1,026\n1,455\n\n90\n57\n147\n\n17,326.6\n29,112.4\n28,667.4\n18,914.9 (-86.5%)\n\n111.1\n437.3\n304.8\n148.0 (-88.5%)\n\n344,579.1\n52,064.9\n39,477.4\n436,121.4 (-68.6%)\n\n2,209.4\n783.2\n420.0\n3,412.5 (-73.2%)\n\n1,790\n161\n124\n2,075 (+42.6%)\n\n90\n90\n90\n90 (-38.8%)\n\nGEPA (prompt generation)\nGEPA (prompt validation)\nGEPA (total)\nACE (Generator)\nACE (Reflector)\nACE (Curator)\nACE (total)\n\nTable 13: Adaptation-Stage Average Cost Statistics on AppWorld. The percentages compare\nACE (total) against GEPA (total).\nMethod\n\nTotal # input tokens\n\nTotal # output tokens\n\nTotal # rollouts\n\nTotal # eval queries\n\nBase ReAct\nGEPA\nACE\n\n27,460,411\n26,960,675\n58,623,267 (+117.4%)\n\n289,802\n251,442\n270,652 (+7.6%)\n\n2,430\n2,470\n2,354 (-4.7%)\n\n160\n160\n160 (+0.0%)\n\nTable 14: Evaluation-Stage Aggregate Cost Statistics on AppWorld. The percentages compare\nACE against GEPA.\nMethod\n\nAvg # input / rollout\n\nAvg # output / rollout\n\nAvg # input / query\n\nAvg # output / query\n\nTotal # rollouts\n\nTotal # eval queries\n\nBase ReAct\nGEPA\nACE\n\n11,298.5\n10,918.5\n24,912.4 (+128.2%)\n\n119.3\n101.8\n115.0 (+13.0%)\n\n171,627.6\n168,504.2\n366,395.4 (+117.4%)\n\n1,811.3\n1,571.5\n1,691.6 (+7.6%)\n\n2,430\n2,470\n2,354 (-4.7%)\n\n160\n160\n160 (+0.0%)\n\nTable 15: Evaluation-Stage Average Cost Statistics on AppWorld. The percentages compare\nACE against GEPA.\nA.4\n\nROBUSTNESS TO R EFLECTION Q UALITY\n\nWe conduct two analyses to evaluate ACE’s sensitivity to reflection quality. Unless otherwise noted,\nexperiments are run on FiNER with ACE offline adaptation.\nUsing Weaker Reflector Models To test whether ACE requires a strong reflector, we vary the\nReflector across three models with substantially different capability: GPT-OSS-120B, DeepSeekV3.1-671B, and GPT-5.1 (Table 16). Across all choices, ACE consistently improves over the base\nLLM, including when the Reflector is much weaker. While stronger reflectors yield larger gains, the\nmethod remains effective across a wide range of reflector strengths.\nRobustness to Noisy or Harmful Reflector Feedback We further stress-test ACE with actively\nharmful reflector outputs by injecting adversarial or conflicting bullets: we invoke a “harmful” reflector that is explicitly instructed to inject harmful reflection once every X adaptation steps, where\n19\n\n\fPublished as a conference paper at ICLR 2026\n\nMethod\n\nGenerator LLM\n\nReflector LLM\n\nCurator LLM\n\nAccuracy (↑)\n\nBase LLM\nACE\nACE\nACE\n\nDeepSeek-V3.1\nDeepSeek-V3.1\nDeepSeek-V3.1\nDeepSeek-V3.1\n\nGPT-OSS-120B\nDeepSeek-V3.1\nGPT-5.1\n\nDeepSeek-V3.1\nDeepSeek-V3.1\nDeepSeek-V3.1\n\n70.7\n76.6 (+5.9)\n78.3 (+7.6)\n78.5 (+7.8)\n\nTable 16: Weaker Reflector Models on FiNER. We vary the Reflector while keeping the Generator/Curator fixed. Parentheses report deltas vs. the base LLM.\n\nHarmful Reflector Frequency (every X iters)\nbase LLM\n\nAccuracy (↑)\n70.7\n\n1\n5\n10\n25\n50\n100\n\n66.7 (-4.0)\n76.1 (+5.4)\n77.0 (+6.3)\n77.8 (+7.1)\n78.2 (+7.5)\n78.2 (+7.5)\n\nNo harmful reflector\n\n78.3 (+7.6)\n\nTable 17: Robustness to Noisy or Harmful Reflector Feedback on FiNER. We invoke a harmful\nreflector once every X adaptation steps. Parentheses report deltas vs. the base LLM.\nlarger X means less frequent corruption (Table 17). ACE is robust to moderate noise levels: performance degrades gradually as corruption becomes more frequent and stays above the base LLM\nexcept in the extreme case of injecting harmful updates every iteration. This suggests that ACE’s\nupdate mechanism tolerates substantial noise in the reflection stream, with failures emerging only\nunder intentionally adversarial conditions.\nTakeaway and Mitigation ACE is not highly sensitive to reflector quality: (1) weaker reflectors\nstill provide substantial gains, (2) moderate noise or conflicting updates are largely tolerated, and (3)\nperformance drops below the base model only under sustained adversarial corruption. In practice,\nACE’s bullet-point analyzer (“grow-and-refine”; §3.2), which merges and deduplicates semantically\nsimilar bullets and can filter entries flagged as potentially harmful via metadata, serves as a first line\nof defense against context noise. Additional safeguards (e.g., contradiction detection, prompting the\nCurator to prioritize high-confidence updates, or periodic pruning of outdated entries) are compatible\nextensions that could further improve playbook compactness and consistency (Zhou et al., 2024).\nA.5\n\nA BLATION ON I NCREMENTAL C ONTEXT U PDATE\n\nIn this ablation, we run offline context adaptation on AppWorld using ACE with and without incremental context updates, and evaluate on the test-normal split with DeepSeek-V3.1. We find that\nincremental updates are critical: by preserving useful information that would otherwise be lost to\ncontext collapse, they account for a large share of ACE ’s gains.\nMethod\nReAct\n\nTest-Normal TGC (↑)\n\nTest-Normal SGC (↑)\n\nDeepSeek-V3.1 as Base LLM\n63.7\n\nOffline Adaptation\nReAct + ACE (no incremental update)\n67.3+3.6\n76.2+12.5\nReAct + ACE (with incremental update)\n\nAverage\n\n42.9\n\n53.3\n\n46.4+3.5\n64.3+21.4\n\n56.9+3.6\n70.3+17.0\n\nTable 18: Ablation on Incremental Context Updates (AppWorld, DeepSeek-V3.1). We run\noffline context adaptation with ACE with/without incremental updates and evaluate on test-normal.\nImprovements are relative to ReAct.\n\n20\n\n\fPublished as a conference paper at ICLR 2026\n\nA.6\n\nS ENSITIVITY A NALYSIS ON H YPERPARAMETER C HOICE\n\nReflection Iterations This parameter trades off (1) extracting enough high-quality insights from\nthe inference traces and (2) avoiding “overthinking” that introduces noisy or unnecessary updates.\nEmpirically, 5 rounds offers a good balance. On AppWorld, 1 round under-extracts useful strategy\nfragments and leaves clear headroom, while too many rounds (e.g., 10) can degrade performance.\n# Reflection Iterations\nN/A (without ACE)\n1\n3\n5\n10\n\nTest-Normal TGC (↑)\n\nTest-Normal SGC (↑)\n\nAverage\n\nDeepSeek-V3.1 as Base LLM\n63.7\n42.9\nOffline Adaptation\n69.0+5.3\n53.6+10.7\n74.4+10.7\n57.1+14.2\n72.6+8.9\n62.5+19.6\n71.4+7.7\n58.9+16.0\n\n53.3\n61.3+8.0\n65.8+12.5\n67.6+14.3\n65.2+11.9\n\nTable 19: Effect of Reflection Iterations (AppWorld, DeepSeek-V3.1). We report test-normal\nresults under offline context adaptation. Improvements are relative to running ReAct without ACE.\n\nDeduplication Threshold This controls how aggressively newly extracted insights are merged\nwith existing entries. On FiNER, performance changes only mildly across the tested range, suggesting ACE is robust to moderate variation in dedup aggressiveness.\nDeduplication Threshold\n\nFiNER (Acc ↑)\n\nDeepSeek-V3.1 as Base LLM\nN/A (without ACE)\n70.7\nOffline Adaptation\n50%\n77.0+6.3\n70%\n73.9+3.2\n90%\n78.6+7.9\n\nTable 20: Effect of Deduplication Threshold (FiNER, DeepSeek-V3.1).\n\nPruning Trigger (Maximum Context Length) This threshold determines when ACE merges and\nprunes older or low-utility entries to prevent unbounded growth. It balances (1) retaining enough\naccumulated context to improve learning from experience and (2) keeping the context compact to\nreduce cost and limit noise. On FiNER, performance is stable from 10K to 100K tokens, indicating\nACE does not require finely tuned length thresholds; pruning mainly removes stale or harmful\nfragments while preserving core reusable strategies.\n\nMax Context Length\n\nFiNER (Acc ↑)\n\nDeepSeek-V3.1 as Base LLM\nN/A (without ACE)\n70.7\nOffline Adaptation\n10K\n78.6+7.9\n50K\n78.4+7.7\n100K\n78.3+7.6\nTable 21: Effect of Pruning Trigger (FiNER, DeepSeek-V3.1).\nOverall, ACE is not highly sensitive to these hyperparameters: reasonable choices (e.g., 3-5 reflection rounds, 50-90% dedup threshold, and 10K-100K pruning triggers) consistently yield strong\nperformance.\n21\n\n\fPublished as a conference paper at ICLR 2026\n\nB\n\nE XTENDED R ELATED W ORK\n\nB.1\n\nAGENT M EMORY\n\nA growing body of work explores how agents can accumulate experience from past trajectories and\nleverage external (often non-parametric) memory to guide future actions. AgentFly (Zhou et al.,\n2025) presents an extensible framework where memory evolves continuously as agents solve tasks,\nenabling scalable reinforcement learning and long-horizon reasoning across diverse environments.\nAWM (Agent Workflow Memory) (Wang et al., 2025b) induces reusable workflows, i.e., structured\nroutines distilled from past trajectories, and selectively injects them into memory to improve efficiency and generalization in web navigation benchmarks. A-MEM (Xu et al., 2025) introduces a\ndynamically organized memory system inspired by the Zettelkasten method: each stored memory\nis annotated with structured attributes (e.g., tags, keywords, contextual descriptions) and automatically linked to relevant past entries, while existing entries are updated to integrate new knowledge,\nyielding adaptive and context-aware retrieval. Agentic Plan Caching (Zhang et al., 2025c) instead\nfocuses on cost efficiency by extracting reusable plan templates from agent trajectories and caching\nthem for fast execution at test time.\nTogether, these works demonstrate the value of external memory for improving adaptability, efficiency, and generalization in LLM agents. Our work differs by tackling the broader challenge of\ncontext adaptation, which spans not only agent memory but also system prompts, factual evidence,\nand other inputs underpinning AI systems. We further highlight two fundamental limitations of\nexisting adaptation methods: brevity bias and context collapse; and show that addressing them is\nessential for robustness, reliability, and scalability beyond raw task performance. Accordingly, our\nevaluation considers not only accuracy but also cost, latency, and scalability.\n\nC\n\nE XTENDED D ISCUSSIONS\n\nC.1\n\nACE VS . GEPA\n\nScope and Objective Both GEPA and ACE improve model or agent behavior by adapting context\nat test time (rather than updating model weights), but they are designed for different forms of adaptation. GEPA treats adaptation as prompt evolution: it iteratively proposes and selects improved\ninstruction prompts using rollout trajectories and reflective feedback, aiming to maximize a task\nevaluator under a rollout budget. ACE targets settings where performance depends on accumulating\nand preserving many granular, reusable insights over long horizons. For multi-turn agents (e.g., AppWorld), the model must retain step-by-step procedures and tool-use rules across an interaction. For\ndomain-specific and knowledge-intensive benchmarks (e.g., FiNER, Formula), accuracy depends on\nkeeping many specific rules, edge cases, and domain concepts that are difficult to compress into a\nsingle instruction prompt without losing detail.\nUpdate Mechanism and Representation GEPA updates context by generating and selecting new\nprompt variants in an evolutionary loop, where each candidate is a full prompt optimized end-toend. ACE instead represents context as a structured, itemized Playbook and applies incremental\ndelta updates: the Curator writes only the new insight, and we merge it into the Playbook with\nsimple deterministic logic. This avoids repeated full-prompt rewrites, helps keep earlier rules stable\nover long runs, and enables fine-grained bookkeeping (e.g., de-duplication, targeted refinement, and\ntracking which entries helped or harmed accuracy).\nC.2\n\nACE VS . DYNAMIC C HEATSHEET (DC)\n\nScope and Objective Both DC and ACE collect reusable insights at test time, but they are aimed\nat different settings. DC is mainly evaluated on single-turn reasoning benchmarks (e.g., AIME,\nGame-of-24, GPQA) where each query is independent. In this regime, improvements often come\nfrom saving short, reusable heuristics and executable artifacts (e.g., code snippets) that help on\nlater problems. ACE focuses on settings where the details and high-fidelity guidenace need to stick\naround. For multi-turn agents (e.g., AppWorld), the model must remember step-by-step procedures\nand tool-use rules across an interaction. For domain-specific and knowledge-intensive benchmarks\n22\n\n\fPublished as a conference paper at ICLR 2026\n\n(e.g., FiNER, Formula), accuracy depends on keeping many specific rules, edge cases, and domain\nconcepts, which are hard to compress without losing information.\nUpdate Mechanism DC updates its memory by rewriting the cheatsheet as a whole, either by regenerating the full cheatsheet each step (DC-CU) or by writing a new summary from retrieved\nexamples (DC-RS). With repeated full rewrites, the model tends to shorten and compress what was\nwritten before. This can cause context collapse, which means that useful domain-specific details get\ndropped over time or disappear suddenly (§2.2). ACE avoids full rewrites by using incremental delta\nupdates. The Curator only writes the new insight, and we merge it into a structured and itemized\nPlaybook with simple deterministic logic. This keeps earlier rules stable over long runs and also\nmakes it easier to track which items helped, remove duplicates, and refine entries. In our ablations\n(§4.6), removing delta updates leads to a large drop on AppWorld (-11.7% TGC and -27.8% SGC\non test-normal), showing that delta updates are a core part of our method.\n\nD\n\nA PP W ORLD L EADERBOARD S NAPSHOT (09/2025)\n\nFigure 5: The AppWorld leaderboard as accessed on 09/2025.\n\nE\n\nT HE U SE OF L ARGE L ANGUAGE M ODELS (LLM S )\n\nThis work focuses on developing algorithms and system frameworks for effective context adaptation\nin large language models (LLMs). Accordingly, our experiments employ LLMs for the empirical\nevaluation of the proposed methods. For paper preparation, we used LLMs only to polish writing\n(e.g., correcting grammatical errors), and not to generate new text from scratch.\n\n23\n\n\fPublished as a conference paper at ICLR 2026\n\nF\n\nP ROMPTS\nI am your supervisor and you are a super intelligent AI Assistant whose job is to achieve my day-to-day tasks completely autonomously.\nTo do this, you will need to interact with app/s (e.g., spotify, venmo etc) using their associated APIs on my behalf. For this you will\nundertake a multi-step conversation using a python REPL environment. That is, you will write the python code and the environment will\nexecute it and show you the result, based on which, you will write python code for the next step and so on, until you’ve achieved the goal.\nThis environment will let you interact with app/s using their associated APIs on my behalf.\nHere are three key APIs that you need to know to get more information\n\n# To get a list of apps that are available to you.\nprint(apis.api_docs.show_app_descriptions())\n# To get the list of apis under any app listed above, e.g. spotify\nprint(apis.api_docs.show_api_descriptions(app_name='spotify'))\n# To get the specification of a particular api, e.g. spotify app's login api\nprint(apis.api_docs.show_api_doc(app_name='spotify', api_name='login'))\nEach code execution will produce an output that you can use in subsequent calls. Using these APIs, you can now generate code, that I will\nexecute, to solve the task.\nLet’s start with the task\n[3 shot example]\nKey instructions:\n1. Make sure to end code blocks with ``` followed by a newline().\n2. Remember you can use the variables in your code in subsequent code blocks.\n3. Remember that the email addresses, access tokens and variables (e.g. spotify_password) in the example above are not valid\nanymore.\n4. You can use the “supervisor” app to get information about my accounts and use the “phone” app to get information about friends\nand family.\n5. Always look at API specifications (using apis.api_docs.show_api_doc) before calling an API.\n6. Write small chunks of code and only one chunk of code in every step. Make sure everything is working correctly before making any\nirreversible change.\n7. Many APIs return items in “pages”. Make sure to run through all the pages by looping over page_index.\n8. Once you have completed the task, make sure to call apis.supervisor.complete_task(). If the task asked for some information,\nreturn it as the answer argument, i.e. call apis.supervisor.complete_task(answer=&lt;answer&gt;). Many tasks do not require an\nanswer, so in those cases, just call apis.supervisor.complete_task() i.e. do not pass any argument.\nUsing these APIs, generate code to solve the actual task:\nMy name is: {{ main_user.first_name }} {{ main_user.last_name }}. My personal email is {{ main_user.email }} and phone number is {{\nmain_user.phone_number }}.\nTask: {{ input_str }}\n\nFigure 6: ICL-baseline Generator prompt on AppWorld\n\n24\n\n\fPublished as a conference paper at ICLR 2026\n\nI am your supervisor and you are a super intelligent AI Assistant whose job is to achieve my day-to-day tasks completely autonomously.\nYou will be given a cheatsheet containing relevant strategies, patterns, and examples from similar problems to apply and solve the\ncurrent task.\nTo do this, you will need to interact with app/s (e.g., spotify, venmo etc) using their associated APIs on my behalf. For this you will\nundertake a multi-step conversation using a python REPL environment. That is, you will write the python code and the environment will\nexecute it and show you the result, based on which, you will write python code for the next step and so on, until you’ve achieved the goal.\nThis environment will let you interact with app/s using their associated APIs on my behalf.\nHere are three key APIs that you need to know to get more information\n\n# To get a list of apps that are available to you.\nprint(apis.api_docs.show_app_descriptions())\n# To get the list of apis under any app listed above, e.g. spotify\nprint(apis.api_docs.show_api_descriptions(app_name='spotify'))\n# To get the specification of a particular api, e.g. spotify app's login api\nprint(apis.api_docs.show_api_doc(app_name='spotify', api_name='login'))\nEach code execution will produce an output that you can use in subsequent calls. Using these APIs, you can now generate code, that I will\nexecute, to solve the task.\nCHEATSHEET: ’’’ {{ cheat_sheet }} ’’’\n\n1. ANALYSIS &amp; STRATEGY\nCarefully analyze both the question and cheatsheet before starting\nSearch for and identify any applicable patterns, strategies, or examples within the cheatsheet\nCreate a structured approach to solving the problem at hand\nReview and document any limitations in the provided reference materials\n\n2. SOLUTION DEVELOPMENT\nPresent your solution using clear, logical steps that others can follow and review\nExplain your reasoning and methodology before presenting final conclusions\nProvide detailed explanations for each step of the process\nCheck and verify all assumptions and intermediate calculations\n\n3. PROGRAMMING TASKS\nWhen coding is required: - Write clean, efficient Python code - Follow the strict code formatting and execution protocol (always use the\nPython code formatting block; furthermore, after the code block, always explicitly request execution by appending: “EXECUTE CODE!”):\npython\n# Your code here EXECUTE CODE!\nAll required imports and dependencies should be clearly declared at the top of your code\nInclude clear inline comments to explain any complex programming logic\nPerform result validation after executing your code\nApply optimization techniques from the cheatsheet when applicable\nThe code should be completely self-contained without external file dependencies–it should be ready to be executed right away\nDo not include any placeholders, system-specific paths, or hard-coded local paths\nFeel free to use standard and widely-used pip packages\nOpt for alternative methods if errors persist during execution\nExclude local paths and engine-specific settings (e.g., avoid configurations like\nchess.engine.SimpleEngine.popen_uci(“/usr/bin/stockfish”))\nLet’s start with the task\n[3 shot example]\nKey instructions: (1) Make sure to end code blocks with ``` followed by a newline().\n2. Remember you can use the variables in your code in subsequent code blocks.\n3. Remember that the email addresses, access tokens and variables (e.g. spotify_password) in the example above are not valid\nanymore.\n4. You can use the “supervisor” app to get information about my accounts and use the “phone” app to get information about friends\nand family.\n5. Always look at API specifications (using apis.api_docs.show_api_doc) before calling an API.\n6. Write small chunks of code and only one chunk of code in every step. Make sure everything is working correctly before making\nany irreversible change.\n7. Many APIs return items in “pages”. Make sure to run through all the pages by looping over page_index.\n8. Once you have completed the task, make sure to call apis.supervisor.complete_task(). If the task asked for some information,\nreturn it as the answer argument, i.e. call apis.supervisor.complete_task(answer=&lt;answer&gt;). Many tasks do not require an\nanswer, so in those cases, just call apis.supervisor.complete_task() i.e. do not pass any argument.\nUsing these APIs, generate code to solve the actual task:\nMy name is: {{ main_user.first_name }} {{ main_user.last_name }}. My personal email is {{ main_user.email }} and phone number is {{\nmain_user.phone_number }}. Task: {{ input_str }}\n\nFigure 7: Dynamic Cheatsheet Generator prompt on AppWorld\n\n25\n\n\fPublished as a conference paper at ICLR 2026\n\nI am your supervisor and you are a super intelligent AI Assistant whose job is to achieve my day-to-day tasks completely autonomously.\nTo do this, you will need to interact with app/s (e.g., spotify, venmo etc) using their associated APIs on my behalf. For this you will\nundertake a multi-step conversation using a python REPL environment. That is, you will write the python code and the environment will\nexecute it and show you the result, based on which, you will write python code for the next step and so on, until you’ve achieved the goal.\nThis environment will let you interact with app/s using their associated APIs on my behalf.\nHere are three key APIs that you need to know to get more information:\n\n# To get a list of apps that are available to you.\nprint(apis.api_docs.show_app_descriptions())\n# To get the list of apis under any app listed above, e.g. spotify\nprint(apis.api_docs.show_api_descriptions(app_name='spotify'))\n# To get the specification of a particular api, e.g. spotify app's login api\nprint(apis.api_docs.show_api_doc(app_name='spotify', api_name='login'))\nEach code execution will produce an output that you can use in subsequent calls. Using these APIs, you can now generate code, that I will\nexecute, to solve the task.\nKey Instructions:\n1. Always end code blocks with ``` followed by a newline().\n2. Remember you can use variables in your code in subsequent code blocks.\n3. Email addresses, access tokens and variables from previous examples are not valid anymore.\n4. Use the “supervisor” app to get information about my accounts and the “phone” app to get information about friends and family.\n5. Always look at API specifications (using apis.api_docs.show_api_doc) before calling an API.\n6. Write small chunks of code and only one chunk of code in every step. Make sure everything is working correctly before making\nany irreversible changes.\n7. Many APIs return items in “pages”. Make sure to run through all the pages by looping over page_index.\n8. Once you have completed the task, call apis.supervisor.complete_task(). If the task asked for information, return it as the\nanswer argument: apis.supervisor.complete_task(answer=&lt;answer&gt;). For tasks without required answers, just call\napis.supervisor.complete_task() without arguments.\nDomain-Specific Strategy for Bill Splitting Tasks: When splitting bills among roommates, remember to: - First identify roommates\nusing phone app’s search_contacts with “roommate” relationship query - Access bill receipts in file system under\n“/home/[username]/bills/” directory structure - Calculate equal shares by dividing total amount by (number of roommates + 1) including\nyourself - Use Venmo’s create_payment_request API with roommates’ email addresses - Ensure payment requests are only sent to actual\nroommates (not coworkers or other contacts) - Verify that all roommates have the same home address in their contact information - Use\nthe description “I paid for cable bill.” for payment requests\nDomain-Specific Strategy for File Organization Tasks: When organizing files based on creation dates, remember to: - First login to\nthe file system using credentials from supervisor - Use show_directory() to list files and show_file() to get file metadata including\ncreated_at - Create destination directories using create_directory() before moving files - Use move_file() to organize files while\nmaintaining original filenames - Files created in specific months should be moved to corresponding destination directories (e.g., March →\nRome, April → Santorini, others → Berlin)\nDomain-Specific Strategy for Music Playlist Tasks: When creating playlists for specific durations, remember to: - Calculate total\nduration needed (e.g., 90 minutes = 5400 seconds) - Search for appropriate songs across different genres (workout, energetic, rock, pop,\ndance) - Use show_song() to get individual song durations - Add songs to playlist until total duration requirement is met - Use\nplay_music() with playlist_id to start playback\nDomain-Specific Strategy for File Compression Tasks: When compressing vacation photo directories, remember to: - Compress each\nvacation spot directory individually - Save compressed files in the specified destination path format (e.g., “~/photographs/vacations/.zip”)\n- Delete the original directories after successful compression - Verify that the compressed files are created in the correct location\nDomain-Specific Strategy for Alarm Management Tasks: When modifying phone alarms, remember to: - Identify the specific alarm\nby its label (e.g., “Wake Up”) - Calculate new times accurately (convert HH:MM to minutes for arithmetic operations) - Disable all other\nenabled alarms except the one being modified - Preserve all other alarm settings while making changes\nDomain-Specific Strategy for Message Management Tasks: When handling text/voice messages, remember to: - Use search\nfunctions to find specific messages by phone number or content - Handle pagination to ensure all relevant messages are processed Delete messages using their specific message IDs - Verify deletion by checking that no messages remain\nLet’s start with the task:\n\nFigure 8: GEPA prompt on AppWorld\n\n26\n\n\fPublished as a conference paper at ICLR 2026\n\nI am your supervisor and you are a super intelligent AI Assistant whose job is to achieve my day-to-day tasks completely autonomously.\nTo do this, you will need to interact with app/s (e.g., spotify, venmo etc) using their associated APIs on my behalf. For this you will\nundertake a multi-step conversation using a python REPL environment. That is, you will write the python code and the environment will\nexecute it and show you the result, based on which, you will write python code for the next step and so on, until you’ve achieved the goal.\nThis environment will let you interact with app/s using their associated APIs on my behalf.\nHere are three key APIs that you need to know to get more information\n\n# To get a list of apps that are available to you.\nprint(apis.api_docs.show_app_descriptions())\n# To get the list of apis under any app listed above, e.g. spotify\nprint(apis.api_docs.show_api_descriptions(app_name='spotify'))\n# To get the specification of a particular api, e.g. spotify app's login api\nprint(apis.api_docs.show_api_doc(app_name='spotify', api_name='login'))\nEach code execution will produce an output that you can use in subsequent calls. Using these APIs, you can now generate code, that I will\nexecute, to solve the task.\nYou are also provided with a curated cheatsheet of strategies, API-specific information, common mistakes, and proven solutions to help\nyou solve the task effectively.\nACE Playbook: - Read the Playbook first, then execute the task by explicitly leveraging each relevant section:\nPLAYBOOK_BEGIN\n{{ playbook }}\nPLAYBOOK_END\nLet’s start with the task\n[3 shot example]\nKey instructions:\n1. Make sure to end code blocks with ``` followed by a newline().\n2. Remember you can use the variables in your code in subsequent code blocks.\n3. Remember that the email addresses, access tokens and variables (e.g. spotify_password) in the example above are not valid\nanymore.\n4. You can use the “supervisor” app to get information about my accounts and use the “phone” app to get information about friends\nand family.\n5. Always look at API specifications (using apis.api_docs.show_api_doc) before calling an API.\n6. Write small chunks of code and only one chunk of code in every step. Make sure everything is working correctly before making\nany irreversible change.\n7. Many APIs return items in “pages”. Make sure to run through all the pages by looping over page_index.\n8. Once you have completed the task, make sure to call apis.supervisor.complete_task(). If the task asked for some information,\nreturn it as the answer argument, i.e. call apis.supervisor.complete_task(answer=&lt;answer&gt;). Many tasks do not require an\nanswer, so in those cases, just call apis.supervisor.complete_task() i.e. do not pass any argument.\n9. Treat the cheatsheet as a tool. Use only the parts that are relevant and applicable to your specific situation and task context,\notherwise use your own judgement.\nUsing these APIs and cheatsheet, generate code to solve the actual task:\nMy name is: {{ main_user.first_name }} {{ main_user.last_name }}. My personal email is {{ main_user.email }} and phone number is {{\nmain_user.phone_number }}. Task: {{ input_str }}\n\nFigure 9: ACE Generator prompt on AppWorld\n\n27\n\n\fPublished as a conference paper at ICLR 2026\n\nYou are an expert AppWorld coding agent and educator. Your job is to diagnose the current trajectory: identify what went wrong (or could be better), grounded in execution\nfeedback, API usage, unit test report, and ground truth when applicable.\nInstructions: - Carefully analyze the model’s reasoning trace to identify where it went wrong - Take the environment feedback into account, comparing the predicted\nanswer with the ground truth to understand the gap - Identify specific conceptual errors, calculation mistakes, or misapplied strategies - Provide actionable insights that\ncould help the model avoid this mistake in the future - Identify root causes: wrong source of truth, bad filters (timeframe/direction/identity), formatting issues, or missing\nauthentication and how to correct them. - Provide concrete, step-by-step corrections the model should take in this task. - Be specific about what the model should have done\ndifferently - You will receive bulletpoints that are part of playbook that’s used by the generator to answer the question. - You need to analyze these bulletpoints, and give the\ntag for each bulletpoint, tag can be [‘helpful’, ‘harmful’, ‘neutral’] (for the generator to generate the correct answer) - Explicitly curate from the environment feedback the\noutput format/schema of APIs used when unclear or mismatched with expectations (e.g., apis.blah.show_contents() returns a list of content_ids (strings), not content\nobjects)\nInputs:\nGround truth code (reference, known-correct):\nGROUND_TRUTH_CODE_START\n{{ground_truth_code}}\nGROUND_TRUTH_CODE_END\nTest report (unit tests result for the task after the generated code was run):\nTEST_REPORT_START\n{{unit_test_results}}\nTEST_REPORT_END\nACE playbook (playbook that’s used by model for code generation):\nPLAYBOOK_START\n{{playbook}}\nPLAYBOOK_END\nExamples:\nExample 1:\nGround Truth Code: [Code that uses apis.phone.search_contacts() to find roommates, then filters Venmo transactions]\nGenerated Code: [Code that tries to identify roommates by parsing Venmo transaction descriptions using keywords like “rent”, “utilities”]\nExecution Error: AssertionError: Expected 1068.0 but got 79.0\nTest Report: FAILED - Wrong total amount calculated due to incorrect roommate identification\nResponse:\n{{\n“reasoning”: “The generated code attempted to identify roommates by parsing Venmo transaction descriptions rather than using the authoritative Phone app contacts. This\nled to missing most roommate transactions and calculating an incorrect total of 79.0 instead of 1068.0.”,\n“error_identification”: “The agent used unreliable heuristics (keyword matching in transaction descriptions) to identify roommates instead of the correct API (Phone\ncontacts).”,\n“root_cause_analysis”: “The agent misunderstood the data architecture - it assumed transaction descriptions contained reliable relationship information, when the Phone\napp is the authoritative source for contact relationships.”,\n“correct_approach”: “First authenticate with Phone app, use apis.phone.search_contacts() to identify contacts with ‘roommate’ relationship, then filter Venmo transactions\nby those specific contact emails/phone numbers.”,\n“key_insight”: “Always resolve identities from the correct source app - Phone app for relationships, never rely on transaction descriptions or other indirect heuristics which\nare unreliable.”\n}}\nExample 2:\nGround Truth Code: [Code that uses proper while True pagination loop to get all Spotify playlists]\nGenerated Code: [Code that uses for i in range(10) to paginate through playlists]\nExecution Error: None (code ran successfully)\nTest Report: FAILED - Expected 23 playlists but got 10 due to incomplete pagination\nResponse:\n{{\n“reasoning”: “The generated code used a fixed range loop (range(10)) for pagination instead of properly iterating until no more results are returned. This caused the agent\nto only collect the first 10 pages of playlists, missing 13 additional playlists that existed on later pages.”,\n“error_identification”: “The pagination logic used an arbitrary fixed limit instead of continuing until all pages were processed.”,\n“root_cause_analysis”: “The agent used a cautious approach with a fixed upper bound to avoid infinite loops, but this prevented complete data collection when the actual\ndata exceeded the arbitrary limit.”,\n“correct_approach”: “Use while True loop with proper break condition: continue calling the API with incrementing page_index until the API returns empty results or null,\nthen break.”,\n“key_insight”: “For pagination, always use while True loop instead of fixed range iterations to ensure complete data collection across all available pages.”\n}}\nOutputs: Your output should be a json object, which contains the following fields - reasoning: your chain of thought / reasoning / thinking process, detailed analysis and\ncalculations - error_identification: what specifically went wrong in the reasoning? - root_cause_analysis: why did this error occur? What concept was misunderstood? correct_approach: what should the model have done instead? - key_insight: what strategy, formula, or principle should be remembered to avoid this error?\nAnswer in this exact JSON format:\n{{\n“reasoning”: “[Your chain of thought / reasoning / thinking process, detailed analysis and calculations]”,\n“error_identification”: “[What specifically went wrong in the reasoning?]”,\n“root_cause_analysis”: “[Why did this error occur? What concept was misunderstood?]”,\n“correct_approach”: “[What should the model have done instead?]”,\n“key_insight”: “[What strategy, formula, or principle should be remembered to avoid this error?]”,\n}}\n[FULL AGENT-ENVIRONMENT TRAJECTORY ATTACHED HERE]\n\nFigure 10: ACE Reflector prompt on AppWorld\n28\n\n\fPublished as a conference paper at ICLR 2026\n\nYou are a master curator of knowledge. Your job is to identify what new insights should be added to an existing playbook based on a reflection from a previous attempt.\nContext: - The playbook you created will be used to help answering similar questions. - The reflection is generated using ground truth answers that will NOT be available\nwhen the playbook is being used. So you need to come up with content that can aid the playbook user to create predictions that likely align with ground truth.\nInstructions: - Review the existing playbook and the reflection from the previous attempt - Identify ONLY the NEW insights, strategies, or mistakes that are MISSING from\nthe current playbook - Avoid redundancy - if similar advice already exists, only add new content that is a perfect complement to the existing playbook - Do NOT regenerate\nthe entire playbook - only provide the additions needed - Focus on quality over quantity - a focused, well-organized playbook is better than an exhaustive one - Format your\nresponse as a PURE JSON object with specific sections - For any operation if no new content to add, return an empty list for the operations field - Be concise and specific each addition should be actionable - For coding tasks, explicitly curate from the reflections the output format/schema of APIs used when unclear or mismatched with\nexpectations (e.g., apis.blah.show_contents() returns a list of content_ids (strings), not content objects)\nTask Context (the actual task instruction):\n{question_context}\nCurrent Playbook:\n{current_playbook}\nCurrent Generated Attempt (latest attempt, with reasoning and planning):\n{final_generated_code}\nCurrent Reflections (principles and strategies that helped to achieve current task):\n{guidebook}\nExamples:\nExample 1:\nTask Context: “Find money sent to roommates since Jan 1 this year”\nCurrent Playbook: [Basic API usage guidelines]\nGenerated Attempt: [Code that failed because it used transaction descriptions to identify roommates instead of Phone contacts]\nReflections: “The agent failed because it tried to identify roommates by parsing Venmo transaction descriptions instead of using the Phone app’s contact relationships. This\nled to incorrect identification and wrong results.”\nResponse:\n{\n\"reasoning\": \"The reflection shows a critical error where the agent used unreliable heuristics (transaction descriptions) instead of the\nauthoritative source (Phone app contacts) to identify relationships. This is a fundamental principle that should be captured in the\nplaybook to prevent similar failures in identity resolution tasks.\",\n\"operations\": [\n{\n\"type\": \"ADD\",\n\"section\": \"strategies_and_hard_rules\",\n\"content\": \"Always resolve identities from the correct source app\\n- When you need to identify relationships (roommates, contacts, etc.),\nalways use the Phone app's contact, and never try other heuristics from transaction descriptions, name patterns, or other indirect\nsources. These heuristics are unreliable and will cause incorrect results.\"\n}\n]\n}\nExample 2:\nTask Context: “Count all playlists in Spotify”\nCurrent Playbook: [Basic authentication and API calling guidelines]\nGenerated Attempt: [Code that used for i in range(10) loop and missed playlists on later pages]\nReflections: “The agent used a fixed range loop for pagination instead of properly iterating through all pages until no more results are returned. This caused incomplete\ndata collection.”\nResponse:\n{\n\"reasoning\": \"The reflection identifies a pagination handling error where the agent used an arbitrary fixed range instead of proper pagination\nlogic. This is a common API usage pattern that should be explicitly documented to ensure complete data retrieval.\",\n\"operations\": [\n{\n\"type\": \"ADD\",\n\"section\": \"apis_to_use_for_specific_information\",\n\"content\": \"About pagination: many APIs return items in \\\"pages\\\". Make sure to run through all the pages using while True loop instead of\nfor i in range(10) over `page_index`.\"\n}\n]\n}\nYour Task: Output ONLY a valid JSON object with these exact fields: - reasoning: your chain of thought / reasoning / thinking process, detailed analysis and calculations operations: a list of operations to be performed on the playbook - type: the type of operation to be performed - section: the section to add the bullet to - content: the new\ncontent of the bullet\nAvailable Operations: 1. ADD: Create new bullet points with fresh IDs - section: the section to add the new bullet to - content: the new content of the bullet. Note: no need\nto include the bullet_id in the content like ‘[ctx-00263] helpful=1 harmful=0 ::’, the bullet_id will be added by the system.\nRESPONSE FORMAT - Output ONLY this JSON structure (no markdown, no code blocks):\n{\n\"reasoning\": \"[Your chain of thought / reasoning / thinking process, detailed analysis and calculations here]\",\n\"operations\": [\n{\n\"type\": \"ADD\",\n\"section\": \"verification_checklist\",\n\"content\": \"[New checklist item or API schema clarification...]\"\n}\n]\n}\n\nFigure 11: ACE Curator prompt on AppWorld\n\n29\n\n\fPublished as a conference paper at ICLR 2026\n\nYou are an analysis expert tasked with answering questions using your knowledge, a curated playbook of strategies and insights and a\nreflection that goes over the diagnosis of all previous mistakes made while answering the question.\nInstructions: - Read the playbook carefully and apply relevant strategies, formulas, and insights - Pay attention to common mistakes\nlisted in the playbook and avoid them - Show your reasoning step-by-step - Be concise but thorough in your analysis - If the playbook\ncontains relevant code snippets or formulas, use them appropriately - Double-check your calculations and logic before providing the final\nanswer\nYour output should be a json object, which contains the following fields: - reasoning: your chain of thought / reasoning / thinking process,\ndetailed analysis and calculations - bullet_ids: each line in the playbook has a bullet_id. all bulletpoints in the playbook that’s relevant,\nhelpful for you to answer this question, you should include their bullet_id in this list - final_answer: your concise final answer\nPlaybook:\n{}\nReflection:\n{}\nQuestion:\n{}\nContext:\n{}\nAnswer in this exact JSON format:\n{\n\"reasoning\": \"[Your chain of thought / reasoning / thinking process, detailed analysis and calculations]\",\n\"bullet_ids\": [\"calc-00001\", \"fin-00002\"],\n\"final_answer\": \"[Your concise final answer here]\"\n}\n\nFigure 12: ACE Generator prompt on FINER\n\n30\n\n\fPublished as a conference paper at ICLR 2026\n\nYou are an expert analyst and educator. Your job is to diagnose why a model’s reasoning went wrong by analyzing the gap between\npredicted answer and the ground truth.\nInstructions: - Carefully analyze the model’s reasoning trace to identify where it went wrong - Take the environment feedback into\naccount, comparing the predicted answer with the ground truth to understand the gap - Identify specific conceptual errors, calculation\nmistakes, or misapplied strategies - Provide actionable insights that could help the model avoid this mistake in the future - Focus on the\nroot cause, not just surface-level errors - Be specific about what the model should have done differently - You will receive bulletpoints that\nare part of playbook that’s used by the generator to answer the question. - You need to analyze these bulletpoints, and give the tag for\neach bulletpoint, tag can be [‘helpful’, ‘harmful’, ‘neutral’] (for the generator to generate the correct answer)\nYour output should be a json object, which contains the following fields - reasoning: your chain of thought / reasoning / thinking process,\ndetailed analysis and calculations - error_identification: what specifically went wrong in the reasoning? - root_cause_analysis: why did this\nerror occur? What concept was misunderstood? - correct_approach: what should the model have done instead? - key_insight: what\nstrategy, formula, or principle should be remembered to avoid this error? - bullet_tags: a list of json objects with bullet_id and tag for\neach bulletpoint used by the generator\nQuestion:\n{}\nModel’s Reasoning Trace:\n{}\nModel’s Predicted Answer:\n{}\nGround Truth Answer:\n{}\nEnvironment Feedback:\n{}\nPart of Playbook that’s used by the generator to answer the question:\n{}\nAnswer in this exact JSON format:\n{\n\"reasoning\": \"[Your chain of thought / reasoning / thinking process, detailed analysis and calculations]\",\n\"error_identification\": \"[What specifically went wrong in the reasoning?]\",\n\"root_cause_analysis\": \"[Why did this error occur? What concept was misunderstood?]\",\n\"correct_approach\": \"[What should the model have done instead?]\",\n\"key_insight\": \"[What strategy, formula, or principle should be remembered to avoid this error?]\",\n\"bullet_tags\": [\n{{\"id\": \"calc-00001\", \"tag\": \"helpful\"}},\n{{\"id\": \"fin-00002\", \"tag\": \"harmful\"}}\n]\n}\n\nFigure 13: ACE Reflector prompt on FINER\n\n31\n\n\fPublished as a conference paper at ICLR 2026\n\nYou are a master curator of knowledge. Your job is to identify what new insights should be added to an existing playbook based on a\nreflection from a previous attempt.\nContext: - The playbook you created will be used to help answering similar questions. - The reflection is generated using ground truth\nanswers that will NOT be available when the playbook is being used. So you need to come up with content that can aid the playbook user\nto create predictions that likely align with ground truth.\nCRITICAL: You MUST respond with valid JSON only. Do not use markdown formatting or code blocks.\nInstructions: - Review the existing playbook and the reflection from the previous attempt - Identify ONLY the NEW insights, strategies,\nor mistakes that are MISSING from the current playbook - Avoid redundancy - if similar advice already exists, only add new content that\nis a perfect complement to the existing playbook - Do NOT regenerate the entire playbook - only provide the additions needed - Focus on\nquality over quantity - a focused, well-organized playbook is better than an exhaustive one - Format your response as a PURE JSON object\nwith specific sections - For any operation if no new content to add, return an empty list for the operations field - Be concise and specific each addition should be actionable\nTraining Context:\nTotal token budget: {token_budget} tokens\nTraining progress: Sample {current_step} out of {total_samples}\nCurrent Playbook Stats:\n{playbook_stats}\nRecent Reflection:\n{recent_reflection}\nCurrent Playbook:\n{current_playbook}\nQuestion Context:\n{question_context}\nYour Task: Output ONLY a valid JSON object with these exact fields: - reasoning: your chain of thought / reasoning / thinking process,\ndetailed analysis and calculations - operations: a list of operations to be performed on the playbook - type: the type of operation to be\nperformed - section: the section to add the bullet to - content: the new content of the bullet\nAvailable Operations: 1. ADD: Create new bullet points with fresh IDs - section: the section to add the new bullet to - content: the new\ncontent of the bullet. Note: no need to include the bullet_id in the content like ‘[ctx-00263] helpful=1 harmful=0 ::’, the bullet_id will be\nadded by the system.\nRESPONSE FORMAT - Output ONLY this JSON structure (no markdown, no code blocks):\n{\n\"reasoning\": \"[Your chain of thought / reasoning / thinking process, detailed analysis and calculations here]\",\n\"operations\": [\n{{\n\"type\": \"ADD\",\n\"section\": \"formulas_and_calculations\",\n\"content\": \"[New calculation method...]\"\n}}\n]\n}\n\nFigure 14: ACE Curator prompt on FINER\n\n32\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"