Abstract
Large language models use large matrices, or tables of numbers, to turn text into predictions. Replacing some of these matrices with two smaller ones can save storage, but the replacements may change how information passes through the model. We study whether a compression method guided by the model's observed inputs can preserve its predictions and the internal signals passed between layers. We compare this method with a version that also penalizes changes to the original weights, using the same number of stored values. Tests on three pretrained language models show that the penalty provides no consistent improvement in both prediction quality and internal similarity. In one model, prediction quality improves while average error in these internal signals grows to 3.86 times that of the method without the penalty. Tests on consecutive layers also find a group where both prediction quality and internal similarity worsen for all three choices of fitting data. Separate storage and timing tests remove 29.17% of the weights in the selected matrices, but reduce the complete model file by only 0.894%; execution time varies with the workload. These findings show that prediction quality alone cannot establish whether compression preserves the original computation. Failed full-rank SVD numerical controls, incomplete additional tests for one model, and evaluation on a previously used text dataset make the findings exploratory. A practical compression claim therefore needs separate evidence for prediction quality, internal behavior, storage, and speed.
1. What the study asks
Can a pretrained transformer use fewer stored weights while retaining the original model’s behavior? We replace selected attention-output matrices with two smaller factors and measure both next-token prediction and the internal signals passed between blocks.
Current finding. Activation-aware fitting improves on plain SVD in the tested Gemma setting. Adding the weight-space anchor gives no consistent improvement in both prediction quality and residual fidelity across Gemma, Qwen and LFM. A better likelihood score alone cannot establish preservation of the original computation.
2. What is compared
Replace a dense projection with two smaller factors, applying the original bias once.
- Original projection
- Compact replacement
At the same factor budget, both fits use calibration activations to weight input directions. The anchored fit also penalizes changes to the original weights.
A = UVFirst term: activation fitSecond term: weight anchor
Matched whitening
β = 0 · ρ = 0
Ours (anchored)
β = 0.03 · ρ = 0
Shown in orange in the charts.
Primary ranks: Gemma 384 · Qwen 483 · LFM 725.
Other layers and hybrid mixers remain dense.
Protocol and interpretation
The historical quality cohorts use calibration seeds 11, 23 and 37, paired across methods. WikiText-2 supplies calibration, validation and test splits; the test set has already influenced the project, so these are regression results. The later BF16 practical cohort uses only seeds 11 and 23 and supplies no new drift measurements.
Exact-arithmetic formulas require their stated rank and spectral assumptions. The failed full-rank SVD controls do not demonstrate a failure of the whitening or anchored fits. Method-specific full-rank checks are still needed to separate their mathematical objectives from numerical effects. The current paper documents measured-output fitting, extra ridge and spectral cutoffs separately.
3. Concept illustration
This optional animation uses synthetic points and visual metaphors for different fitting geometries. It is not a measured layer, a literal factorization surface, or evidence that compression preserves computation.
Drag to rotate or use the buttons. Animation starts paused when reduced motion is requested. The measured charts below work without JavaScript or WebGL.
4. Results
The charts use the same saved numbers as the current IEEE source. On a narrow screen, scroll a chart horizontally or open its exact-value table. NLL is negative log-likelihood; lower NLL means better prediction on the scored text. Residual drift measures internal-state difference from the original model.
Gemma 3-1B: horizontal prediction-loss and drift bars
Exact chart values
| Method | NLL | Residual drift | Seeds |
|---|---|---|---|
| Plain SVD | 5.088681 (single fit) | 0.074248 (single fit) | 1 |
| Diagonal ASVD component | 3.694466 ± 0.002420 | 0.030972 ± 0.000197 | 3 |
| Covariance whitening | 3.572814 ± 0.011819 | 0.010638 ± 0.000382 | 3 |
| Ours (anchored) | 3.565921 ± 0.009576 | 0.010547 ± 0.000492 | 3 |
| Extra ridge | 3.579034 ± 0.008521 | 0.011836 ± 0.000139 | 3 |
The anchor’s mean Gemma NLL is 3.565921 versus 3.572814 for whitening. Its average drift is slightly lower, but drift worsens in two of three paired seeds. The average does not establish a reproducible joint improvement.
Layer groups: Ours (anchored) minus whitening
Exact chart values
| Blocks | Mean NLL difference | Mean drift difference | Jointly better |
|---|---|---|---|
| 0 | -0.0000484 | -3.392768e-06 | 2/3 |
| 12 | -0.0003431 | +1.50569e-06 | 0/3 |
| 25 | -0.0002025 | +3.248449e-07 | 0/3 |
| 0–1 | -0.0000478 | -8.883664e-05 | 1/3 |
| 12–13 | +0.0000058 | +2.945603e-06 | 0/3 |
| 24–25 | -0.0001833 | -2.956141e-08 | 0/3 |
| 0–3 | -0.0002942 | -0.0001338675 | 2/3 |
| 11–14 | +0.0027237 | +6.855561e-05 | 0/3 |
| 22–25 | -0.0009939 | -1.052808e-05 | 2/3 |
| All 26 | -0.0068927 | -9.051551e-05 | 1/3 |
Other models: Qwen3.5-0.8B and LFM2.5-1.2B
Exact chart values
| Model / method | NLL | Residual drift | Seeds |
|---|---|---|---|
| Qwen / Dense reference | 2.917220 (single control) | 0.000000000 (single control) | 1 |
| Qwen / Plain SVD | 3.180993 (single control) | 0.061662985 (single control) | 1 |
| Qwen / Whitening | 2.934439 ± 0.001455 | 0.006154788 ± 0.000090682 | 3 |
| Qwen / Ours (anchored) | 2.943324 ± 0.002272 | 0.012761953 ± 0.000160026 | 3 |
| LFM / Dense reference | 3.998736 (single control) | 0.000000000 (single control) | 1 |
| LFM / Plain SVD | 3.852432 (single control) | 0.237778731 (single control) | 1 |
| LFM / Whitening | 4.056405 ± 0.022886 | 0.035880394 ± 0.000777616 | 3 |
| LFM / Ours (anchored) | 3.835916 ± 0.010335 | 0.138345910 ± 0.000864377 | 3 |
LFM shows why the metrics must be assessed separately: the anchor improves likelihood in every seed while mean residual drift rises to about 3.86 times the whitening mean. Lower NLL does not establish preservation, denoising, or a particular causal mechanism.
5. Storage and timing
The separate BF16 cohort removes 29.17% of weights in the targeted matrices. Complete checkpoint size falls from 1,999,883,711 to 1,982,003,507 bytes: 17,880,204 bytes, or 0.894%. Most model weights remain untouched. Anchor and whitening checkpoints have identical sizes.
| BF16 condition | Seed | Raw NLL | Scaled NLL | Whole GiB |
|---|---|---|---|---|
| Dense teacher | - | 3.451549 | 3.422601 | 1.862537 |
| Whitening | 11 | 3.556086 | 3.541726 | 1.845885 |
| Anchor | 11 | 3.556826 | 3.542255 | 1.845885 |
| Whitening | 23 | 3.568431 | 3.553267 | 1.845885 |
| Anchor | 23 | 3.562949 | 3.545341 | 1.845885 |
Temperature is selected on validation and then frozen; the five saved selections are approximately 1.090508. GiB means 2³⁰ bytes. These are descriptive full-test aggregates without paired block intervals.
| Workload | Seed 11 median ratio | Seed 23 median ratio |
|---|---|---|
| Prefill 128 | 1.1876 | 0.9370 |
| Decode 128 after prompt 128 | 1.1073 | 0.9679 |
| Prefill 512 | 1.0108 | 0.9473 |
| Decode 128 after prompt 512 | 0.9876 | 0.9580 |
Ratios below one favor the anchor. Seed 11 is slower for the 128-token conditions, while seed 23 favors it in the measured workloads. Timing uses a resident RTX 4070 Ti, batch size one, 10 warmups and 30 synchronized samples. Cached decode excludes the initial prompt pass. These observations establish no consistent anchoring speed advantage or general acceleration over the dense teacher.
6. Limitations and evidence boundaries
- Some full-rank SVD controls failed the predefined numerical tolerances. This does not establish that whitening or anchoring failed those checks. Method-specific full-rank numerical equivalence remains unestablished by the SVD controls, so comparisons describe the measured implementations.
- Qwen has all eight primary-test records but only 10 of 18 validation-frontier records. Missing measurements remain missing.
- WikiText-2 has already influenced the project. No fresh-domain confirmation, downstream task accuracy, or free-running generation equivalence has been established.
- Three calibration seeds do not represent independently pretrained models. The later BF16 practical cohort has only two seeds and no new drift measurements.
- Only the selected attention-output matrices are studied. Results do not establish preservation for MLPs, hybrid mixers, larger models, or other rank allocations.
- Model file size, CUDA allocator peaks and warmed-up latency are distinct measurements. Storage savings alone do not establish practical speed or memory savings.
7. Future Scope
A small neural network for compression
A proposed next direction is a small bottleneck neural network that learns a compact mapping for selected dense projections from the original model’s activations. A second option is a small correction network alongside lower-rank factors.
Every retained factor, network weight and bias must count toward a matched storage budget. Any local improvement must be checked for held-out prediction quality and residual drift after replacements are composed across layers, alongside complete file size, peak memory and warmed-up latency. Neither network has been implemented or tested here.
Numerical controls and broader evaluation
Explain the failed full-rank SVD controls, add full-rank numerical checks specific to whitening and anchoring, and complete missing Qwen measurements before controlled comparisons of group-output matching. Fresh evaluation data, downstream tasks and generation tests need frozen splits, budgets and decision criteria. Fused factor execution and runtime-informed rank allocation remain further hypotheses.
TinyBERT is a related teacher–student distillation precedent; it does not establish the proposed projection replacement’s effectiveness. The paper’s full Future Scope is Section 8, including the small-network proposal in Section 8.1.
8. Paper and reproducible evidence
- Current IEEE paper PDF — eight pages with horizontal comparison charts and aligned side values for layer-group differences; Future Scope is on page 7.
- Current IEEE paper source — larger mathematical displays and vector charts for dense comparisons; simpler BF16 and timing values remain tables.
- Updated reference PDF — the same updated numerical-control wording and Future Scope, with the reference table layout.
- Frozen evidence report — source runs, complete recorded comparisons and unresolved gaps.
- Chart and table data (JSON) — original reported values and fingerprints of the current paper source and PDF.
- IEEE preparation notes — generic conference formatting; the actual venue remains unidentified.
Both appendices were removed from the current paper. Their experiment records and uncertainty intervals remain in the repository. The existing paper editor stays the place to compile the latest IEEE source.