ELVIA.Evidence Atlas
← Back to analysis

AI context

ELVIA analysis of: EEG-Language Pretraining for Highly Label-Efficient Clinical Phenotyping — Problem 2: MIL mean-log versus log-mean discrepancy

Original paper: Sam Gijsen; Kerstin Ritter. EEG-Language Pretraining for Highly Label-Efficient Clinical Phenotyping. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/gijsen25a.html
Source version: {'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'}
Source location: Eqs10-11;p. 4;models/loss.py90-121

Question: What does the recorded analysis establish about “MIL mean-log versus log-mean discrepancy”?
Bounded finding:
Objectives differ substantively, not by a constant multiplier. Confirmed release-to-paper discrepancy; published metrics unresolved.

Recorded check:
Equations (10)–(11), p. 4, and the pinned loss implementation apply different objectives to multiple positives.
For an anchor with \(m\geq1\) positive samples \(\mathcal P\) and softmax probabilities \(p_j\), the paper uses \[L_{\mathrm{paper}}
=-\log\left(\frac1m\sum_{j\in\mathcal P}p_j\right).\] In `models/loss.py`, lines 90–100, masked `log_softmax` values are averaged, giving \[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 \(L_{\mathrm{release}}\geq L_{\mathrm{paper}}\), with equality for equal positive probabilities, including \(m=1\).
A legal example uses EEG vectors \((1,0),(-1,0),(0,1)\) with recording IDs \((A,A,B)\) and text vectors \((1,0),(0,1)\) with IDs \((A,B)\), padded to 256 dimensions. Every vector has unit norm, every anchor has a positive, crop counts are within the stated maxima, and \(\tau=0.3\). For the first text anchor the probabilities are \[(0.964369789,\ 0.001227290,\ 0.034402921),
\quad\mathcal P=\{1,2\}.\] The two losses are respectively \(0.7281558153\) and \(3.3696137927\). For the first scaled logit, their partial derivatives are \[\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.7723501315\) versus \(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\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.

Case-wide limitations:
- P1 — Eq9 all-pairs sum loses pair identity — Counterevidence: Intended k=j plausible; release uses soft-target crossentropy not literalEq9; MIL formulation distinct.
- P2 — MIL mean-log versus log-mean discrepancy — Counterevidence: Equal positive probabilities/m1 coincide; historiccodeversion unknown.
- Limitations: No author-code execution, clinical raw-data audit, training, weights inference or metric reproduction.
- Limitations: Historical source-to-experiment correspondence not established.
- Limitations: No exhaustive bibliography or external erratum search.
- Unresolved claim: Which alignment and MIL objectives generated published tables
- Unresolved claim: Empirical effects of reconciling equations and code
- Not performed: No author-code execution, clinical raw-data audit, training, weights inference or metric reproduction.
- Not performed: Historical source-to-experiment correspondence not established.
- Not performed: No exhaustive bibliography or external erratum search.
- 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: p2
Source report index: 2

Original source excerpts (verbatim):
Therefore, we introduce a MIL alignment strategy that builds on ELMe,l and accommodates multiple positive samples, allowing for more nuanced multimodal relationships.
Source: {'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'}
Locator: PDF p. 4
Source PDF SHA-256: 0cd4655ea9e25bb0484ab753290af4e3fd4e3bd02d2ec06182135c35e831c8cf

Review status: Independent review pending
Case: icml2025-0154-eeg-language-pretraining-for-highly-label-efficient-clinical-pheno
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0154-eeg-language-pretraining-for-highly-label-efficient-clinical-pheno.html#problem-2
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0154-eeg-language-pretraining-for-highly-label-efficient-clinical-pheno/records/icml2025-0154-eeg-language-pretraining-for-highly-label-efficient-clinical-pheno.r1.json
Canonical record SHA-256: 9d7a2646896df758bdcd16fefb01617d81f6780246e18d6ed8bdecab655e9511
The page follows the latest revision; the versioned record identifies this snapshot.