Manuscript Offprint
arXiv:2609.02129Beyond Context Windows: Persistent Discovery Context for Data-Centric Agents
Abstract
Data-centric agents repeatedly perform a discovery step before planning or execution: identifying the data objects relevant to a task. Yet successful discovery outcomes are typically discarded rather than reused. We introduce persistent discovery context, a lightweight memory layer that stores prior intent-to-object mappings and reuses them to augment future retrieval. Across three structured data environments, persistent discovery context consistently improves retrieval quality over metadata-only search, remains effective with automatically generated memories, and exposes a reproducible interference failure mode. In lexically sparse domains, memory-only retrieval can even outperform metadata-based retrieval. These findings suggest that discovery outcomes constitute a useful form of reusable context for data-centric agents.
1 Introduction
Agent memory systems store conversations (Packer et al., 2023), observations (Park et al., 2023), executable skills (Wang et al., 2024), and reusable workflows (Wang et al., 2025). These mechanisms help agents retain information across tasks and sessions. Data-centric agents face a different challenge: before planning or execution, they must determine which data objects are relevant to a task. Although many tasks require similar tables and attributes, discovery is typically treated as a per-task operation. Relevant objects are identified, used once, and discarded rather than retained as reusable context. This raises a simple question: Should successful discovery outcomes persist across tasks?
We define a discovery outcome as a mapping between a task intent and the data objects that proved useful for accomplishing that task. Existing metadata catalogs and schema-linking methods support discovery (dat, 2026; Yu et al., 2018; Wang et al., 2020; Pourreza & Rafiei, 2023) but do not preserve successful discovery outcomes across tasks.
To address this gap, we introduce persistent discovery context, a lightweight memory layer that stores prior intent-to-object mappings and reuses them to augment future retrieval. We evaluate the approach on three real-world structured data environments across 125 held-out tasks. Our findings are fourfold. First, persistent discovery context consistently improves retrieval quality over metadata-only retrieval across all three domains. Second, the approach remains effective when initialized with LLM-generated memories, showing that useful gains can still be obtained despite imperfect memory construction. Third, we identify a reproducible interference failure mode in which semantically related but incorrect memories degrade retrieval quality. We additionally observe that in lexically sparse domains, memory-only retrieval can outperform metadata-based retrieval, suggesting that accumulated discovery experience can sometimes provide a stronger signal than object descriptions alone.
Discovery Memory. A discovery memory records a prior mapping between a natural-language task description and the set of data objects that proved relevant. Discovery memories are persisted at the registry level and accumulate across tasks within the same data environment. Memories are created from prior discovery outcomes and reused across related tasks.
Memory-Augmented Retrieval. Given a query , registry retrieval produces a relevance score for each candidate object . We then retrieve the most similar discovery memories and use them to augment object rankings.
where controls the influence of memory and indicates whether object appeared in a retrieved memory. Setting recovers standard registry search. Setting yields a memory-only ranker (S2).
3 Experiment
Datasets and Tasks We evaluate on three real-world structured data environments from structurally distinct domains.
Finance. Czech PKDD'99 banking dataset (Berka & Bruha, 1999): 6 tables, 42 attributes covering client accounts, transactions, and loans.
NYC Collisions. NYPD Motor Vehicle Collisions (New York City Open Data, 2025): 3 tables, 41 attributes covering crash-, vehicle-, and person-level records.
Northwind. Microsoft Northwind Traders (Microsoft, 2025): 8 tables, 43 attributes covering customers, orders, products, employees, suppliers, and categories.
For each domain, we construct a registry augmented with natural-language descriptions manually authored from schema names, relationships, and dataset documentation. The same descriptions are used across all retrieval conditions. We organize tasks into 15 task families (5 per domain). Each family groups queries that share the same relevant data objects but vary in surface vocabulary, defined thematically based on domain knowledge (e.g., transaction_behavior, loan_risk, injury_severity). Each family contains one seed task used to initialize discovery memory and a set of held-out evaluation tasks, ranging from 5 to 12 tasks per family. To estimate sensitivity to seed selection, we additionally perform a leave-one-out (LOO) rotation in which every task within a family serves as the seed in turn; results are reported in Appendix G. Across all domains, the benchmark contains 140 tasks, comprising 125 held-out evaluation tasks and 15 seed tasks. We additionally construct three interference tasks used only for the analysis in Table 2. Each task is manually annotated with 3–5 relevant data objects.
Experimental Conditions We compare four retrieval settings:
-
S0: Raw Metadata. Search over object names only.
-
S1: Registry. Search over object names and descriptions.
-
S2: Memory. Objects ranked using discovery memory alone, without registry retrieval (i.e., in Equation 1).
-
S3: Registry+Memory. S1 augmented with discovery memory (Eq. 1).
Table 1: F1@5 on held-out evaluation tasks. Unstarred: TF-IDF; *: neural (all-MiniLM-L6-v2). Memory conditions use . Full metrics in Appendix B; LOO robustness in Appendix G.
| Method | Finance | NYC Col. | Northwind |
|---|---|---|---|
| S0: Raw Metadata | 0.194 | 0.227 | 0.206 |
| S1: Registry | 0.396 | 0.299 | 0.446 |
| S2: Memory | 0.358 | 0.412 | 0.386 |
| S3: Reg.+Mem. | 0.499 | 0.482 | 0.528 |
| S1*: Registry | 0.427 | 0.435 | 0.480 |
| S2*: Memory | 0.533 | 0.418 | 0.494 |
| S3*: Reg.+Mem. | 0.594 | 0.486 | 0.599 |
Unless otherwise noted, S0–S3 use TF-IDF retrieval. Memory similarity uses the same retrieval model as the registry retriever. We set ; since each domain has 5 task families with one seed memory each, this retrieves all stored memories weighted by similarity. To evaluate retriever independence, we also evaluate S1, S2, and S3 using a neural retriever based on all-MiniLM-L6-v2 sentence embeddings (Reimers & Gurevych, 2019); these conditions are denoted S1*, S2*, and S3*. We additionally evaluate all conditions (S0–S3) with BM25 as an alternative lexical retriever and compare against a naive-injection variant (S4); both are reported in Appendix H and Appendix F. To test robustness to imperfect memories, we replace the manually annotated intent-to-object mappings used to initialize discovery memory with mappings generated automatically by Claude Haiku (Appendix C).
Main Results Table 1 summarizes the results.
Persistent discovery context improves retrieval. Adding discovery memory (S3) improves F1@5 across all three domains using TF-IDF retrieval: finance 0.396 → 0.499 (+0.103), NYC collisions 0.299 → 0.482 (+0.183), and Northwind 0.446 → 0.528 (+0.082). Appendix I illustrates the downstream impact on agent planning quality. The largest gain occurs in NYC collisions (+0.183 from S1 to S3 vs. +0.072 from S0 to S1), suggesting that memory compensates for lexical mismatches that metadata descriptions alone cannot resolve.
With neural retrieval, memory improves F1@5 by +0.167 in finance, +0.119 in Northwind, and +0.051 in NYC collisions, where the neural base retriever is already strong (S1* MRR = 0.848; Appendix B). The smaller gain in NYC is consistent with the neural retriever already resolving much of the lexical opacity that discovery memory compensates for in the TF-IDF setting. This pattern is confirmed by the memory-weight ablation (Appendix E), which shows that lower values perform better when the base retriever leaves less room for memory to contribute.
Memory alone is informative in lexically sparse domains. Under TF-IDF retrieval, S2 (Memory only) surpasses S1 (Registry) in NYC collisions (0.412 vs. 0.299), showing that the memory signal alone outperforms metadata search when attribute names are compound and lexically opaque (e.g., contributing_factor_vehicle_1). In finance and Northwind under TF-IDF, S1 remains stronger than S2, so combining both signals (S3) is necessary to benefit from memory. Under neural retrieval the pattern partially inverts: S2* outperforms S1* in finance (0.533 vs. 0.427) and Northwind (0.494 vs. 0.480), while S1* remains stronger in NYC collisions (0.435 vs. 0.418).
Memory gains are not uniform across task families. Families with distinctive object vocabularies (e.g., temporal analysis or transaction behavior) benefit most from discovery memory, while families whose objects recur across multiple task types exhibit near-zero or negative gains (Appendix D).
LLM-generated memories remain useful. Automatically generated memories achieve object-level agreement (F1) of 0.698, 0.762, and 0.735 (finance, NYC, Northwind) against manually annotated discovery memories. Retrieval still outperforms S1 in two domains (F1@5 = 0.433 vs. 0.396 in finance; 0.452 vs. 0.299 in NYC) and remains above S0 in all three, indicating robustness to imperfect memory construction (Appendix C for details).
Table 2: Cross-family interference. Each task is evaluated under S1 (no memory), S3 seeded with an incorrect family memory, and S3 seeded with the correct family memory.
| Domain | Interfering token(s) | S1 | S3 (wrong) | S3 (correct) |
|---|---|---|---|---|
| Finance | withdrawal → trans.operation | 0.444 | 0.222 | 0.667 |
| NYC Collisions | vehicle type → vehicle_type, vehicle | 0.400 | 0.200 | 0.800 |
| Northwind | order quantity → order_details.quantity | 0.444 | 0.000 | 0.889 |
Negative Result: Cross-Family Interference Table 2 illustrates a consistent failure mode across all three domains. When a semantically similar but incorrect discovery memory is activated, retrieval quality falls below the no-memory baseline. For example, in finance, the term withdrawal can activate a transaction-behavior memory when the task actually concerns loan analysis. In NYC collisions, vehicle type can activate a vehicle-profile memory when the task concerns injury analysis. Similar effects occur in Northwind, where order-related vocabulary appears across multiple task families. These results show that discovery memory is not universally beneficial. Surface-level vocabulary overlap can activate incorrect memories and distort rankings when the appropriate task family has not yet been observed. This failure mode motivates future work on memory selection, confidence estimation, and interference-aware retrieval.
4 Related Work
Agent memory systems store reusable artifacts such as conversational context and knowledge (MemGPT) (Packer et al., 2023), observations and reflections (Generative Agents) (Park et al., 2023), executable skills (Voyager) (Wang et al., 2024), and workflows (Agent Workflow Memory) (Wang et al., 2025). AgentSM (Biswal et al., 2026) and MERIT (Wang et al., 2026) extend memory to data-centric agents by storing execution experience for schema reasoning, planning, and SQL generation. In contrast, we study a smaller memory artifact: discovery memory, represented as reusable intent-to-object mappings. Rather than storing trajectories or reasoning processes, discovery memory records which data objects proved relevant for a task and evaluates these discovery outcomes as a retrieval problem (R@5, MRR, F1@5) rather than through downstream planning, SQL generation, or execution.
Our work is also related to schema linking and Text-to-SQL (Yu et al., 2018; Wang et al., 2020; Pourreza & Rafiei, 2023), knowledge-augmented SQL systems such as KAT-SQL (Baek et al., 2025), metadata catalogs such as DataHub (dat, 2026), and data-discovery systems such as Starmie (Fan et al., 2023). These systems focus on schema linking, reasoning, query generation, metadata management, or learning better object representations. In contrast, we investigate whether successful discovery outcomes themselves should persist as reusable intent-to-object mappings across tasks.
The closest conceptual connection is relevance feedback (Rocchio, 1971; Salton & Buckley, 1990), which reuses historical relevance signals to improve future retrieval. Discovery memory differs in that it operates on agent-generated object selections rather than user interaction signals, transfers across semantically related but lexically distinct tasks rather than refining a single query, and captures reusable mappings between task intents and sets of structured objects rather than document-level relevance.
5 Discussion and Conclusion
Across three structurally distinct domains, persistent discovery context consistently improves retrieval quality over metadata-only search across both lexical and neural retrievers and remains effective with automatically generated memories. These findings suggest that successful discovery outcomes constitute a reusable memory artifact that complements conversation, experience, and workflow memory for data-centric agents.
The primary limitation is memory interference: semantically similar but incorrect memories can degrade retrieval below the no-memory baseline. Future work includes interference-aware memory selection, memory aging, larger-scale evaluation across more domains and tasks, and evaluation using agent-generated discovery traces. More broadly, these findings suggest that agent memory may extend beyond conversations and workflows to include reusable knowledge about how to navigate complex data environments.
References
Datahub: The metadata platform for the modern data stack. https://datahubproject.io/, 2026. Accessed: 2026-06-16.
Jinheon Baek, Horst Samulowitz, Oktie Hassanzadeh, Dharmashankar Subramanian, Sola Shirai, Alfio Gliozzo, and Debarun Bhattacharjya. Knowledge base construction for knowledge-augmented text-to-sql. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 26569–26583, Vienna, Austria, 2025. Association for Computational Linguistics. doi: 10.18653/v1/2025.findings-acl.1363.
Petr Berka and Ivan Bruha. The PKDD'99 discovery challenge: Understanding financial data. Discovery Challenge Workshop Notes, PKDD, 1999.
Asim Biswal, Chuan Lei, Xiao Qin, Aodong Li, Balakrishnan Narayanaswamy, and Tim Kraska. Agentsm: Semantic memory for agentic text-to-sql. arXiv preprint arXiv:2601.15709, 2026.
Grace Fan, Jin Wang, Yuliang Li, Dan Zhang, and Renée J. Miller. Semantics-aware dataset discovery from data lakes with contextualized column-based representation learning. Proceedings of the VLDB Endowment (PVLDB), 16(7):1545–1558, 2023. doi: 10.14778/3598581.3598589.
Microsoft. Northwind sample database. https://learn.microsoft.com/en-us/dotnet/framework/data/adonet/sql/linq/downloading-sample-databases, 2025. Accessed 2026.
New York City Open Data. Motor vehicle collisions – crashes. https://data.cityofnewyork.us/, 2025. Accessed 2026.
Charles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, and Joseph E. Gonzalez. MemGPT: Towards LLMs as operating systems. arXiv preprint arXiv:2310.08560, 2023.
Joon Sung Park, Joseph C. O'Brien, Carrie J. Cai, Meredith Ringel Morris, Percy Liang, and Michael S. Bernstein. Generative agents: Interactive simulacra of human behavior. In Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology (UIST), 2023.
Mohammadreza Pourreza and Davood Rafiei. Din-sql: Decomposed in-context learning of text-to-sql with self-correction. In Advances in Neural Information Processing Systems, 2023.
Nils Reimers and Iryna Gurevych. Sentence-BERT: Sentence embeddings using Siamese BERT-networks. In Proceedings of EMNLP, 2019.
J. J. Rocchio. Relevance feedback in information retrieval. In The SMART Retrieval System, 1971.
Gerard Salton and Chris Buckley. Improving retrieval performance by relevance feedback. Journal of the American Society for Information Science, 41(4):288–297, 1990.
Bailin Wang, Richard Shin, Xiaodong Liu, Oleksandr Polozov, and Matthew Richardson. Rat-sql: Relation-aware schema encoding and linking for text-to-sql parsers. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 7567–7578, 2020.
Guanzhi Wang, Yuqi Xie, Yunfan Jiang, Ajay Mandlekar, Chaowei Xiao, Yuke Zhu, Linxi Fan, and Anima Anandkumar. Voyager: An open-ended embodied agent with large language models. Transactions on Machine Learning Research, 2024.
Yibo Wang, Nikki Lijing Kuang, Philip S. Yu, Zhewei Yao, and Yuxiong He. Learning to retrieve: Dual-level long-term memory for text-to-sql agents. arXiv preprint arXiv:2606.00547, 2026.
Zora Zhiruo Wang, Jiayuan Mao, Daniel Fried, and Graham Neubig. Agent workflow memory. In Proceedings of the 42nd International Conference on Machine Learning, 2025.
Tao Yu, Rui Zhang, Kai Yang, Michihiro Yasunaga, Dongxu Wang, Zifan Li, James Ma, Irene Li, Qingning Yao, Shanelle Roman, Zilin Zhang, and Dragomir Radev. Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 3911–3921, Brussels, Belgium, 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1425.
A Dataset and Registry Statistics
The finance registry contains 6 tables and 42 attributes. The NYC collisions registry contains 3 tables and 41 attributes. The Northwind registry contains 8 tables and 43 attributes.
Across three domains we construct 140 tasks in total: 125 held-out evaluation tasks organized into 15 task families (5 per domain), and 15 seed tasks (one per family) used only to populate discovery memory. We additionally construct 3 cross-family interference tasks (one per domain).
B Full Retrieval Results
Table 3 reports R@5, R@10, MRR, and F1@5 for all conditions. The F1@5 column matches Table 1 in the main paper.
C LLM-Generated Discovery Memories
To evaluate robustness to imperfect memories, we replace manually annotated discovery memories with memories generated automatically by Claude Haiku. For each seed task, the model receives the task description and registry contents and is asked to identify the relevant data objects.
Generated memories are evaluated against manually annotated discovery memories using object-level F1. We then use the generated memories to initialize discovery memory and measure downstream retrieval F1@5:
- Finance: memory agreement F1 = 0.698; S3 F1@5 = 0.433 vs. S1 F1@5 = 0.396
- NYC Collisions: memory agreement F1 = 0.762; S3 F1@5 = 0.452 vs. S1 F1@5 = 0.299
- Northwind: memory agreement F1 = 0.735; S3 F1@5 = 0.435 vs. S1 F1@5 = 0.446
Finance and NYC show clear improvement over registry-only search. Northwind LLM memories do not improve over S1, reflecting noisier object selections in a domain with higher cross-entity vocabulary overlap (e.g., order-related terms appearing across multiple task families).
Across all three domains, retrieval quality remains above the raw-metadata baseline (S0), indicating robustness to imperfect memory construction.
Table 3: Full retrieval results on held-out evaluation tasks. Unstarred: TF-IDF; *: neural (all1-MiniLM-L6-v2). All memory conditions use .
| Method | R@5 | R@10 | MRR | F1@5 | |
|---|---|---|---|---|---|
| Finance | S0: Raw Metadata | 0.216 | 0.377 | 0.458 | 0.194 |
| S1: Registry | 0.443 | 0.618 | 0.746 | 0.396 | |
| S2: Memory | 0.382 | 0.623 | 0.595 | 0.358 | |
| S3: Reg.+Mem. | 0.551 | 0.693 | 0.816 | 0.499 | |
| S1*: Registry | 0.479 | 0.675 | 0.766 | 0.427 | |
| S2*: Memory | 0.587 | 0.793 | 0.805 | 0.533 | |
| S3*: Reg.+Mem. | 0.657 | 0.846 | 0.883 | 0.594 | |
| NYC Col. | S0: Raw Metadata | 0.267 | 0.400 | 0.348 | 0.227 |
| S1: Registry | 0.340 | 0.505 | 0.648 | 0.299 | |
| S2: Memory | 0.476 | 0.596 | 0.749 | 0.412 | |
| S3: Reg.+Mem. | 0.552 | 0.751 | 0.818 | 0.482 | |
| S1*: Registry | 0.501 | 0.683 | 0.848 | 0.435 | |
| S2*: Memory | 0.485 | 0.636 | 0.790 | 0.418 | |
| S3*: Reg.+Mem. | 0.559 | 0.690 | 0.799 | 0.486 | |
| Northwind | S0: Raw Metadata | 0.234 | 0.327 | 0.604 | 0.206 |
| S1: Registry | 0.501 | 0.682 | 0.795 | 0.446 | |
| S2: Memory | 0.421 | 0.530 | 0.612 | 0.386 | |
| S3: Reg.+Mem. | 0.586 | 0.792 | 0.886 | 0.528 | |
| S1*: Registry | 0.534 | 0.744 | 0.792 | 0.480 | |
| S2*: Memory | 0.539 | 0.726 | 0.653 | 0.494 | |
| S3*: Reg.+Mem. | 0.661 | 0.827 | 0.806 | 0.599 | |
D Per-Family Analysis
Memory gains are not uniform across task families.

