Download code/work/results.tex.bak_d048 from bryan7264/lorapop: direct link, hf CLI and curl.
- Browser
- Download file 12.8 kB
-
https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/work/results.tex.bak_d048
- Command line
-
hf download hf://datasets/bryan7264/lorapop/code/work/results.tex.bak_d048
-
curl -L -o results.tex.bak_d048 https://huggingface.co/datasets/bryan7264/lorapop/resolve/main/code/work/results.tex.bak_d048
12.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. 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 (Table~\ref{tab:lambda}). | |
| 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 | |
| (0.80). 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 lies between 0.78 and 1.05. Under a family effect plus noise, the naive scan | |
| inflates to 1.41 while the mixed models stay at 1.01--1.03. | |
| \item The negative control is a pure family effect with no noise. It inflates the naive scan to 1.56, and the | |
| within-family estimators remove it (WF-d 0.00). | |
| \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$). Rows 3--5 | |
| are simulated traits on the real genotypes and relatedness.} | |
| \label{tab:lambda} | |
| \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 \\ | |
| null, iid noise & 0.84 & 0.85 & 0.84 & 0.84 & 0.81 & 0.78 & 1.05 \\ | |
| null, family effect + noise & 1.41 & 1.17 & 1.01 & 1.03 & 0.80 & 0.67 & 0.72 \\ | |
| negative control & 1.56 & 1.33 & 1.41 & 1.43 & 0.00 & 0.62 & 0.66 \\ | |
| \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. | |
| \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{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. | |