TL;DR
LabApprentice is a wetlab robotics system where an AI coding agent learns like an apprentice at a lab bench—writing, running, and refining its own robot and instrument programs across experiments without ever updating its model weights. By using unmodified lab instruments as step-by-step verifiers, the agent turns physical measurements into reusable code and rules, cutting experiment times by 22–59% and eventually composing those tools into a complete four-hour hydrogel synthesis.
What Problem Does This Paper Address?
Self-driving laboratories can run entire experimental campaigns, but their procedures still have to be programmed in advance. Whenever targets, vessels, or bench layouts change—or when a new instrument without a clean API is introduced—researchers face a mountain of repeated integration work.
In software, coding agents can recursively improve by editing their own code and checking it against fast, cheap benchmarks. Wetlab robotics strips away those luxuries: every physical attempt consumes real reagents, takes real time, and cannot be cheaply reset. Worse, a single failed outcome at the end of a long chemistry protocol doesn't tell you which step went wrong. The authors ask: can a coding agent build and revise a library of reusable lab programs through physical execution, using the laboratory's own instruments to check its work along the way?
Methods
LabApprentice pairs a fixed-weight LLM (Claude Opus 5.5) with a Kinova Gen3 robotic arm, cameras, and unmodified lab equipment—a serial-port balance, a stirring hot plate operated by turning its physical knob while a camera reads its display, and a potentiostat on a separate PC.
Rather than retraining a neural policy, self-improvement happens at the harness level through two core mechanisms:
- A persistent, agent-written skill store: Each run starts in a fresh session with access to a
skill storecontaining tools (Python programs), written skills, notes, and bench layouts. The agent reads the store, writes any missing capabilities, and saves what it learns for the next run. Because later tools can import and build on earlier ones, the improvement is recursive. - Instruments as step-level verifiers: To catch errors before they compound, LabApprentice enforces a claim-before-check protocol. After each experimental step, the agent logs a claim about what it believes happened, reads the designated instrument (e.g., the balance or camera), and logs a verdict. Every arm motion also passes through a ROS 2 motion server with fixed safety checks (joint limits, speed caps, and collision boxes).
Datasets
Rather than using a static dataset, the authors evaluate LabApprentice on five physical wetlab tasks on a real bench, whose operation types account for 55–63% of actions annotated in three existing corpora of biochemistry, inorganic, and organic synthesis protocols:
- POUR: Pouring liquid to a target mass (20 g, 30 g, 25 g).
- HEAT: Heating a beaker on a hot plate (45 °C, 40 °C), holding, turning off, and reweighing.
- SPLIT: Splitting water between two Petri dishes (4.0 g or 3.0 g per dish).
- CALIBRATE: Writing a potentiostat program to run electrochemical impedance spectroscopy (EIS) and calibrate two conductivity cells.
- HYDROGEL: A four-hour workflow mixing, pouring, heating, and measuring a conductive PEDOT:PSS hydrogel, composing tools from the first four tasks.
Between runs, targets, vessel orientations, and bench positions were changed. Each repeated task was also rerun from an empty skill store as a control.
Key Insights and Ideas
- Turning physics into code: In
SPLIT, the agent noticed that ~0.8 g of water continued to fall into the dish after it issued a stop command. It stored an early-stop margin in its skill store, reused it in the next run, and refined it to 1.2 g in the fifth—hitting the target window in a single pulse where earlier runs needed multiple attempts. - Visual error recovery: During
HYDROGEL, camera frames revealed that a lid the agent thought it was holding was actually sitting on the bench. The agent located the lid, regrasped it, confirmed the grip with a test lift, and continued. - Bringing new instruments online: Starting with zero potentiostat code in
CALIBRATE, the agent read the vendor's help files and example scripts, wrote its own EIS sweep program, and reused it in later runs.
Key Results
- Speedups and cost savings: From the first to the last run of each repeated task, agent-and-robot time dropped by 22–59% (e.g., from 21:22 to 8:40 in
POUR, and 48:23 to 22:17 inSPLIT). Thinking tokens fell by 38–78%, and API costs by 22–74%. Over 84% of the time savings came from needing less reasoning and programming. - Empty-store controls: Rerunning tasks from an empty store took 1.3–3.5× longer than runs with the accumulated store.
- End-to-end composition:
HYDROGELreused 13 of the 14 stored tools, met all 8/8 success criteria, and produced two conductive hydrogels measuring 0.71 and 1.12 S/m—matching a hand-prepared control (0.71 S/m) and squarely within the literature range (0.01–2.2 S/m).
Limitations and Future Work
The authors note that each condition was run only once, and the empty-store controls were executed after the main runs. The evaluation was also limited to a single bench, a single human operator (who handled tasks outside the arm's reach, such as refills and cable swaps), and a single LLM. Natural next steps include transferring skill stores across different benches and laboratories and integrating new classes of instruments.
Summary updated