Command Palette
Search for a command to run...
Spark-to-Paper: End-to-End-Forschungspapiergenerierung als komponierbare Fertigkeit
Spark-to-Paper: End-to-End-Forschungspapiergenerierung als komponierbare Fertigkeit
Zhuoyang Qian Biao Wu Yiran Wang Chris D Yan Desan Dai Liangwei Zheng Jin Jiang Jusheng Zhang Wenhao Wang
Zusammenfassung
Die Umsetzung einer Forschungsidee in ein vollständiges Papier erfordert mehr als reine Textgenerierung: Das System muss Literatur beschaffen, Experimente entwerfen und ausführen, Behauptungen anhand von Evidenz revidieren, publikationsreife Abbildungen erstellen und die Konsistenz über einen langen Generierungsprozess hinweg wahren. Wir präsentieren Spark-to-Paper, ein End-to-End-System zur Generierung von Forschungspapieren, das als dreizehn komponierbare Fertigkeiten innerhalb eines bestehenden Coding-Assistenten implementiert ist, ohne eine separate Agentenplattform oder einen Orchestrierungsdienst zu benötigen. Spark-to-Paper trennt modellbasierte Beurteilung von deterministischen Operationen, die direkt ausgeführt und überprüft werden können. Es trennt ferner die Experimentplanung von der Berichterstattung, sodass die erforderliche Evidenz spezifiziert wird, bevor Ergebnisse beobachtet werden, und die Behauptungen im Manuskript anhand der gemessenen Resultate revidiert werden. Um die Zuverlässigkeit über lange Forschungstrajektorien zu verbessern, kombiniert das System deterministische Integritätsprüfungen mit Selbstkritik und begrenzt einen Fehlermodus, den wir als Selbstwiderlegungsschleife bezeichnen und bei dem wiederholte Experimente das ursprüngliche Forschungsziel fortwährend verwerfen. Spark-to-Paper erzeugt zudem editierbare Vektorgrafiken durch programmatisches Plotten für experimentelle Ergebnisse und codebasierte Rekonstruktion für generierte Methodendiagramme. Über acht kontrollierte Forschungsthemen hinweg erreicht Spark-to-Paper eine Zitationsvalidität von 99,5 % und eine Abbildungseditierbarkeit von 96,4 %. Eine kontrollierte Ablationsstudie steigert die Erkennung von Fabrikationen von 14 % bei einem Single-Pass-Entwurf auf 92 % mit dem vollständigen Integritätsund Review-Stack, während ein adversarielles Review eine Präzision von 74 % erzielt. Das Gesamtsystem verbraucht 11,9 Millionen Token, kostet 8,1 $ pro Manuskript und benötigt durchschnittlich 3,2 Stunden. Diese Ergebnisse zeigen, dass die End-to-End-Generierung von Forschungspapieren als leichtgewichtiger, komponierbarer Arbeitsablauf innerhalb bestehender Coding-Assistenten implementiert werden kann, wobei die experimentelle Evidenz im Zentrum der Annahme, Revision oder Verwerfung von Behauptungen steht.
One-sentence Summary
Vast Intelligence Lab and the University of Technology Sydney present Spark-to-Paper, an end-to-end research paper generation system built as thirteen composable skills inside a coding assistant that decouples model judgment from deterministic checks, separates experiment planning from reporting, and employs integrity checks and self-critique to avoid the Self-Refutation Loop, achieving 99.5% citation validity, 96.4% figure editability, and a cost of $8.1 per manuscript.
Key Contributions
- Spark-to-Paper is an end-to-end research paper generation system implemented as thirteen composable skills inside an existing coding assistant, reusing its native file, tool, and code execution capabilities without a separate agent platform. It separates model-based judgment from deterministic operations and decouples experiment planning from reporting, so required evidence is specified before results are observed and manuscript claims are revised accordingly.
- The system bounds the Self-Refutation Loop, a failure mode where repeated experiments reject the original research objective, by preserving the unsuccessful trajectory as a research report and moving to a new idea, ensuring claims are revised or abandoned according to evidence rather than forced toward a successful narrative.
- Spark-to-Paper generates editable vector figures through programmatic plotting for experimental results and code-based reconstruction for method diagrams, and applies deterministic integrity checks with self-critique to reduce fabrication. Across eight controlled research topics, citation validity reaches 99.5%, figure editability 96.4%, and a controlled ablation boosts fabrication detection from 14% to 92% while adversarial review achieves 74% precision.
Introduction
Automating the full research-to-paper pipeline requires more than just generating text; it involves literature search, experimentation, claim revision, and figure creation. Recent autonomous research agents can perform these tasks end-to-end, but they are typically built as standalone platforms with their own orchestration infrastructure, separate from the coding environments where researchers already work. Meanwhile, modern coding assistants offer file inspection, code execution, and tool use, yet existing skill-based tools only support partial workflows such as drafting or literature retrieval. The authors introduce Spark-to-Paper, a system that combines these capabilities into thirteen composable skills inside an existing coding assistant, enabling end-to-end paper generation with evidence-grounded claim revision, deterministic integrity checks, and editable vector figures, all without requiring a separate agent platform or orchestration service.
Method
The authors present Spark-to-Paper, a system composed of thirteen skills that operates within an existing coding assistant. Each skill addresses a specific research task, such as planning, literature search, writing, or figure generation. Rather than constructing a separate agent system, the framework leverages the coding assistant's native capabilities to read files, execute code, and invoke external tools. All skills share a common project directory, reading artifacts produced by previous steps and writing their outputs back to the project. This file-based interface allows the manuscript to evolve seamlessly across the entire pipeline.
Within each skill, the system separates tasks requiring judgment from those that can be executed mechanically. The language model handles context-dependent decisions, such as argument organization, literature selection, and claim evaluation. Conversely, operations with explicit rules, like checking manuscript structure, validating citations, and compiling LaTeX, are handled by deterministic scripts. This design ensures that open-ended generation is restricted to areas requiring semantic reasoning, while verifiable operations remain reproducible.
The execution of these skills is organized into a structured pipeline.
As illustrated in the framework diagram, the pipeline begins with Stage 0, Input Routing. The system inspects the user input to determine the starting point and selects a result-integrity mode. If no measured results are available, it enters Proposal Mode, where unavailable values must remain unspecified. If experimental data is present, it enters Data-Aware Mode, requiring quantitative statements to be supported by the provided data.
The core pipeline consists of Stages 1 through 7. The planning skill converts the input into a structured blueprint, identifying the research question, contributions, and section structure. The citation skill then builds a verified bibliography by searching for relevant literature and checking metadata, storing valid references in a BibTeX file. The writing skill generates the complete LaTeX manuscript using the blueprint and bibliography, maintaining consistency across sections. Following this, the refinement skill revises the manuscript as a whole to remove repetition and reconcile terminology, after which deterministic checks are rerun. The review skill then challenges the manuscript through multiple isolated passes examining technical soundness and experimental design. Confirmed issues are returned for further refinement. The figure skill generates visualizations, and the assembly skill combines all components into a final LaTeX project, compiling it and verifying the absence of errors.
Stage 8 handles experiment execution conditionally. If a complete draft is available and the planned experiments are feasible, the system runs them, records the outputs, and updates the manuscript with the new evidence. This connects the proposal and data-aware parts of the pipeline.
To maintain reliability over long generation horizons, the authors implement a dual integrity system. Deterministic gates enforce explicit constraints, such as citation consistency and successful compilation. For semantic errors that emerge over time, the system employs model-based self-critique. Self-Review operates locally after edits to fix terminology drift and local inconsistencies. Adversarial-Review operates at the manuscript level, where isolated passes examine the paper from complementary perspectives. Proposed issues must quote specific passages and are checked for validity before being accepted for revision.
To prevent self-refutation loops where the system repeatedly revises a research direction without converging, the number of experiment, critique, and revision cycles is bounded. If the research objective cannot be supported after seven cycles, the trajectory is terminated, and a failure report is generated. The system then initiates a new research trajectory from a different idea.
Figure generation follows two distinct paths. Method and explanatory figures are first created visually using an image-generation model and then reconstructed as editable vector graphics through code, iteratively adjusting the layout to match the visual target. Experimental result figures are generated directly from measured data using plotting programs, ensuring quantitative accuracy.
Experiment
The evaluation setup uses preregistered protocols and controlled experiments on eight topics, comparing Spark-to-Paper against human preprints, prior autonomous systems, and a single-pass baseline. Quality is assessed through citation validity, figure editability, and fabrication detection, with an ablation showing that the full quality-control stack sharply increases detection rates while adversarial review contributes high precision. Case studies confirm that the system autonomously refines its methods and prioritizes evidence over user-imposed prior expectations, leading to manuscripts with consistent, traceable claims.
Spark-to-Paper is the only compared system that provides full end-to-end automation, runs experiments, draws figures, produces editable vector graphics, and requires no standing infrastructure. Other systems either lack editable vector output, require standing infrastructure, or offer only partial capabilities in one or more areas. Spark-to-Paper is the only system that combines full end-to-end automation, fully running experiments, drawing figures, editable vector output, and no standing infrastructure requirement. AI Scientist v2 and AutoResearchClaw match Spark-to-Paper on end-to-end, experiment running, and figure drawing, but they do not provide editable vectors and require standing infrastructure.
The evaluation framework defines five quality metrics, each as a ratio of verified or editable elements to total instances, and one efficiency dimension tracking incremental computational cost. Review precision is only assessed for configurations with an explicit review stage, and all measurements are reported on a fixed set of externally selected topics with uncertainty across topics. Efficiency is measured as token and dollar deltas relative to the preceding configuration, isolating the marginal cost of each quality-control component. Citation validity is the proportion of references that are successfully resolved. Fabrication detection measures the fraction of injected unsupported claims that are flagged as unsupported. Figure editability is the share of editable elements among all figure elements. Review precision is the percentage of raised review issues that are independently verified, excluding ambiguous judgments. Cross-template robustness is the number of successful templates over supported templates. Efficiency is measured by incremental token and dollar costs for each added layer, reported relative to the immediately preceding row.
Spark-to-Paper attains the highest citation validity and figure editability among all evaluated systems, surpassing both human-written preprints and prior autonomous research agents. Prior systems offer moderate citation validity but provide almost no editable figures, while a single-pass LLM baseline is far cheaper and faster yet suffers from substantially lower citation accuracy. The full pipeline therefore delivers human-competitive artifact quality at a moderate increase in cost and runtime. Spark-to-Paper’s citation validity (99.5%) exceeded human preprints (97.8%) and all prior autonomous systems, which ranged from 91% to 96%. Figure editability reached 96.4%, whereas prior systems provided at most 3% editable elements and human preprints averaged 58%. The single-pass LLM baseline cost 0.66andcompletedin16minutes,butitscitationvaliditydroppedto812.33, achieved 96% citation validity but had no editable figures.
Starting from a single-pass draft, introducing gating markedly improves fabrication detection from 14% to 69% while incurring the largest token and monetary overhead. Adding self-review and adversarial review further raises detection to 81% and 92% respectively, each at a smaller incremental cost. The adversarial review stage also achieves 74% precision, indicating that most flagged issues are verifiable. Without any quality-control steps, only 14% of seeded fabrication probes are detected. Gating raises detection to 69% but adds 8.1 million tokens and $5.3 per paper, the largest single-component cost. Self-review improves detection to 81% with a modest cost increase of 1.1 million tokens. The full stack with adversarial review reaches 92% detection and attains 74% review precision, meaning most issues raised are verifiable.
The evaluation compares Spark-to-Paper against prior systems and human preprints using metrics for citation validity, figure editability, fabrication detection, and cost. Spark-to-Paper uniquely provides full end-to-end automation, runs experiments, and produces editable vector figures without standing infrastructure. It achieves higher citation validity and figure editability than both human preprints and earlier agents. Ablations show that stacking gating, self-review, and adversarial review progressively lifts fabrication detection, with adversarial review offering high precision at a modest incremental cost.