Figure 1: F1@5 improvement (S1→S3) by task family.
Families with distinctive object vocabularies benefit most from discovery memory. The top three families—temporal analysis (+0.34), supply chain (+0.26), and transaction behavior (+0.26)—show the largest gains, while families such as loan risk (+0.19) and account activity (+0.17) show moderate improvement.
In contrast, families whose objects appear across multiple task types show near-zero or negative gains. Customer demographics (-0.077), regional economics (-0.102), and product catalog (-0.074) all degrade slightly relative to registry-only retrieval. In these cases, the seed memory introduces objects that overlap with unrelated queries, adding a bias that the registry score cannot fully overcome.
These results suggest that discovery memory is most effective when the relationship between task intent and relevant objects is specific and stable, and least effective—or mildly harmful—when multiple task families share similar object sets.
E Memory Weight Ablation
Effect of Memory Weight — TF-IDF vs. Neural

Figure 2: Recall@5 and F1@5 as a function of memory weight across three domains and two retrievers. recovers registry-only (S1); gives memory full control. Both retrievers peak at ; over-weighting memory degrades performance in all settings.
As shown in Figure 2, both TF-IDF and neural retrieval peak at across all three domains. The absolute gain from the baseline to the peak is substantially smaller for neural retrieval (e.g., NYC collisions: +0.197 under TF-IDF vs. +0.065 under neural), consistent with a stronger base retriever leaving less room for memory to contribute. Over-weighting memory at degrades performance in all settings. Setting recovers the registry-only baseline. Table 1 reports results at the default ; using the ablation-optimal yields modest additional gains but the main conclusions are unchanged.
F Blending vs. Direct Memory Injection
Table 4 compares registry+memory blending (S3) against a direct injection baseline (S4) that promotes all objects associated with the highest-scoring memory to the front of the ranking without combining memory and registry scores.
Table 4: Comparison of S3 (Registry+Memory, blended) and S4 (Naive Injection) on held-out evaluation tasks. S3 outperforms S4 in both MRR and F1@5 across all three domains.
| Domain | Method | R@5 | R@10 | MRR | F1@5 |
|---|---|---|---|---|---|
| Finance | S3: Reg.+Mem. | 0.551 | 0.693 | 0.816 | 0.499 |
| S4: Naive Inj. | 0.455 | 0.742 | 0.682 | 0.427 | |
| NYC | S3: Reg.+Mem. | 0.552 | 0.751 | 0.818 | 0.482 |
| S4: Naive Inj. | 0.506 | 0.703 | 0.761 | 0.440 | |
| Northwind | S3: Reg.+Mem. | 0.586 | 0.792 | 0.886 | 0.528 |
| S4: Naive Inj. | 0.423 | 0.749 | 0.690 | 0.387 |
S3 outperforms S4 in both MRR and F1@5 across all three domains. Directly injecting objects from a retrieved memory can elevate irrelevant objects when the memory only partially matches the query. By combining registry and memory signals, S3 preserves retrieval precision while still promoting objects associated with relevant prior discovery outcomes.
G Leave-One-Out Seed Robustness
Table 5 reports F1@5 mean and standard deviation under leave-one-out (LOO) seed rotation. For each task family, every task serves as the seed in turn while the remaining tasks are evaluated, yielding 56, 51, and 36 evaluation trials for Finance, NYC Collisions, and Northwind, respectively. The relative ordering of methods is consistent with the fixed-seed results in Table 1, indicating that the observed gains are not sensitive to the choice of seed task.
Table 5: F1@5 mean±std under leave-one-out seed rotation. Unstarred: TF-IDF; *: neural retriever.
| Method | Finance | NYC Col. | Northwind |
|---|---|---|---|
| S0: Raw Metadata | |||
| S1: Registry | |||
| S2: Memory | |||
| S3: Reg.+Mem. | |||
| S1*: Registry | |||
| S2*: Memory | |||
| S3*: Reg.+Mem. |
H BM25 Retriever Comparison
Table 6 reports S0–S3 results using Okapi BM25 in place of TF-IDF. BM25 underperforms TF-IDF at the S1 and S3 levels across all three domains; S0 differences are negligible. A notable gap appears at the S1 registry level (e.g., Finance: 0.358 vs. 0.396; NYC: 0.292 vs. 0.299; Northwind: 0.388 vs. 0.446), reflecting that BM25's term-frequency saturation is poorly matched to the long, semantically rich prose descriptions in the registry. S2 (memory-only) results are comparable between BM25 and TF-IDF, as memory retrieval matches queries against short intent strings rather than registry descriptions. Despite the weaker base, S3 still improves over S1 with BM25 in all three domains, confirming that memory boosting is beneficial regardless of the underlying retriever.
Table 6: BM25 retriever results on held-out evaluation tasks (S0–S3). TF-IDF F1@5 is shown in parentheses for comparison.
| Method | R@5 | R@10 | MRR | F1@5 (TF-IDF) | ||
|---|---|---|---|---|---|---|
| Finance | S0: Raw Metadata | 0.198 | 0.363 | 0.414 | 0.177 | (0.194) |
| S1: Registry | 0.395 | 0.553 | 0.668 | 0.358 | (0.396) | |
| S2: Memory | 0.418 | 0.591 | 0.607 | 0.379 | (0.358) | |
| S3: Reg.+Mem. | 0.434 | 0.584 | 0.677 | 0.393 | (0.499) | |
| NYC Col. | S0: Raw Metadata | 0.260 | 0.400 | 0.333 | 0.221 | (0.227) |
| S1: Registry | 0.335 | 0.473 | 0.594 | 0.292 | (0.299) | |
| S2: Memory | 0.464 | 0.610 | 0.752 | 0.402 | (0.412) | |
| S3: Reg.+Mem. | 0.453 | 0.661 | 0.642 | 0.392 | (0.482) | |
| Northwind | S0: Raw Metadata | 0.234 | 0.327 | 0.604 | 0.206 | (0.206) |
| S1: Registry | 0.435 | 0.630 | 0.773 | 0.388 | (0.446) | |
| S2: Memory | 0.421 | 0.533 | 0.629 | 0.386 | (0.386) | |
| S3: Reg.+Mem. | 0.477 | 0.702 | 0.790 | 0.429 | (0.528) |
I Agent-in-the-Loop Demonstration
To assess downstream impact, we provide the top-5 retrieved objects from S1 and S3 to a planning agent (Claude Haiku) and ask it to generate an analysis plan for the task "Find customers with unusual cash withdrawals."
S3 retrieval provides the exact transaction-related objects needed for the task, while S1 retrieval contains mostly demographic objects. As a result, the S3 plan directly references the correct operational fields and produces a more executable analysis strategy.
| S1 — Registry only | S3 — Registry+Memory |
|---|---|
| Retrieved: client_id, birth_date, bank, disp_id, client | Retrieved: operation, trans, balance, type, account |
| Task: "Find customers with unusual cash withdrawals" | |
| "Query the bank database transactions table (implied in the banking database), filtering for cash withdrawal operations." | "Query the trans entity where operation = 'cash withdrawal' and type = 'debit' to isolate withdrawal transactions." |
Figure 3: Illustrative effect of retrieval context on downstream agent planning. With S1 retrieval, the agent must infer that a transactions table exists and works around its absence. With S3 retrieval, the agent directly references trans. operation and trans. type, producing a more executable analysis plan. Same model, same task; only the retrieved context changes.