# Reproducing the experiments The release provides inputs and trained components for rerunning the experiments. Feature extraction, per-sample prediction, and metric calculation regenerate the intermediate outputs. Full backbone extraction and native video prediction use the task-specific Linux/GPU environments recorded in `env/`. ## 1. Select the task and install its inputs Use [ARTIFACTS.md](ARTIFACTS.md) to choose ZIPs. Install the sample/split manifests and the relevant raw data and readouts. Use `MODEL_PACKAGES.csv` to find the archive parts needed by an individual model. Genesis videos and annotations are provided in five packages. Obtain ABO, PACO, IntPhys2, SSv2, Physion++, RealImpact, RCT, Bonn, and TUM RGB-D inputs through the corresponding dataset source. Preserve released sample IDs, grouping, splits, and pair lists. ## 2. Install the backbone and environment [MODEL_SOURCES.md](MODEL_SOURCES.md) and [MODEL_SOURCES.csv](MODEL_SOURCES.csv) record official model sources, checkpoint revisions, input preprocessing, feature layers, and pooling. Install the task's environment and set its data/model paths as described in the command guide below. Pretrained backbones remain frozen during probing. For LTX-2.5, regenerate the empty-prompt context with the official text encoder and connector. The helper is `compute_empty_prompt_ctx` in `code/visual_properties_layers_scale/probe_repo/scripts/h3_ltx25/ltx/ltx25_core.py`; point the extraction configuration to the generated context. This derived context is produced during setup. ## 3. Extract, apply the trained components, and evaluate | Experiment | Commands and configuration | |---|---| | Genesis states, parameters, and direction | [Genesis commands](https://github.com/vid-gen/physics-probe-code/blob/main/code/genesis_states_dynamics/RUN_COMMANDS.md) | | Properties, layer depth, and model scale | [Visual-property commands](https://github.com/vid-gen/physics-probe-code/blob/main/code/visual_properties_layers_scale/RUN_COMMANDS.md) | | Full-PACO configurations | [Full-PACO commands](https://github.com/vid-gen/physics-probe-code/blob/main/supplement_full_paco_20261112/code/RUN_COMMANDS.md) | | Temporal, viewpoint, shape, and material controls | [Observation commands](https://github.com/vid-gen/physics-probe-code/blob/main/code/observation_controls/RUN_COMMANDS.md) | | Audio and touch | [Audio/tactile commands](https://github.com/vid-gen/physics-probe-code/blob/main/code/audio_tactile/RUN_COMMANDS.md) | | IntPhys2, SSv2, Physion++, and future prediction | [Event/future commands](https://github.com/vid-gen/physics-probe-code/blob/main/code/events_physion_depth/RUN_COMMANDS.md) | | Native depth | [Depth commands](https://github.com/vid-gen/physics-probe-code/blob/main/code/events_physion_depth/depth/RUN_COMMANDS_depth.md) | | Pooled deletion/exchange | [Intervention commands](https://github.com/vid-gen/physics-probe-code/blob/main/code/interventions_editors/RUN_COMMANDS.md) | | Native-predictor interventions | [Native commands](https://github.com/vid-gen/physics-probe-code/blob/main/code/interventions_editors/native/RUN_COMMANDS_native.md) | Within each workflow: 1. Read the supplied sample and split definitions. 2. Extract frozen features using the selected model, input resolution, layer, pooling, and noise setting. 3. Apply the corresponding head and its fitted preprocessing; apply an editor when the experiment calls for an intervention. 4. Save the regenerated predictions, then run the task's metric and figure scripts. Scripts that replay saved predictions or feature caches require those outputs to be generated first. The minimal artifact release supplies trained components and manifests; the runtime outputs are created locally. Some task guides retain the historical working-directory layouts used by the experiments, so set their root-path options to your installed inputs before running. ## Details needed for faithful reuse ### Selected heads and layer/scale experiments The release retains selected task heads and the additional layers and backbone sizes used in the paper's layer/scale experiments. The selected Genesis state/parameter/direction package includes 798 heads. Observation-control heads use the paper's MLP readout. For a configuration whose trained head was not retained in the experiment records, rerun its training entry point with the supplied split and selection protocol; see [the component rebuilding guide](https://github.com/vid-gen/physics-probe-code/blob/main/DELETED_MATERIALS_AND_REBUILD.md). Full-PACO packages contain the retained paper configurations, including the LTX-2.5 mass layer comparison. Use the mapping files to distinguish them from the original material subset used by other layer/readout comparisons. ### Material MLP preprocessing and thresholds The original material-MLP run saved the projection weights and decision thresholds. It did not save the input standardizer. Rebuild the standardizer from the same training instances and extracted features: 1. Apply the original row-wise L2 normalization. 2. Estimate the mean and standard deviation on the training features in float64, using `preprocess` in `code/visual_properties_layers_scale/layerwise/image_properties/material_mlp/m2_mlp.py` for the exact normalization and zero-variance handling. 3. Apply those training statistics to every split and load the three seed-specific projection weights. 4. For each material pair, average the three cosine-similarity scores and classify it as the same material when `score >= threshold`. The installed inference JSON identifies the feature key, three weight paths, and threshold. Use that threshold to reproduce the selected configuration. Any newly fitted configuration must select its threshold on the development split. ### IntPhys2 and SSv2 thresholds IntPhys2 `selection_log.json` files retain the selected fold settings and the threshold/centered-threshold values used for scoring: 60 records for each of the six evaluated models. These values are part of the trained readout configuration. The SSv2 release retains 18 selected configurations: six models with R0, R1, and R3 heads. Each `R*_selection.json` supplies per-seed and ensemble thresholds. The checkpoint supplies the head states; development predictions are regenerated. After regenerating SSv2 features, the release-compatible evaluator reuses the stored thresholds: ```bash python code/events_physion_depth/ssv2/readout/readout_ssv2.py --row vjepa21_vitl --head R0 --run-remaining --reuse-selected --selected-root readouts/events_physion_depth/ssv2 --feature-dir outputs/ssv2_features/vjepa21_vitl --splits manifests/events_physion_depth/ssv2/splits.csv --results-root outputs/ssv2_reused --no-cache ``` Set `--feature-dir` and `--splits` to the actual regenerated feature directory and installed split CSV. The evaluator validates the model, head, layer/noise selection, feature/scaler dimensions, seed order, and threshold count. It writes new `_reused.json` outputs and preserves the released selection files. `--dev-only` regenerates development predictions without opening test features. Retraining uses the existing training mode and calibrates on development data. ### Pooled LEACE editors The pooled editor files retain fitted eraser parameters and feature-coordinate transforms. Sample feature matrices and random perturbation arrays are regenerated from the frozen backbone features and the specified random seed. For a future head with preprocessing parameters `pp_mean`, `pp_scale`, and `components`, reconstruct the reduced feature coordinates as: ```python s = (features - head["pp_mean"]) / head["pp_scale"] z = s @ head["components"].T component = ((z - editor_mean) @ editor_a) @ editor_b.T z_deleted = z - strength * component ``` Donor exchange replaces the recipient component by the matched donor's component at the specified strength. Use the released pairing and split definitions. The selected backbone layer, preprocessing, token pooling, sample order, and PCA coordinate system must match the fitted editor. The `random_delta__*` arrays and `z_pca16` matrix are produced by the original edit/control pipeline. Run the extraction/readout/edit stages before saved-coordinate replay scripts. Match the recorded seed and random-draw order when regenerating random controls. ### Native V-JEPA 2.1 interventions Obtain the official encoder and native predictor. Generate context tokens, fit or load the supplied readouts/editors, apply the intervention to context tokens, and run the frozen predictor. Evaluate its predicted future tokens with the fixed future readout. The main package supplies the original friction and rotation trajectories; the decorrelated-friction package supplies the separate decorrelation condition. The native extraction entry point is `code/interventions_editors/native/extract.py`; supported experiment scene names include `friction`, `rotation`, and `friction_p14`. Follow the native command guide for their inputs and edit settings. ## Acknowledgements ## Citation ## License