Skip to content

Machine Studying

optionalcorefrontierblogrubric 10/122026 · Blog post (MIT CSAIL and Broadcom), June 2026 · ~35 min

Jacob Xiaochen Li, Rick Battle, Omar Khattab

Read first: Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks · ReAct: Synergizing Reasoning and Acting in Language Models

Status

TL;DR. This essay names a problem: give an agent a corpus D\mathbf{D} (a codebase, a manual, a body of papers) and nothing else, no questions and no reward, and let it prepare itself before an unknown exam. That preparation is machine studying. The authors measure success by expertise, the weighted area under the agent’s accuracy versus inference-compute curve, so that being accurate cheaply counts most. Their early StudyBench results show that equally capable models differ a lot in expertise, that next-token training and synthetic SFT on the corpus did not raise expertise, and that a simple self-written cheatsheet helped on one of two domains.

Why it matters now. Agents are routinely asked to work with libraries, papers and private documents that appeared after their training cutoff. The default answer is RAG, long context or a hand-built RL environment. For an IR researcher the essay is a useful challenge: it argues that retrieval gives access but not expertise, and its literature task cleanly separates finding the right documents from recognising them, which is the reader-side half of retrieval-augmented systems.

Setup. An agent is a model plus a harness, Σ=(M,H)\Sigma = (\mathbf{M}, \mathbf{H}). A studying algorithm π\pi maps (Σ,D)(\Sigma, \mathbf{D}) to a new agent. It may change weights, prompts, tools or notes, but it sees no downstream task. Importantly, the corpus remains available at test time: the exam is open-book.

Expertise. Let xx be a log-token axis with x=0x = 0 at 3k generated tokens and each +1+1 a 10× increase. With performance pΣ,D(x)p_{\Sigma,\mathbf{D}}(x) and weight w(x)w(x):

E(Σ;D)=∫pΣ,D(x) w(x) dx,w(x)=(ln⁡10) 10−x.\mathcal{E}(\Sigma;\mathbf{D}) = \int p_{\Sigma,\mathbf{D}}(x)\, w(x)\, dx, \qquad w(x) = (\ln 10)\,10^{-x}.

Each doubling of compute halves the weight. Scores below the first measured budget count as zero, and the last score is carried forward. In the essay’s worked example, budgets 5k, 10k, 20k and 100k with scores 10%, 20%, 30% and 40% get weights 0.30, 0.15, 0.12 and 0.03, so E≈10.8%\mathcal{E} \approx 10.8\%, and the 0.40 of weight below 5k is lost. Studying works if

E(π(Σ,D);D)>E(Σ;D).\mathcal{E}\big(\pi(\Sigma,\mathbf{D});\mathbf{D}\big) > \mathcal{E}(\Sigma;\mathbf{D}).

One level up, studying intelligence is the weighted area of expertise against study compute: a smart agent becomes an expert quickly.

StudyBench. Three corpora, each with a hidden exam written with privileged material the test-taker never sees:

  • Studying-DSPy: the DSPy codebase; 30 coding questions graded by weighted rubrics plus checks for hallucinated APIs. Tests correcting stale knowledge.
  • Studying-OpenClaw: a framework released after most models’ cutoffs; 20 questions seeded from GitHub issues. Tests learning from scratch.
  • Studying-Literature: about 50k ICLR, CVPR, ICML and NeurIPS papers from 2018 to 2025. For ICLR 2026 target papers, the agent runs up to 20 BM25 queries (20 results each), selects 100 papers and writes a related-work review, scored against cited and must-cite sets.

Agents run in a ReAct harness with grep, glob and read_file at four budgets: direct answer, up to 5 steps, up to 20 steps, and exactly 20 steps.

