Coating a culture surface so cells cannot stick to it is mostly settled chemistry: add albumin, agar, or a surfactant. What remains hard is the procedure around the coating. The concentration has to suit the assay. The coating has to survive the pipetting and flow that follow it. It has to stay intact through hours of operation. Today these choices are found by trial and error. Meanwhile, language-model coding agents have learned to fix programs by running them and reading the errors. We propose treating a liquid-handling protocol as a program and treating a cell-adhesion measurement as its test suite. A refinement agent then repairs the protocol from the outcome of each run. The main question is not whether a language model can write pipetting code. It is how a "run it, read the feedback, patch it" loop should behave when every run costs a day of wet-lab time and returns a noisy number instead of a clean pass or fail.
That question matters beyond biology. Existing refinement loops accept a patch whenever the next run looks better. Under measurement noise, that habit means the agent chases noise and gradually breaks things that already worked. We will build a protocol-refinement agent with two parts. The first is a statistical acceptance-and-rollback rule based on replicate wells. The second is a split of labor: the language model makes structural edits to the protocol (adding, removing, or reordering steps), while a standard optimizer tunes the continuous parameters inside a fixed structure. We will measure how many wet-lab runs it takes to reach a robust cell-repellent protocol. We will also check whether the acceptance rule transfers back to a noisy software benchmark.
Core Claim
When the feedback signal is expensive and noisy, an iterative refinement agent beats both a plain refinement loop and a plain parameter optimizer if it does two things. It must accept a change only when replicate measurements show the improvement is real, rolling back otherwise. And it must restrict the language model to structural, diagnosable edits, such as "the wash after coating strips the albumin, so remove it or slow the dispense." The advantage should appear specifically in cases where the protocol's failure is structural rather than a mis-set scalar. Where only a scalar is wrong, we expect a parameter optimizer alone to match it, and we treat that as a falsifiable boundary of the claim.
Why This Intersection, and What Is Open
The coating literature shows that the right answer depends on context and that coatings degrade. Two optically driven cell-sorting studies illustrate this: Rapid and Label-Free Separation of Burkitt's Lymphoma Cells from Red Blood Cells by Optically-Induced Electrokinetics found that only 10% of cells stayed mobile on a bare substrate. Adding 0.2% albumin to the medium raised this to over 90% without changing the conductivity the sorting depends on. Work on on-chip tumor spheroids, Surface Optimization and Design Adaptation toward Spheroid Formation On-Chip and Uniform Tumor Spheroids on Surface-Optimized Microfluidic Biochips for Reproducible Drug Screening and Personalized Medicine, needed a much heavier 10% albumin pre-coat to stop cells spreading on silicone rubber (PDMS) channels. Development of a novel and economical agar-based non-adherent three-dimensional culture method for enrichment of cancer stem-like cells reports that agar concentration must be balanced: too little lets cells anchor, too much impedes sphere growth. Controlling Electroosmotic Flow in Poly(dimethylsiloxane) Separation Channels by Means of Prepolymer Additives relies on a surfactant layer that adsorbs dynamically and can therefore desorb. These papers motivate the proposal. They show the optimum shifts by an order of magnitude between assays, and that coatings fail through procedure (shear, washing, time) as much as through dose. All were tuned by hand.
The refinement literature supplies the method and also constrains it. Execution-feedback loops work well when the oracle is deterministic. MAGIS raised GPT-4's resolution rate on real GitHub issues from 1.74% to 13.94% through iterated review. RobotGPT raised simulated manipulation success from 38.5% to 91.5% with a corrector loop. Toward Generative 6G Simulation converged on working simulator scripts in 1.8 iterations on average. Two negative results bound the design. A study of compiler-feedback refinement finds gains plateau after roughly three to five rounds. A study of iterative prompting failures finds that repeated feedback can reinforce wrong assumptions and break working code. The closest safeguards are POLO, which rejects rewrites that show no measured speedup, and the checkpoint rollback of Fang et al.. Both assume that a single measurement is trustworthy. We keep their reject-and-rollback structure but replace single-shot comparison with a replicate-based test, because biology does not give trustworthy single shots.
The adjacent automation work does not do this. Adaptive Droplet Routing in Digital Microfluidic Biochips Using Deep Reinforcement Learning routes droplets around degraded electrodes with a fixed neural policy. It models degradation as electrical charge trapping, not fouling, and never edits a protocol. Reinforcement Learning for Robotic Liquid Handler Planning schedules pipetting moves over integer volumes and emits no code. It models no surface chemistry. We found no work that refines executable wet-lab code against a cell-based readout.
Research Program
Each protocol is a Python liquid-handling script in the style of the Opentrons API. It specifies coating agent and concentration, incubation time, wash steps, dispense flow rates and heights, whether albumin is also added to the running medium, and an optional mid-run re-coating step. The agent has three components.
The first is a diagnoser-editor language model. It reads the script, the run log, and summarized readouts: mobile-cell fraction over time, spheroid diameter distribution, and microscopy-derived bare-area estimates. It then proposes a small structural patch along with a stated hypothesis, for example "coating is stripped by a 150 µL/s dispense."
The second is a Bayesian optimizer, which tunes the continuous parameters exposed by the current structure within a small inner budget.
The third is an acceptance rule. Each candidate is run on $n$ replicate wells next to the current best protocol on the same plate. If $\hat\Delta$ is the mean improvement in the target metric and $\hat\sigma$ is the pooled per-well standard deviation, the candidate is accepted only when
$$ \hat\Delta - z\,\hat\sigma\sqrt{2/n} > 0, $$
with $z$ set by the desired false-acceptance rate. This is a one-sided lower confidence bound on a difference of two means of $n$ wells each. Otherwise the agent rolls back to the incumbent and keeps the rejected hypothesis in memory so it does not try the same thing again. Running both protocols on the same plate controls for batch effects, which in cell culture are often larger than the effects being tuned.
Development happens first in a mechanistic simulator that we will build and release. It models coating adsorption as saturating in concentration and time. It models shear-driven desorption that scales with dispense rate and flow duration, adhesion probability that scales with uncovered area, a penalty for medium conductivity (for the electrokinetic task), and a penalty for over-coating that impairs aggregation (for the spheroid task). Per-well noise and per-plate batch offsets are calibrated to replicate variance we measure ourselves. The simulator contains hidden failure modes of two kinds. Scalar faults are mis-set values, such as a dose that is too low. Structural faults include a wash that strips the coat, a missing re-coat in long runs, and coating applied after cell loading. This lets us know ground truth and vary noise levels.
Baselines
The naive reference points are uncoated surfaces and the fixed literature recipes: 0.2% albumin in medium for the mobility task, following Liang et al., who report a mobile fraction rising from 10% to over 90%, and a 10% albumin pre-coat for the spheroid task, following Azizipour et al., who report complete suppression of adhesion. We will re-run both recipes on our own chips. Their reported figures came from different devices and short runs, and our long-duration mobility endpoint has no prior number. Beating these recipes means a higher mobile fraction at the six-hour mark, or a lower coefficient of variation in spheroid diameter, with non-overlapping replicate intervals.
The strongest competitor on this question is Bayesian optimization over a parameterized template protocol. The template contains every structural option as a switch or continuous knob. The optimizer gets the same total number of wells and plates, the same readouts, and the same plate-matched replicate design. This is the method a lab-automation practitioner would actually use. For this specific task, no reported result was found on Lacuna for automated passivation protocol optimization, so it has no published number, and both it and our agent are run fresh.
The refinement-loop baseline is a corrector loop in the style of RobotGPT. It applies the language model's patch whenever the latest single measurement improves, capped at the same iteration count. It shares the same model and prompts. The POLO-style variant adds reject-if-no-gain on single measurements.
Three ablations isolate the key ingredients: removing the replicate acceptance rule, removing structural edits (so the model only sets parameters), and removing the inner optimizer. Our agent beats the field if it reaches within 5% of the simulator's known optimum in fewer plates than every baseline on structural-fault tasks. It also must not regress below its own incumbent more often than the chosen false-acceptance rate.
Why not just…?
Why not just run Bayesian optimization on a template and skip the language model? This is the real threat, and on scalar-fault tasks we expect it to win or tie. Our design measures exactly that. The argument for the agent is narrower. Structural faults such as step order, an extra wash, or a missing re-coat inflate a template into a large mixed discrete space. That space is hard to search in a dozen plates, and the readouts carry diagnosable clues about which step failed. If the agent does not beat template optimization on structural-fault tasks under equal budget, we will report that the language model adds nothing here and that only the acceptance rule is worth keeping.
Why not just pre-coat everything with 10% albumin? The file's own evidence argues against a single recipe. The electrokinetic sorter needed 0.2% in the medium to preserve conductivity. Heavy coatings and changes in surface wettability alter stem-cell phenotype, as Biomimetic reconstruction of the hematopoietic stem cell niche for in vitro amplification of human hematopoietic stem cells reports. Physisorbed layers desorb under flow. The fixed-recipe baseline tests this directly on our long-duration endpoint.
Why not just train a reinforcement-learning policy? The droplet-routing and liquid-handler policies needed many simulated episodes and fixed action spaces. Wet-lab budgets of tens of plates rule that out, and a policy emits no auditable script a biologist can review. We include it only in the simulator, with an unlimited episode budget, as a reference for what large amounts of data can achieve.
Why not just prompt a frontier model once with retrieved protocol literature? Single-pass generation is weak even on deterministic code: GPT-4 resolved 1.74% of issues alone, per MAGIS. The ns-3 study still saw a 17.0% syntax error rate with retrieval. We run zero-shot retrieval-augmented generation as iteration zero of every loop, so its score is reported directly.
Proposed Experiments
In simulation, we will sweep noise level, the fraction of faults that are structural, and budget, across about 40 seeded tasks. The decisive check is the interaction: our agent's advantage over template optimization should grow with the structural fraction and with noise. Its advantage over the plain corrector loop should grow with noise, where the plain loop should show the regression cascades predicted by the iterative-prompting study.
In the wet lab, we will run two assays on PDMS channels. The first measures mobile-cell fraction in flow over six hours. The second measures uniformity of spheroid diameter at 72 hours. Each method gets 12 plates. The protocol each method selects is then validated on fresh cell batches, to measure robustness rather than in-loop luck.
As a transfer check, we will apply the acceptance rule to the POLO C/C++ optimization suite, where repeated runtime timing is genuinely noisy. POLO reports speedups from 1.34x to 21.5x. We will ask whether replicate-based acceptance reduces accepted-but-illusory speedups relative to single-measurement rejection at equal compute. A positive result there would show the contribution is a general rule for refinement under noisy oracles, not just a laboratory convenience.
References
- Rapid and Label-Free Separation of Burkitt's Lymphoma Cells from Red Blood Cells by Optically-Induced Electrokinetics
- Surface Optimization and Design Adaptation toward Spheroid Formation On-Chip
- Uniform Tumor Spheroids on Surface-Optimized Microfluidic Biochips for Reproducible Drug Screening and Personalized Medicine
- Development of a novel and economical agar-based non-adherent three-dimensional culture method for enrichment of cancer stem-like cells
- Controlling Electroosmotic Flow in Poly(dimethylsiloxane) Separation Channels by Means of Prepolymer Additives
- MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolution
- RobotGPT: Robot Manipulation Learning From ChatGPT
- Toward Generative 6G Simulation: An Experimental Multi-Agent LLM and ns-3 Integration
- CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translation
- Do Users Write More Insecure Code with AI Assistants?
- POLO: An LLM-Powered Project-Level Code Performance Optimization Framework
- MEIC: Re-thinking RTL Debug Automation using LLMs
- Adaptive Droplet Routing in Digital Microfluidic Biochips Using Deep Reinforcement Learning
- Reinforcement Learning for Robotic Liquid Handler Planning
- Biomimetic reconstruction of the hematopoietic stem cell niche for in vitro amplification of human hematopoietic stem cells