google-research/paper-orchestra · 7.0k stars · Intermediate · 15 min · 2026-12-01

Turn raw research notes into a LaTeX paper with PaperOrchestra

PaperOrchestra is a multi-agent pipeline that turns an idea file and an experimental log into a LaTeX manuscript; you set up the environment, prepare raw materials, pick a conference template and run one CLI command.

TL;DR

PaperOrchestra (Apache-2.0, Google Cloud AI Research, "not an officially supported Google product") is a multi-agent framework that turns unconstrained pre-writing materials, an idea and an experimental log, into a submission-style LaTeX manuscript. Five agents handle outline, literature review, section writing, content refinement and plotting. You drive it with one Python CLI.

Why this repo matters

Going from half-formed notes to a conference-formatted paper means juggling structure, related work, tables, figures and template rules. The README describes the framework as an orchestrated team of specialized agents that closes that gap, including literature synthesis and generated visuals such as plots and conceptual diagrams. It is a research codebase, so treat it as a pipeline to read and adapt, not a polished product.

Best practices

  • Give it two inputs per paper: an idea document and an experimental log. The CLI looks for idea_sparse.md and experimental_log.md by default (--idea_filename, --experimental_log_filename override them).
  • Use a template folder that contains template.tex and guidelines.md. The pipeline asserts both exist, and the README says you can add your own template as a new subfolder of templates/ (cvpr2025 and iclr2025 ship with the repo).
  • Set only the API keys for the models you use: Gemini needs GEMINI_API_KEY or VERTEX_AI_PROJECT plus VERTEX_AI_LOCATION; OpenAI models need OPENAI_API_KEY; the .env template also lists SEMANTIC_SCHOLAR_API_KEY.
  • Pass --research_cutoff (Year-Month, e.g. 2024-11) as a best-effort filter on literature search (_is_paper_allowed allows papers with no publication year and treats a YYYY-MM cutoff as day 1 of that month); it defaults to the current month.
  • Turn on --use_plotting true when you want figures generated from code; the README says it defaults to False.
  • Keep the output folder: the pipeline writes outline.json, literature_agent_output/ and a refinement worklog next to final_paper.pdf, which helps you see what each agent did.

How-to

Where do I start?

1. How do I set it up?

The README uses a Conda environment named paper_orchestra with Python 3.11:

git clone https://github.com/google-research/paper-orchestra
cd paper-orchestra
conda create -n paper_orchestra python=3.11
conda activate paper_orchestra
pip install -r requirements.txt

Then create a .env in the repo root with the keys for the models you plan to use (see Best practices). The README says to leave unused keys empty.

Next: What do I put in the raw materials folder?

Try it

Make a tiny raw_materials/ folder with a half-page idea_sparse.md and a short experimental_log.md containing one results table. Run the CLI against templates/iclr2025 without plotting, then open outline.json and final_paper.pdf and check whether every claim in the paper traces back to your two files.

Pitfalls

  • The README says the dataset is not included yet, so the bundled paper_writing_cli.sh will not run as shipped; supply your own raw materials.
  • You need a working LaTeX toolchain for the PDF step; the refinement agent asserts the final PDF exists and the whole write-up is retried up to three times, then reports failure.
  • Generated papers need a human check. The pipeline's literature step relies on LLM search plus Semantic Scholar title matching, so verify every citation and number yourself.

Next steps

  • Read the README and the frontend README.
  • Skim methods/paper_writer.py to see the stage order, then methods/agents/content_refinement_agent.py for the review loop.
  • Look at autoraters/ for the repo's evaluation scripts, and the arXiv citation (2604.05018) in the README for the paper.