arXiv:2610.41245cs.AIOct 2026

Manuscript Offprint

arXiv:2610.41245

MEMIG: Self-evolving Memory Construction for Antibody Optimization

Yunhui Jang, Zach Wang, Jai Doshi, Kangway Chuang, Sidney Lisanza, Taylor Joren

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Memory has become central to self-evolving LLM agents, which store and retrieve experience from past rollouts to guide future decisions. Existing systems represent this experience as free-form natural language and maintain it by rewriting, which fits tasks whose experience is narratable. However, in scientific discovery and optimization, experience is often a quantity measured by an oracle under a specific context. Rewriting it as text leaves no index for where a record should be, replaces a measurement with a description, and cannot express how interventions interact. To address this, we argue that agent memory for biomolecule optimization should instead be indexable, quantitative, and structured, and we introduce MEMIG. This memory construction framework realizes these three properties. In detail, MEMIG addresses each insight with a domain-grounded identifier and accumulates the quantitative effect measured by a property oracle, so that updates remain local and retrieval becomes an exact lookup. Next, MEMIG connects insights whose interventions are applied together and measures their epistasis by decomposing each evaluated set. Our results show that MEMIG improves performance in most settings across in silico antibody optimization tasks.

1 INTRODUCTION

LLM agents can self-evolve by accumulating memories from previous rollouts, which guide future decisions (Shinn et al., 2023; Zhao et al., 2024; Suzgun et al., 2026; Zhang et al., 2026a). This offers a practical, economical alternative to fine-tuning, as the agent improves without expensive training while accumulated memory remains interpretable and editable. Nevertheless, the representation of this memory is free-form and unstructured, with experience from previous rollouts stored in natural language. This fits tasks whose experience is narratable, such as question answering and long-horizon conversation (Zhong et al., 2024; Packer et al., 2023; Chhikara et al., 2025), where experience can be summarized in a sentence without losing rich information.

However, directly applying such narrative memory systems to biomolecule optimization is not straightforward. For instance, in a computational oracle-guided protein optimization task (Notin et al., 2023; Stanton et al., 2022; Gruver et al., 2023), an agent proposes mutations to sequences, evaluates the candidate using oracles, and reuses measurements from the candidates to guide later proposals. Each evaluation is not merely a narratable experience, but a numerical measurement tied to a specific biological context, whose effect may depend on other co-applied mutations. Therefore, memory for biomolecule optimization should be indexable by biological context, quantitative in what it stores, and structured to capture interactions between mutations.

First, memory should be indexed by the context in which a measurement applies. Without such an index, there is no way to address a single entry, so incorporating a new experience requires an LLM to rewrite or summarize the entire memory. To address this, recent work (Zhang et al., 2026a; Xu et al., 2025) introduces identifiers for each memory entry so that updates can be applied locally, but these identifiers are arbitrary labels without information about the context, so retrieval still relies on textual similarity. In contrast, the effect of the same mutation can depend on its exact biological

*Work done during an internship at Genentech † Correspondence

Figure

Figure 1: Overview of MEMIG. MEMIG constructs an epistasis graph with antibody-grounded identifiers. Directed edges organize property → germline → region → mutation hierarchies, while undirected edges connect co-occurring mutations and store their epistatic effects.

context (Notin et al., 2023; Olsen et al., 2024). Therefore, memory should address each entry by this context, so that updates and retrieval operate over the context rather than textual similarity.

Second, memory should preserve quantitative measurements rather than store them as free-form text. Existing memory methods store experience as natural language authored by an LLM (Zhao et al., 2024; Suzgun et al., 2026), where a reported number is written rather than computed and is therefore not tied to the measurement that produced it. This can discard the quantitative signal required for scientific optimization. Memory should instead retain oracle outputs as persistent quantitative records, while the LLM only converts the retrieved records into interpretable guidance for the agent.

Third, memory should capture the measured dependence between entities, rather than semantic similarity between the textual records. Graph-based memories organize records as linked notes rather than a flat list, but their edges represent semantic relatedness between texts (Chhikara et al., 2025; Xu et al., 2025). However, in biomolecule optimization, the effect of one mutation can depend on the presence of another, a phenomenon known as epistasis. Memory should therefore record these interactions explicitly rather than assume that mutation effects are additive.

To address this, we introduce MEMIG (Memory as Indexable Graphs), a domain-grounded memory construction framework for protein optimization agents, as described in Figure 1. We focus on the domain of antibody optimization and design. To make memory indexable, we define an antibody-grounded identifier that specifies the target property, the germline gene, the antibody region, and the AHo-numbered (Honegger & PluÈckthun, 2001) mutation, so that each record is addressed by the biological context in which it applies. To make memory quantitative, each insight stores the effect computed by the oracle.

Moreover, to build structured memory, MEMIG creates a graph of co-occurring insights. Here, each edge in the graph connects mutations showing epistasis, quantified as the deviation of the joint effect from the sum of the individual effects. Next, before each rollout, MEMIG retrieves insights from the graph based on the context identifier, ranks them by their measured effects, and provides the selected insights with their graph neighborhoods to the agent. Then an LLM renders them as interpretable guidance while the quantitative memory remains. We empirically showed that incorporating MEMIG into frontier LLMs (GLM-5-Team et al., 2026; Anthropic, 2025) improves performance in the majority of settings in silico antibody optimization tasks.

Our contributions are summarized as follows:

  • We introduce MEMIG, an indexable, quantitative, and structured memory system which addresses each insight with an antibody-grounded identifier and stores the effect computed by a property oracle, so that updates remain local and retrieval becomes an exact lookup.
  • We construct a graph-based memory over insights, where an edge stores the epistatic effect of mutations, so that memory precisely records how mutations combine.
  • We demonstrate that MemIG outperforms existing memory systems on antibody optimization.