Open-ended Scientific Discovery via Bayesian Surprise
Asta Autodiscovery is an autonomous agent that performs data exploration on arbitrary datasets. The agent will generate hypotheses and run experiments to test each one. Surprising outcomes generate follow-up hypotheses in a recursive exploration.
Link to our NeurIPS 2025 paper: AutoDiscovery: Open-ended Scientific Discovery via Bayesian Surprise
Upgrading from 0.2.x
1.0.0 changes two things that every existing command line depends on:
- Model flags now name their provider.
--model gemini-3.1-pro-previewbecomes--model vertex_ai/gemini-3.7-flash. A bare model name is rejected at startup. See Selecting models below. - Vertex AI authenticates via Application Default Credentials only.
VERTEX_ACCESS_TOKEN,GOOGLE_OAUTH_ACCESS_TOKENandVERTEX_OPENAI_BASE_URLare no longer read.
Full notes: CHANGELOG.
Installation
Requires Python 3.13 or newer.
pip install asta-autodiscovery
This installs the auto-discovery command-line tool.
Quick start
Point auto-discovery at one or more dataset files and describe what you want explored:
auto-discovery \
--name "Plant growth study" \
--description "Field trial measurements of plant height under varying fertilizer dosage" \
--intent "Focus on dose-response relationships" \
--n_experiments 20 \
--out_dir ./results \
data/measurements.csv data/treatments.csv
CSV/TSV column headers are detected automatically. Datasets can also be directories — every file under them will be included.
Dataset files/directories can have different descriptions for each one listed. Use a repeated --dataset_description
parameter in place of the overall --description.
When the run finishes, a static HTML report is written to <out_dir>/report.
Common options
| Flag | Description |
|---|---|
--n_experiments |
Number of experiments to run (required). |
--out_dir |
Output directory for results and the HTML report (required). |
--name |
Short title for the run. |
--description |
Context about the dataset: provenance, collection method, known gaps. |
--domain |
Research domain (e.g. Genomics). |
--intent |
High-level exploration guidance for the agent. |
--dataset_description |
Per-dataset description; repeat once per dataset, in order. |
--exploration_weight |
Higher = broader exploration (default 2.0). |
--surprisal_width |
Surprise threshold; lower = more sensitive (default 0.2). |
Run auto-discovery --help to see the full set of options.
Authentication
All model traffic goes through litellm, and every model flag names
its provider explicitly as <provider>/<model> — for example
vertex_ai/gemini-3.7-flash, openai/o4-mini, github_copilot/claude-haiku-4.5. You only
need to configure the providers you actually name in --model, --belief_model,
--vision_model and --embedding_model.
Vertex AI
Used when a model flag names vertex_ai/.... The defaults are Vertex models, so this is required
unless you override them all.
Pick one of the following. In all cases, set the project (and optionally location) so the agent knows which Vertex endpoint to call:
export VERTEX_PROJECT_ID=your-gcp-project-id
export VERTEX_LOCATION=global # optional; defaults to "global"
Service account key file (recommended for non-interactive use):
Create a service account in your GCP project, grant it the Vertex AI User role, download a
JSON key, and point Google's standard ADC env var at it:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json
User credentials via gcloud (recommended for local development):
gcloud auth application-default login
Vertex authenticates via Application Default Credentials, so either
GOOGLE_APPLICATION_CREDENTIALS or gcloud auth application-default login is
required. Raw bearer tokens (VERTEX_ACCESS_TOKEN) are no longer accepted.
OpenAI
Used when a model flag names openai/... (e.g. openai/gpt-4o).
export OPENAI_API_KEY=sk-...
GitHub Copilot
Used when a model flag names github_copilot/.... litellm reads a GitHub OAuth token from a
file. On an interactive terminal it runs GitHub's device-code login on first use and
caches the token itself, so no setup is needed. For non-interactive runs, pre-seed it:
export GITHUB_COPILOT_TOKEN_DIR=/path/to/dir # must contain a file named `access-token`
There is no TTY detection, so a headless run without a cached token prints a device code and blocks for about three minutes before failing.
Selecting models
| Flag | What it controls | Default |
|---|---|---|
--model |
Primary reasoning model used for hypothesis generation and analysis. | vertex_ai/gemini-3.7-flash |
--belief_model |
Model used for belief updates over experimental outcomes. | vertex_ai/gemini-3.7-flash |
--vision_model |
Model used to interpret plots and figures emitted by experiments. | vertex_ai/gemini-3.7-flash |
--embedding_model |
Model used for deduplication embeddings. | openai/text-embedding-3-large |
Because the provider travels with each flag, mixing providers is supported — for example,
--model openai/gpt-4o --belief_model vertex_ai/gemini-3.7-flash uses OpenAI for the main
loop and Vertex AI for belief updates, with both OPENAI_API_KEY and the Vertex variables set.
Each flag is validated against litellm's offline model registry at startup, before the first model call.
Citation
If you find this work useful, please cite:
@inproceedings{
agarwal2025autodiscovery,
title={AutoDiscovery: Open-ended Scientific Discovery via Bayesian Surprise},
author={Dhruv Agarwal and Bodhisattwa Prasad Majumder and Reece Adamson and Megha Chakravorty and Satvika Reddy Gavireddy and Aditya Parashar and Harshit Surana and Bhavana Dalvi Mishra and Andrew McCallum and Ashish Sabharwal and Peter Clark},
booktitle={The Thirty-ninth Annual Conference on Neural Information Processing Systems},
year={2025},
url={https://openreview.net/forum?id=kJqTkj2HhF}
}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file asta_autodiscovery-1.0.0.tar.gz.
File metadata
- Download URL: asta_autodiscovery-1.0.0.tar.gz
- Upload date:
- Size: 85.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffd2252bf10e2c260e239082459704bbb64985c2f8882076d8cdac49b39ccae8
|
|
| MD5 |
60c962ff22ee6761fb7669b1ad3b6c8d
|
|
| BLAKE2b-256 |
2ff832f66211e1d9008ae43a16321d6adda1174a44e7205ad5d80e6a5a4ea798
|
Provenance
The following attestation bundles were made for asta_autodiscovery-1.0.0.tar.gz:
Publisher:
publish-to-pypi.yml on allenai/asta-autodiscovery
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
asta_autodiscovery-1.0.0.tar.gz -
Subject digest:
ffd2252bf10e2c260e239082459704bbb64985c2f8882076d8cdac49b39ccae8 - Sigstore transparency entry: 2702624575
- Sigstore integration time:
-
Permalink:
allenai/asta-autodiscovery@f18a616ff641041477d4788ca0bbb6cafe128fd3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/allenai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@f18a616ff641041477d4788ca0bbb6cafe128fd3 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file asta_autodiscovery-1.0.0-py3-none-any.whl.
File metadata
- Download URL: asta_autodiscovery-1.0.0-py3-none-any.whl
- Upload date:
- Size: 95.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ef1b6af0b3111a41570ec1516c906537fe56fd656443ebeac941f467f806d99
|
|
| MD5 |
925502ad8624145a57da927d70463bd6
|
|
| BLAKE2b-256 |
816b8155ca009ed7369f7761bfed1dde101c26a21bb18e2d7bf72e8750975621
|
Provenance
The following attestation bundles were made for asta_autodiscovery-1.0.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on allenai/asta-autodiscovery
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
asta_autodiscovery-1.0.0-py3-none-any.whl -
Subject digest:
3ef1b6af0b3111a41570ec1516c906537fe56fd656443ebeac941f467f806d99 - Sigstore transparency entry: 2702624590
- Sigstore integration time:
-
Permalink:
allenai/asta-autodiscovery@f18a616ff641041477d4788ca0bbb6cafe128fd3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/allenai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@f18a616ff641041477d4788ca0bbb6cafe128fd3 -
Trigger Event:
workflow_dispatch
-
Statement type: