ELVIA.Evidence Atlas
ICML 2025ELVIA assessment Major

EEG-Language Pretraining for Highly Label-Efficient Clinical Phenotyping

Sam Gijsen, Kerstin Ritter

ELVIA analysis

Independent review pending

The published all-pairs sum defining the principal contrastive alignment objective is invariant to the identity of paired observations and attains its minimum at uniform similarities. A legal normalized-embedding example therefore favors collapse over correct pairing. This is Major for the core mathematical definition, without establishing that the historical experiments used it. The pinned MIL implementation also differs substantively from the published positive-aggregation loss; its historical empirical impact remains unresolved.

Problem 1. Eq9 all-pairs sum loses pair identity

Major
Evidence and reasoning

Problem statement

For batch size B,B, the paper uses normalized EEG and text embeddings e^j,l^k\hat e_j,\hat l_k in a common space. Let pjk=exp⁡(e^j⊤l^k/τ)∑m=1Bexp⁡(e^j⊤l^m/τ),τ>0.p_{jk}=\frac{\exp(\hat e_j^\top\hat l_k/\tau)} {\sum_{m=1}^B\exp(\hat e_j^\top\hat l_m/\tau)},\qquad \tau>0. The reverse direction uses the analogous text-to-EEG row softmax, denoted p~jk.\widetilde p_{jk}. Equations (7)–(8) define negative log probabilities. Equation (9) then states Lalign=12B∑j=1B∑k=1B[−log⁡pjk−log⁡p~jk]. L_{\mathrm{align}} =\frac{1}{2B}\sum_{j=1}^B\sum_{k=1}^B [-\log p_{jk}-\log\widetilde p_{jk}]. The double sum and absence of a positive-pair mask were confirmed visually. This is the ELMe,l_{e,l} strategy; the separate orthogonal regularizer discussed for ELMl_l does not impose an additional constraint on this example.

ELMe,l contrastive paired alignment§2.1.1.

B=2,B=2,d=256d=256,unit EEG/text vectors,τ=0.3.\tau=0.3. ELMe,l lacks the separate ELMl orthogonal restriction.

Proof

Equation (9), p. 4, does not implement the paired alignment described in Section 2.1.1. The supported assessment is Major for this central mathematical definition.

For any strictly positive probability vector (p1,…,pB)(p_1,\ldots,p_B) summing to one, concavity of the logarithm gives −∑k=1Blog⁡pk≥Blog⁡B,-\sum_{k=1}^B\log p_k\geq B\log B, with equality exactly at pk=1/B.p_k=1/B. Applying this to every row in both directions yields Lalign≥Blog⁡B.L_{\mathrm{align}}\geq B\log B. Equal cross-modal similarities attain the bound. In particular, setting all normalized embeddings equal is allowed and is a global minimizer. Independently permuting text examples only permutes entries/rows in the full sums, leaving the objective unchanged. It therefore contains no information about which EEG belongs to which text.

A complete admissible finite example has B=2,B=2, d=256,d=256, τ=0.3\tau=0.3 and e^1=l^1=(1,0,…,0),e^2=l^2=(−1,0,…,0).\hat e_1=\hat l_1=(1,0,\ldots,0),\qquad \hat e_2=\hat l_2=(-1,0,\ldots,0). All norms are one, all cosine similarities lie in [−1,1],[-1,1], and the correct-pair probability is q=(1+exp⁡(−2/τ))−1.q=(1+\exp(-2/\tau))^{-1}. the displayed formula gives −log⁡q−log⁡(1−q)=6.6692103160.-\log q-\log(1-q)=6.6692103160. Setting all four unit vectors equal gives 2log⁡2=1.3862943611,2\log2=1.3862943611, strictly lower. Minimizing the stated objective thus favors losing discrimination rather than retaining the strongly correct pairings in this legal example. Parent calculation output: .

□\square

Possible revision

Single diagonal sum restores paired-softmax distinction, not historical soft-target implementation.

Problem 2. MIL mean-log versus log-mean discrepancy

Minor
Evidence and reasoning

Problem statement

For batch size B,B, the paper uses normalized EEG and text embeddings e^j,l^k\hat e_j,\hat l_k in a common space. Let pjk=exp⁡(e^j⊤l^k/τ)∑m=1Bexp⁡(e^j⊤l^m/τ),τ>0.p_{jk}=\frac{\exp(\hat e_j^\top\hat l_k/\tau)} {\sum_{m=1}^B\exp(\hat e_j^\top\hat l_m/\tau)},\qquad \tau>0. The reverse direction uses the analogous text-to-EEG row softmax, denoted p~jk.\widetilde p_{jk}. Equations (7)–(8) define negative log probabilities. Equation (9) then states Lalign=12B∑j=1B∑k=1B[−log⁡pjk−log⁡p~jk]. L_{\mathrm{align}} =\frac{1}{2B}\sum_{j=1}^B\sum_{k=1}^B [-\log p_{jk}-\log\widetilde p_{jk}]. The double sum and absence of a positive-pair mask were confirmed visually. This is the ELMe,l_{e,l} strategy; the separate orthogonal regularizer discussed for ELMl_l does not impose an additional constraint on this example.

MIL selective positive aggregation.

Nonempty positive sets,τ=0.3\tau=0.3,unit vectors,valid crop counts.

Proof

Equations (10)–(11), p. 4, and the pinned loss implementation apply different objectives to multiple positives.

For an anchor with m≥1m\geq1 positive samples P\mathcal P and softmax probabilities pj,p_j, the paper uses Lpaper=−log⁡(1m∑j∈Ppj).L_{\mathrm{paper}} =-\log\left(\frac1m\sum_{j\in\mathcal P}p_j\right). In `models/loss.py`, lines 9090–100,100, masked `log_softmax` values are averaged, giving Lrelease=−1m∑j∈Plog⁡pj.L_{\mathrm{release}}=-\frac1m\sum_{j\in\mathcal P}\log p_j. The configured MIL training route calls this class (trainer/configuration evidence is bound in verification). Jensen’s inequality gives Lrelease≥Lpaper,L_{\mathrm{release}}\geq L_{\mathrm{paper}}, with equality for equal positive probabilities, including m=1.m=1.

A legal example uses EEG vectors (1,0),(−1,0),(0,1)(1,0),(-1,0),(0,1) with recording IDs (A,A,B)(A,A,B) and text vectors (1,0),(0,1)(1,0),(0,1) with IDs (A,B),(A,B), padded to 256256 dimensions. Every vector has unit norm, every anchor has a positive, crop counts are within the stated maxima, and τ=0.3.\tau=0.3. For the first text anchor the probabilities are (0.964369789, 0.001227290, 0.034402921),P={1,2}.(0.964369789,\ 0.001227290,\ 0.034402921), \quad\mathcal P=\{1,2\}. The two losses are respectively 0.72815581530.7281558153 and 3.3696137927.3.3696137927. For the first scaled logit, their partial derivatives are ∂Lpaper∂z1=p1−p1p1+p2=−0.0343591948,∂Lrelease∂z1=p1−12=0.464369789.\frac{\partial L_{\mathrm{paper}}}{\partial z_1} =p_1-\frac{p_1}{p_1+p_2}=-0.0343591948,\qquad \frac{\partial L_{\mathrm{release}}}{\partial z_1} =p_1-\frac12=0.464369789. These are derivatives with respect to logits, not claims about complete embedding-gradient trajectories. They show the objectives are not related by a constant scale or offset. The auxiliary’s complete bidirectional example gives 0.77235013150.7723501315 versus 1.4327146258.1.4327146258. Parent logit-partial results are ; the bidirectional output is .

The paper motivates MIL as relaxing alignment of every individual positive pair. The release uses an all-positive log loss with a different weighting preference. This is a supported Minor release-to-method discrepancy; the effect on the published metrics and positive-aggregation ablation remains Needs Evidence. A later source change or a miswritten publication formula could explain the mismatch. No historical run was reconstructed.

The exact expression log⁡∑jezj−log⁡∑j∈Pezj+log⁡m\log\sum_j e^{z_j}-\log\sum_{j\in\mathcal P}e^{z_j}+\log m implements the paper’s per-anchor loss. Its algebra is verified here; changing the historical algorithm or claiming restored benchmark performance is not.

□\square

Possible revision

Full-logsumexp minus positive-logsumexp pluslogm implements stated equation only.

Supporting record & provenance

Work status

Current version

Version 1

Minhao Liu · Initial report · Version 1

Independent review pending

Original claim and review scope

Therefore, we introduce a MIL alignment strategy that builds on ELMe,l and accommodates multiple positive samples, allowing for more nuanced multimodal relationships.

{'label': 'PMLR 267 / ICML 2025 published proceedings version', 'publisher_publication_date': '2025/10/06', 'pages': '19480-19504', 'landing_url': 'https://proceedings.mlr.press/v267/gijsen25a.html', 'pdf_url': 'https://raw.githubusercontent.com/mlresearch/v267/main/assets/gijsen25a/gijsen25a.pdf', 'accessed_utc': '2026-10-24T14:10:14.547436+00:00'}; PDF p. 4

Actual review scope

The recorded inspection concerns these source locations: PDF pp. 3-4Eqs7-9; Eqs10-11;p. 4;models/loss.py90-121.

Submit an author revisionContribute a review