Machine studying: a study phase, then an open-book exam scored by expertise Left: the study phase. A corpus of documents goes into a studying algorithm, with no questions and no reward, which produces a new agent whose weights, notes or tools may have changed. Right: the exam phase. Hidden questions arrive, the corpus is still available, and the agent is run at several inference budgets. A plot shows accuracy against log inference tokens for two agents: an expert curve that is high already at small budgets, and a cramming curve that starts higher than a novice but stays flat. Shaded bars under the plot show that the weight of each budget halves with every doubling of tokens, so expertise, the weighted area, rewards cheap accuracy. Study phase (no task, no reward) Corpus D code, docs, papers Studying π train, practise, write notes New agent weights M' or notes, tools H' still open at test Success: expertise after studying is higher than before studying. Open-book exam (hidden questions) acc 3k 30k 300k expert crammer (flat) novice cheap budgets carry most weight
Original sketch. In the study phase the agent turns a corpus into changed weights or notes without seeing any task. In the open-book exam, expertise is the area under accuracy versus compute, weighted toward cheap answers.
  • Cutoff matters (Fig. 3, strict grading). DSPy accuracy for GPT-5.4-mini versus GPT-5.1 at the 5-step, 20-step and forced-20 budgets: 26.8 vs 12.7, 34.2 vs 10.8, 39.7 vs 29.8. GPT-5.1’s failures were often calls to APIs that existed in 2024 but are now deprecated. On OpenClaw, which postdates both cutoffs, both stay around 10% however long they search.
  • Headroom. Forcing Qwen3.5-9B to search for all 20 steps roughly triples its lenient DSPy score (9.6 to 29.4), so the evidence was reachable; the agent stopped too early.
  • Studying Qwen3.5-9B (lenient expertise). DSPy / OpenClaw: base 6.49 / 7.64; SFT plus on-policy distillation 3.29 / not run; continued pretraining on code 3.71 / 7.82; on docs 3.92 / not run; cheatsheet 9.65 / 8.18. The cheatsheet’s gains are at low budgets; at forced 20 steps the base agent catches up.
  • Literature (Figs. 7–8). Both GPT-5.1 and GPT-5.5 reach about 60% of must-cite references, but recall@100 is 42.8% versus 57.0%. On papers both models found, selection rates differ by 5 to 9 points through 2022 and by 16 to 24 points for 2023 to 2025.
  • Preliminary and small. Exams have 20 to 30 questions (and 50 literature targets), one 9B model is studied, and each paradigm is tested with its simplest recipe.
  • Helpers in the loop. The SFT data was written by a larger model and audited by humans, which the authors note a true studying algorithm should not need.
  • Metric choices. The 3k origin and 10× decay strongly favour cheap answers; other weightings could change conclusions.
  • Open: whether RL on self-made environments can teach a lot of new domain knowledge (not just skills), and how to combine weights, synthetic practice and notes efficiently.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    Expertise uses a log-token axis x with x = 0 at 3k tokens and weight w(x) = (ln 10)·10^(−x). Show that the weight of a token interval from a to b equals 3k/a − 3k/b. Then compute the expertise of the base Qwen3.5-9B agent on DSPy from its four points (tokens per question, lenient score): 4.1k → 3.3, 7.9k → 8.6, 8.6k → 9.6, 34.6k → 29.4, using the rule that the score is zero below the first point and carried forward after the last.

    What a strong answer covers
    • x = log10(t / 3k), so the integral of w from x_a to x_b is 10^(−x_a) − 10^(−x_b) = 3k/a − 3k/b; the weight per interval falls like 1/t.
    • Weights: 4.1k to 7.9k is 0.732 − 0.380 = 0.352; 7.9k to 8.6k is 0.031; 8.6k to 34.6k is 0.349 − 0.087 = 0.262; beyond 34.6k is 0.087.
    • Expertise = 3.3 × 0.352 + 8.6 × 0.031 + 9.6 × 0.262 + 29.4 × 0.087, which is about 1.16 + 0.27 + 2.52 + 2.55 = 6.5, matching the reported 6.49.
    • The 0.268 of weight between 3k and 4.1k is lost, because the agent has no answer that cheap.
    • Doubling the tokens halves the weight density, so a method that only helps at large budgets barely moves expertise.
  2. Mechanism

    Synthetic fine-tuning (SFT on generated question–answer pairs, then on-policy distillation) raised Qwen3.5-9B's closed-book DSPy score but lowered its expertise from 6.49 to 3.29. Explain the mechanism using the shape of the score versus compute curve, and why the authors call this cramming.

    What a strong answer covers
    • SFT raises the intercept: the direct, no-tool answer improves, which is what training on QA pairs teaches.
    • It does not improve the slope: extra search adds little, and the forced 20-step score is lower than the base model's.
    • The tuned model became verbose, so its cheapest answer costs about 9k tokens instead of 4k, which moves its first point into a region with much less weight.
    • Since expertise heavily weights cheap budgets, higher cost per answer outweighs the closed-book gain.
    • Cramming means memorising answers without learning how to use the open book; the corpus is still available at test time, so internalising it is the wrong target.
  3. What if…

    Studying-Literature separates reach (the share of gold references that appear anywhere in a 20-query BM25 session) from recall@100 (the share kept in the final 100). Report what reach, recall@100 and the retrieval-controlled selection rate show for GPT-5.1 versus GPT-5.5, and explain why this design isolates knowledge from search.

    What a strong answer covers
    • Reach is similar: about 60% of must-cite references for both models, so both can write queries that find the right papers.
    • Recall@100 differs: 42.8% for GPT-5.1 versus 57.0% for GPT-5.5 on must-cite references.
    • Keeping only must-cites that both models encountered, selection rates are close through 2022 (gaps of about 5 to 9 points) but GPT-5.1 trails by 16 to 24 points for 2023 to 2025 papers.
    • Because both see the same papers, the gap is about recognising relevance, which depends on knowledge of the field near and after the older model's cutoff.
    • For IR this is the split between first-stage recall and the reader's judgment: good retrieval does not help if the reader cannot tell which hits matter.
  4. Critique

    The essay compares GPT-5.1 and GPT-5.4-mini as equally capable models with different cutoffs, and tests one simple method from each studying paradigm on a 9B model with 20 to 30 questions per exam. Critique how strongly these preliminary results support the claim that current agents cannot study.

    What a strong answer covers
    • Two closed models differ in more than cutoff (size, training data, post-training), so the DSPy gap may not be only stale knowledge; the authors say not to over-read it.
    • Exams of 30 and 20 questions give wide confidence intervals; differences of a few points are noise.
    • Only the simplest version of each paradigm was tried (LoRA continued pretraining, one SFT recipe, one cheatsheet), so negative results bound those recipes, not the paradigms.
    • The expertise metric depends on chosen constants (3k origin, 10× decay), which strongly favour cheap answers; another weighting could change rankings.
    • The essay is a blog post with an evolving benchmark and no peer review yet, so the results are a research agenda more than settled findings.
  5. Design

    Design a studying algorithm for an agent that must become an expert on a new open-source IR toolkit, given only its code and docs. Combine the three paradigms (self-supervised objectives, synthetic data or environments, amortized context management) and say how you would measure success under the expertise definition.

    What a strong answer covers
    • Amortized context: let the agent explore the repo and write a structured map (key modules, entry points, deprecated APIs, conventions) that is loaded before each question, as in the cheatsheet baseline.
    • Synthetic environment: the agent writes its own tasks with executable checks (run an index build, a query, a metric) and practises with RL or rejection sampling, rewarding cheaper correct rollouts.
    • Self-supervision: light continued pretraining on code and docs to fix stale API priors, checked for not making the model more verbose.
    • Measure expertise from a hidden exam at several budgets (direct, k = 5, k = 20, forced 20), and report study compute too, so studying intelligence can be compared.
    • No human-written questions or bigger-model help during studying, to keep it a true studying algorithm.
  6. Connect

    Connect machine studying to RAG and to Meta-Harness. In what sense is building an index a studying algorithm, and why do the authors argue that retrieval, long context and memorisation are each not enough on their own?

    What a strong answer covers
    • Building an index or embeddings is studying in the broad sense: it changes the harness before any question is seen, but it encodes the corpus without the agent learning what matters in it.
    • Retrieval gives access, not expertise: the Literature task shows equal reach but different selection; an agent with wrong priors may not even search for the right thing, as in the Qwen 3.6 example.
    • Long-context and memorisation methods target matching a model that has the whole corpus in context, but the corpus is available at test time anyway, so the real goal is cheaper, better use of it.
    • Meta-Harness also changes the harness from experience, but it needs a search set and a reward; machine studying has no task distribution or reward, only the corpus.
    • Both point to the same open problem: how an agent turns raw experience or documents into reusable notes, skills or weights.

Done with this page?

Status