Views
No views yet
L25+L26 ×1.5 patch applied to 2 F32 layer_output_scale weights. Training-free, calibration-free, zero inference overhead.Reading the GSM8k numbers: paper v1 reported +15pt at n=100 (ctx=1024). The Q4_K_M patched row below is still that legacy paper v1 protocol number. A new baseline-only re-measurement of unpatched Q4_K_M at n=500 / ctx=16384 / n_predict=8192 gives 95.80% (479/500, Wilson 95% CI [93.66, 97.24]). This means GSM8k should not be used as a Q2_K-over-Q4_K_M cross-quant claim; for patch-effect evidence, cite the same-quant Q2_K paper-grade result (+5.40pt, n=500, McNemar p=0.0007).
| metric | baseline Q4_K_M | L25+L26 ×1.5 patched | Δ |
|---|---|---|---|
| HellaSwag (n=10042 full) | 63.70% [62.76, 64.64] | 73.50% [72.63, 74.36] | +9.80pt (CIs separated 7.99pt) |
| GSM8k baseline-only recheck (n=500, ctx=16384) | 95.80% [93.66, 97.24] | not re-run | no Q4 patch delta at n=500 |
| GSM8k (n=100, ctx=1024, paper v1 legacy) | 72.00% [62.51, 79.86] | 87.00% [79.02, 92.24] | +15.00pt (n=500 not re-validated, mixes capability + token-budget) |
| Winogrande (n=1267 full) | 65.04% [62.37, 67.61] | 70.32% [67.75, 72.77] | +5.28pt |
| ARC-Challenge (n=1165) | 44.89% [42.06, 47.76] | 48.76% [45.89, 51.63] | +3.87pt |
| safety | (Q2_K AdvBench L25+L26 retention 93.46%) | — | — |
1l25_l26_patch = {
2 25: 1.5,
3 26: 1.5,
4}layer_output_scale weights at layers 25 and 26. The simplest possible patch that consistently unlocks capacity.layer_output_scale — a single F32 scalar per transformer block that gates how much of that block's normalized output is written back to the residual stream. We multiply this gate by 1.5× at layers 25 and 26, amplifying their residual contribution. Why L25 and L26 specifically work remains open: structural analysis of the GGUF shows both are sliding-window (not full-attention) layers in the 5:1 hybrid pattern, contradicting our earlier "rare full-attention slack" framing. Cross-model checks (Gemma 4 +11pt HellaSwag, Qwen 3.6 +2.5pt, Phi-4 BF16 destructive Δ, Llama null) confirm the effect is hybrid-architecture-specific, but the mechanism connecting which layers respond and why remains future work.basin B. On Q4, basin B is outperformed by L25+L26 on every benchmark:| bench | basin B (44 B) | L25+L26 (8 B) |
|---|---|---|
| HellaSwag | 72.82 | 73.50 (+0.68) |
| Winogrande | 69.61 | 70.32 (+0.71) |
| GSM8k | 84.00 | 87.00 (+3.00) |
| ARC-C | 48.50 | 48.76 (+0.26) |
gemma-4-31B-it-L25L26x1.5-Q4_K_M.gguf (~19 GB)
2c348ed9c3c499587343a93de07a84cegemma-4-31B-it-L25L26x1.5-Q4_K_M.gguf.md5apply_l25l26.pyREADME.md (this file)LICENSE1huggingface-cli download morphicode-jp/gemma-4-31B-it-L25L26x1.5-Q4_K_M \
2 --local-dir ./gemma
3./llama-cli -m ./gemma/gemma-4-31B-it-L25L26x1.5-Q4_K_M.gguf -ngl 99 -c 40961pip install gguf numpy
2git clone https://github.com/morphicode-jp/f32-patch-gemma
3python f32-patch-gemma/apply_l25l26.py /path/to/google_gemma-4-31b-it-Q4_K_M.gguf--restore undoes the patch via the auto-created .backup file.morphicode-jp/gemma-4-31B-it-L25L26x1.5-IQ1_M — 1-bit, ~9.5 GB, +36pt GSM8k showcasemorphicode-jp/gemma-4-31B-it-L25L26x1.5-Q2_K — 2-bit, ~12 GB, flagship low-spec1@misc{hirai2026f32patch,
2 title = {Why Some LLMs Have a Hidden Reasoning Knob:
3 Rare Full-Attention Bottlenecks in Hybrid Architectures
4 and an 8-byte Quantization Recovery},
5 author = {Hirai, Akito},
6 year = {2026},
7 doi = {10.5281/zenodo.20362820},
8 url = {https://doi.org/10.5281/zenodo.20362820}
9}llama-perplexity --hellaswag mode, systematically 0.2–2.5 pp lower than
lm-evaluation-harness standard
(llama.cpp discussion #2321).
Our +9.80 pp Q4 improvement greatly exceeds typical Q4_K_M quantization
degradation on Llama-2-7B (~0.5 pp), suggesting structural capacity unlock.LICENSE-WEIGHTS.