Generating key points…
Answers are grounded in this paper and cite their sources.
Processes—cooking recipes, formulations, industrial flowsheets, chemical synthesis procedures—are recorded as prose or as diagrams. Neither form is machine-checkable, neither admits a canonical string, and neither makes the reuse of a sub-process explicit. We present λproc, a language in which a process is written as a composition of functions over streams: a unit operation is a function from streams to streams, a sub-process is a named lambda, and the process graph is not drawn but emerges from referential transparency—two textual mentions of the same expression denote the same physical node. The language is specified by a grammar of five productions, a canonical form that maps each process to exactly one string, and a validator that decides whether a document denotes a well-formed process. We argue that these three properties make λproc a useful target for machine learning, and we test the claim on a case study. Converting 1 808 937 reactions text-mined from US patents yields 700 149 distinct λproc documents and, notably, zero invalid ones: the converter either produces a well-formed process or rejects the reaction. Trained on this corpus, a decoder-only transformer of 2.73 M parameters reads a target molecule and writes a synthesis procedure that validates in 99.7 % of cases and recovers 24.5 % of the reactants of the real procedure on molecules it has never seen. It is measured against two trivial baselines, and the comparison is instructive: a nearest-neighbour lookup over 597 350 training molecules ties it on the conventional metric, and diagnosing that tie shows the metric itself to be dominated by ubiquitous reagents—a constant answer scores 0.133 on it. On a metric restricted to building blocks the lookup falls to 0.180 while the model holds 0.266. Three further results follow. The grammar saturates at the smallest model size tested, so capacity buys chemistry, not syntax. The validator makes rejection sampling exact: ten samples yield ten usable procedures, with an oracle of 0.422 against 0.260 for the model’s own ranking, but no reference-free feature we measured recovers more than 0.005 of that gap. And conditioning on an inventory of available materials triples reactant recall to 0.764, where the model selects rather than copies the shelf—but stress tests show it trusts the shelf: when the right reactants are absent it falls below the unconditioned model, and when near-miss analogues stand in for them it substitutes them inside documents that still validate. A pretrained 350 M-parameter language model, fine-tuned on the same corpus in five configurations, loses by a factor of three. All code, weights and an interactive application are released with this paper.
No takes yet. Share an insight, caveat, or question.
Brunet Luc (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: