This repository is the public artifact for the paper “Early Gradient Spectra Predict Useful Low-Rank Adaptation.”
The final evidence supports three deliberately scoped conclusions:
- In the controlled matrix study, early gradient-spectrum summaries predict useful low-rank targets across the hard-knee and sample-limited regimes.
- In the plan-locked synthetic-transformer allocation study, the primary
soft-dimension rule did not outperform its exact-cost uniform comparator:
mean loss delta
+0.014638, 95% bootstrap interval[-0.007751, +0.035215], exact two-sided sign-flipp=0.240234. - In GPT-2/WikiText-2, spectral allocation improved the plan-locked primary
c_attn,c_fcsuite relative to exact-cost uniform allocation: mean validation-loss delta-0.007026, 95% bootstrap interval[-0.008343, -0.006026], exact sign-flipp=0.0078125, with 8/8 seed wins. The separateattn.c_projboundary suite reversed direction and is reported separately; the paper does not claim universal superiority.
Code/rmt_lora_sim/: matrix and Stage4 simulations.Code/transformer/: controlled synthetic-transformer experiments.Code/real_lora_validation/: controlled GPT-2/WikiText-2 experiments.Paper/: manuscript source, generated tables, and figures.evidence/: compact, checksum-bound aggregate evidence and release manifests.paper.pdf: the manuscript PDF corresponding to this source tree.RELEASE_ARTIFACTS.json: identities and hashes of the full raw releases.SHA256SUMS.txt: checksums for every non-Git file in this repository.
The scientific source tree was frozen at commit
bbfa459a4ceca34abac2dba3d522eaab970b9f2e. Later packaging-only changes add
compact evidence, byte-reproducible publication build locks, and repository
checksums; they do not change the analyses or claims. Full raw releases and
pinned offline model/data inputs are kept outside Git because of size; their
exact identities are recorded here.
sha256sum -c SHA256SUMS.txt
cd Code/rmt_lora_sim
python -m pip install -r requirements.txt pytest
PYTHONPATH=. python -m pytest -q
cd ../transformer
python -m pip install -r requirements.txt pytest
PYTHONPATH=. python -m pytest -qThe real-model suite requires a compatible PyTorch GPU installation:
cd Code/real_lora_validation
python -m pip install -r requirements.txt
PYTHONDONTWRITEBYTECODE=1 python -m pytest -qExpected test counts for the frozen artifact are 19, 38, and 37 respectively.
The committed tables and figures allow ordinary compilation without the large raw releases:
cd Paper
make paperFor the release-grade, byte-for-byte check, build the locked linux/amd64 image from the repository root. The image build performs two independent clean rebuilds and rejects any figure, table, font, TeX, or manuscript hash drift:
docker build --platform linux/amd64 \
-f Dockerfile.publication \
-t early-gradient-spectra-publication .The canonical environment is CPython 3.12.3, Matplotlib 3.11.0, the exact
hash-pinned wheels in Paper/requirements-publication.lock.txt, and pdfTeX
1.40.25 from a timestamped Ubuntu package snapshot. See REPRODUCIBILITY.md
for local checks, full-release validation, and rerun instructions.
This repository is the software and compact-evidence component of the release.
The full raw releases and pinned real-model inputs are distributed separately in
the Zenodo data record. ARTIFACT_LEDGER.md maps each local source folder to
its final public artifact, and PROVENANCE.md records how the mother workspace
was used for provenance recovery without being published wholesale.
The software repository is linked to the Zenodo data record 10.5281/zenodo.21061917, which contains the full raw releases, pinned real-model inputs, and a Stage4 source sidecar. The public software release is v1.0.4-publication at https://github.com/GoGoKo699/early-gradient-spectra-lora/releases/tag/v1.0.4-publication.
full raw releases, pinned real-model inputs, and a Stage4 source sidecar.
See:
ARTIFACT_LEDGER.md
RELEASE_ARTIFACTS.json
docs/release/ZENODO_DATA_STAGING.md
This repository includes metadata intended for both human readers and automated research agents:
CITATION.cff
codemeta.json
.zenodo.json
AI_DISCOVERY.md
RELEASE_ARTIFACTS.json
SHA256SUMS.txt
The compact GitHub package contains source code, paper source, paper PDF,
validation scripts, and compact evidence. Full raw releases and pinned
GPT-2/WikiText-2 inputs are indexed but stored outside the lightweight checkout
in the Zenodo data record 10.5281/zenodo.21061917.
- Repository:
https://github.com/GoGoKo699/early-gradient-spectra-lora - Public software release:
https://github.com/GoGoKo699/early-gradient-spectra-lora/releases/tag/v1.0.4-publication - Data DOI:
10.5281/zenodo.21061917 - Data concept DOI:
10.5281/zenodo.21061916 - Data record:
https://zenodo.org/records/21061917