ELVIA analysis of: Neural Encoding and Decoding at Scale — Problem 5: Embedding ablation description overstates consistent benefit
Original paper: Yizi Zhang; Yanchen Wang; Mehdi Azabou; Alexandre Andre; Zixuan Wang; Hanrui Lyu; International Brain Laboratory; Eva Dyer; Department of Statistics Liam Paninski; Cole Hurwitz. Neural Encoding and Decoding at Scale. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/zhang25bw.html
Source version: Published ICML 2025 proceedings PDF (PMLR 267)
Source location: AppendixG Table 11
Question: What does the recorded analysis establish about “Embedding ablation description overstates consistent benefit”?
Bounded finding:
Removing embeddings improves reported encoding and some discrete scores while continuous decoding declines.
Recorded check:
Table 11 does not support improvement from embeddings across all five tasks. Removing temporal embeddings raises encoding from \(.20\) to \(.24\) bps, and removing both temporal and modality embeddings raises it to \(.25\); choice accuracy also rises from \(.84\) to \(.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.
Case-wide limitations:
- P1 — Within-modality masking conditions on the other modality in pinned source — Counterevidence: This is training-task mismatch, not test-set leakage; release postdates paper
- P1 — Within-modality masking conditions on the other modality in pinned source — Counterevidence and alternatives: A jointly conditioned reconstruction task is itself legitimate; it is different from the specifically printed E[Xmasked|Xvisible]. This is not held-out test leakage. No empirical dependence on extra information is guaranteed, and the public 2026 snapshot is not established as the 2025 experimental code.
- P2 — Unimodal output modules absent from optimizer and checkpoint traversal — Counterevidence: Encoder can learn through a fixed head; matching initialization can accidentally reproduce head; no historical version identity assumed
- P2 — Unimodal output modules absent from optimizer and checkpoint traversal — Counterevidence and alternatives: Autograd still propagates through a fixed head, so the encoder can learn. Recreating the same hidden initialization may reproduce a fixed head by coincidence, and explicit external registration could in principle repair it, but none occurs along the checked construction/update/save paths. No historical checkpoint score change is asserted.
- P3 — Raw flattened R2 does not subtract the trial-average time course — Counterevidence: Raw R2 is a valid different metric; published-run implementation unknown
- P3 — Raw flattened R2 does not subtract the trial-average time course — Counterevidence: The paper gives no separate residual-metric equation; trial-average wording could mean ordinary centering. Major scope is limited to residual-variability interpretation.
- P3 — Raw flattened R2 does not subtract the trial-average time course — Counterevidence and alternatives: The paper gives no separate residual-metric equation. Accounting for the trial average could be loose wording for ordinary centering; its intended interpretation therefore needs clarification. Raw R2 is valid for total predictive variation and is not itself an incorrect score. A real pretrained dataset might differ from the checked preparation path, and the historical code/score correspondence is unknown.
- P4 — Singleton session group skipped after scalar squeeze — Counterevidence: Many-example single-session batches avoid this boundary
- P4 — Singleton session group skipped after scalar squeeze — Counterevidence and alternatives: Large single-session batches avoid the edge case. The prevalence depends on sampler composition, and no missing-example frequency is inferred from raw data. A decoder bias, if present, still supplies a constant output.
- P5 — Embedding ablation description overstates consistent benefit — Counterevidence and alternatives: Generally improve can be read as an overall qualitative statement rather than strict dominance; this is a wording qualification, not evidence that measured rows are false. Marginal standard deviations do not identify the uncertainty of paired session differences.
- Limits: No original training or predictions reproduced
- Limits: No theorem appendix; scoring-rule algebra checked
- Limits: Static reading only
- Limits: Relevant sections traced; not a complete repository audit
- Limits: Historical-run identity not assumed
- Limits: Independent CPU toy modules only
- Limits: No assertion of measured leakage or exact corrected neuron-hours
- Limits: No exhaustive comparison-code or erratum search
- Limits: No NEDS code/checkpoint executed, no raw session or historical experiment reproduced. Scientific interpretation of trial-average wording and historical score impact remain Needs Evidence. Broader initial-review data/classifier/baseline observations are not presented as a new whole-paper audit.
- The original report's complete scope, counterevidence and unresolved questions are retained below.
- This import checks publication format and identity; it does not repeat scientific review.
- Independent human scientific review is pending; author adoption has not been requested.
Source problem ID: p5
Source report index: 5
Original source excerpts (verbatim):
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.
Source: Published ICML 2025 proceedings PDF (PMLR 267)
Locator: PDF p. 1, Abstract
Source PDF SHA-256: 004ff2eaa42ca3fb04d757673dad7e118d32131270f166b54047fcc160bf2ea8
Review status: Independent review pending
Case: icml2025-0310-neural-encoding-and-decoding-at-scale
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0310-neural-encoding-and-decoding-at-scale.html#problem-5
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0310-neural-encoding-and-decoding-at-scale/records/icml2025-0310-neural-encoding-and-decoding-at-scale.r1.json
Canonical record SHA-256: d4b070c74a4fd997103711b60e2e2ca6acf1a11469f4d3a8e33c139d7bc2e735
The page follows the latest revision; the versioned record identifies this snapshot.
Analysis citation:
Minhao Liu. ELVIA analysis of: Neural Encoding and Decoding at Scale — Problem 5: Embedding ablation description overstates consistent benefit. ELVIA, 2026. https://elvia-atlas.org/atlas/cases/icml2025-0310-neural-encoding-and-decoding-at-scale.html#problem-5
Case icml2025-0310-neural-encoding-and-decoding-at-scale; revision 1; Independent review pending. Assessment is limited to the inspected claims. Versioned record: https://elvia-atlas.org/atlas/evidence/icml2025-0310-neural-encoding-and-decoding-at-scale/records/icml2025-0310-neural-encoding-and-decoding-at-scale.r1.json
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.
Full finding analysis:
Table 11 does not support improvement from embeddings across all five tasks. Removing temporal embeddings raises encoding from \(.20\) to \(.24\) bps, and removing both temporal and modality embeddings raises it to \(.25\); choice accuracy also rises from \(.84\) to \(.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.
Finding and scope:
Removing embeddings improves reported encoding and some discrete scores while continuous decoding declines.
Recorded correction and verification scope:
Describe task tradeoffs and report paired uncertainty.
Displayed problem statement:
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.
Complete retained report:
Abstract: 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.
Author: AI-assisted technical review
Title: Technical Verification: Neural Encoding and Decoding at Scale
# Paper identity and reviewed version
This report concerns Neural Encoding and Decoding at Scale, by Yizi Zhang et al., ICML 2025, PMLR volume 267; identifier `I25-43679`, OpenReview `vOdz3zhSCj`. The reviewed object is the frozen published proceedings PDF, retrieved on 25 October 2026. Page references below are one-based PDF pages, which coincide with the internal page numbers. They are not the continuous PMLR volume pagination.
# Scope and what the objective supports
NEDS trains a shared transformer with neural, behavioral, within-modality and cross-modal reconstruction tasks, then adapts session-specific components to new animals. Main Sections 1–7 and Appendices A–H were read. Relevant architecture, masking, optimizer, checkpoint, data-split and metric paths were statically traced in the frozen public NEDS source at commit `61d2ef65556dbbc2b828d542f19bd4e7134c92f3`, dated 20 March 2026. This later release is not presumed identical to the code that generated the 2025 results. No author module, training program or model checkpoint was executed. Independent calculations use only small arrays and a newly written CPU PyTorch example.
The core statistical motivation is sound. If a Poisson prediction has rate \(r>0\) and target conditional mean \(\mu\), its expected negative log-likelihood, apart from a constant, is \[r-\mu\log r,\qquad \frac{\partial}{\partial r}(r-\mu\log r)=1-\mu/r.\] For \(\mu>0\) it is minimized at \(r=\mu\), even when the true count distribution is not Poisson. MSE similarly targets a conditional mean; categorical cross-entropy targets class probabilities. A finite check with equally likely counts \(0,0,6\) confirms the Poisson quasi-loss minimum at mean 2 among the tested rates. The code uses log-rate Poisson loss and exponentiates predictions for evaluation, resolving the positive-rate link only implicit in Equation (1).
These objectives justify conditional prediction under the actual input masks. They do not by themselves establish a mutually compatible joint generative distribution, causal influence of behavior, or transfer without fine-tuning. The animal-level pretraining holdout is a meaningful strength. The reported evaluation then adapts on 70% of each held-out animal’s trials, selects settings on 10% and tests on 20%. The inspected main data-preparation path implements this random trial partition and excludes listed test sessions from multi-session pretraining. Exact identifiers and sample membership were not independently compared with raw data.
# The released within-modality task uses additional information
Problem 1 (The source implements a different conditional reconstruction task). Section 3.2 and Figure 1 define within-modality reconstruction as \(\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 100–106 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 152–160. All multimodal inputs are concatenated and attend to one another. Hence neural reconstruction can use \(\mathbb E[X_{\rm masked}\mid X_{\rm visible},Y]\). The mixed-batch path at lines 301–315 of the same model file has the same information exposure.
This changes the task mathematically. Let a masked neural value \(X\) be a uniform bit, let visible same-modality information be constant, and let behavior satisfy \(Y=X\). The intended within-modality optimal MSE is \(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\), not \(1/4\), while encoding and decoding each receive \(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.
# Unimodal output heads are not registered model components
Problem 2 (The pinned unimodal baseline omits its output modules from optimization and checkpoints). 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 114–124 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 253–277. But `src/train.py`, lines 297–302 constructs AdamW solely from `model.parameters()`, and `src/trainer/base.py`, lines 544–561 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\), 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.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.
# The returned continuous-behavior metric retains the trial average
Problem 3 (Reported single-trial interpretation and metric implementation differ). Section 4.1 says continuous decoding \(R^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 \(R^2\) after flattening all trial/time values.
`src/utils/eval_utils.py`, line 762 passes raw `y` and `y_pred` into the flattening metric. The wrapper at lines 917–943 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 214–221.
For a concrete example take two observed trials \((-1,9)\) and \((1,11)\) and predict their shared average \((0,10)\) in both trials. Ordinary flattened \(R^2\) is \[1-\frac{4}{104}=\frac{25}{26}\simeq .961538.\] After subtracting the average time course, the true residuals are \((-1,-1)\) and \((1,1)\) while the predicted residuals are zero, yielding \(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 \(R^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.
A repair should specify both metrics explicitly, state how any condition-specific mean is estimated, and use the same definition across models and checkpoint selection. The example verifies the corrected residual calculation, not the paper’s scores. The test helper also places the final model call outside the batch loop in its behavioral path (lines 400–447); it retains only the last batch. Its current loader requests 10,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.
# Additional boundaries and reporting corrections
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 333–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.
Table 11 does not support improvement from embeddings across all five tasks. Removing temporal embeddings raises encoding from \(.20\) to \(.24\) bps, and removing both temporal and modality embeddings raises it to \(.25\); choice accuracy also rises from \(.84\) to \(.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.
The roughly 400,000 neuron-hours stated on page 14 needs an exposure ledger. For session \(s\) with \(N_s\) neurons recorded for \(h_s\) hours, exposure is \(\sum_s N_s h_s\), not \((\sum_s N_s)(\sum_s h_s)\). The latter product of the headline counts, \(27{,}380\times14=383{,}320\), includes cross-session terms. A two-session check with \((N_1,N_2)=(100,200)\) and \((h_1,h_2)=(1,2)\) gives 500 neuron-hours, versus the incorrect product 900. The resemblance to the reported headline warrants reconciliation; an exact corrected dataset exposure cannot be obtained without per-session durations and neuron counts. No specific replacement total is asserted.
The 83% brain-region classification result uses five-fold cross-validation over neurons from the ten already adapted animals, as Section 5.3 discloses. It measures discrimination within that pooled population, not a classifier’s generalization to a new animal excluded from all classifier folds. A leave-animal-out evaluation and controls for firing rate, session identity and embedding dimension would clarify the emergent representation claim. In particular the multimodal feature concatenates input and output weights, whereas each unimodal feature uses only one of them. Neither the confusion matrix nor predictive encoding from a single behavior identifies a causal influence or functional equivalence of brain regions. These are limits on interpretation, not demonstrated contamination of the reported classifier.
# Evidence that survives and conclusion
The study provides animal-level pretraining separation, several linear and transformer comparisons, extensive validation-based searches, and useful ablations. Appendix D explicitly checks a larger single-session model and reports worse performance, so the pretraining gain cannot simply be dismissed as an unexamined capacity increase. Appendix F also openly states that the POYO+ comparison uses trial-aligned windows without temporal jitter, and that NDT2 is reimplemented. The ranking is therefore for those specified adaptations and budgets. Table 10’s point estimates favor NEDS, but marginal standard errors alone do not establish paired statistical significance across ten sessions. Appendix H provides a useful separately trained monkey example, not evidence of mouse-to-monkey zero-shot transfer.
The supported concerns are different input conditionals for within-modality masking, unregistered unimodal output components, and a raw returned metric whose stronger residual interpretation needs clarification. Smaller batching and reporting issues also require correction. Independent toy computations establish the local mechanisms and limited repairs. They do not establish the magnitude of any historical score change or refute the value of a unified multimodal model. Original-run reconstruction, patched benchmark evaluation, raw data audits, brain-region classifier replication and author adoption remain unverified; scientific adjudication is pending.
1 Yizi Zhang et al., Neural Encoding and Decoding at Scale, PMLR 267 (2025), published proceedings version. https://proceedings.mlr.press/v267/zhang25bw.html.
# Scope and limitations
Source code supplied by the authors was not executed. The calculation is an independent finite or analytic diagnostic, not a reproduction of the original training experiments. A focused check revisited the stated Problems against the frozen original source, assumptions, decisive arguments, counterevidence and impact boundaries. No human review has occurred; scientific adjudication is pending and author adoption is unknown.
Source PDF SHA-256: 004ff2eaa42ca3fb04d757673dad7e118d32131270f166b54047fcc160bf2ea8
Repair verification: pending
Author adoption: not_requested