ELVIA.Evidence Atlas
← Back to analysis

AI context

ELVIA analysis of: Neural Encoding and Decoding at Scale — Problem 3: Raw flattened R2 does not subtract the trial-average time course

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: Sec4.1; eval_utils.py762,917-943; utils.py214-221

Question: What does the recorded analysis establish about “Raw flattened R2 does not subtract the trial-average time course”?
Bounded finding:
Mean-only predictor rawR2=.961538 but residualR2=0; subtract flag affects plots only.

Recorded check:
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.
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.

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: p3
Source report index: 3

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-3
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.