ELVIA.Evidence Atlas
ICML 2025ELVIA assessment Major

Neural Encoding and Decoding at Scale

Yizi Zhang, Yanchen Wang, Mehdi Azabou, Alexandre Andre, Zixuan Wang, Hanrui Lyu, International Brain Laboratory, Eva Dyer, Department of Statistics Liam Paninski, Cole Hurwitz

ELVIA analysis

Independent review pending

The conditional-prediction objective is well motivated, but the pinned public release differs from the paper in within-modality input masking and in the interpretation of continuous-behavior R-squared. Its unimodal output modules are also omitted from normal optimizer and checkpoint traversal. Independent finite calculations and a CPU PyTorch toy validate these mechanisms and limited repairs. Historical benchmark effects remain unverified, and the paper’s empirical strengths and narrower supported interpretations are retained. Adjudication remains pending.

Problem 1. Within-modality masking conditions on the other modality in pinned source

Major
Evidence and reasoning

Problem statement

Inspection subject recorded in the report

The within-modality reconstruction task is described as conditioning on the observed part of that modality. The released masking and input path should implement that conditional information set. Multimodal mode with ordinary self-spike or self-behavior task and no selected-variable encoding override. In the inspected code 11 means masked, 00 visible; modalities in the multimodal input map all reach the shared transformer. Counterexample: masked XX is an equiprobable bit, same-modality visible features constant, Y=X.Y=X.

Proof

Section 3.2 and Figure 1 define within-modality reconstruction as E[Xmasked∣Xvisible]\mathbb E[X_{\rm masked}\mid X_{\rm visible}] or its behavioral counterpart, with the other modality absent. The pinned implementation leaves the other modality visible.

In `src/trainer/base.py`, lines 100100–106106 set a random neural mask for `self-spike` and zero masks for all behavioral modalities; `self-behavior` analogously leaves spikes unmasked. Zero means visible, as confirmed by `src/multi_modal/mm.py`, lines 152152–160.160. All multimodal inputs are concatenated and attend to one another. Hence neural reconstruction can use E[Xmasked∣Xvisible,Y].\mathbb E[X_{\rm masked}\mid X_{\rm visible},Y]. The mixed-batch path at lines 301301–315315 of the same model file has the same information exposure.

This changes the task mathematically. Let a masked neural value XX be a uniform bit, let visible same-modality information be constant, and let behavior satisfy Y=X.Y=X. The intended within-modality optimal MSE is 1/4;1/4; with visible behavior it is zero. The independent two-outcome calculation verifies both values. Thus the two masks cannot be treated as equivalent regularizers or as identifying the same conditional expectation. This is a Major method-to-source discrepancy, particularly for interpreting the masking ablation in Table 2. It is not test-set leakage: it concerns information supplied during an explicitly multimodal training task.

The source also uniformly samples five named tasks, separating the two within-modality variants, rather than the four categories drawn uniformly in Equation (1). Their aggregate probability is consequently 2/5,2/5, not 1/4,1/4, while encoding and decoding each receive 1/5.1/5. To implement the paper literally, input visibility must be separated from the loss-selection mask: hide the other modality completely but compute reconstruction loss only for the selected within-modality targets. The source already distinguishes these concepts for selected-variable encoding. Alternatively, revise the stated conditionals and report the actual sampling weights. The finite example verifies the information-set distinction; neither a patched training run nor a historical mask reconstruction was performed.

□\square

Possible revision

Separate input masking from loss masking or revise claimed conditionals and task probabilities.

Problem 2. Unimodal output modules absent from optimizer and checkpoint traversal

Major
Evidence and reasoning

Problem statement

Inspection subject recorded in the report

The unimodal baseline's session-specific output modules should be included in the optimizer and checkpoint traversal required to train and preserve those modules. The unimodal encoding/decoding branch calls init_unimodal_stitcher before optimizer construction. Its newly constructed decoder modules are not the distinct registered multimodal modules. A registered ParameterDict nested inside an ordinary parent dict is still not reachable from the parent module traversal.

Proof

The unimodal setup stores session-specific output decoders and temporal pooling weights inside ordinary Python dictionaries. They are not discovered by the model’s parameter and state traversal.

In `src/multi_modal/mm.py`, lines 114114–124124 create ordinary dictionaries for the output decoders and temporal pooling weights, then insert decoder modules and nested parameter dictionaries. These components are used in the forward path at lines 253253–277.277. But `src/train.py`, lines 297297–302302 constructs AdamW solely from `model.parameters()`, and `src/trainer/base.py`, lines 544544–561561 saves `model.state_dict()`. No manual addition of those dictionary-held components was found along these paths. By contrast, multimodal encoders are in a registered module dictionary, and their output modules and pooling parameters are registered attributes.

An independent PyTorch model reproduces the container mechanism without importing any NEDS code. Its dictionary-held output head has gradient norm 129,129, yet a real AdamW step changes its weight by exactly zero. Its pooling parameter also remains unchanged, and the checkpoint contains only the registered feature layer. Reloading that state into an otherwise identical model initialized with different fixed weights changes predictions by as much as 21.8921.89 in this toy. Using registered module dictionaries instead gives nonzero head and pooling updates, includes all relevant keys in the checkpoint, and reproduces predictions exactly after reload. These are actual CPU results, not predicted test outcomes.

The issue is Major for reproducing a trained unimodal comparator. An upstream encoder can still learn through a fixed random output projection, so the code is not necessarily unable to fit any task. Nor must a fresh reload differ if the same initialization happens to be recreated. The stronger, supported point is that the declared output heads are neither optimizer-managed nor preserved by the inspected checkpoint path, unlike the multimodal counterpart. This compromises attribution of a reproduced multimodal advantage to the training objective alone. Registration and checkpoint-roundtrip checks repair the toy mechanism; original checkpoints, benchmark effects and historical implementation remain unverified.

