Partner report (map view): 1 · Map. Source tags: PART = I read the named passages of the paper's own text in this run. ABSTRACT = abstract only. OURS = arithmetic I did here that you can redo by hand. All sources are listed at the end.
In one line
A model that was frozen after training reads a few labelled examples, and its answer to a new case changes to fit them, although not one number inside the model has changed.
In sixty words
In-context learning (ICL) happens inside a single pass of computation. The examples are turned into vectors, and attention lets the new case pull information from them. For some simple, specially trained models this arithmetic is provably the same as fitting a regression. For large language models nobody has shown that. What they infer depends on what their training data made likely.
>
Three words you need first
<
- Model: a function with millions or billions of adjustable numbers.
- Weights (also "parameters"): those adjustable numbers. Training is the process of nudging them until the function's outputs get good.
- Forward pass: running the frozen function once on one input. Nothing inside is adjusted.
In-context learning means: put worked examples into the input, then ask for one more. A shot is one worked example. Zero-shot means no examples; few-shot means a handful. The GPT-3 paper (GPT = Generative Pre-trained Transformer, a family of text models; this one has 175 billion weights) made the effect famous with typically 10 to 100 shots, "as many as will fit" in the input window of 2,048 tokens [Brown 2020, PART].
>
What the machine actually does with the examples
<
1.1 Text becomes a list of vectors
- A token is a piece of text from a fixed vocabulary: a word, part of a word, or a single symbol.
- An embedding is the list of numbers (a vector) that stands for a token. The model looks it up in a big table of weights.
- The model also adds information about position, because the arithmetic below does not otherwise know which token came first.
So a prompt of examples is just a long row of vectors. The model has no separate slot called "training data".
1.2 Attention is a weighted average, and the weights come from dot products
A transformer is a network built from stacked layers. Its key part is attention. For every token it computes three vectors by multiplying the token's vector by three weight tables:
- the query: what this position is looking for;
- the key: what each position offers to be matched on;
- the value: what each position hands over if matched.
Then, for one query:
- Take the dot product of the query with every key. A dot product multiplies two vectors entry by entry and adds the results. It is large when the two point the same way.
- Divide by the square root of the key length, which stops the numbers growing with vector size.
- Apply softmax: raise e (about 2.718) to each score, then divide by the total. Every weight is now positive and they sum to 1.
- Output the weighted sum of the values.
In symbols: Attention(Q, K, V) = softmax(Q Kᵀ / √d) V [Vaswani 2017, PART]. Q, K and V are the queries, keys and values stacked into tables; d is the key length.
The point to hold on to: the weights are a function of the content (query against key), recomputed for every input. The three weight tables are fixed. The mixing proportions are not. That is why a frozen model can behave differently for different examples.
Principle that transfers: a weighted average whose weights depend on similarity is the same idea as nearest-neighbour prediction (answer like the most similar cases you know), and as kernel smoothing in statistics.
1.3 A worked example you can check by hand [OURS]
Two examples and one new case. Each input is a pair of numbers; each label is one number.
| input | label | |
|---|---|---|
| example 1 | (1, 0) | 2 |
| example 2 | (0, 1) | 4 |
| new case | (0.8, 0.6) | ? |
Use the inputs as keys, the labels as values, and the new input as the query. Skip the square-root scaling.
- Dot products: with example 1, 0.8. With example 2, 0.6.
- Softmax attention: e^0.8 = 2.226 and e^0.6 = 1.822, so the weights are 0.550 and 0.450. Output: 0.550 × 2 + 0.450 × 4 = 2.90.
- Linear attention (no softmax, just multiply and add): 0.8 × 2 + 0.6 × 4 = 4.00.
The rule that produced these labels could be "2 × first number + 4 × second number". Under that rule the true answer is 4.00. Linear attention gets it. Softmax attention cannot: a weighted average with positive weights summing to 1 can never leave the range of the labels it averages. Real transformers get round this with further layers. Remember this limit; it returns when molecules are involved.
1.4 Why linear attention is one step of gradient descent [OURS derivation, matching von Oswald 2023, PART]
This is the cleanest piece of the whole story, so do it once.
- Goal: find a weight vector w so that w · x predicts the label y.
- Least-squares loss: add up the squared errors, L = ½ Σ (w · xᵢ − yᵢ)². Σ means "sum over the examples".
- Gradient descent: the gradient says which direction makes the loss grow fastest, so step the opposite way. The step size is called the learning rate, η (eta).
- Start at w = 0. The gradient there is −Σ yᵢ xᵢ. One step gives w = η Σ yᵢ xᵢ.
- Predict for the new case x_q: ŷ = w · x_q = η Σ yᵢ (xᵢ · x_q). The hat on ŷ means "predicted".
Read the last line again. It is "for each example, take the dot product of its input with the new input, multiply by its label, and add". That is linear attention with key = xᵢ, query = x_q, value = yᵢ. With η = 1 it is the 4.00 above.
So the claim "attention can do gradient descent" is not mystical. A gradient step on a linear least-squares problem is a sum of dot products times labels, and attention computes sums of dot products times values.
>
The claim that matters: does a forward pass run a learning algorithm?
<
Several papers say yes, in a precise but narrow setting. Here is each one with its fence around it.
| Paper | What it showed | The fence | Read |
|---|---|---|---|
| Garg et al. 2022 | A transformer trained from scratch on many random linear functions learns unseen ones from examples, about as well as the best least-squares estimator. It also handles sparse linear functions, two-layer networks and decision trees. | The model was trained for exactly this job on synthetic data (20-dimensional Gaussian inputs in the linear case). It shows capability, not the internal method. | PART |
| von Oswald et al. 2023 | Hand-built weights make one linear self-attention layer equal one gradient step; K layers equal K steps. Trained models of this kind often end up matching. | No softmax. Input and label are glued into one token. Linear regression. Non-linear problems need added layers that build features first. The authors say this likely explains only a limited part of in-context learning. | PART |
| Akyürek et al. 2023 | Transformers can implement gradient descent and closed-form ridge regression (least squares with a penalty λ on large weights, which has a formula answer). Trained ones behave like gradient descent, ridge or exact least squares depending on depth and noise, tending to the Bayesian estimator when large. | Linear regression. The constructions prove the network is able to do it. The evidence that trained models do is behavioural, plus "preliminary" probing of internal states. | PART |
| Ahn et al. 2023 | For one attention layer, the best possible weights after training implement one preconditioned gradient step (a gradient step after rescaling the directions to suit the data). | Linear transformers, random linear regression. With several layers they show only that some critical points (places where training would stop) do this. | PART (abstract and introduction) |
| Fu et al. 2023 | Layer by layer, predictions track Newton's method (a faster optimiser that also uses curvature) and converge exponentially faster than gradient descent would. | In-context linear regression. So even inside the fence, which algorithm is disputed. | PART (abstract and introduction) |
| Xie et al. 2022 | If training documents each follow a hidden "concept", a model that predicts text well must infer the concept; examples in a prompt then let it infer the concept of the task. This is implicit Bayesian inference. | Proved for a mixture of hidden Markov models (a hidden state that hops around and emits the visible words), shown on a small synthetic set. | PART (abstract and introduction) |
Bayesian inference, in plain words: start with a belief about which rules are likely (the prior), see data, and reweight toward rules that explain it (the posterior). Predict by letting every rule vote with its posterior weight (the posterior predictive).
2.1 What has not been shown for real language models
- Shen, Mishra and Khashabi [2024, PART] tested the gradient-descent story on LLaMA-7B (a real model with about 7 billion weights, pre-trained on natural text). Two findings against it. The hand-built weights have properties real models do not have. And shuffling the examples changes the model's output, while batch gradient descent does not care about order (it adds up over all examples, and addition does not care). Their conclusion: the equivalence "remains an open hypothesis".
- A different mechanism has evidence in real transformers: induction heads. An attention head (one attention unit) that sees "...A B ... A" looks back for the earlier A and predicts B. Olsson et al. [2022, PART] find these appear during training at the same moment in-context ability jumps. Their causal evidence is for small attention-only models; for larger ones it is correlational. Note that their definition of in-context learning is "loss falls as the context gets longer", which is broader than "learns from labelled examples".
Plain statement. For purpose-built models on synthetic linear problems, a forward pass can be a learning algorithm, and sometimes demonstrably is. For a large language model reading molecules or reviews, no paper I read shows which algorithm runs, or that any single one does.
The test that would settle it: pick an algorithm, then find prompts where its prediction differs sharply from the rival algorithms (outliers, collinear inputs, reordered examples), and check which the real model follows and whether the same internal circuit carries it when you cut it.
>
No weights change, and why that is strange
<
Ordinary learning stores what it learned. Train a model on your examples and the weights move; tomorrow they are still moved.
In-context learning stores nothing. What was "learned" is a pattern of intermediate numbers, called activations, computed during one pass. When the pass ends they are discarded. (Real systems cache some of them to avoid recomputing, but the cache holds this prompt only.)
| in-context learning | fine-tuning | |
|---|---|---|
| what changes | activations | weights |
| how long it lasts | one prompt | until retrained |
| can it accumulate across users or days? | no | yes |
| cost of adding an example | longer prompt, paid on every query | one training run, then free |
| can you inspect what was learned? | only by probing behaviour | you can diff the weights, though reading them is hard |
Three consequences:
- Every query pays again. The examples are re-read each time.
- Examples cannot contaminate the next prompt. Good for privacy and for clean experiments.
- Everything that decides how to use the examples is already in the weights. The examples supply facts. The rule for turning facts into predictions was fixed earlier. That brings us to the next section.
Where else this shows up: a pocket calculator with a "linear fit" button. You type in points, it returns a line, and clearing memory forgets them. The learning rule was built in at the factory; only the data is new.
>
Where the prior comes from
<
If a forward pass is inference over a prior, the prior was fixed during pre-training: the long first training run, in which a language model repeatedly guesses the next token of enormous amounts of text.
Two things in that training data are known to matter.
What distribution of data produces the ability at all. Chan et al. [2022, PART] trained transformers on controlled data. In-context learning appeared when the data was bursty (an item shows up in clusters, not evenly), had very many rare classes, and let an item's meaning change between contexts. When data lacked these, models tended to memorise into weights instead; with a Zipfian distribution (a few items very common, a long tail of rare ones, like words in English) both abilities could coexist.
Why this makes sense: if "wug" appears three times in one document and never again, storing it in weights is useless, and reading it off the context is the only way to predict it.
What the model will infer from three examples. The prompt does not say which rule generated the examples. Many rules fit three points. The model picks according to what was common in pre-training. Evidence:
- Replacing the labels in classification demonstrations with random labels barely hurt performance across 12 models including GPT-3 [Min 2022, PART]. What mattered was the set of possible labels, what the inputs looked like, and the format. The model mostly already knew the task; the examples told it which task.
- Larger models can override that prior when the examples contradict it (for example with flipped labels), while small models ignore the flipped labels [Wei 2023, PART].
- With hundreds to thousands of shots, pre-training biases can be overridden and high-dimensional numerical functions learned [Agarwal 2024, PART].
These are not in conflict. They describe one balance: prior against evidence. Few examples, strong prior: the prior wins. Many examples, larger model: the evidence can win. It is the same arithmetic as in Bayesian statistics, where a handful of coin flips barely moves a firm belief and a thousand overwhelm it. (That is an analogy. It has been proved only in the fenced settings of section 2.)
Nobody can write this prior down for a language model. It is whatever a trillion-odd tokens left behind.
>
The knobs, and what each one physically changes
<
| Knob | What changes in the computation | Finding | Contested? |
|---|---|---|---|
| Number of shots | more keys and values for the query to draw on; longer input | more usually helps, up to the context window; many-shot keeps gaining on hard tasks [Agarwal 2024, PART] | the best count depends on the task |
| Order | position information differs, so keys differ; in models that read left to right, each example is processed seeing only the ones before it | permutations of the same examples ranged from near state of the art to near random guessing on text classification [Lu 2022, PART] | size of effect on newer models not established in what I read |
| Label space (the set of possible answers) | which output tokens are primed | matters even when the pairing is random [Min 2022, PART] | yes: whether correct pairing matters depends on model size and task [Wei 2023; Agarwal 2024, PART] |
| Format | whether the model recognises the pattern "input, then answer" | important [Min 2022, PART] | no strong counter-claim in what I read |
| Which examples | which keys exist to be matched | picking examples similar to the query beat random picks on several language tasks [Liu 2022, PART] | the similarity measure matters, and for molecules this choice is itself a model |
| Answer bias | some outputs are favoured regardless of examples (last seen, or common in pre-training) | feeding a blank input and correcting for the bias raised accuracy by up to 30 points [Zhao 2021, PART] | specific to that era of models |
The test that settles the label argument for any given task: run the same prompt three ways (true labels, shuffled labels, flipped labels), several example draws each, and plot all three against the number of shots. If true and shuffled coincide, the model is not using your pairing. Hold that thought for molecules.
>
Prior-fitted networks: the prior written down on purpose
<
This is the cleanest case, and the bridge to the measurement section.
6.1 The recipe [Müller 2022, PART]
A Prior-data Fitted Network (PFN) is trained like this:
- Write a program that generates random datasets. That program is the prior.
- Draw one dataset. Hide the label of one point (or a held-out part).
- Show the network the other points plus the hidden point's inputs. Ask for a probability distribution over the hidden label.
- Score it by negative log-likelihood: minus the logarithm of the probability it gave to the true answer. A confident wrong answer costs a lot.
- Nudge the weights. Repeat over millions of datasets.
Why this works: the average of that score is smallest exactly when the network's output equals the true posterior predictive of the generating program. So a trained PFN approximates Bayesian prediction under the prior you wrote. The approximation is as good as the network and the training allow; it is not exact.
6.2 TabPFN: the table version [Hollmann 2025, Nature, PART]
TabPFN (Tabular Prior-data Fitted Network) does this for tables: rows are samples, columns are measured features, one column is the target.
- The prior is built from structural causal models (SCMs): random graphs in which each node's value is computed from its parent nodes by a simple function, plus noise. Random values enter at the roots and flow down. Some nodes are then picked to be the visible features and one to be the target. Dataset size, number of features and difficulty are drawn first as higher-level settings.
- The network gives each table cell its own vector and attends two ways: across the row (this sample's other features), then down the column (this feature in other samples). The order of rows and of columns therefore does not matter, which removes the order problem of section 5 by construction.
- The output for a numeric target is a histogram-shaped distribution (piece-wise constant), so it can be two-humped, and you get uncertainty for free.
- Why synthetic data: no privacy or copyright problem, and no real test set can be in the training data. That last point matters enormously in section 4 of this brief.
6.3 Where it stops
| Version | Stated working range | Source |
|---|---|---|
| TabPFN, Nature (often "v2") | up to 10,000 samples, 500 features, 10 classes | Hollmann 2025, PART; the authors warn this is not evidence it scales further |
| TabPFN-2.5 (company report, Nov 2025) | designed up to 50,000 rows and 2,000 features | Prior Labs 2025, PART |
| TabPFN-3 (company report, May 2026) | up to 1,000,000 rows at 200 features; 100,000 × 2,000; 1,000 × 20,000 | Prior Labs 2026, PART |
The last two are the vendor's own technical reports, not peer-reviewed papers that I know of.
The first TabPFN paper covered small classification only: up to 1,000 training rows and 100 numeric features [Hollmann 2023, PART].
6.4 What breaks if the prior is wrong
If real data comes from a process the generator never produces, the network still answers, with a distribution that may look confident. A PFN is only as good as the match between its generator and your problem. But here the generator is a program. You can read it, and you can ask whether molecules-with-activity look anything like random causal graphs. For a language model you cannot ask that question at all.
>
Predict before you read on
<
You give a model five examples of a rule. In prompt A the labels are true. In prompt B the same labels are shuffled among the examples. The model's accuracy is identical.
What has the model been doing? (Answer: using its prior, plus the label range and format from your examples. It has not been learning your input-to-label rule. Section 5 has the three-way test.)
Now change one part: replace softmax attention with linear attention in the worked example of 1.3. Why can the second extrapolate and the first not?
Open questions (counted, not hidden)
- Which algorithm, if any single one, does a large language model run when given labelled examples?
- Can a language model's in-context prior be written down well enough to predict its failures?
- When does a real model use the input-label pairing, and when only the label range and format?
- How much of the order sensitivity comes from reading left to right, and how much from answer bias?
- How would you check that a synthetic prior covers a real scientific domain?
Sources
| Short name | Paper | Identifier | Read |
|---|---|---|---|
| Brown 2020 | Language Models are Few-Shot Learners | arXiv 2005.14165 | PART |
| Vaswani 2017 | Attention Is All You Need | arXiv 1706.03762 | PART |
| Garg 2022 | What Can Transformers Learn In-Context? | arXiv 2208.01066 | PART |
| von Oswald 2023 | Transformers Learn In-Context by Gradient Descent | arXiv 2212.07677 | PART |
| Akyürek 2023 | What Learning Algorithm Is In-Context Learning? | arXiv 2211.15661 | PART |
| Ahn 2023 | Transformers learn to implement preconditioned gradient descent | arXiv 2306.00297 | PART |
| Fu 2023 | Transformers Learn to Achieve Second-Order Convergence Rates | arXiv 2310.17086 | PART |
| Xie 2022 | An Explanation of In-context Learning as Implicit Bayesian Inference | arXiv 2111.02080 | PART |
| Shen 2024 | Do Pretrained Transformers Learn In-Context by Gradient Descent? | arXiv 2310.08540 | PART |
| Olsson 2022 | In-context Learning and Induction Heads | arXiv 2209.11895 | PART |
| Chan 2022 | Data Distributional Properties Drive Emergent In-Context Learning | arXiv 2205.05055 | PART |
| Min 2022 | Rethinking the Role of Demonstrations | arXiv 2202.12837 | PART |
| Wei 2023 | Larger Language Models Do In-Context Learning Differently | arXiv 2303.03846 | PART |
| Agarwal 2024 | Many-Shot In-Context Learning | arXiv 2404.11018 | PART |
| Lu 2022 | Fantastically Ordered Prompts and Where to Find Them | arXiv 2104.08786 | PART |
| Liu 2022 | What Makes Good In-Context Examples for GPT-3? | arXiv 2101.06804 | PART |
| Zhao 2021 | Calibrate Before Use | arXiv 2102.09690 | PART |
| Müller 2022 | Transformers Can Do Bayesian Inference | arXiv 2112.10510 | PART |
| Hollmann 2023 | TabPFN (first version) | arXiv 2207.01848 | PART |
| Hollmann 2025 | Accurate predictions on small data with a tabular foundation model, Nature 637 | doi 10.1038/s41586-024-08328-6 (PMC11711098) | PART |
| Prior Labs 2025 | TabPFN-2.5 report | arXiv 2511.08667 | PART |
| Prior Labs 2026 | TabPFN-3 report | arXiv 2605.13986 | PART |
Partner report (mechanism view): 1 · How it works. This report does not repeat the arithmetic. Source tags: PART = named passages read; ABSTRACT = abstract only; NOT-OPENED = not read, so nothing specific rests on it.
Sixty-second orient
- What it is. Teaching a frozen model a task by putting examples in its input.
- Why it exists. Large text models turned out to do this without being asked to. It removes the training step, so a task can be set up in seconds with a handful of examples.
- Where it sits. Between "look up the most similar case" and "train a model". It behaves like a lookup, a regression or a guess from memory, depending on the model, the task and the number of examples.
- Analogy. A consultant who has read very widely. You show them five of your cases and ask about a sixth. Fast and often good. You cannot tell how much of the answer came from your five cases and how much from everything they read before.
Five words you will meet everywhere
| Word | Plain meaning |
|---|---|
| context (context window) | all the text the model can see at once; its size is a hard limit |
| shot | one worked example in that text |
| prior | what the model believes before seeing your examples |
| fine-tuning | continuing to train, so the stored numbers (weights) change |
| retrieval | fetching relevant material from a store and pasting it into the context |
>
The neighbours, and when each one wins
<
Words used in the table: a gradient step is one nudge of the weights downhill on the error. An encoder is a model that turns an input into a vector of numbers. A head here is a small output layer added on top.
| Neighbour | What it does differently, mechanically | What it costs | It is the right tool when |
|---|---|---|---|
| Ordinary supervised learning on the same examples (e.g. a linear regression or a random forest, which is an average over many randomised decision trees) | learns its weights from your examples only; no outside prior beyond the model's form | almost nothing; seconds on a laptop | you have labelled data and want a predictor you can state, rerun and audit. Always run it as the baseline. |
| Nearest-neighbour lookup (kNN: k-nearest neighbours) | no learning; find the k most similar stored cases and average their labels | trivial; storage and a similarity measure | similar inputs really do have similar labels. It is the floor any cleverer method must clear. |
| Few-shot fine-tuning | gradient steps on your few examples change all weights | compute, engineering, a stored model per task; easy to overfit (memorise the few examples) | the task recurs many times, so the one-off cost spreads out |
| Parameter-efficient fine-tuning, e.g. LoRA (Low-Rank Adaptation) [Hu 2021, ABSTRACT] | freezes the big model and trains small add-on matrices; the authors report up to 10,000 times fewer trainable numbers than full fine-tuning on a 175-billion-weight model | much cheaper than full fine-tuning, still a training run | you want a persistent task-specific change but cannot afford to retrain or store the whole model |
| Meta-learning ("learning to learn"), e.g. MAML (Model-Agnostic Meta-Learning) [Finn 2017, ABSTRACT] | trains across many tasks so that a few gradient steps on a new task work well: it learns a good starting point | an outer training loop over many tasks; then small updates per task | you own a family of related tasks and want to design the adaptation on purpose |
| Metric-based meta-learning, e.g. Matching Networks [Vinyals 2016, ABSTRACT] | learns, across tasks, a similarity measure; a new case is labelled from a small labelled "support set" with no fine-tuning | training across tasks | few-shot classification where similarity can be learned. This is in-context learning's closest ancestor. |
| Prior-fitted network (TabPFN) [Hollmann 2025, PART] | trained on synthetic datasets from a written prior; then predicts a new table in one pass | a large one-off pre-training (already done by others); size limits | your data is a small or medium table. For small data this is now a baseline to include. |
| Retrieval-augmented generation (RAG) [Lewis 2020, ABSTRACT] | a retriever picks passages from a store and the model conditions on them | a store, an index, a retriever | the model lacks facts (new, private or too many to memorise) |
| Prompt engineering | changes wording, format and instructions, not the examples' labels | human time; brittle across model versions | the model can already do the task and needs to be told which one |
| In-context learning | no weights change; examples condition one pass | every query pays to re-read the examples; behaviour is hard to predict | you have very few labels, no time to train, a task described in words, or a task that changes constantly |
The confusions worth untangling
- ICL is not training. Nothing persists (see mechanism view, section 3).
- ICL is not retrieval-augmented generation. RAG is about where the context comes from. ICL is about what the model does with examples once they are there. A system can do both: retrieve the nearest labelled examples and then learn from them in context.
- ICL is not prompt engineering, though both edit the prompt. Instructions tell; examples show.
- ICL is not nearest-neighbour, but it can collapse into something like it. Attention is a similarity-weighted average. Whether a given model does more than that on a given task is an experiment, not a definition.
- ICL is not proof of learning. A model that already knows the answer looks exactly like a model that learned it from your examples. This is the contamination problem, and it dominates the molecular case.
A decision path
- Do you have enough labelled examples to fit a model and hold some out? Fit it. It is your baseline.
- Is the data a table of numbers, small or medium? Try a prior-fitted network next.
- Is the missing thing facts rather than a rule? Retrieve.
- Is there almost no labelled data, or is the task only describable in words? In-context learning with a general model is a candidate. Compare it with kNN on the same few examples.
- Will the task run thousands of times? Price the repeated reading of examples against one fine-tuning run.
>
Which fields had the idea first
<
| Field | Its name for it | The shared idea |
|---|---|---|
| Statistics | Bayesian inference; empirical Bayes | a prior, then a few observations, then prediction |
| Statistics and pattern recognition | nearest neighbour, kernel smoothing | answer from similar stored cases at query time, with no fitted global model |
| Machine learning (older) | learning to learn, meta-learning | train over tasks so that new tasks are cheap |
| Machine learning (2016 on) | few-shot and one-shot learning; matching and prototypical networks | a labelled support set read at test time |
| Cognitive science | transfer, analogy | past structure decides what a new example teaches |
| Language modelling (2020) | in-context learning | the same effect, arising unasked in a text predictor [Brown 2020, PART] |
The older meta-learning literature goes back well before deep learning. I did not open those early sources, so I make no claim about who was first (NOT-OPENED).
The difference that matters: in meta-learning someone designed the distribution of tasks. In a language model nobody did. In-context learning appeared because of properties the text happened to have [Chan 2022, PART]. A prior-fitted network goes back to designing it.
>
What the term claimed, and what it means now
<
| The original claim | a large model performs new tasks from a few demonstrations with no gradient updates, and larger models do it better [Brown 2020, PART]. The same paper says its few-shot results were, at the time, usually well behind fine-tuned models. |
| How it was soon complicated | random labels often hurt little [Min 2022, PART]; order can matter enormously [Lu 2022, PART]; bias toward certain answers is large [Zhao 2021, PART] |
| How it was then extended | with long contexts, hundreds to thousands of shots keep improving and can rival fine-tuning [Agarwal 2024, PART] |
| A broader technical use | interpretability work uses it for "loss falls as context grows", which need not involve labelled examples at all [Olsson 2022, PART] |
| A theory use | "the transformer runs an algorithm in its forward pass", proved in restricted linear settings [see mechanism view, section 2] |
| Everyday use now | anything where examples go into the prompt, whether or not the model learns from them |
So when someone says "the model learns in context", ask: learns the input-to-label rule, or learns which task, which label range and which format? These are different claims with different evidence.
>
Why the field has this shape
<
- First-principles necessity. A few examples cannot determine a rule. Something else must choose among the rules that fit. So every few-shot method has a strong prior. The only variation is where it lives.
- Design rationale. Not updating weights is cheap to try, needs no infrastructure and cannot damage the model.
- Intellectual history. Meta-learning built the ability deliberately; scale then produced it as a side effect; theory is now trying to explain the side effect; prior-fitted networks rebuild it deliberately.
- Contingency. The chat prompt as the interface for numerical prediction is largely an accident of what was available. A text tokeniser was never designed for numbers or molecules.
>
Where it gets technically hard
<
HOWSTUFFWORKS CANDIDATE: how an induction head copies from earlier context, circuit by circuit.
HOWSTUFFWORKS CANDIDATE: how a structural causal model prior generates a synthetic table, and what kinds of real dependence it cannot produce.
HOWSTUFFWORKS CANDIDATE: how a tokeniser and the number format of a prompt limit numerical precision.
(None of these three was run as its own pair. They are listed so the gap is visible.)
>
Live debates
<
- Gradient descent or something else? Constructions and trained toy models say it can; measurements on a real model say the match fails [Shen 2024, PART].
- Do labels matter? Depends on model scale, task and shot count.
- Retrieve or select at random? Similar examples usually help on language tasks [Liu 2022, PART]; they also narrow what the model sees of the label range.
- Is a benchmark score evidence of learning at all? Only after contamination is addressed.
>
How people get this wrong
<
- Reporting one prompt, one example draw, one order.
- No fitted baseline on the same examples.
- Testing on public data the model may have read.
- Calling a gain from better wording "learning".
- Assuming that what held for one model version holds for the next.
A question to take a swing at
A model's accuracy on your task rises steadily from 5 to 500 shots. A colleague says: "so it is learning the rule from our examples." Give one way the curve could rise with no input-to-label learning at all.
(One answer: more examples pin down the range and typical value of the labels, so a model with prior knowledge of the property can shift and rescale its remembered guesses. The control is to shuffle the labels, which keeps their range and destroys the pairing.)
Sources
| Short name | Paper | Identifier | Read |
|---|---|---|---|
| Hu 2021 | LoRA: Low-Rank Adaptation of Large Language Models | arXiv 2106.09685 | ABSTRACT |
| Lewis 2020 | Retrieval-Augmented Generation | arXiv 2005.11401 | ABSTRACT |
| Finn 2017 | Model-Agnostic Meta-Learning | arXiv 1703.03400 | ABSTRACT |
| Vinyals 2016 | Matching Networks for One Shot Learning | arXiv 1606.04080 | ABSTRACT |
All other sources are in the table at the end of 1 · How it works.
Partner report (map view): 2 · Molecules: map. General mechanism: 1 · How it works.
Source tags: PART = named passages read; ABSTRACT; NOT-OPENED; OURS = computed here
(tools/molecule_demo.py, RDKit 2026.03.6, output sections/molecule_demo.json) or a derivation you can redo.
In one line
The model never sees a molecule: it sees a string chopped into text pieces, a few numbers, and whatever its training left it remembering about that string.
In sixty words
A molecule is written as text, split into tokens that often ignore chemical units, and placed next to neighbours with measured values. The model predicts a number whose meaning depends on how it was measured. Competing methods compute explicit features or pass messages along bonds. A language model may also simply remember the published value, which looks identical to skill.
>
How a molecule becomes something a model can read
<
Our running example is ibuprofen, the painkiller: 13 carbons, 2 oxygens, 18 hydrogens. It has a flat six-carbon ring, a branched oily tail, and an acid group (COOH).
1.1 SMILES: a molecule spelled out as a walk
SMILES (Simplified Molecular Input Line Entry System) writes the molecule's graph (atoms as points, bonds as lines) as a string, by walking from atom to atom.
| Symbol | Meaning |
|---|---|
C, O, N |
carbon, oxygen, nitrogen. Hydrogens are implied |
lower-case c |
a carbon in an aromatic ring (electrons shared evenly round the ring) |
=, # |
double bond, triple bond; a single bond is usually not written |
( ) |
a side branch off the walk |
matching digits, 1 ... 1 |
these two atoms are bonded, closing a ring |
[ ], @ |
special atom (charge, isotope); @ marks 3-D handedness |
One way to write ibuprofen: CC(C)Cc1ccc(cc1)C(C)C(=O)O.
One molecule, many strings. Start the walk at a different atom and you get a different, equally correct string. RDKit produced 12 distinct strings for ibuprofen just by changing the starting atom [OURS]:
CC(C)Cc1ccc(C(C)C(=O)O)cc1
O=C(O)C(C)c1ccc(CC(C)C)cc1
c1cc(CC(C)C)ccc1C(C)C(=O)O
OC(=O)C(C)c1ccc(CC(C)C)cc1
...
All 12 convert back to one canonical string (the single form a given program agrees to output):
CC(C)Cc1ccc(C(C)C(=O)O)cc1. Canonical forms differ between programs and versions.
Two consequences. A model reading text may treat two spellings of one molecule differently. And the particular spelling in a public file is a fingerprint of that file: a model that has read the file may recognise it.
Ibuprofen also comes in two mirror-image forms. The strings above do not say which. In a dataset that means "this number may be for either, or for the mixture".
1.2 Other spellings
- SELFIES (Self-Referencing Embedded Strings) was invented because a model that generates SMILES often writes nonsense: unclosed brackets, or a carbon with five bonds. SELFIES is read as instructions by a small state machine that tracks how many bonds are still free, so every SELFIES string decodes to a valid molecule [Krenn 2020, PART]. Its purpose is generation. It does not by itself make prediction better.
- InChI (International Chemical Identifier) is a layered standard identifier, built so that one structure
gets one string. Ibuprofen:
InChI=1S/C13H18O2/c1-9(2)8-11-4-6-12(7-5-11)10(3)13(14)15/h4-7,9-10H,8H2,1-3H3,(H,14,15). Its 27-character hash, the InChIKey, isHEFNNWSXXWATRW-UHFFFAOYSA-N[OURS]. It is the right tool for asking "is this molecule already in my training set?", which a SMILES text search can miss.
1.3 What the tokeniser does to it [OURS]
A tokeniser splits text into pieces from a fixed vocabulary, learned from which character runs are common. Here is the same string, three ways:
| Splitter | Pieces (separated by spaces) | Count |
|---|---|---|
| Chemistry-aware (one atom or symbol each, by a standard pattern) | C C ( C ) C c 1 c c c ( c c 1 ) C ( C ) C ( = O ) O |
26 |
| GPT-2 (an openly published general text model) | CC ( C ) C c 1 cc c ( cc 1 ) C ( C ) C ( = O ) O |
23 |
| ChemBERTa-zinc (a tokeniser trained on SMILES) | CC ( C ) Cc 1 ccc ( cc 1 ) C ( C ) C (= O ) O |
20 |
Look at what happened:
- GPT-2 glued two carbons into
CCand two ring carbons intocc. One token, two atoms. - The six-ring is scattered over the pieces
c 1 cc c ( cc 1. No token means "benzene ring". The model has to reassemble the ring from pieces that sit apart, matching the two1s. - Even the chemistry-trained tokeniser produces
Cc(a tail carbon joined to a ring carbon) and(=(a bracket joined to a bond). Frequent in text is not the same as meaningful in chemistry. - Write the same molecule canonically and the pieces change: GPT-2 then gives
... c 1 cc c ( C ( C ) C ( = O ) O ) cc 1.
I could not inspect the tokenisers of the commercial models used in the studies below, so I make no claim about how they split this string. The lesson is the general one: "the model sees the molecule" is false. It sees pieces of a spelling. Everything chemical about them has to be reconstructed inside the network.
Where else: the same effect is behind language models miscounting letters in a word. They see pieces, not letters.
1.4 Fingerprints: a molecule as a checklist [OURS]
A Morgan fingerprint (also called ECFP, extended-connectivity fingerprint) is built like this:
- Give each atom a code from its element and how it is connected.
- Update each atom's code by mixing in its neighbours' codes. Do this twice ("radius 2"), so each code now describes a patch up to two bonds wide.
- Hash every patch to a position in a list of 2,048 slots and set that slot to 1.
Ibuprofen switches on 25 of 2,048 bits. Some of them, with the patch that set them (RDKit fragment notation; a hash can put two different patches on one bit, called a collision):
| Bit | Patch width | Patch | Chemical reading |
|---|---|---|---|
| 1844 | 1 bond | CC(=O)O |
the acid group with its neighbour |
| 921 | 2 bonds | cC(C)C(=O)O |
acid on a branched carbon attached to the ring |
| 1847 | 1 bond | CC(C)C |
the branched oily tail |
| 1750 | 1 bond | ccc |
ring carbon between two ring carbons (occurs 4 times) |
| 389 | 1 bond | CO |
a carbon-oxygen single bond |
Tanimoto similarity is shared bits divided by bits on in either molecule:
| Ibuprofen (25 bits) versus | other bits | shared | union | Tanimoto |
|---|---|---|---|---|
| ibuprofen methyl ester (acid capped with CH₃) | 28 | 21 | 32 | 0.656 |
| naproxen (another painkiller of the same family) | 29 | 16 | 38 | 0.421 |
| flurbiprofen (same family) | 31 | 16 | 40 | 0.400 |
| paracetamol (different chemistry) | 20 | 7 | 38 | 0.184 |
Check the first: 25 + 28 − 21 = 32, and 21 / 32 = 0.656.
Notice the methyl ester scores highest. Yet capping the acid removes the group that carries a charge in water, so its solubility behaviour differs a lot. Similar by checklist is not similar in every property.
>
What is being predicted, physically
<
2.1 Aqueous solubility, logS
Solubility is how much of a solid ends up dissolved when you wait until nothing changes. logS is the base-10 logarithm of that amount in moles per litre.
At the molecular level two things compete:
- Leaving the crystal. In the solid, molecules sit in a regular lattice, held by hydrogen bonds (a hydrogen on one oxygen or nitrogen attracted to another), by pairing of acid groups, by stacking of flat rings and by weak contact forces. Pulling one out costs energy.
- Entering water. Water molecules form hydrogen bonds with each other. A solute needs a hole in that network. Polar and charged groups repay the cost by bonding to water. Oily parts do not, and water around them is more restricted, which costs entropy (the number of arrangements available).
The net free energy change ΔG (energy cost adjusted for entropy) sets the balance. For a saturated solution, with 1 mol/L as the reference [OURS, standard thermodynamics]:
logS = −ΔG(dissolution) / (2.303 R T)
R is the gas constant, T the absolute temperature. At 25 °C, 2.303 RT is about 5.7 kJ/mol. So one unit of logS, a factor of ten in concentration, is about 5.7 kJ/mol. That is a small energy. A model that is wrong by one log unit has missed the balance of two large, nearly cancelling terms by that little.
Why it is hard to measure:
- Different crystal forms of one compound (polymorphs) have different lattice costs.
- "Solubility" means different things: in pure water, at a fixed pH (apparent), or of the uncharged form only (intrinsic). A fast screening version (kinetic solubility, diluting from a stock in the solvent DMSO and watching for cloudiness) measures something else again [Llompart 2024, PART].
- Between laboratories the spread (inter-laboratory standard deviation) can reach up to 1.0 log unit, and it sets a floor on achievable error [Llompart 2024, PART].
2.2 Lipophilicity: logP and logD
Shake a compound between water and octanol (an oily alcohol that stands in for fatty surroundings) and wait.
- logP = log10 (concentration in octanol / concentration in water), for the uncharged molecule.
- logD = the same ratio counting all forms, at a stated pH.
Ibuprofen's acid group can release a proton: COOH ⇌ COO⁻ + H⁺. The charged form is wrapped tightly by water and barely enters octanol. The pKa is the pH at which half the molecules have let go.
If only the uncharged form enters octanol, then for one acid group [OURS derivation, an idealisation]:
logD = logP − log10 (1 + 10^(pH − pKa))
Take an illustrative pKa of 4.5 and pH 7.4 (blood): 10^(2.9) is about 794, so logD sits about 2.9 units below logP. Same molecule, hundreds-fold different partitioning, purely from pH. (4.5 is a round number chosen for the arithmetic, not a measured value I am citing.)
So a "lipophilicity" dataset is a logD-at-one-pH dataset. The public benchmark of that name holds logD at pH 7.4 for about 4,200 compounds curated from the ChEMBL database [Wu 2018, PART]. A model that reasons from oiliness alone, ignoring ionisation, will be badly wrong for acids and bases.
2.3 Potency: IC50 and pIC50
IC50 (half-maximal inhibitory concentration) is the concentration of a compound that cuts an enzyme's measured activity in half, in that assay. pIC50 is −log10 of it in mol/L, so higher is more potent.
Why it is not a property of the molecule alone. Suppose the compound competes with the natural substrate (the thing the enzyme acts on) for the same pocket. Then, from the standard competitive-binding equations [OURS; the relation is usually credited to Cheng and Prusoff 1973, NOT-OPENED]:
IC50 = Ki × (1 + [S] / Km)
- Ki: the compound's binding constant, which belongs to the compound and the enzyme.
- [S]: how much substrate the experimenter added.
- Km: the substrate concentration giving half-speed.
Add ten times more substrate and the IC50 moves, with the same molecule and the same enzyme. Enzyme source, incubation time, buffer and readout move it further.
Measured: when IC50 values from different assays on the same target are combined with minimal filtering, almost 65% of repeat pairs differ by more than 0.3 log units and 27% by more than 1. With the strictest matching of assay descriptions it is still 48% and 13%. Ki sets were similarly noisy [Landrum and Riniker 2024, PART].
The consequence for any model: predicting a pIC50 pooled from many papers is predicting an assay-bound number. That is a weaker claim than predicting a property of the compound.
>
What a few-shot molecular prompt actually conditions on
<
A typical prompt: a sentence naming the property, then lines of SMILES, value, then a SMILES with a blank.
The model's answer can draw on three sources.
| Source | What it supplies | Who controls it |
|---|---|---|
| The query string | pieces of a spelling | you |
| The examples' numbers | the label range, typical value, and perhaps a structure-to-value rule | you |
| Pre-training | general chemistry, and possibly this molecule's published value | nobody you can ask |
The third is the leak. The pre-training text may include the dataset file itself, the paper's table, a handbook or an encyclopaedia entry. Ibuprofen's properties are all over the public record.
A concrete signature of the leak: reproducing a published value digit for digit. A predictor working from structure can get the first digit right. It should not reliably get the third, when the measurement itself is uncertain in the first decimal place. An audit of 22 recent models on 12 datasets found such digit-level retrieval concentrated on 5 datasets, including ESOL (the standard solubility set) and FreeSolv (hydration free energies); turning up the models' reasoning setting raised the number of flagged model-dataset pairs from 47 to 89 of 264 [Busch 2026b, PART]. Section 4 of this brief (Believe it?) takes it apart.
>
The alternatives' mechanisms
<
4.1 Descriptor model
A descriptor is a number computed from the structure by a fixed formula. For ibuprofen [OURS, RDKit]:
| Descriptor | Value | How it is computed |
|---|---|---|
| molecular weight | 206.28 | add up atomic masses |
| cLogP (calculated logP) | 3.07 | add up a fitted contribution for each atom type (Crippen's scheme) |
| TPSA (topological polar surface area) | 37.3 Ų | add up fitted surface contributions of polar groups |
| hydrogen-bond donors / acceptors | 1 / 1 | count by pattern |
| rotatable bonds | 4 | count by pattern |
A regression, random forest or similar then learns "numbers in, property out" from your labelled molecules. The chemistry is in the choice of descriptors. The classic solubility set's own model is of this kind: a linear formula in a few such numbers (Delaney's ESOL, "Estimated SOLubility", 2004; NOT-OPENED).
4.2 Graph neural network (message passing)
A graph neural network (GNN) works on the graph itself [Gilmer 2017, PART]:
- Each atom starts with a vector (element, charge, and so on).
- Message. Along every bond, the neighbour sends a vector computed from its own state and the bond type.
- Sum. Each atom adds the messages it received. Addition ignores order, so the numbering of atoms cannot matter.
- Update. The atom combines the sum with its old vector.
- Repeat steps 2 to 4 a few times. After T rounds each atom knows its surroundings out to T bonds.
- Readout (pooling): combine all atom vectors into one molecule vector, in a way that ignores order.
- A final small network maps it to the property.
Compare with the fingerprint: same neighbourhood-growing idea, but the mixing rule is learned instead of a fixed hash. Compare with the language model: the bonds are given as input, not reconstructed from brackets and digits.
4.3 Pre-trained molecular encoder with a fitted head
An encoder is first trained on millions of unlabelled or cheaply labelled molecules, then frozen. For your task it turns each molecule into a vector, and a small model (the head) is fitted on your labels. The prior comes from the pre-training; the task comes from your data. A 2026 study fed such vectors (from an encoder called CheMeleon) into a tabular foundation model, a pairing that did best or tied on 50 of 58 benchmark tasks, while the same tabular model on Morgan fingerprints did much worse [Ben Hicham 2026, PART].
| what it is told about structure | where its prior lives | can you state the prior? | |
|---|---|---|---|
| descriptor model | chosen numbers | the descriptor list and model form | yes |
| GNN | the bond graph | the architecture; learned weights | partly |
| encoder + head | the graph or string | the encoder's pre-training set | roughly: you can list that set |
| prompted language model | a tokenised spelling | everything it ever read | no |
>
Predict before you read on
<
Replace every SMILES in the prompt with a scrambled code that keeps the grammar (every C becomes Q, and so
on) and leave the numbers alone. What should happen to the accuracy of (a) a model that learns from your
examples, (b) a model that remembers published values, (c) a model that uses its chemical knowledge?
(a) a pure in-context learner of patterns is unharmed, (b) collapses, (c) collapses too. So the scramble cannot tell (b) from (c). That is why one control is never enough.
Open questions
- Do commercial models reassemble rings and branches internally, or rely on frequent substrings?
- Does feeding many different spellings of each example help or hurt?
- How much of a model's "chemical knowledge" is remembered values for famous molecules?
- What error is the floor for each benchmark, given assay noise in its own compounds?
Sources
| Short name | Paper | Identifier | Read |
|---|---|---|---|
| Krenn 2020 | SELFIES: a 100% robust molecular string representation | arXiv 1905.13741 | PART |
| Llompart 2024 | Will we ever be able to accurately predict solubility? Sci Data | doi 10.1038/s41597-024-03105-6 (PMC10948805) | PART |
| Landrum and Riniker 2024 | Combining IC50 or Ki Values from Different Sources Is a Source of Significant Noise, J Chem Inf Model | doi 10.1021/acs.jcim.4c00049 (PMC10934815) | PART |
| Wu 2018 | MoleculeNet: a benchmark for molecular machine learning | arXiv 1703.00564 | PART |
| Gilmer 2017 | Neural Message Passing for Quantum Chemistry | arXiv 1704.01212 | PART |
| Busch 2026b | Molecular Déjà Vu: digit-level retrieval | arXiv 2609.05381 | PART |
| Ben Hicham 2026 | Tabular foundation models for in-context prediction of molecular properties | arXiv 2604.16123 | PART |
Partner report (mechanism view): 2 · Molecules: how. Numbers behind the verdicts: Believe it?. Source tags: PART, ABSTRACT, NOT-OPENED.
Sixty-second orient
- What it is. Putting a few molecules with measured values into a model's input and asking for the value of another one.
- Why it exists. Drug and materials projects often have tens of measurements, not thousands.
- Where it sits. At the end of a long line of methods that predict properties from structure.
- Analogy. Asking a well-read chemist to guess from your five analogues. Useful. But you must find out whether the chemist simply remembers the compound.
Five words: SMILES (a molecule written as a line of text), fingerprint (a checklist of substructures), scaffold (a molecule's core ring system with side chains removed), split (how molecules are divided into learn and test sets), baseline (the simple method a new one must beat).
>
The history: each era bought something and hit a wall
<
QSAR (quantitative structure-activity relationship) means: predict a measured activity from numbers that describe structure. A recent perspective by many of its practitioners says the field has drawn both praise and criticism over reliability throughout its history [Cherkasov 2014, ABSTRACT]. Its founding papers (Hansch, Free and Wilson, 1960s) are NOT-OPENED here; the era descriptions below for the first two rows are standard textbook knowledge that I have not re-verified against those originals.
| Era | Representation | Built-in assumption (inductive bias) | What it could not do |
|---|---|---|---|
| Classical QSAR (1960s on) | a few physical numbers per molecule, e.g. oiliness and electronic effects of a side group | activity changes smoothly and roughly additively within one chemical series | leave the series; handle new cores |
| Descriptors plus machine learning | hundreds or thousands of computed numbers or fingerprint bits; random forests, support vector machines (a method that draws the widest possible boundary between classes) | similar feature vectors behave similarly | invent features; the analyst chooses them |
| Graph neural networks [Gilmer 2017, PART] | the atom-and-bond graph; features are learned | properties are assembled from local neighbourhoods, and atom numbering is irrelevant | learn much from a few hundred labels |
| Pre-trained encoders | vectors learned from large unlabelled or cheaply labelled sets | what was useful in pre-training is useful for your task | adapt without a fitted head; their advantage over simple baselines varies by task [Ben Hicham 2026, PART] |
| Tabular foundation models on molecular features [Hollmann 2025; Ben Hicham 2026, PART] | any of the above as table columns | your table resembles a draw from a synthetic causal prior | choose the features; Morgan fingerprints served them poorly |
| Few-shot meta-learned molecular models, e.g. CAMP (an in-context model trained on molecular tasks) [Fifty 2023, PART] | graph encodings of molecules and labels, read together | new assays resemble the assays it trained across | generalise to tasks unlike its training tasks (not established either way) |
| Prompting a general language model [Guo 2023; Ramos 2023, PART] | tokenised SMILES text | whatever its training text implies | tell you its assumption; prove it is not remembering |
Two notes that matter more than the table.
- The old methods did not die. A 2026 controlled comparison on seven small benchmark sets found that for solubility and lipophilicity the choice of representation mattered more than the choice of model, and that a random forest on computed descriptors beat a published graph transformer's solubility score [Talkhan 2026, PART].
- CAMP is not "prompting a chatbot". It is built and trained to do in-context learning over molecules. It belongs to the prior-fitted family: its task distribution is chosen and listable. Its authors report beating few-shot baselines at small support sizes on FS-Mol (a benchmark of 5,120 small yes/no protein tasks) and the BACE set [Fifty 2023, PART].
>
What in-context learning on molecules is good for today
<
The honest list. None of the entries is "it beats a properly fitted model in general".
| Use | Why it can make sense | What must be checked | Strength of evidence |
|---|---|---|---|
| Very few labels (tens) | the model brings a prior that a fit on 30 points lacks | contamination; a baseline on the same 30 | one recent study: at 30 examples its best language model beat every classical baseline on three sets screened as clean [Busch 2026c, PART]. One study, one group, preprint |
| No labels at all | a ranking from general chemical knowledge beats no ranking | against a one-line rule such as "bigger and oilier" | weak; zero-shot performance was mixed and for one set near nil [Busch 2026a, PART] |
| Properties described only in words, or conditions that are text (how a catalyst was made) | no standard descriptor exists for a procedure | fitted models on text embeddings | catalysis study: matches or outperforms a Gaussian process (a standard model that also reports uncertainty) in places, while kernel ridge regression was the most accurate on one set [Ramos 2023, PART] |
| Interface | chemists can ask in plain notation and get a rough answer with reasons | that nobody mistakes the reasons for the cause | practical, not a performance claim |
| Choosing the next experiment | rough ranking plus rough uncertainty may be enough | run the actual loop | proposed; stated uncertainty ranked errors only weakly (rank correlation up to 0.46), and the authors say the loop was not run [Busch 2026c, PART] |
| A stronger prior fed with your features (tabular foundation models) | principled in-context prediction, no training | size limits, representation choice | the best-supported in-context option on molecular benchmarks so far [Ben Hicham 2026, PART]; still public benchmarks |
For comparison, peptides (short chains of amino acids): in-context methods were competitive with a standard tree-based baseline but did not significantly outperform it, and the best model could not be told apart from the runner-up on any of five tasks [Zhao 2026, PART].
>
What would have to be true for a prompted model to beat a fitted model
<
- Its prior must be relevant and right for this property, beyond what your labels can teach.
- That prior must not be memory of your test molecules. Otherwise the advantage vanishes on your own new compounds, which is the only place you need it.
- Your labels must be too few to fit. With enough data, fitted models improve faster. On one clean lipophilicity set, language models improved 18 to 37% from 30 to 1,000 examples while two fitted methods improved 46 to 48% [Busch 2026c, PART].
- It must beat the baseline on your split, the one that mimics how you will use it.
- The gain must survive other example draws, orders, spellings of the molecules and model versions.
>
Why the field has this shape
<
- Intellectual history: each representation moved one step of feature design from the chemist into the model, and with it moved the assumption somewhere harder to inspect.
- Design rationale: drug projects start with little data, so borrowing strength from elsewhere is the only option.
- First-principles necessity: potency numbers carry assay noise of a few tenths of a log unit or more [Landrum and Riniker 2024, PART]. No method can be shown better than the spread in the labels.
- Contingency: a handful of public datasets from before 2018 became the standard test. Their age and popularity are what now make them poor tests of anything that reads the internet.
>
Live debates
<
- Memory or reasoning? The same research group first reported no verbatim retrieval on three old benchmarks [Busch 2026a, PART], then, auditing 22 newer models, found significant retrieval on ESOL and others [Busch 2026b, PART]. Both can be true: different models, different tests. The practical reading: a "clean" verdict belongs to one model on one date.
- Does blinding repair a benchmark or destroy it? Scrambling the molecule string removes memory and chemistry.
- Do language models beat classical baselines in the low-data regime? See the table in Believe it?.
- Is representation or model the bigger lever?
>
Common failure modes
<
- Comparing a model shown 8 examples with a baseline trained on thousands, or the reverse.
- Testing on 100 molecules and reporting three decimals.
- Putting the property's name in the prompt and calling the result learning from examples.
- Random splits that leave near-twins in the examples.
- Trusting a famous-benchmark score on your private chemistry.
Handoffs not run
HOWSTUFFWORKS CANDIDATE: how a corpus search establishes that a molecule was or was not in training text.
HOWSTUFFWORKS CANDIDATE: free-energy origin of the lipophilicity of ionisable compounds, including ion pairs entering octanol.
(Not run as pairs. Listed so the gap is visible.)
A question to take a swing at
A language model beats random forest at 30 examples on a set whose molecules appear in none of several open text collections. Name two ways its advantage could still come from having seen the answers.
(Its own training text is not those open collections; and the property may have been published under a name or drawing instead of a SMILES string, which a string search cannot find.)
Sources
| Short name | Paper | Identifier | Read |
|---|---|---|---|
| Cherkasov 2014 | QSAR modeling: where have you been? Where are you going to? J Med Chem | doi 10.1021/jm4004285 | ABSTRACT (not open access) |
| Gilmer 2017 | Neural Message Passing for Quantum Chemistry | arXiv 1704.01212 | PART |
| Fifty 2023 | In-Context Learning for Few-Shot Molecular Property Prediction (CAMP) | arXiv 2310.08863 | PART |
| Guo 2023 | What can Large Language Models do in chemistry? | arXiv 2305.18365 | PART |
| Ramos 2023 (v2 2025) | Bayesian Optimization of Catalysis with In-Context Learning | arXiv 2304.05341 | PART |
| Ben Hicham 2026 | Tabular foundation models for in-context prediction of molecular properties | arXiv 2604.16123 | PART |
| Talkhan 2026 | Representation and Model Contributions on Small Molecular Benchmarks | arXiv 2611.32568 | PART (abstract page and opening) |
| Busch 2026a | In-Context Molecular Property Prediction with LLMs: A Blinding Study | arXiv 2603.25857 | PART |
| Busch 2026b | Molecular Déjà Vu | arXiv 2609.05381 | PART |
| Busch 2026c | Do LLMs Know When They Are Wrong About Molecules? | arXiv 2610.41745 | PART |
| Zhao 2026 | In-Context Learning Strategies for Peptide Property Predictions | arXiv 2611.09994 | PART |
| Landrum and Riniker 2024 | IC50 and Ki noise | doi 10.1021/acs.jcim.4c00049 | PART |
| Hollmann 2025 | TabPFN, Nature | doi 10.1038/s41586-024-08328-6 | PART |
An inductive bias is whatever makes a learner prefer one rule over another when both fit the data. Any finite set of examples is fitted by endlessly many rules, so a learner with no preference can say nothing about a new case. The question is never whether there is a bias. It is where it lives and whether you can read it.
This is an argument, not a finding. Its supports are labelled; its weak points follow it.
>
Three addresses
<
| Learner | Where the preference lives | Can you write it down? | Can you change one part of it? | What a good score tells you |
|---|---|---|---|---|
| Fitted model (regression, forest, graph network) | the form of the model (its architecture), the loss (the score of error it minimises), the features, the penalty | largely yes | yes: swap a feature set, add a penalty | "these assumptions suit this split of this data" |
| Prior-fitted network | a program that generates synthetic datasets, absorbed into weights during pre-training | yes: the generator is code | in principle: edit the generator and retrain | "real problems like this resemble the generator" |
| Prompted general model | wherever pre-training left it | no | not directly; only nudge it with wording and examples | "something in there suited this test", which includes "it has seen the answers" |
Across the three, the bias moves from the architecture, to an explicit prior over datasets, to an unlisted residue of training text. The prompt adds a second small address: your examples and wording shift the behaviour for one pass.
>
The argument, step by step
<
- A handful of examples cannot pick a rule, so the prior does most of the choosing when examples are few. (Logic.)
- In a prompted general model that prior was fixed during pre-training. (The weights do not change at inference; evidence that training-data properties determine in-context behaviour: [Chan 2022, PART].)
- The training text of the commercial models is not published in a form one can search, so the prior cannot be stated, and neither can the list of answers already inside it. (As far as the molecular studies I read report: they screen with open corpora as stand-ins [Busch 2026c, PART].)
- A test score measures prior plus data. If the prior is unstated, a high score does not say which assumption succeeded, so it does not say on which next problem it will fail.
- Therefore the most capable form of the method is also the hardest to evaluate. Exciting and nearly unevaluable are the same property seen from two sides.
The same problem in evaluation design generally: a score you cannot attribute to a stated assumption is a score you cannot transfer.
>
The strongest objection
<
"Unstateable is not unmeasurable. People cannot state their priors either, and we measure them anyway. Probe the behaviour: that is the bias, in the only sense that matters for use."
This is largely right, and it changes the conclusion from "unevaluable" to "evaluable only by experiment, one model at a time". Here is how the measuring goes.
| Probe | What you vary | What it reveals | What it cannot reveal |
|---|---|---|---|
| Zero shots | no examples | the prior's default answer for this property | whether that default is knowledge or recall |
| Shuffled labels | break the input-label pairing | whether your pairing is used at all | where the rest comes from |
| Flipped or transformed labels | invert or rescale the values | whether examples can overrule the prior [Wei 2023; Busch 2026a, PART] | behaviour on the untransformed task |
| Shot curve | 0, 5, 30, 100, 1,000 examples | how fast evidence overtakes prior; the data size at which a fitted model passes it | why |
| Symbol substitution | scramble the molecule's characters | how much depends on recognising chemistry or the molecule | which of the two |
| Digit retention | compare third digits to published values | verbatim recall [Busch 2026b, PART] | recall in other forms: trends, rounded values, other units |
| Adversarial prompts | cases where plausible rules disagree (outliers, activity cliffs, which are near-identical molecules with very different activity) | which rule it follows | rules you did not think to test |
| Post-cutoff or private data | molecules measured after training ended | performance without recall of those values | nothing about why; "private" must really mean unpublished |
What survives the objection. Behavioural probing measures the bias on the axes you thought to probe, for one model version. A written prior can be inspected for assumptions you never thought to test. That is the remaining, narrower difference, and it is a real one:
- a model update silently replaces the prior, and every probe must be rerun;
- a failure along an unprobed axis looks like bad luck until someone names the axis.
A second objection, against the first column. Fitted models' biases are not as stated as claimed: nobody can say in words what a trained graph network prefers. True. The three rows are a gradient, not three boxes. Prior-fitted networks are the interesting middle: the generator is fully written, yet whether the network faithfully follows it is itself an empirical question.
>
The claim at its defensible strength
<
In-context learning in a general model moves most of the inductive bias to a place that can be probed but not read. Evaluation therefore has to be experimental, repeated per model, and accompanied by a baseline whose bias is written down, so that a win has something to be measured against.
What would change my mind: a method that reads a language model's in-context prior from its weights and predicts, before testing, which tasks it will fail. I did not search the interpretability literature for such a method, so I do not claim none exists.
>
Where else the same shape appears
<
- Human experts. A senior chemist's intuition is an unwritten prior. We handle it with blind tests and track records, which is exactly the probing programme above.
- Instruments. A measurement chain with an unknown response function can only be calibrated against known standards, and only over the range calibrated.
- Biology. An organism arrives with a prior set by its evolutionary history; what it can learn from three trials depends on it, and nobody reads it off the genome.
Open questions
- Can a probe battery predict failures on a held-out property it did not include?
- How much of a model's molecular prior survives a version update?
- Can a prior-fitted network be trained on a molecular generator that chemists could read and edit?
Our own floor measurement is in Our floor. Term audit behind every "not found": files/absence_audit.json
from tools/absence_audit.py. All studies below were read PART (named passages), and all the 2026 ones are
arXiv preprints.
A warning about the sample, before any count. I found these studies by searching, and one of my searches named contamination and memorisation. The set is therefore tilted toward papers that care. Counts below describe these seven studies, not the field.
The seven prediction studies: Guo 2023, Ramos 2023 (revised 2025), Fifty 2023, Busch 2026a (blinding), Busch 2026c (uncertainty), Ben Hicham 2026, Zhao 2026 (peptides). Busch 2026b is an audit of recall rather than a prediction claim, so it informs row 1 and is not scored.
Verdict first
| Row | Question | Verdict across the seven |
|---|---|---|
| 1 contamination | is recall of the answers ruled out? | handled with a stated method in 4; nothing found in 3; ruled out in none |
| 2 baseline | a model fitted on the same k molecules, including nearest neighbour? | nearest neighbour found in 3 of 7 |
| 3 split | does the split block near-twins? | mostly random or a benchmark's fixed split; the strongest recent small-molecule study says its split is random |
| 4 metric | is the do-nothing score shown? | a trivial predictor shown or built into the metric in 4 of 7 |
| 5 variance | is there a spread? | all 7 report some spread; what it covers differs a lot |
Row 1. Contamination
Contamination means the test answers were in the training text. A model can then score well by remembering. Any model that read the public internet may carry public benchmark data inside it.
How big is it?
- Zero-shot, one model's median error on a hydration-free-energy set (FreeSolv) was 0.020 kcal/mol, far below the 0.6 kcal/mol uncertainty the dataset assigns to most of its entries [Busch 2026b, PART]. Beating the measurement's own noise is a sign of remembering, not predicting.
- Across 22 models and 12 datasets, digit-level retrieval was concentrated on 5 datasets (FreeSolv, ESOL, LD50 (a toxicity dose), AqSolDB (a solubility compilation) and a textbook boiling-point control). More reasoning effort raised flagged model-dataset pairs from 47 to 89 of 264 [Busch 2026b, PART].
- On ESOL, the best model's error was 0.30 log units with 30 examples and 0.29 with 976: examples added nothing, while a tabular model fell from 0.97 to 0.51 over the same range [Busch 2026c, PART]. A flat learning curve far below the fitted models is what recall looks like.
- A subtler check from the same paper. Molecules whose published value some model could reproduce (63 of them) against molecules none could (50). Error ratio never/recalled: 2.0 for that best model, but 1.3 for a tabular model that cannot have read anything about them. So recalled molecules are somewhat easier for anyone, and the language model gains more than that on top.
Principle that transfers: compare the advantage on exposed cases with the advantage a blind method has on the same cases. It is a difference in differences, the same logic used to test whether a policy did anything.
What people do about it, and what each can and cannot show
| Technique | How it works | Can establish | Cannot establish | Seen in |
|---|---|---|---|---|
| Held out by date | test only on molecules measured after the training cutoff | the published value cannot have been read (if the cutoff is truthful) | that close analogues were not read; most vendors' cutoffs are vague or unstated | Busch 2026a and b (an antiviral set), Ramos |
| Private or internal data | compounds never published | same, more strongly | reproducibility by anyone else | Ramos has an in-house reaction set |
| Corpus search | search open training-text collections for the molecule's strings and InChIKey | absence from those collections | absence from the commercial model's actual training text; values published under names or drawings | Busch 2026c |
| Zero-shot digit retention | ask for the value with no examples; test whether third digits match above chance | positive evidence of verbatim recall | that a clean result means no recall; it has limited statistical power | Busch 2026a, b, c |
| Membership test by completion | give the start of a dataset record and see if the model completes it [Golchin 2023, PART] | that the record or file was likely seen | the reverse | not in these seven |
| Canary string | plant a unique marker in a dataset so later models can be tested for it | that a file entered training | anything about old datasets, which carry none | not in these seven |
| Value transformation | flip or rescale labels | recall of the original number cannot be used directly | that the model is not recalling and then converting | Busch 2026a; Zhao uses corrupted labels |
| String substitution | swap the SMILES characters for others | recognition is largely suppressed | it removes chemistry too, so a drop has two causes; some pairs stayed flagged [Busch 2026b] | Busch 2026a, b |
| Perturbing the molecule | make a close variant so the literature value no longer applies | recall of the exact value is useless | needs a new measurement to have a true answer | not found in these seven |
How many do nothing? No contamination step or discussion was found in 3 of 7: Guo (one mention of "pretraining data", about why SELFIES does worse), Fifty and Ben Hicham (no match for contamination, leakage, memorisation, cutoff or corpus; I also read Ben Hicham's limitations passage). "Not found" is the strength of this claim.
It matters unequally. Fifty trains its own model on its own task set, and Ben Hicham's predictor was pre-trained on synthetic tables, so the chatbot-style leak does not apply in the same way. Both still use pre-trained molecular components or public benchmarks, where overlap is possible. Among the five language-model studies (Guo, Ramos, Busch a, Busch c, Zhao), Guo alone has no step.
Row 2. The baseline that must be there
Given k labelled examples, the honest rival is a method fitted on those same k. The cheapest is k-nearest-neighbour (kNN) on fingerprint similarity.
| Study | Baselines | Same training molecules? | kNN? |
|---|---|---|---|
| Guo | random forest and XGBoost (boosted trees) on fingerprints | No: the language model got 4 or 8 examples; the paper says the baselines are trained on extensive task datasets | not found |
| Ramos | kNN, kernel ridge, Gaussian process, a fine-tuned model | yes, plotted against the number of points | yes; kernel ridge had the highest correlation on the catalysis set |
| Fifty | multitask, MAML, prototypical networks and other few-shot methods | yes (same support sizes) | not found |
| Busch a | kNN and ridge regression on trivial string features | at 1,000 training molecules (k from 1 to 60); trivial ridge also at 60 | yes, in an appendix |
| Busch c | eight classical methods including kNN and predict-the-mean | yes, identical molecules | yes |
| Ben Hicham | XGBoost, CatBoost, molecular foundation models | benchmark training sets | not found |
| Zhao | XGBoost, majority class | yes (same training rows) | not found |
Why it matters, from one appendix: for solubility, a kNN average reached a correlation of 0.81 with 5 neighbours, and a regression that only counts characters in the SMILES string reached 0.89 with 1,000 molecules [Busch 2026a, PART]. A correlation in the 0.8s on that set is not evidence of chemical reasoning.
Row 3. The split
- Random split: shuffle and cut. Near-identical analogues land on both sides, so looking up a neighbour works.
- Scaffold split: whole ring systems go to one side. Asks: can you handle a new core?
- Time split: learn from earlier measurements, test on later ones. Asks what a project actually asks.
- Cluster split: group by similarity and hold out whole groups.
| Study | Split | Under a harder split |
|---|---|---|
| Guo | 100 test molecules sampled at random from the dataset (for imbalanced sets, at a chosen 4:1 class ratio); "scaffold" there names how examples are chosen, by fingerprint similarity | not reported |
| Ramos | not found by the split terms searched | post-cutoff synthetic and in-house sets used as a different kind of check |
| Fifty | FS-Mol's own task split; BACE across domains (each test is a new task) | already asks a harder question: new assay |
| Busch a | random, 150 test molecules | not reported |
| Busch c | random, 150 test molecules, with every same-connectivity molecule removed from the examples | authors expect a scaffold split to be harder for all, and probably more for the classical baselines; not measured |
| Ben Hicham | the benchmarks' fixed splits (Polaris, MoleculeACE) | MoleculeACE is built around activity cliffs, which stayed hard |
| Zhao | one stratified split per task (surface-activity grouped by sequence) | authors list the single split as a limitation |
The open question this leaves. The one study that shows language models clearly ahead at 30 examples used a random split. Its authors argue a scaffold split would favour language models further. That is a hypothesis. It is also the case where recall of related literature could matter most. It has not been run.
Row 4. What the metric hides
- MAE (mean absolute error): average size of the miss. RMSE (root-mean-square error): square the misses, average, take the root, so large misses count more.
- R² (coefficient of determination): 1 minus (model's squared error / squared error of always guessing the mean). Zero means no better than the mean; it can be negative.
- Pearson r: how well predictions line up on a straight line. It ignores offset and scale: predictions that are all too high by 3 units can have r = 1.
- On a narrow range of values, MAE looks small even for the mean-guesser. Always print that number beside it. Our floor run does (Our floor).
- ROC-AUC (area under the receiver operating characteristic curve): the chance a random positive is ranked above a random negative; 0.5 is a coin. Accuracy rewards guessing the common class. F1 balances precision (how many flagged are right) against recall (how many right ones are flagged).
A live example. In Guo's HIV test the two classes were sampled 4 to 1, so always answering "inactive" scores 0.80 accuracy. GPT-4 with no examples at all is reported at 0.986, above a random forest at 0.870. A score like that says something is available to the model besides learning from examples: the prompt names the property, and the dataset is public. The authors themselves suggest the label wording may explain it.
Busch a reports Pearson r, chosen because transformed labels change the scale. That is a sound reason, and it means offset errors are invisible there. ΔAUPRC (Fifty) is area under the precision-recall curve minus what a random guesser gets, which does build in the do-nothing score.
Trivial predictor found: Busch c (training mean), Busch a (trivial-feature regressions), Fifty (in the metric), Zhao (majority class). Not found: Guo, Ramos, Ben Hicham.
Row 5. Variance
| Study | What the spread covers | What it leaves out |
|---|---|---|
| Guo | 5 repeats, mean and standard deviation | how much of it is example choice is not clear to me from the passages read |
| Ramos | 5 independent replicates | a different test pool |
| Fifty | standard error over 10 seeds | |
| Busch a | bootstrap over the 150 test molecules (resampling them to get a range); 2 runs | example draws: two runs only. Median interval width 13 to 30 points of r |
| Busch c | 3 draws of examples up to 120 shots, 3 calls each, bootstrap over test molecules | one test split |
| Ben Hicham | 5 seeds, a statistical test between models | |
| Zhao | replicates of calls, bootstrap over test peptides | one split only, said openly |
The table
Marks: Y done, P partly, n not found. Rows: 1 contamination, 2 same-data baseline with kNN, 3 split harder than random, 4 do-nothing score shown, 5 spread.
| Paper | What it claimed | 1 | 2 | 3 | 4 | 5 | To believe it I would need |
|---|---|---|---|---|---|---|---|
| Guo 2023 | GPT models beat the baseline on F1 on 4 of 5 property sets | n | n | n | n | Y | same 8 examples for the baseline; the real class ratio; unnamed properties; unseen molecules |
| Ramos 2023 | in-context optimisation matches or outperforms Gaussian processes on solubility and catalysis | P | Y | n | n | Y | the solubility claim redone off ESOL; the best baseline kept as the comparator in the headline |
| Fifty 2023 | an in-context molecular model beats few-shot baselines at small support sizes | n | P | Y | Y | Y | a fingerprint kNN on the same support sets |
| Busch 2026a | blinding shows prior knowledge and examples can conflict; no verbatim retrieval on three old sets | Y | P | n | P | P | more example draws; the retrieval verdict repeated on newer models (their own later audit does, and finds retrieval) |
| Busch 2026c | on clean sets, the best language model beats every classical baseline at 30 examples | Y | Y | n | Y | Y | a scaffold or time split; compounds never published; a second group |
| Ben Hicham 2026 | tabular foundation model plus learned molecular vectors does best on 58 benchmark tasks | n | P | P | n | Y | kNN on the same splits; an overlap check for the encoder's pre-training |
| Zhao 2026 | in-context methods are competitive with but not significantly better than classical ones on peptides | P | P | P | Y | Y | several splits; a nearest-neighbour baseline |
The strongest recent claim, taken apart
Busch 2026c is the best-designed study here, so its headline deserves the closest reading. The text says the most accurate language model (Sonnet 5.5) had lower error than every classical baseline at 30 examples on every set, in each of three example draws. Their own paired comparison against the tabular model at 30 examples [Table A5, PART] gives, over 7 models by 3 clean sets = 21 comparisons:
| Set | language model clearly better | no clear difference | tabular model clearly better |
|---|---|---|---|
| lipophilicity | 6 | 1 | 0 |
| BACE potency | 3 | 3 | 1 |
| antiviral potency | 1 | 6 | 0 |
| total | 10 | 10 | 1 |
"Clearly" means the 95% bootstrap interval excludes zero (my count from their table; no correction for making 21 comparisons). So: true for the best model; large on lipophilicity; small or absent for many models on the two potency sets. Lipophilicity is also where the paper says prior knowledge contributes.
What I believe, at the strength the evidence allows
- Scores on ESOL and FreeSolv from recent language models are not evidence of prediction.
- With about 30 examples, on sets screened as clean and split at random, the best 2026 language model beat classical methods fitted to the same 30, in one preprint. Biggest on lipophilicity.
- With hundreds of examples, fitted methods catch up or pass on the property where prior knowledge helped most.
- Nothing I read shows an advantage on a scaffold or time split with unpublished compounds. That was not found in these seven studies; it is not a claim that nobody has done it.
Absence-claim audit
| Claim | Measure used | What it would miss | Second measure | Status |
|---|---|---|---|---|
| no contamination step in Guo, Fifty, Ben Hicham | term-family search of the full text | a check described in other words, or in a supplement not in the PDF | read the hits and, for Ben Hicham, the limitations passage | stated as "not found" |
| no kNN in Guo, Fifty, Ben Hicham, Zhao | term search | a similarity baseline under another name | read each paper's baseline passage | stated as "not found" |
| no perturbation or canary use | reading the method passages | an appendix I did not open | none | stated as "not found in these seven" |
| no scaffold-split result for the strongest claim | the authors' own limitations paragraph | later versions | not needed: the authors say it | firm for version 1 |
What it would take to settle it (not run)
A small, honest comparison: compounds measured after the models' cutoffs; a scaffold split; k = 30; three example draws; the same k given to kNN, a descriptor random forest and TabPFN; shuffled-label and zero-shot arms.
Script files/knn_floor.py, provenance files/PROVENANCE.md, all numbers files/summary.csv. No model API was
called; no money spent.
The question
If someone shows a model k labelled molecules and reports an error, what do dull methods score with the same information? Without that number the report cannot be read.
What we did
- Three public sets: ESOL (solubility, 1,117 molecules), Lipophilicity (logD at pH 7.4, 4,200), BACE (potency against the enzyme BACE-1, 1,513).
- Scaffold split: about 20% of molecules held out, with every ring core in the test set absent from the training pool. A random split alongside, for contrast. Five different splits of each kind.
- At k = 5, 8, 30, 100:
- random examples: k molecules drawn from the pool (10 draws), then either a nearest-neighbour average (the 5 most similar of the k, weighted by Tanimoto similarity) or a small ridge regression on 9 computed descriptors (molecular weight, calculated logP, polar surface area and so on);
- retrieved examples: the k pool molecules most similar to each test molecule, weighted average. This is the rival for prompts that pick their examples by similarity. Note it searches the whole pool, so it uses far more than k labels.
- Do-nothing: always predict the mean.
What came out (RMSE, lower is better; scaffold split; mean over 5 splits, ± spread across splits)
| Method | ESOL (logS) | Lipophilicity (logD) | BACE (pIC50) |
|---|---|---|---|
| do-nothing (pool mean) | 2.32 ± 0.34 | 1.23 ± 0.11 | 1.38 ± 0.10 |
| random 8, nearest neighbour | 2.31 ± 0.24 | 1.34 ± 0.15 | 1.43 ± 0.09 |
| random 8, descriptor ridge | 2.06 ± 0.26 | 1.67 ± 0.12 | 1.81 ± 0.07 |
| random 30, nearest neighbour | 2.18 ± 0.21 | 1.29 ± 0.10 | 1.32 ± 0.04 |
| random 30, descriptor ridge | 1.36 ± 0.10 | 1.21 ± 0.05 | 1.38 ± 0.08 |
| random 100, nearest neighbour | 2.05 ± 0.34 | 1.25 ± 0.11 | 1.18 ± 0.07 |
| random 100, descriptor ridge | 1.21 ± 0.09 | 1.11 ± 0.06 | 1.26 ± 0.05 |
| retrieved 8, nearest neighbour | 1.75 ± 0.37 | 1.02 ± 0.10 | 0.87 ± 0.05 |
| retrieved 30, nearest neighbour | 1.83 ± 0.42 | 1.04 ± 0.12 | 0.95 ± 0.07 |
Random split, retrieved 8: ESOL 1.25, Lipophilicity 0.92, BACE 0.74.
What it means
- The floor is not one method. With 30 random examples, the descriptor regression is the floor for solubility (1.36 against 2.18 for nearest neighbour). When examples are retrieved by similarity, nearest neighbour is the floor for lipophilicity and BACE. Report the best of the dull methods, not a chosen one.
- Eight random examples teach these methods nothing. At k = 8 the nearest-neighbour average is no better than the mean on any of the three sets. A model that does well from 8 random examples is getting its skill from somewhere other than those examples.
- The split moves the number as much as the method does. Retrieved-8 on solubility: 1.25 random, 1.75 scaffold. Same data, same method, 40% more error. A random-split result cannot be compared with a scaffold-split one.
- Solubility spreads widely (standard deviation of the values 2.09 log units, against 1.20 for lipophilicity), so its correlations look good easily. Always read the do-nothing row.
- Split-to-split spread is large: ± 0.37 on the solubility headline. Differences smaller than that, on one split, are noise.
A cross-check against a published study, with its limits
Busch 2026c (random split, 150 test molecules, 30 examples) reports on lipophilicity an RMSE of 1.17 for a tabular foundation model and 0.60 for its best language model [PART]. Our random-split, 30-random-example methods give 1.22 (ridge) and 1.27 (neighbour). Different test molecules, so this is a consistency check, not a comparison: their classical baseline is where ours is, and the language model's figure sits far below anything 30 examples alone gave us. On solubility their best language model reports 0.30 against our best 30-example figure of 1.15 (random split). Their own audit says solubility is memorised.
So the number any in-context result must clear (scaffold split): solubility 1.36 with 30 random examples, lipophilicity 1.02 and BACE 0.87 when examples are retrieved. With random examples only, lipophilicity and BACE floors at k = 30 are 1.21 and 1.32, barely better than guessing the mean.
What this does not show
- Nothing about any language model. None was run.
- The descriptor set and ridge penalty were fixed once and not tuned; a tuned baseline would score better, so the real floor is at or below these numbers.
- Not tried: a tabular foundation model, a random forest, a graph network. Any could lower the floor further.
- The scaffold split keeps the largest core families (and molecules with no rings) in training, by design.
Proposed next run (not run, nothing spent)
Run one current Claude model on the same scaffold test molecules at k = 30 (true, shuffled and zero-shot arms, 3 repeats, 150 molecules each on 3 sets, one molecule per call): 4,050 calls, roughly 6 million input and 0.2 million output tokens. At the listed Claude Sonnet 5.5 rate of $2 per million input and $10 per million output tokens (Anthropic pricing page, seen through a web search 2026-12-03, SUMMARY read), that is about $14, half that through the batch interface; allow up to $60 if the model spends extra tokens reasoning. Public benchmarks cannot clear the contamination question; compounds newer than the model's cutoff would be the better target.
Three experiments, smallest first. None has been run. Costs for the first use a listed price seen through a search summary, so check the rate card before spending.
Setup 1. Is the model reading your examples, or remembering?
What it is. The same test molecules asked three ways: with true labels in the examples, with shuffled labels, and with no examples.
public set -> scaffold split -> 150 test molecules
|-> prompt, 30 true labels -> error A
|-> prompt, 30 shuffled labels -> error B
|-> prompt, no examples -> error C
same 30 molecules -----> descriptor ridge, neighbours -> floor
Inputs. The three sets used for our floor, one current model, about 4,050 calls. In a day. A table of A, B, C and the floor for each set. In a month. The same across two or three model versions. Reading it. If B and C are as good as A, the examples did nothing and the score is memory or general chemistry. If A beats B but not the floor, the model reads the examples and is still not worth it. What would kill it. Every public compound being memorised, which leaves nothing to separate. Setup 2 answers that. Who would care. Anyone about to put a molecular in-context score in a paper or a decision.
Setup 2. Molecules the model cannot have read
What it is. The same arms on measurements published after the model's training cutoff, or never published.
new measurements (dated after cutoff) -> check each structure is absent from older databases (InChIKey)
-> split by scaffold and by date -> arms of setup 1 + tabular foundation model on the same 30
Inputs. A dated source of new assay results. Which source has enough new compounds in one assay is the first thing to find out, and was not searched here. In a day. A count of usable compounds per assay. In a month. The comparison, with intervals. What would kill it. New compounds that are close analogues of old ones: the structure is new but the answer is nearly known. Report similarity to the nearest older compound beside every error. Who would care. Teams choosing which compounds to make next.
Setup 3. Write the prior down for molecules
What it is. A prior-fitted network trained on a stated generator of molecular tasks, so what it assumes can be read.
generator of tasks (additive group effects, similarity kernels, activity cliffs, assay noise)
-> millions of small synthetic tables -> train once -> test on setups 1 and 2
Inputs. A generator written by a person, real molecular structures, a graphics processor. In a day. A generator and plots of the tasks it produces, judged by a chemist. In a month. A first small network compared with the general tabular foundation model. What would kill it. Doing no better than the general tabular model on the same features. Earlier molecular work in this family exists (Fifty 2023), so read it first. Who would care. Method builders who want a stated assumption they can argue with.
What this page does not have
No recorded talk, interview clip, social post or photograph was searched for, so none is shown. There is no separate cross-domain survey: the neighbouring fields appear only as far as the two map reports take them.
Timeline
The frontier
What this page does not yet explain, counted. Dashed underlines in the text mark the same terms. No video or recorded voice was added: none was opened and checked.
All terms
The page works without opening this list.