Guarded orchestration for scientific models
Letting scientists run trained prediction models through natural language without the model guessing missing inputs.
- Status
- Presented · WORKS26 at SC26
- Paper
- Guarded, State-Aware Orchestration for Schema-Constrained Scientific Model Execution
- Authors
- Code
- GitHub ↗
The problem
Scientists publish trained prediction models so others can reuse them, but the models usually arrive as code, notebooks, or command-line tools. Using one means knowing the exact input names, types, and units. A language model in front of the model could take a plain-language description instead, but function calling only gives it a way to call a tool. It does not say when a scientific input is complete, or what a correction should change.
Why it is hard
- Inputs often arrive over several turns, and a missing value has to stop the run rather than be guessed.
- Every value must reach the model with the right name and type.
- When a scientist corrects one input or asks a what-if question, nothing else may change; when they start a new sample, nothing old may carry over.
- A fluent answer from the language model is not evidence that the model ran.
My role
I am the first author. I designed the guarded, state-aware workflow and its execution rules, and instantiated it for protein-corona prediction over a backend of trained prediction models, with my co-authors M. R. Gartia and M. Arifuzzaman.
The approach
The workflow splits the work between the language model and the service around it. The language model interprets: it collects values from the conversation, narrates results, and recognizes what a follow-up means. The service enforces: it checks the inputs, runs the backend, and holds the state that later steps build on.
- CollectGather inputs across turns and ask for anything missing.Language model
- GuardTranslate names, then recheck that every input is present and typed.Service
- ExecuteRun the trained model once and store the accepted inputs.Service
- NarrateExplain the returned result in the scientist's terms.Language model
- SteerRead a follow-up as a correction, a what-if, or a new sample.Language model
↻ A correction or what-if changes one input and keeps the rest; a new sample clears everything.
Language model interpretsService enforces
For protein-corona prediction the model needs ten descriptors: base material, surface modification, TEM size, zeta potential, protein source, plasma concentration, nanoparticle concentration, and centrifugation speed, time, and temperature.
A conversation
Step through a session to watch the inputs fill in, the backend stay blocked until all ten are present, and what-if, correction, and reset each change the state differently.
1 · Collect
Scientist: 40 nm silica nanoparticles with an NH₂ surface and +12 mV zeta potential, in 50% fetal bovine serum at 200 mg/L.
Workflow: I still need the centrifugation speed, time, and temperature before I can run the model.
7 of 10 inputs held · backend blocked, 3 missing
2 · Guard and execute
Scientist: 15,000 g for 20 minutes at 4 °C.
Workflow: All ten inputs passed the check. The model ran once, and I'll walk you through what it returned.
10 of 10 inputs held · backend runs
3 · What-if
Scientist: What if the surface were PEG instead?
Workflow: Ran again with a PEG surface. The other nine inputs are unchanged.
10 of 10 inputs held · backend runs
4 · Correction
Scientist: Sorry, the zeta potential was +8 mV.
Workflow: Corrected the zeta potential to +8 mV and ran again with everything else unchanged.
10 of 10 inputs held · backend runs
5 · Reset
Scientist: New sample: 100 nm polystyrene with a COOH surface.
Workflow: Started a new sample. Nothing carries over from the last one, so I need the other seven inputs before anything runs.
3 of 10 inputs held · backend blocked, 7 missing
Workflow state
Backend
Blocked: inputs incomplete
Decisions
- Enforce completeness in the service, not the prompt. The prompt tells the language model when to call the tool, but the service checks the inputs again before anything runs. Nothing incomplete reaches the backend, whatever the model decides.
- Give every follow-up an explicit meaning. A correction and a what-if each change one value and keep the others; a new sample starts from nothing. The rules live in the workflow, not in the model's judgment.
- Keep the language model out of the science. It interprets and explains, but every prediction comes from the trained model, returned as data before it is narrated.
Results
The results are in the WORKS26 paper. A link to the paper will be added here when the proceedings are online.