arXiv:2610.02924cs.MAOct 2026

Manuscript Offprint

arXiv:2610.02924

Evaluator-in-the-Loop Monte Carlo Tree Search via LLM Agents for Motif Scaffolding in Protein Design

Haotian Hu, Oguzhan Gungordo, Siheng Xiong, Faramarz Fekri

ABSTRACT

Motif-scaffolding systems commonly follow a generate-then-filter paradigm, in which candidate proteins are generated independently and structural evaluation is used primarily for terminal screening or ranking. This paradigm underuses evaluation: failed predictions contain state-specific evidence about whether a design requires repair of motif geometry, global foldability, or other structural constraints. We introduce ELMS (Evidence-based LLM-guided Monte Carlo Search), an evaluator-in-the-loop search framework for motif scaffolding that turns such evaluator feedback into targeted design actions. Effective reuse of structural feedback is nontrivial because different scaffold states exhibit different failure modes, and repeatedly refining a single trajectory can prematurely commit computation to an unproductive region of sequence space. ELMS therefore retains evaluated scaffolds as persistent search states: a Critic Agent diagnoses state-local structural failures, a Policy Agent selects targeted operators with execution parameters, motif-locked operators realize legal sequence modifications, and MCTS determines which historical states should receive further design effort. Under the standard GeomMotif protocol (100 candidates per task), ELMS achieves Successful rates of 86.41% on single-motif tasks and 84.57% on paired-motif tasks, exceeding the strongest prior baseline by 19.3 and 21.9 percentage points, respectively. On MotifBench, under a matched 100-candidate search budget, it solves 26.7 of 30 tasks on average (88.89% Task Success), compared with 16.0 tasks (53.33%) for the strongest baseline. These results establish ELMS as an effective approach for converting structural evaluation from a terminal filter into actionable guidance for iterative motif scaffolding.

1 INTRODUCTION

Motif scaffolding connects a local hypothesis of molecular function to a physically realizable protein. A small set of residues may specify catalysis, binding, or coordination through a precise three-dimensional arrangement, as demonstrated in computational enzyme and epitope scaffolding (Correia et al., 2014). The surrounding protein, however, must stabilize this local geometry while forming a globally foldable and structurally coherent scaffold, motivating structure-conditioned scaffold design approaches such as constrained hallucination and inpainting (Wang et al., 2022). More recently, diffusion-based protein design has enabled direct generation of diverse scaffolds around prescribed structural motifs (Watson et al., 2023; Butcher et al., 2025), with subsequent methods extending this paradigm toward more flexible and atomically specified motif constraints (Ahern et al., 2026). Despite these advances, motif scaffolding still couples several objectives that need not improve together: preserving the prescribed motif geometry, maintaining global foldability, and producing structures sufficiently distinct from known or reference proteins. Reliably balancing these local and global requirements therefore remains a central challenge in functional protein design.

Most modern methods address motif scaffolding through a generate-then-filter paradigm. A motif-conditioned generator first produces a population of candidate scaffolds, after which structure prediction and benchmark evaluation are used to accept, reject, or rank the resulting designs. Diffusion-based approaches such as RFdiffusion have made motif-conditioned backbone generation substantially more effective (Watson et al., 2023), while flow-matching methods have provided an alterna-

Figure

Figure 1: Overview of ELMS. The search tree selects an evaluated state for expansion; the Critic Agent analyzes the state-local evidence to identify which structural or task-specific constraints are limiting the current candidate, the Policy Agent translates this critic into a concrete edit plan over mutable sequence regions, and a motif-locked operator applies the edit while preserving the required motif positions to generate a new candidate sequence. Structural evaluation returns the resulting child to the search tree, where value and visit information is backpropagated to guide subsequent expansions. After search, evaluated states are ranked deterministically for benchmark reporting.

tive framework for sampling conditional protein structures (Yim et al., 2024). Subsequent methods such as Genie 2 Lin et al. (2024) and FADiff Liu et al. (2024) have expanded the range and flexibility of geometric constraints that can be imposed during generation. More recent approaches extend motif-conditioned design toward finer-grained and atomistic specifications (Ahern et al., 2026; Geffner et al., 2026). Despite these advances in generation, structural evaluation is still typically consumed only after candidates have been produced. Low structural confidence and motif displacement indicate different failure modes and therefore suggest different corrective actions, yet under a generate-then-filter interface they may both be treated simply as unsuccessful samples. Consequently, evaluation is primarily used to measure and filter failures rather than to determine how the next design should be changed.

GeomMotif Strashnov et al. (2026) and MotifBench Zheng et al. (2025) evaluate motif-scaffolding methods under benchmark-specified candidate populations, measuring whether generated designs satisfy success criteria and, in some analyses, novelty or diversity. Our question is complementary: when structural evaluation, high-accuracy simulation, or expert review is costly, can evaluator feedback be used during inference to discover at least one feasible scaffold within a fixed candidate/evaluator budget more reliably than generate-then-filter or simpler feedback-guided search?

To address this question, we introduce Evidence-based LLM-guided Monte Carlo Search. ELMS treats evaluated scaffolds as persistent search states: a Critic Agent summarizes state-local structural failures, a Policy Agent selects a legal operator with execution parameters, motif-locked operators realize the edit, and MCTS decides which states receive further design effort. This turns structural evaluation from a terminal filter into an inference-time signal for allocating a limited design budget.

Our main contributions are:

• We formulate motif scaffolding as ELMS, which conducts Monte Carlo Tree Search with an evaluator in the loop. We therefore explicitly separate internal candidate-generation/evaluation budget from the final benchmark reporting interface.

• We introduce a multi-agent MCTS controller in which both LLM Critic and Policy Agents operate over state-local structural evidence, while motif-locked operators enforce constraints.

• We evaluate the framework on two complementary motif-scaffolding benchmarks. Under the standard GeomMotif Success protocol, it achieves Successful rates of 86.41% on single-motif tasks and 84.57% on paired-motif tasks. In a controlled MotifBench setting with 100 evaluated candidates per case, our framework solves 26.7 of 30 tasks on average, corresponding to 88.89% Task Success. We further use matched-budget ablations and budget-scaling experiments to isolate the contribution of evaluator-guided tree search and analyze its sensitivity to inference compute.

References (26)