README · Operations · Scientific protocol · Comparisons
Choose reference settings and compression budgets before inspecting final scores. Held-out subjects, held-out images, TVSD responses and final artifacts must never guide search, repair, coordination or model selection. Run commands from the repository root.
src/baselines/ holds fixed reference models, each a MODELS dict that follows the
candidate output contract: pixels/low-level statistics, Gabor wavelet pyramid
(Kay et al., 2008) with and without divisive normalization, wavelet scattering
(Mallat), Portilla–Simoncelli texture statistics on a 2×2 grid (simplifying
Freeman & Simoncelli, 2011), banana-filter curvature (a proxy for Pasupathy &
Connor), GIST, HMAX, and ImageNet-trained and seeded-random AlexNet layers.
They run in-process as trusted code, with the same evaluator, and write to
artifacts/final/baselines/, never to a search run. Their settings are fixed a
priori or chosen on search data only.
uv sync --extra baselines
python -m baselines.run --dataset laion --region visual # search protocol
python -m baselines.run --dataset laion --region visual --final # held-out LAION subjects and images
python -m baselines.run --dataset nsd --final --model champion=artifacts/final/.../model.py # any champion on NSD
python -m baselines.run --dataset triplen --only gabor,hmax
ImageNet-trained AlexNet requires alexnet-owt-7be5be79.pth. Set
NEURO_ALEXNET_WEIGHTS in the shell to its absolute path, or place it under
checkpoints/ in the standard PyTorch Hub cache (TORCH_HOME configures the cache).
Weights are not downloaded automatically. Seeded-random AlexNet and analytic
baselines do not require this checkpoint. For example:
export NEURO_ALEXNET_WEIGHTS=/absolute/path/to/alexnet-owt-7be5be79.pth
python -m baselines.run --dataset laion --only alexnet_fc8
src/compress.py tests whether a model’s broad computation can be specified in
words. Claude (Opus 5.5, medium effort, no tools or memory) describes the model’s
code in at most N words. Independent Claude calls rebuild a model from that text
alone, with only a contract check as feedback. The original, the rebuilds
and the gabor_norm floor are then scored with the search evaluator. The report
gives score retention, (rebuild − floor) / (original − floor), and linear CKA with
the original’s features. Outputs go to artifacts/final/compression/.
python -m compress --model path/to/model.py --words 200 --builders 4
python -m compress --model path/to/model.py --words 50,100,200,400 --final
python -m compress --model path/to/model.py --description "A V1-like Gabor energy model."
Compression currently scores LAION visual encoding; --final adds the held-out LAION evaluation. Both comparison entry points use src/neuro_eval/comparison.py for shared scoring.