agentic-systems · 2026-08-13 · Tier 2

Spark-to-Paper: End-to-End Research Paper Generation as a Composable Skill

Spark-to-Paper: End-to-End Research Paper Generation as a Composable Skill

Source: arXiv 2608.11924 · HuggingFace · raw

TL;DR

A system that takes a research idea to a finished paper: retrieve the literature, design and run the experiments, revise the claims against what the experiments actually returned, produce publication-ready figures, and hold the whole thing consistent across a long generation. The architectural choice is the interesting part. It is implemented as thirteen composable skills inside an existing coding assistant, with no separate agent platform and no orchestration service.

Two separations carry the design. First, model-based judgment is split from deterministic operations that can be executed and checked, so anything verifiable is verified by code rather than by an LLM's opinion. Second, and more unusual, experiment planning is separated from reporting: the required evidence is specified before results are observed, and manuscript claims are then revised according to measured outcomes. That is preregistration, implemented as a control-flow constraint.

The system also names and bounds a failure mode it calls the Self-Refutation Loop, where repeated experiments keep rejecting the original research objective and the system would otherwise spin forever trying to rescue it.

The numbers are unusually complete for this genre. 99.5% citation validity. 96.4% figure editability. A controlled ablation raises fabrication detection from 14% for a single-pass draft to 92% with the full integrity and review stack, with adversarial review at 74% precision. And the cost line, which almost nobody publishes: 11.9M tokens, $8.1 per manuscript, 3.2 hours on average.


flowchart LR
  I[Research idea] --> L[Literature retrieval]
  L --> P[Experiment PLAN:<br/>required evidence specified<br/>BEFORE results seen]
  P --> E[Execute experiments]
  E --> M{Measured outcome<br/>vs planned evidence}
  M -->|supports| C[Claim accepted]
  M -->|refutes| RV[Claim revised<br/>or abandoned]
  RV --> SR{Self-Refutation Loop<br/>bounded}
  SR -->|budget left| P
  SR -->|exhausted| STOP[Objective abandoned]
  C --> F[Programmatic figures<br/>96.4 percent editable]
  F --> D[Deterministic integrity checks<br/>+ self-critique<br/>+ adversarial review]
  D --> OUT[Manuscript<br/>99.5 percent citation validity<br/>11.9M tokens · 8.1 dollars]
  classDef input fill:#dbeafe,stroke:#3b82f6,color:#1e3a8a
  classDef decision fill:#fef3c7,stroke:#f59e0b,color:#78350f
  classDef output fill:#d1fae5,stroke:#10b981,color:#065f46
  classDef warn fill:#fee2e2,stroke:#ef4444,color:#7f1d1d
  classDef aux fill:#e0e7ff,stroke:#6366f1,color:#312e81
  class I input
  class M,SR decision
  class C,F,OUT output
  class RV,STOP warn
  class L,P,E,D aux

Key findings

  • $8.1 and 3.2 hours per manuscript, 11.9M tokens. Publishing the cost is the paper's quiet contribution. Almost no agentic-research system reports one, which makes cross-system comparison impossible and lets expensive methods hide behind accuracy tables.
  • Fabrication detection goes from 14% to 92% between a single-pass draft and the full integrity stack. That is the ablation that justifies the whole architecture: the scaffold is doing the work, not the model.
  • 99.5% citation validity is the headline reliability number, and it is achieved by making citation checking a deterministic operation rather than a judgment call.
  • No separate agent platform. Thirteen skills inside an existing coding assistant, which is an argument that the orchestration-service layer many agent frameworks sell may be unnecessary for long-horizon work.
  • Preregistration as a control-flow property. Specifying required evidence before observing results is a mechanical block on the most common form of research self-deception, and it costs nothing to enforce once the pipeline is structured for it.

How this relates to prior wiki pages

This is the constructive counterpart to Agent Safety Should Be a Runtime Contract (08-13), published the same day. That paper argues the evidential face of agent safety requires gating task submission on verifiable proof that good actions happened, and calls for exactly this: deterministic integrity checks, citation grounding, checkable artifacts. Spark-to-Paper is a working instance with the ablation attached. The 14%-to-92% fabrication-detection jump is, in that vocabulary, a measurement of what an evidence chain buys, and it is the only such number this wiki has.

It sits in the skills-as-unit lineage this wiki has tracked since April, including Corpus2Skill (04-18), Ctx2Skill (05-05), and the skill curation cluster (05-09). Those papers built skills as reusable procedural memory for an agent. Spark-to-Paper uses skills as decomposition units for a single long task, which is a different and more prosaic use: the thirteen skills are not learned or evolved, they are written, and their value is that each is separately checkable. Given the practitioner finding that 33% of 7,944 public Claude Code skills make an agent worse than no skill at all, a hand-designed thirteen-skill decomposition with a measured integrity stack is a useful counterexample to the "more skills is better" default.

It is the same architectural bet as AI4AI (08-13), stated for a different task. AI4AI found that a harness transfers capability by offloading unstable model reasoning into deterministic code. Spark-to-Paper's first design principle is separating model-based judgment from deterministic operations that can be executed and checked. Two papers on the same board, in different subfields, both concluding that the win comes from taking decisions away from the model rather than from the model deciding better.

It bounds a failure mode xCientist (06-18) identified. That paper on research harnesses named claim drift, where a system's stated conclusions gradually detach from what its experiments showed. Spark-to-Paper's plan-before-results separation is a direct structural fix, and the Self-Refutation Loop is the adjacent failure it also had to bound.

Gaps in the study

Eight controlled research topics is a small and self-selected evaluation. Nothing is reported about whether the topics were chosen for tractability, and the difference between a research question a pipeline can close in 3.2 hours and one that takes a lab a year is the whole question. The system measures process integrity, not research value: 99.5% citation validity and 96.4% figure editability say the manuscript is well-formed and honestly grounded, and say nothing about whether the finding is worth having.

Adversarial review at 74% precision is the weak link and it is the last gate. A quarter of what it flags is a false positive, and the recall is not reported at all, so the fraction of real fabrications that slip through is unknown. That matters more than the precision figure for a system whose selling point is integrity.

The cost figure also deserves a caveat the paper does not give it: $8.1 covers the generation, not the human time to determine whether the resulting paper is correct, and the entire economic argument depends on that second number being small.

Industrial implication

The transferable piece is not paper generation. It is the preregistration pattern: specify the evidence that would satisfy a claim before running the thing that produces the evidence, and make the pipeline enforce the ordering. That applies to any agent doing analysis where the agent also writes the summary, which describes most production analytics agents shipping right now, and it is a harness change rather than a model change.

The second transferable piece is that thirteen skills inside a coding assistant beat a dedicated orchestration platform for a genuinely long-horizon task. If that replicates, a meaningful slice of the agent-infrastructure market is selling a layer that a well-decomposed skill set makes redundant. The counter-argument is that this task has an unusually clean decomposition, and most production workflows do not.


Related: Agent Harness Engineering · Self-Evolving Agents · Agent Safety Should Be a Runtime Contract · AI4AI at Test-Time · Digest 2026-08-13