atlas

Research map / Architectures and efficiency / RNNs and normalization

Independence Tests for Language Models

ICML 2025 · Architectures and efficiency › RNNs and normalization · approach: Layer-wise analysis of language models · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes permutation-based statistical tests (constrained: exact p-values; unconstrained: MATCH test over aligned GLU MLP activations) to determine whether two open-weight LMs were trained independently from their weights.

Problem

Given only the weights of two models, test whether they were trained independently from random initializations (versus one derived from the other via fine-tuning, pruning, or sharing), for provenance and IP/liability auditing.

Approach

Under permutation-equivariant training and permutation-invariant initialization, simulate exchangeable copies of a model by permuting hidden units to obtain exact p-values (constrained setting). For unconstrained settings, learn GLU MLP proxies that match arbitrary submodels and correlate gate/up activation alignments (MATCH), which behaves empirically like a p-value and enables localized testing.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use CSW or CSH instead of raw Jensen-Shannon divergence for constrained independence testingLlama-7B model pairs · Llama-7B model pairsindependence-test p-value: εHelped
Use φ_l2 with permutation-test p-values rather than raw ℓ2 distanceConstrained independence testing · Llama-7B model pairsindependence-test p-value: 0.01Helped
Use Jensen-Shannon divergence as the independence statisticLlama-7B model pairs · Llama-7B model pairsJensen-Shannon divergenceNo clear effect
Use φ_MATCH for independently initialized models trained with the same algorithm and dataset (ablation)Unconstrained independence testing · OLMo 7B on Dolma v1_7 checkpointsφ_MATCH p-value: 0.809; 0.443; 0.343; 0.027No clear effect
Retrain an individual MLP layer from scratch before applying φ_MATCH (ablation)vicuna-7b-v1.5 compared with Llama-2-7b-hf · All 32 MLP layerslog10(φ_MATCH^(i)): {-479}; {-485}; {-614}; {-580}; {-523}; {-513}; {-533}; {-464}; {-439}; {-377}; {-365}; {-342}; {-330}; {-323}; {-414}; No clear effect
Distill non-GLU model layers to GLU MLP proxies before applying φ_MATCH (ablation)Generalized robust test · GPT2_PMC vs gpt2φ_MATCH^(1) p-value: 3.034e-61Helped
Test model pairs with different architectures using activation matchingφ_MATCH · Different-architecture dependent pairsφ_MATCH^(1) p-value: 3.034e-61; 1.049e-75; 1.079e-63; 2.011e-70Helped
Test independent model pairs with φ_MATCH after fitting GLU MLP proxiesGeneralized robust test · Independent GPT and Llama model pairsφ_MATCH^(1) p-value: 0.359; 0.770; 0.481No clear effect
Apply φ_MATCH to retrained MLP layers rather than original layer weights (ablation)Unconstrained test on dependent model pairs · vicuna-7b-v1.5 vs Llama-2-7b-hfφ_MATCH p-value: less than εNo clear effect
Use φ_MATCH for localized block matching after pruningLlama 3.1-8B and Llama 3.2-3B/1B · Pruned Llama model pairsblock-match statistic threshold: 1e-4Helped
Reduce both hidden and MLP dimensions through pruning and apply φ_MATCHSheared-LLaMa-2.7B vs Llama-2-7B · 32 Transformer blocksφ_MATCH^(i,j) threshold: 1e-90Helped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-103 Dolma v1_7

Benchmarks: 21 Llama-7B-architecture open-weight model pairs (210 pairs) 141 independent model pairs (unconstrained) OLMo checkpoint pairs

Metrics: p-value Spearman correlation uniformity of p-values under null

Baselines: phi_l2 weight distance (Oyama et al.) JSD on output distributions Oyama et al. invariant tests

Builds on: Fisher's method Jensen-Shannon divergence baseline Spearman rank correlation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy