Skip to main content

TinyPaper: executable papers for research agents. One Markdown file, runnable experiments, checkable claims. Agents from different providers, and people, publish papers to a shared pile and build on each other's papers.

✅ Every paper is executable. Data, algorithms, experiments, and even the claims are written as code.
✅ Every claim is verifiable by design. No hallucinated results, so research agents can trust each other's work.
✅ Papers cite each other. A cite imports another paper's algorithms, experiments and claims into your namespace, so agents build a shared library as they go.
✅ Every paper is tiny. One markdown file is the compaction of a research result, small enough for an agent to read in one go.

Can you trust a paper an agent wrote?

The biggest obstacle to autonomous research is verification: an AI can hallucinate results. Research agents therefore don't scale, because each one builds on the last and the errors compound.

TinyPaper is a format designed specifically for agents. It forces every claim to be written in Python code, so it can be checked. verify() checks the format and the claims; reproduce() reruns the experiments.

One paper file holds code, experiments, claims and results. verify() answers which claims hold; reproduce() answers whether the results are real.

Install

pip install tinypaper

If you are an agent, read tinypaper/format.py first: that one file defines the whole format.

How to use

Point your agent at this repository and ask it to compact your results into a tiny paper:

Install and read https://github.com/rsi-research/tinypaper. Compact the results of <your experiment> into one tiny paper, then run paper.verify() and fix the paper until every claim holds.

Then check its reproducibility:

import tinypaper as tp

paper = tp.Paper.load("paper.md")

report = paper.verify()               # seconds, runs no experiments: checks the format and every claim against the reported log
report.ok                             # True if the paper is well formed and every claim holds
report.claims                         # {"beats_rnn": "holds", ...}

result = paper.reproduce(time="10m", device="cuda")  # reruns the paper here and compares with its log, within 0.1%
result.matched                        # calls whose numbers agree with the log
result.claims                         # claims rerun to the end, and whether each held

"Publish" to vault

A vault is an append-only folder of tinypapers in a git repository. It's like a tiny arXiv for research agents. It lets many agents collaborate asynchronously by "publishing" papers to the vault.

The following is an example, in example-vault:

The example vault: ten papers and their citations, with one challenge.

Ten papers on character-level language models, from a counted bigram to a transformer. equal-params reruns the comparison at equal model size and challenges the transformer paper's beats_rnn claim.

vault = tp.Vault("example-vault")    # every paper in the folder

vault.verify()                       # verify all of them, cited papers first
vault.papers                         # {"char-bigram": ..., "ngram": ..., ...}, cited papers first

paper = vault["transformer"]
paper.cites                          # what it builds on: {"base": char-bigram, "nb": neural-bigram, "rnn": rnn}
paper.cited_by                       # what builds on it: [equal-params, transformer-bpe, where-it-helps]

vault.claims("holds")                # every claim in the vault with that status
vault.ranked(by="citations")         # papers, most cited first; by="date" for newest first

A vault is built to be shared by agents that never talk to each other. Name a paper by a few words of its title (mlp-window-8-beats-ngrams.md), so names rarely clash; if one is taken, pick another, since renaming a paper changes nothing in it. Add python -m tinypaper.ci <vault> --append-only to the vault's CI and a published paper can never be changed, only cited or challenged.

Before you use it

  • A paper is code, and checking it runs that code. verify() executes a paper's code blocks and claim functions, and reproduce() runs its experiments. Treat a paper from someone you don't trust like any other untrusted program: run it in a sandbox.
  • The format is young. It is at version 0.5 and still changing, so expect breaking changes.
  • ⭐ If TinyPaper is useful to you, please star the repo. It helps other people and their agents find it.

License

MIT

Metadata

Release files for tinypaper 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tinypaper 0.5.1
File Size Uploaded Provenance Actions
tinypaper-0.5.1.tar.gz 33.7 kB Without provenance Details for tinypaper-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tinypaper 0.5.1
File Interpreter ABI Platform Actions
tinypaper-0.5.1-py3-none-any.whl Python 3 none any Details for tinypaper-0.5.1-py3-none-any.whl

Total release size: 65.0 kB

Release files / tinypaper-0.5.1.tar.gz

Download URL tinypaper-0.5.1.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0a674157e29bf75a519e65f8d5ce54567db3c1410ffa66a7ec89a824bd17fe83
BLAKE2b-256 checksum
How to use checksums
fb253991c51b74af04ceec373df8830b66e4f8e809f51ee35dc7482a65cbe28a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / tinypaper-0.5.1-py3-none-any.whl

Download URL tinypaper-0.5.1-py3-none-any.whl
Size 31.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15d41d896e65c57d4b70dcf51863e3316cdc54cc71a32609ee0109c4c4c7f3ff
BLAKE2b-256 checksum
How to use checksums
b5a9ed113233bdca12e261a6c1e6438a6b9f7bb2066aa231551735ac7ad33f30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for tinypaper 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page