Download code/paper/sections/results.tex from bryan7264/lorapop: direct link, hf CLI and curl.
- Browser
- Download file 17.8 kB
-
https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/paper/sections/results.tex
- Command line
-
hf download hf://datasets/bryan7264/lorapop/code/paper/sections/results.tex
-
curl -L -o results.tex https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/paper/sections/results.tex
17.8 kB
| % MIT License, Bryan Cheng, 2026. Results. Every number is copied from RESULTS.md, which names its source file. | |
| % Interventions, crosses, spike-ins and E6-E8 are added when their runs finish; nothing here anticipates them. | |
| \section{Results} | |
| \label{sec:results} | |
| \subsection{The population} | |
| \label{sec:results-pop} | |
| We collected 955 public LoRA adapters of Qwen2.5-0.5B-Instruct~\cite{qwen25} and genotyped 907; the other 48 failed to | |
| load. Of the 956 phenotype records (the adapters plus the base), 888 passed quality control, 48 failed to run and 20 | |
| exceeded three times the base's reference perplexity. After excluding 3 DoRA adapters, the scan population has | |
| $n=884$ adapters and 5,191 loci, with a Li--Ji effective number of tests of 383~\cite{liji}. | |
| Relatedness is common: | |
| \begin{itemize} | |
| \item the descent rule groups the 907 genotyped adapters into 634 families, and 36.7\% of adapters have at least one | |
| relative; | |
| \item the largest family has 77 members; | |
| \item at the pre-registered threshold, function similarity groups the descent-unrelated adapters into 401 recipe | |
| families. | |
| \end{itemize} | |
| The effective sample size is 182.6 under the descent kernel and 168.6 under the function kernel, about a fifth of the | |
| nominal $n$. | |
| Descent families agree with independent metadata. The adjusted Rand index is 0.884 against authors and 0.899 against | |
| training-dataset tags. 82.1\% of same-author pairs are related, against 0.04\% of different-author pairs. Off the | |
| diagonal, the descent and function kernels correlate at 0.951. | |
| \subsection{Phenotypes are reliable and hardware-independent} | |
| \label{sec:results-pheno} | |
| All 53 battery traits pass the pre-registered split-half reliability threshold of 0.7 (minimum 0.715, median 0.967), so | |
| the primary-trait list is all 53. | |
| The population was measured on two GPU types. We re-measured 23 adapters on the second type: | |
| \begin{itemize} | |
| \item median Lin concordance is 0.998; | |
| \item for 1 of 52 traits the paired-shift CI excludes zero, a shift of 0.038~SD; | |
| \item the median ratio of hardware disagreement to item-sampling error is 0.21; | |
| \item population means do not differ by GPU type for any trait ($p<0.05$ for none); | |
| \item re-measuring the base on the same hardware reproduces it to $1.4\times10^{-9}$~SD. | |
| \end{itemize} | |
| \subsection{Trained seed siblings and the similarity law} | |
| \label{sec:results-e1} | |
| We trained 240 seed siblings (8 tasks, ranks 4--64, 3 seeds, independent or shared initialization). | |
| Expressed similarity separates same-task from different-task pairs almost perfectly: AUC 0.9996 for independently | |
| initialized pairs, against 0.945 for raw similarity. | |
| The raw-similarity law does not hold to a factor of two. Across the 15 rank cells, the ratio of observed to predicted | |
| raw cosine for independent-init same-task siblings ranges from 0.56 to 4.2, with a geometric mean of 1.48. The law | |
| predicts a fifteen-fold rise from rank~4 to rank~64. Observed raw cosine is nearly flat, between 0.014 and 0.041. | |
| H1 is therefore refuted by its pre-registered raw criterion, while its expressed-similarity criterion holds. | |
| An exploratory fit, labelled as such, solves for the dimension at which the law matches each cell. The raw effective | |
| dimension grows with rank, from 226 at rank~4 to 1,769 at rank~64, whereas the law fixes it at the input dimension. The | |
| law therefore over-predicts similarity at high rank and under-predicts it at low rank. | |
| The descent rule, calibrated on these known pedigrees, behaves as follows: | |
| \begin{itemize} | |
| \item it flags 53\% of shared-initialization pairs; | |
| \item it flags 3.3\% of independent different-task pairs; | |
| \item it flags 12.6\% of independent same-task pairs. | |
| \end{itemize} | |
| So it is specific for shared initialization but not sensitive to it. | |
| \subsection{Association scans are inflated} | |
| \label{sec:results-scan} | |
| Table~\ref{tab:lambda} gives genomic-control inflation by estimator. | |
| The naive scan has $\lambda_{\mathrm{GC}}>1.1$ on 52 of 53 traits (median 3.12), which meets the inflation criterion of | |
| H2. That criterion is weak by itself: loci are strongly correlated ($M_{\mathrm{eff}}=383$ of 5,191), so a single null | |
| trait gives a noisy $\lambda_{\mathrm{GC}}$. Over 20 independent draws of iid noise on the real genotypes, the naive | |
| $\lambda_{\mathrm{GC}}$ ranges from 0.69 to 1.54 (95\%) and exceeds 1.1 in 9 draws. Real traits lie far outside this | |
| range: the naive $\lambda_{\mathrm{GC}}$ exceeds the null's 97.5\% quantile on 51 of 53 traits. Principal components lower | |
| the median to 2.74, and the mixed models to 2.01. | |
| These point estimates hide large uncertainty from family composition. We use a delete-a-group jackknife over 20 random | |
| groups of descent families; a family bootstrap would count resampled copies of a family as independent adapters and shift | |
| the distribution upward. With the jackknife: | |
| \begin{itemize} | |
| \item the median $\lambda_{\mathrm{GC}}$ over traits is 3.12 (95\% CI 1.30--4.93) for the naive scan and 2.01 (1.39--2.63) | |
| for MM-fd, so inflation remains after the mixed model; | |
| \item the naive scan exceeds MM-fd on 50 of 53 traits, but the median difference, 0.74, has a 95\% CI of $-0.43$ to 1.90. | |
| \end{itemize} | |
| The mixed model's reduction of inflation is therefore consistent in sign but not established on real traits. On a | |
| simulated family effect it is clear: over 20 draws of a family effect plus equal noise, the naive scan exceeds MM-fd in | |
| all 20, with median $\lambda_{\mathrm{GC}}$ 1.32 against 0.93 (Table~\ref{tab:lambda}). On real traits MM-fd still exceeds | |
| the 97.5\% quantile of its own family-null distribution (1.36) on 50 of 53 traits. The inflation that remains after the | |
| mixed model is therefore not draw noise. | |
| The descent variance component is essentially zero: its median share is 0 over traits and left-out blocks, it exceeds | |
| 1\% in 1.3\% of fits, and its maximum is 6.6\%. MM-fd and MM-f therefore coincide. | |
| The within-family estimators deserve care: | |
| \begin{itemize} | |
| \item WF-d is the most inflated on real traits (median 3.82) yet calibrated on a simulated null with family structure | |
| (median 0.93 over 20 draws, 95\% range 0.53--2.02). This pattern is consistent with genuine association inside families, such as checkpoint and hyperparameter | |
| series, not with a miscalibrated test. | |
| \item On the iid null every estimator has median $\lambda_{\mathrm{GC}}$ between 0.84 and 1.07. Under a family effect | |
| plus noise, the naive median is 1.32 while the mixed models' medians are 0.93--0.95. | |
| \item The negative control is a pure family effect with no noise. It inflates the naive scan (median 1.61), and WF-d | |
| removes it exactly (0.00 in every draw); the other estimators remain noisy (MM-fd median 1.10, 95\% range | |
| 0.73--1.69). | |
| \end{itemize} | |
| Linkage-score regression, the analogue of LD-score regression~\cite{r42}, separates the two sources of naive inflation. | |
| We fit it in the weighted form, with bias-corrected squared correlations and module-jackknife standard errors. Its | |
| intercept exceeds 1 on all 53 traits (median 3.20) and exceeds 1 by more than two standard errors on 41. The median ratio | |
| of excess intercept to excess mean $\chi^2$ is 0.98. Naive inflation is therefore almost uniform across loci rather than | |
| proportional to linkage, as expected from confounding by relatedness and not from many small effects tagged through | |
| linkage. | |
| \begin{table}[t] | |
| \centering | |
| \small | |
| \caption{Genomic-control inflation $\lambda_{\mathrm{GC}}$ by estimator on the full population ($n=884$). The lower rows | |
| are simulated traits on the real genotypes and relatedness: median and 95\% range over 20 independent draws.} | |
| \label{tab:lambda} | |
| \setlength{\tabcolsep}{4pt} | |
| \begin{tabular}{lrrrrrrr} | |
| \toprule | |
| & naive & PC & MM-f & MM-fd & WF-d & WF-r & DUP-AFE \\ | |
| \midrule | |
| median, 53 traits & 3.12 & 2.74 & 2.01 & 2.01 & 3.82 & 2.17 & 2.04 \\ | |
| max, 53 traits & 6.63 & 4.67 & 3.83 & 3.83 & 17.73 & 7.27 & 5.58 \\ | |
| \midrule | |
| null, iid noise & 1.07 & 0.97 & 1.00 & 0.98 & 0.95 & 0.89 & 0.84 \\ | |
| \quad 95\% range & {\footnotesize 0.69--1.54} & {\footnotesize 0.67--1.58} & {\footnotesize 0.68--1.54} & {\footnotesize 0.68--1.53} & {\footnotesize 0.65--2.25} & {\footnotesize 0.54--1.89} & {\footnotesize 0.45--1.90} \\ | |
| null, family effect + noise & 1.32 & 1.03 & 0.95 & 0.93 & 0.93 & 1.01 & 0.97 \\ | |
| \quad 95\% range & {\footnotesize 0.87--1.84} & {\footnotesize 0.65--1.52} & {\footnotesize 0.61--1.36} & {\footnotesize 0.61--1.36} & {\footnotesize 0.53--2.02} & {\footnotesize 0.58--1.76} & {\footnotesize 0.65--1.46} \\ | |
| negative control & 1.61 & 1.16 & 1.00 & 1.10 & 0.00 & 1.19 & 1.19 \\ | |
| \quad 95\% range & {\footnotesize 0.82--1.98} & {\footnotesize 0.79--1.69} & {\footnotesize 0.69--1.55} & {\footnotesize 0.73--1.69} & {\footnotesize 0.00} & {\footnotesize 0.54--1.58} & {\footnotesize 0.64--2.40} \\ | |
| \bottomrule | |
| \end{tabular} | |
| \end{table} | |
| \subsection{Raw coordinates: scan-level ablation} | |
| \label{sec:results-raw} | |
| We repeated the scan with loci taken from raw (Frobenius) Grams instead of expressed ones, keeping the same adapters, | |
| covariates, kernels and split. Raw coordinates span fewer effective dimensions: a Li--Ji effective number of tests of | |
| 180, against 383. They also yield fewer relatedness-corrected discoveries: | |
| \begin{itemize} | |
| \item 3,381 MM-fd trait--locus hits at 5\% FDR on the discovery half, against 6,453; | |
| \item 2,523 MM-fd hits at the Bonferroni threshold on the full population, against 3,889. | |
| \end{itemize} | |
| Uncorrected counts do not move consistently: the naive scan has 5,875 hits against 9,495 on the discovery half, but | |
| 15,060 against 13,996 at the Bonferroni threshold. Median inflation is somewhat lower (naive 2.64, MM-fd 1.75), and the nulls behave as in expressed coordinates. Whether | |
| raw-coordinate effect estimates are worse calibrated is an interventional question, answered in | |
| Section~\ref{sec:results-interventions}. | |
| \subsection{Sensitivity of the scan} | |
| \label{sec:results-sens} | |
| The number of principal components matters little. With 5, 10 and 20 PCs the PC estimator's median $\lambda_{\mathrm{GC}}$ | |
| is 2.67, 2.74 and 2.69, and no other estimator uses them. | |
| The descent threshold (2, 3 or 5 times the law) gives 584, 634 and 680 families, and 43\%, 37\% and 30\% of adapters | |
| with a relative. Full-sample results that do not use families are unchanged, including MM-fd, whose descent component is | |
| near zero. Within-family estimation does depend on the threshold: WF-d's median $\lambda_{\mathrm{GC}}$ is 2.35, 3.82 and | |
| 3.42. | |
| The discovery/estimation split is built from the family partition, so a new partition reshuffles it: only 48\% (2$\times$) | |
| and 33\% (5$\times$) of adapters stay in their original half. Hit counts on the discovery half then vary widely: the | |
| naive scan has 16,169, 9,495 and 42,832 hits at 5\% FDR, and MM-fd 6,601, 6,453 and 9,203. Counts on one half are | |
| fragile to which families land in it. We therefore compare coordinate systems on the same split | |
| (Section~\ref{sec:results-raw}) and report full-sample $\lambda_{\mathrm{GC}}$ and Bonferroni counts alongside. | |
| Genotype choices made before the scan change which loci exist, since loci are eigenvectors of each module's Gram. | |
| Capping $k$ at 128 instead of 512 gives 5,181 loci against 5,184 and leaves the naive and MM-fd scans nearly unchanged: median | |
| $\lambda_{\mathrm{GC}}$ is 3.13 (naive) and 2.02 (MM-fd), against 3.12 and 2.01, and their Bonferroni counts move by less than | |
| 1\%. Other estimators move more: Bonferroni counts change by 5\% (PC), 6\% (DUP-AFE) | |
| and 17\% (WF-r), whose median $\lambda_{\mathrm{GC}}$ falls from 2.17 to 1.90. Of the (trait, module) pairs with a Bonferroni-significant locus in the primary scan, 91\% (naive) and 77\% (MM-fd) | |
| have one under the capped genotype. The other genotype variants are reported as they finish. | |
| \subsection{Variance components: function relatedness carries the heritable signal} | |
| \label{sec:results-e6} | |
| We fit variance components with eight block function kernels (four layer blocks, attention and MLP) and the descent | |
| kernel. The function kernels improve on a descent-only model on all 53 traits (likelihood-ratio test, significant after | |
| Benjamini--Hochberg; median statistic 173). | |
| Best linear unbiased prediction (BLUP) with the function kernel predicts adapters in held-out descent families. Its | |
| median accuracy is $r=0.50$ (range 0.26--0.70), against 0.32 for the descent kernel and 0.24 for covariates alone. The | |
| function kernel is the most accurate of the three on every trait. Hypothesis H5 is therefore not refuted. | |
| Once the function kernel is in the model, the descent component is zero on every trait. This matches the scans, where | |
| the descent variance component of MM-fd was essentially zero (Section~\ref{sec:results-scan}). | |
| The variance shares themselves need care. Both kernels have a unit diagonal, and behavior is a deterministic function | |
| of the weights up to item-sampling noise. Either kernel alone therefore absorbs nearly all variance: 0.97 for the function | |
| kernel and 0.97 for the descent kernel when each is fitted alone. These shares are not heritabilities in the genetic | |
| sense; the likelihood-ratio tests and out-of-family accuracies are the interpretable quantities. | |
| Among the function blocks, the MLPs of layers 6--11 carry the largest mean share (0.25), followed by attention (0.21) and | |
| MLP (0.19) in layers 18--23. | |
| Genetic correlations from bivariate REML track phenotypic correlations closely: across the 1,378 trait pairs, $G$ under | |
| the function kernel correlates with $P$ at 0.95 and with $G$ under the descent kernel at 0.995. | |
| \subsection{Forecasting the side effects of targeted fine-tunes} | |
| \label{sec:results-forecast} | |
| We trained 66 fine-tunes that each target one benign trait (11 conditions, ranks 8 and 32, three seeds). Ten conditions | |
| target a primary trait, giving 60 test cases; the eleventh (casual register) has no primary focal trait. Every case is | |
| compared with a base measured on the same hardware and batch sizes. Table~\ref{tab:forecast} scores the forecasters on | |
| the other 52 primary traits. The test set of validated interventions and the forecasters that need it ($G$ from | |
| validated loci) or the TinyLlama fine-tunes (spillover) are added when those finish. | |
| \begin{table}[t] | |
| \centering | |
| \small | |
| \setlength{\tabcolsep}{4pt} | |
| \caption{Side-effect forecasts for 60 trait-targeted fine-tunes in 10 conditions. $\Delta$MSE is the MSE of $G$ | |
| (function layer) minus that of the forecaster, with 95\% intervals from a paired bootstrap over cases and, as a | |
| sensitivity analysis, over conditions. Negative values favour $G$. Wins: conditions in which $G$ has the lower MSE.} | |
| \label{tab:forecast} | |
| \begin{tabular}{lrrrrr} | |
| \toprule | |
| forecaster & $r$ & MSE & $\Delta$MSE [cases] & [conditions] & wins \\ | |
| \midrule | |
| $G$, function & 0.35 & 1.93 & & & \\ | |
| $G$, descent & 0.34 & 1.94 & $-0.011$ [$-0.020$, $-0.002$] & [$-0.033$, 0.009] & 5/10 \\ | |
| $P$ & 0.27 & 2.08 & $-0.157$ [$-0.204$, $-0.112$] & [$-0.265$, $-0.051$] & 7/10 \\ | |
| gradient cosine & 0.34 & 1.96 & $-0.031$ [$-0.138$, 0.080] & [$-0.308$, 0.194] & 5/10 \\ | |
| gradient step & 0.31 & 1.95 & $-0.022$ [$-0.125$, 0.081] & [$-0.284$, 0.212] & 5/10 \\ | |
| representation & 0.29 & 1.98 & $-0.056$ [$-0.170$, 0.045] & [$-0.343$, 0.179] & 5/10 \\ | |
| zero & -- & 2.13 & $-0.206$ [$-0.336$, $-0.081$] & [$-0.541$, 0.078] & 6/10 \\ | |
| \bottomrule | |
| \end{tabular} | |
| \end{table} | |
| Genetic correlations forecast side effects better than phenotypic correlations. The interval excludes zero whether cases | |
| or whole conditions are resampled, and $G$ wins in 7 of 10 conditions. On this test set H6 is not refuted. | |
| The advantage is narrow. $G$ lowers MSE by 10\% relative to forecasting no side effects, and that gain does not survive | |
| resampling conditions. Forecasts from the base model alone, the cosine of trait gradients or of activation directions, | |
| are as good as $G$. $G$ helps most where the targeted change is large: for French, MSE is 1.40 against 2.67 for zero, | |
| and for concise answers 1.73 against 2.74. For markdown, MMLU-STEM, persona and sycophancy fine-tunes it is worse than | |
| zero, and a base-model forecaster is best. $P$ is worse than zero in 5 of the 10 conditions. | |
| \subsection{Prediction from weights, and why raw weights are the wrong coordinates} | |
| \label{sec:results-e7} | |
| We predicted each trait from weights under four splits: random, and disjoint by descent family, recipe family and author. | |
| Table~\ref{tab:predict} gives median accuracy over the 53 traits. | |
| \begin{table}[t] | |
| \centering | |
| \small | |
| \caption{Out-of-sample prediction accuracy (median Pearson $r$ over 53 traits) by split and predictor. Tuning used | |
| validation families inside each training fold. The causal score is added after calibration.} | |
| \label{tab:predict} | |
| \begin{tabular}{lrrrrrr} | |
| \toprule | |
| split & ridge raw & ridge expressed & spectral & $k$NN $K_{\mathrm{func}}$ & BLUP-f & MM score \\ | |
| \midrule | |
| random & 0.37 & 0.51 & 0.35 & 0.44 & 0.63 & 0.10 \\ | |
| descent-disjoint & 0.21 & 0.43 & 0.23 & 0.30 & 0.49 & 0.15 \\ | |
| recipe-disjoint & $-0.03$ & 0.26 & 0.24 & 0.30 & 0.41 & 0.09 \\ | |
| author-disjoint & 0.20 & 0.38 & 0.21 & 0.32 & 0.51 & 0.11 \\ | |
| \bottomrule | |
| \end{tabular} | |
| \end{table} | |
| Kernel ridge on expressed coordinates beats the same model on raw coordinates under every split. The gap grows as the | |
| split removes more shared history: 0.14 on random splits and 0.29 across recipes, where raw coordinates predict nothing. | |
| BLUP with the function kernel is the most accurate predictor on 45--47 of the 53 traits under each split. A score built | |
| from mixed-model locus effects predicts poorly. This is consistent with behavior spread over many correlated directions, | |
| but noisy per-locus effects would give the same result. | |
| Accuracy depends on relatedness to the training set. Under random splits, BLUP-f accuracy rises from 0.42 to 0.87 | |
| across quintiles of an adapter's maximum descent relatedness to the training adapters. Across recipes it is flat, near | |
| 0.4. | |