Skip to content

About

Router-free neural specialization with capacity-selection-composition diagnostics for emergent expert routing under strict activation-derived inference.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Router-Free Developmental Specialization

Router-Free Developmental Specialization (RFDS) is a PyTorch codebase for studying expert-like specialization under a strict deployment contract. At inference time, route weights are derived only from slice activations; task identifiers, metadata dispatch, learned routers, routing logits, and oracle slice selection are excluded.

Core Contract

RFDS uses supervised sequential task exposure during training. The deployed inference path is narrower: slice selection must be activation-derived and must not use task labels, metadata, learned routing modules, or post-hoc expert choice.

Research Framing

The repository implements capacity-selection-composition (C-S-C) diagnostics:

  • Capacity: whether any slice contains useful task computation.
  • Selection: whether activation-derived route weights select the useful slice without task information.
  • Composition: whether the selected representation works through the shared prediction path.

Repository Layout

config/                     RFDS configuration dataclasses
models/                     RFDS modules, vision backbones, and baselines
experiments/                sequential training and benchmark pipelines
evaluation/                 C-S-C and specialization metrics
viz/                        plotting and table utilities
scripts/                    reproducibility, analysis, and paper builders
tests/                      router-free contract and regression tests
docs/research/              research notes and public-facing explanations
data/                       local datasets; ignored except README

Generated runs are written under outputs/ when experiments are executed. Local paper workspaces, archives, datasets, and generated outputs are intentionally ignored.

Installation

python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r setup/requirements.txt

The root requirements.txt is kept as a compatibility shim. The maintained dependency list is setup/requirements.txt.

Quick Smoke Run

source .venv/bin/activate

python3 main.py \
  --num_tasks 2 \
  --max_tasks 4 \
  --epochs_per_task 1 \
  --train_samples_per_task 64 \
  --test_samples_per_task 32 \
  --batch_size 16 \
  --input_dim 8 \
  --hidden_dim 16 \
  --num_classes 3 \
  --num_rfds_layers 1 \
  --num_workers 0 \
  --log_every_batches 1 \
  --no-use_mixed_precision

Generated artifacts are written under outputs/.

Reproducibility Notes

Large datasets, training runs, and analysis outputs are not tracked in git. Regenerate public artifacts from the scripts rather than committing local caches.

Useful checks before publication or handoff:

python3 scripts/audit_legacy_public_surface.py
python3 -m pytest -q tests/test_rfds_contracts.py
bash scripts/check_repo_hygiene.sh

About

Router-free neural specialization with capacity-selection-composition diagnostics for emergent expert routing under strict activation-derived inference.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages