File size: 3,649 Bytes
3d3c650
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
license: cc-by-4.0
tags:
  - fmri
  - neuroscience
  - rdm
  - rsa
---

# ds003604 session RDMs

Brain representational dissimilarity matrices for the **ds003604** auditory language fMRI
dataset, one per (task × session), so the fMRI preprocessing never has to be repeated.

**12 of 12 cells present:** `Sem`, `Phon`, `Gram`, `Plaus` × `ses-5`, `ses-7`, `ses-9`.

Each `<Task>/session_rdm_<ses>.npz` contains:

| key | contents |
|---|---|
| `rdm` | the RDM, `(n_stim, n_stim)`, correlation distance. 72×72 for Sem/Phon, 60×60 for Gram/Plaus (perceptual-control trials excluded) |
| `stimuli` | stimulus **filenames**, in RDM row/column order |
| `stimulus_texts` | the stimulus **text**, parallel to `stimuli` — use this if you are feeding a language model, not `stimuli` |
| `trial_types` | condition code per stimulus (e.g. `S_H`, `P_R`, `G_G`, `SP_S`) |
| `semantic_categories` | coarse category per stimulus |
| `n_subjects`, `subject_ids` | cohort behind the RDM (38–98 depending on cell) |
| `metric`, `aggregation` | `correlation`, and how subjects were combined |

---

## ⚠️ These RDMs are dominated by a scanner-run confound

**Do not use them for representational similarity analysis without correcting this first.**

In ds003604 **each stimulus is presented in exactly one scanner run** (for Phon, run-01
carries 48 of the 96 stimuli and run-02 the other 48). Run membership is therefore
perfectly confounded with stimulus identity, and every cross-run stimulus pair also
differs by that run's drift, baseline and scaling. Measured on these files:

```
"different run" predicts brain dissimilarity, Spearman rho:
    Gram   ses-5 +0.866   ses-7 +0.812   ses-9 +0.828
    Plaus  ses-5 +0.741   ses-7 +0.689   ses-9 +0.761
    Phon   ses-5 +0.562   ses-7 +0.488   ses-9 +0.624
    Sem    ses-5 +0.511   ses-7 +0.510   ses-9 +0.601
```

Meanwhile **no stimulus property predicts them**: trial type ≈ −0.02, text length ≈ 0,
lexical overlap ≈ 0, in every cell.

These RDMs correlate across independent subject cohorts at **rho 0.74–0.92** (different
sessions of the same task), which looks like excellent reliability — but run assignment is
fixed by the protocol and so repeats identically for every subject, meaning much of that
reliability is the reliability of an acquisition artefact rather than of brain
representation.

### The fix

Z-score each voxel **within run** before combining runs. Verified on Phon/ses-5 rebuilt
from 28 subjects' raw patterns:

```
standard RDM        vs run model:  rho = +0.562
within-run-normed   vs run model:  rho = -0.041      <- confound removed
standard            vs normed   :  rho = +0.287      <- they are largely different RDMs
```

That last line matters: correcting the confound does not nudge the RDM, it changes it.

**Cohort size is not the issue** — Sem/ses-7 rebuilt from 40 to 98 subjects agrees with
the 40-subject version at rho 0.928.

After correction, alignment between these RDMs and a trained language model peaks at
**+0.022** (early layers, not significant), with a sensible layer profile but ≈0
magnitude. Evidence and scripts:
[`BrainAlign/cdl-devai-results`](https://huggingface.co/datasets/BrainAlign/cdl-devai-results)
(`diagnostics_run_confound`, `diagnostics_layerwise`) and
[`suchirsalhan/cdl-representations-brains-babylms`](https://github.com/suchirsalhan/cdl-representations-brains-babylms)
(`scripts/test_within_run_norm.py`, `scripts/run_confound_check.py`).

The files here are published **uncorrected**, as produced by the pipeline, so that the
correction is an explicit and visible choice rather than something baked in silently.