Main entrypoint:
uv run -m banditdlInspect the resolved config with:
uv run -m banditdl --cfg jobconf/config.yaml composes the experiment from:
datasettopologysampleradversaryaggregatorheterogeneityoptimizationevaluationoverride
The default workflow is: pick config groups, then override a few fields from the CLI.
conf/override.yaml is loaded last and is Git-ignored. Use it for per-machine defaults such as device and Hydra output directories.
Example:
defaults:
- override /dataset: mnist
- override /topology: dynamic
- override /sampler: uniform
- override /adversary: none
seed: 0
device: mps
hydra:
run:
dir: .hydra_runs_override/${now:%Y-%m-%d}/${now:%H-%M-%S}
sweep:
dir: .hydra_multirun_override/${now:%Y-%m-%d}/${now:%H-%M-%S}Group: conf/dataset/
dataset:mnist,cifar10,femnist, orfemnist_poolmodel: model constructor nameprovider: Hydra target responsible for loading samples and metadata
Use dataset=femnist for natural writer-per-node partitions. Use
dataset=femnist_pool to apply the selected synthetic heterogeneity config
to pooled FEMNIST samples.
Group: conf/topology/
topology=dynamic: dynamic neighbor sampling
Important fields:
topology.nodes: total workerstopology.sampling: fraction of other participants sampled each round
Group: conf/sampler/
Used only by dynamic topology.
sampler=uniformsampler=epsilon_greedysampler=exp3sampler=cucbsampler=ctssampler=discounted_cucbsampler=discounted_ctssampler=bandit: epsilon-greedy profile
Important fields:
sampler.namesampler.rewardsampler.params.*
The sampler horizon is optimization.rounds; do not duplicate it in sampler config.
discounted_cucb and discounted_cts use sampler.params.gamma as their
evidence discount. CUCB also exposes sampler.params.exploration.
Group: conf/optimization/
Important fields:
optimization.roundsoptimization.nb_local_stepsoptimization.batch_sizeoptimization.learning_rate
Group: conf/heterogeneity/
Each profile is the Hydra-instantiated synthetic partition strategy.
heterogeneity.alpha: Dirichlet heterogeneity parameterheterogeneity.clusters: number of clusters;nullmeans one cluster per honest nodeheterogeneity.classes_per_group: labels per pathological clusterheterogeneity.group_overlap: overlap between pathological clustersheterogeneity.gamma_similarity: interpolation toward IID data in[0, 1]
The honest-node count must be divisible by an explicit cluster count. If
clusters is null, every honest node is treated as its own cluster.
Group: conf/adversary/
adversary.byzcountadversary.byzantine_budgetadversary.attack
For honest-only runs, keep adversary=none.
Group: conf/aggregator/
aggregator.pre_aggregatoraggregator.aggregatoraggregator.rag
Single run:
uv run -m banditdl \
dataset=mnist \
topology=dynamic \
topology.nodes=100 \
topology.sampling=0.05 \
sampler=uniform \
optimization.rounds=500Hydra multirun:
uv run -m banditdl -m \
topology=dynamic \
sampler=uniform,exp3 \
topology.sampling=0.03,0.05 \
seed=0,1Hydra takes the Cartesian product of comma-separated values.
For actual sweep workflows and plotting controls, see docs/sweeps.md.