□\square

Possible revision

Register nested modules/parameters and validate optimizer membership plus roundtrip predictions.

Problem 3. Raw flattened R2 does not subtract the trial-average time course

Major
Evidence and reasoning

Problem statement

Inspection subject recorded in the report

The stated single-trial continuous-behavior R2 should account for the trial-average time course. The released metric must implement that transformation before taking the paired score. The definite code claim concerns the returned scalar from the inspected release. For the counterexample both trials share one task condition; the observed mean time course is (0,0,1010), so global-over-trials and condition-specific trial averages coincide. The stronger scientific interpretation means residual variance after removing that time course, rather than ordinary total-sample variance about one grand mean.

Proof

Section 4.1 says continuous decoding R2R^{2} accounts for the trial average, but gives no separate residual-metric equation. If this means removing the mean time course, the pinned evaluation does not implement it: it returns ordinary R2R^{2} after flattening all trial/time values.

`src/utils/eval_utils.py`, line 762762 passes raw `y` and `y_pred` into the flattening metric. The wrapper at lines 917917–943943 returns this value. Its `subtract_psth` option affects a separate plotting routine and never changes the returned scalar. The main evaluation passes `subtract="task"`, so that option’s presence does not resolve the mismatch. Training-validation selection likewise uses flattened raw values in `src/utils/utils.py`, lines 214214–221.221.

For a concrete example take two observed trials (−1,9)(-1,9) and (1,11)(1,11) and predict their shared average (0,10)(0,10) in both trials. Ordinary flattened R2R^{2} is 1−4104=2526≃.961538.1-\frac{4}{104}=\frac{25}{26}\simeq .961538. After subtracting the average time course, the true residuals are (−1,−1)(-1,-1) and (1,1)(1,1) while the predicted residuals are zero, yielding R2=0.R^{2}=0. A model can therefore score highly under the implemented metric while explaining none of this trial-to-trial variation. This does not make raw R2R^{2} an invalid metric; it makes the stronger stated interpretation unsupported by that computation. The distinction is Major for claims about residual single-trial variability. If the wording instead meant ordinary centering about one grand mean, it needs clarification rather than a change to that raw metric. The intended residual interpretation and whether the published scores used this release remain Needs Evidence.

The test helper also places the final model call outside the batch loop in its behavioral path (lines 400400–447447); it retains only the last batch. Its current loader requests 10,00010{,}000 examples per batch, which can conceal the issue on small sessions. This is a conditional scalability defect, not evidence that the stated IBL sessions actually crossed that limit.

□\square

Possible revision

Specify and separately compute raw and residual metrics consistently across methods.

Problem 4. Singleton session group skipped after scalar squeeze

Minor
Evidence and reasoning

Problem statement

Inspection subject recorded in the report

A session group with one example is an admitted group and should retain the same embedding, pooling and validation processing as a larger group. A batch has exactly one sample for some session, e.g. session IDs (a,b,b). np.argwhere returns shape(1,1,11), and unqualified squeeze makes its index a zero-dimensional scalar.

Proof

Singleton session groups are mishandled in several routines: `argwhere(...).squeeze()` produces a scalar when a session has exactly one example. The subsequent positive-dimension guard skips session embeddings and temporal pooling weights in `encoder_embeddings.py`, and drops such groups during validation in `trainer/base.py`, lines 333333–358.358. An independent array-shape check confirms this case; a flat index array preserves the group. In the pooling path, skipped weights remain zero, leaving only the subsequent decoder bias for that group. This is a Minor but concrete boundary defect whose prevalence depends on batching; full-batch single-session evaluation with many trials avoids it.

□\square

Possible revision

Use one-dimensional indices and count-based guards.

Problem 5. Embedding ablation description overstates consistent benefit

Minor
Evidence and reasoning

Problem statement

Inspection subject recorded in the report

The embedding ablation is described as showing a consistent benefit across tasks. That description must agree with each displayed task comparison. Compare single-session ablations with single-session NEDS, not the larger multi-session model. Positive point differences are not treated as significance tests.

Proof

Table 11 does not support improvement from embeddings across all five tasks. Removing temporal embeddings raises encoding from .20.20 to .24.24 bps, and removing both temporal and modality embeddings raises it to .25;.25; choice accuracy also rises from .84.84 to .86.86 in the latter row. Wheel and whisker decoding decline. The correct description is a task-dependent tradeoff, with paired session-level uncertainty needed before making significance claims. Table 2 similarly shows unchanged rounded choice accuracy when within-modality masking is removed. These are Minor reporting qualifications, not a finding that the measurements are false.

□\square

Possible revision

Describe task tradeoffs and report paired uncertainty.

Supporting record & provenance

Work status

Current version

Version 1

Minhao Liu · Initial report · Version 1

Independent review pending

Original claim and review scope

In comparison to other large-scale models, we demonstrate that NEDS achieves state-of-the-art performance for both encoding and decoding when pretrained on multi-animal data and then fine-tuned on new animals.

Published ICML 2025 proceedings PDF (PMLR 267); PDF p. 1, Abstract

Actual review scope

The recorded inspection concerns these source locations: Sec3.2 Fig1; trainer/base.py100-106; mm.py152-160,301-315; mm.py114-124,253-277; train.py297-302; trainer/base.py544-561; Sec4.1; eval_utils.py762,917-943; utils.py214-221; encoder_embeddings.py group guards; trainer/base.py333-358; AppendixG Table 11.

Submit an author revisionContribute a review