Open-ended agentic search for computational models of the visual cortex. Agents
change model.py to discover image representations, score them against neural
responses, then freeze the winner for final evaluation. The scientific code stays
fixed during search. A high score is predictive evidence, not a mechanistic explanation.
Held-out subjects, held-out images, TVSD responses and final artifacts must never guide search, repair, coordination or model selection. LAION and NSD hold out both subjects and images; Triple-N search is followed by TVSD final evaluation. Readouts for LAION and NSD are fit on each subject’s unique images only. See the scientific protocol for cohorts, splits and scoring rules.
The Python package can be installed independently. A full search additionally
requires Linux with Bubblewrap (bwrap) and usable namespaces, compatible prepared
neural data, and an installed, authenticated agent CLI. These are not installed by
pip. Dataset download and preparation are not automated here; raw dataset files
alone are not sufficient. See setup requirements.
In this repository the project lives in experiments/vision; “repository root” below means this folder. Dependencies are in the pyproject.toml at the top of the parent repository. Use Python 3.12 or newer and run commands from this folder:
uv sync --extra dev --extra dashboard
source "$(git rev-parse --show-toplevel)/.venv/bin/activate"
export PYTHONPATH="$PWD/src:$PWD"
python -m pytest -q
cp .env.example .env
# Edit .env to point to your prepared data and stimuli before continuing.
A single-provider search avoids the multi-provider defaults. After installing
and authenticating Claude Code, save its automation token with python -m search.auth
(see authentication), then run:
export NEURO_MODEL_ROSTER="claude:opus5.5:medium"
python -m search.run --epoch-mins 0 --show-config
python -m search.run --epoch-mins 0 --preflight
python -m search.run --epoch-mins 0 --gpu 0
This example disables coordination and does not require a repair provider. Choose a model identifier available to your account. Optional baseline and isolation tests can skip when their dependencies or system capabilities are missing; a passing test suite does not verify dataset availability or provider authentication.
Preflight checks data, provider authentication and Bubblewrap isolation without
model requests. Search sends real model requests and defaults to 12 hours of
LAION visual encoding. --dataset nsd|triplen, --region early|ventral|visual,
--metric rsa|encoding and --hours select alternatives; Triple-N defaults to
ventral. Run one configuration at a time on a single GPU. Ctrl+C stops a run;
relaunching the same configuration and date resumes it only when code, data and
scientific settings still match.
See operations for provider setup, Claude authentication, data paths, configuration, resuming, costs, isolation and the dashboard.
Use the run directory printed by the launcher. Selection and freezing happen before held-out responses are loaded; final evaluation always uses encoding.
python -m final_eval --run artifacts/search/laion__visual__encoding__2026-11-05
# Or evaluate an explicitly supplied frozen model:
python -m final_eval --model model.py --search-dataset laion --region visual
Final artifacts go to artifacts/final/ and never enter search feedback. Existing
artifacts are not overwritten. Protocol details explain the
headline scores and diagnostic subject Ă— image comparisons.
Fixed baselines and frozen models use the same scientific evaluator. Compression tests how well independent models rebuilt from a short description retain the original model’s score and representation.
uv sync --extra baselines
python -m baselines.run --dataset laion --region visual
python -m baselines.run --dataset laion --region visual --final
python -m compress --model path/to/model.py --words 200 --builders 4
Results stay in artifacts/final/baselines/ and artifacts/final/compression/.
See comparisons for available baselines, frozen-model
comparisons, word budgets and retention scores.
| Path | Responsibility |
|---|---|
model.py |
Starting candidate exporting MODEL |
src/search/ |
Search launcher, agents, queue, scoring, configuration and costs |
src/final_eval.py |
Select, freeze and evaluate the winner |
src/baselines/, src/compress.py |
Reference comparisons and description-based rebuilding |
src/neuro_eval/ |
Fixed scientific contracts, data loading, model isolation and evaluation |
src/neuro_eval/comparison.py |
Shared scoring for baseline and compression comparisons |
dashboard/ |
Read-only search monitoring |
tests/ |
Scientific and operational checks |
docs/ |
Operations, scientific protocol, comparisons and writing guidance |
.env |
Optional machine-local configuration at the repository root; untracked |
artifacts/search/, artifacts/final/ |
Generated search state and final artifacts; untracked |
artifacts/logs/ |
Top-level operational logs; untracked |
artifacts/archive/ |
Legacy runs, results and local files; untracked |
The full map identifies individual modules. Run checks with
python -m pytest -q; tests use fake providers and synthetic data, without live
model requests. Keep run databases, data, caches, credentials and machine-local
.env settings out of Git.