- probe.linear_cka is NaN (not 0/0) for a representation that is the same
for every event; compare_encoders.py writes it as null in strict JSON and
names the encoders.
- compare_encoders.py rejects --encoders entries without label= and
repeated labels, draws its events with data.seed (no --seed), and sets
model.pretrained on the loaded config instead of re-parsing YAML.
- Layer-wise embeddings come from the encoders: ObjectTransformer
.encode_layers (forward returns its last) and jepa.layer_event_embeddings
(the edge network's mean node states via _mean_by_group), replacing the
forward hooks and copied pooling in probe.py.
- Tests: CKA of constant representations, cross-encoder and layer-wise
values of the script, and its argument errors.
Model outputs and existing results are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
probe.linear_cka and probe.layer_embeddings, and
scripts/compare_encoders.py: CKA of the event embeddings of several
encoders of one architecture (pretrained with JEPA, contrastive, masked
objects or supervision, or random), and layer by layer against the first,
as in Ho et al. (2026). Tested on fixtures for both backbones.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>