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.mdandexperimental_log.mdby default (--idea_filename,--experimental_log_filenameoverride them). - Use a template folder that contains
template.texandguidelines.md. The pipeline asserts both exist, and the README says you can add your own template as a new subfolder oftemplates/(cvpr2025andiclr2025ship with the repo). - Set only the API keys for the models you use: Gemini needs
GEMINI_API_KEYorVERTEX_AI_PROJECTplusVERTEX_AI_LOCATION; OpenAI models needOPENAI_API_KEY; the.envtemplate also listsSEMANTIC_SCHOLAR_API_KEY. - Pass
--research_cutoff(Year-Month, e.g.2024-11) as a best-effort filter on literature search (_is_paper_allowedallows papers with no publication year and treats aYYYY-MMcutoff as day 1 of that month); it defaults to the current month. - Turn on
--use_plotting truewhen you want figures generated from code; the README says it defaults toFalse. - Keep the output folder: the pipeline writes
outline.json,literature_agent_output/and a refinement worklog next tofinal_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.shwill 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.pyto see the stage order, thenmethods/agents/content_refinement_agent.pyfor the review loop. - Look at
autoraters/for the repo's evaluation scripts, and the arXiv citation (2604.05018) in the README for the paper.