Forward-Only Post-Training of Large Language Models via Online Jacobian Estimation (FJPT)
Author: Yusuke Maeda (AwakeningOS)
Paper (alphaXiv): 2612.forward-only-post-training-fjpt · Permanent DOI (Zenodo): 10.5281/zenodo.24811498 · Code & Full Reproducibility (GitHub): AwakeningOS/fjpt · English PDF: paper/main.pdf · Japanese PDF: paper/draft_ja.pdf
Can billion-parameter language models perform post-training across all internal linear projections without backpropagation, without autograd/JVP graphs, and without inference-time adapters?
FJPT (Forward Jacobian Post-Training) investigates this question end-to-end across 1B–4B open-weight architectures—including unmodified Dense Transformers and Hybrid Gated DeltaNet + Attention models—on a single consumer-class GPU under a strict 22 GB VRAM cap. Rather than relying on black-box zeroth-order scalar finite differences or static random feedback matrices, FJPT constructs online low-rank effective Jacobian surrogates $B_m$ for every internal linear projection using purely torch.inference_mode() forward passes, and rigorously audits both its credit-assignment fidelity against exact oracle backpropagation and its mechanistic bottlenecks over long-horizon post-training.
This repository hosts the complete Method, Paper (EN/JA), Reproducibility Artifacts, Oracle BP Diagnostics, and Item-Level Evaluation Dumps (38,692 per-question outcomes and 28 SHA-256-verified GSM8K generation logs).
Key Highlights
1. Zero Backpropagation, Zero AutoDiff/JVP, Zero Inference Adapters
- Strictly 10
torch.inference_mode()forward passes per update step—no computation graphs, no activation checkpointing, and no JVP/autograd hooks. - Combines the analytical output-head error $e_r$, hooked layer inputs $x_m$, QR-orthogonalized rank-1 antithetic probes, and trace-regularized FP64 Cholesky ridge regression to maintain online low-rank effective Jacobian surrogates $B_m$.
- Exports standard BF16 weights with zero runtime adapter overhead, reaching 4.89 GB peak VRAM on 1B models (within a 22 GB cap across 1B–4B) via disk-backed
mmapFP32 master weights.
2. Online Credit Assignment Verified Against Oracle Backpropagation
- Evaluated on MiniCPM5-1B-Base (679.5M internal parameters across 168 linear projections), the layer-trusted rank-128 candidate ($w=4$) monotonically achieves 16.8× stronger global Frobenius cosine similarity with exact oracle backpropagation gradients than Fixed Random Direct Feedback Alignment ($+0.00963$ vs. $+0.00057$, approximately 251× the theoretical isotropic random RMS cosine).
- FJPT's unsupervised forward-only layer trust metric strongly tracks true per-layer oracle gradient alignment (Pearson $r = +0.707$, Spearman $\rho = +0.335$).
3. Architecture-Agnostic & Low Alignment Tax Across 1B–4B
- Evaluated out-of-the-box on unmodified Dense Transformers (MiniCPM5-1B-Base, IFM/K2-Horizon-3.7B) and Hybrid Gated DeltaNet + Attention (Qwen/Qwen3.5-4B-Base) trained on a 13-gram decontaminated 29-source corpus (409,457 bank rows; 93,273 loaded 1B/3.7B training rows; ~12M unique tokens).
- Preserves base language modeling fluency with WikiText-103 perplexity drift of only +3.3% to +6.1%, compared to +20.1% to +71.7% observed on official post-trained releases under raw completion.
- 1B (MiniCPM5-1B-Base): 7-task external macro-average improves from 51.52% → 51.89% ± 0.13% across 2 seeds (Seed 2: +0.46 pt, $p_{\text{boot}} = 0.039$); MMLU gains +1.82 to +2.22 pt ($p < 10^{-6}$), and +2.69 pt (to 41.84%) without cosine annealing.
- 3.7B (IFM/K2-Horizon-3.7B): +0.30 pt at 1k steps / +0.29 pt at 3k steps.
- 4B (Qwen/Qwen3.5-4B-Base): +0.09 pt at 2k steps / −0.06 pt at 3k steps.
4. Transparent Mechanistic Bottleneck Discovery & Item-Level Reproducibility
- Full subtractive ablations—including No Jacobian (52.47% 7-task macro-average / 35.00% GSM8K) and Fixed Random DFA (41.65% MMLU at 2k steps / 40.58% at 3k steps)—paired with 11th-pass composite diagnostics isolate three fundamental bottlenecks governing long-horizon forward-only continual learning:
- Single-step cross-layer spectral concentration (effective spectral rank $\approx 1.95$).
- Linear readout vs. nonlinear projection gap ($+0.0128$ oracle BP cosine on linear readout paths vs. $+0.00065$ on nonlinear
q/k/gate/upprojections). - 4-direction composite step attenuation ($\approx 1/459$ of proposed BP cosine) and quadratic model residual $\Delta_{\text{model}}$.
- Ships all 38,692 per-question evaluation outcomes and 28 SHA-256-verified GSM8K generation dumps for exact, auditable verification.
Method Overview & Figures
Architecture & Online Jacobian Estimation Pipeline
Subtractive Ablations & Cosine Annealing Dynamics (1B)
Cross-Scale Performance vs. Alignment Tax Trade-Off (1B–4B)
Oracle BP Alignment & Mechanistic Bottleneck Diagnostics
Summary Benchmark Table
| Model / Variant | Architecture | Scale | 7-Task External Macro-Avg ($\Delta$ vs. Base) | Notable Task & Ablation Findings | WikiText-103 PPL Drift |
|---|---|---|---|---|---|
| MiniCPM5-1B-Base (FJPT, 2 seeds) | Dense Transformer | 1B | 51.52% → 51.89% ± 0.13% (Seed 2: +0.46 pt, $p_{\text{boot}}=0.039$) | MMLU +1.82 to +2.22 pt ($p < 10^{-6}$); 41.84% (+2.69 pt) w/o cosine annealing | +5.0% to +6.1% |
| MiniCPM5-1B-Base (No Jacobian Ablation) | Dense Transformer | 1B | 52.47% (+0.95 pt) | MMLU 39.64% (+0.49 pt, $p=0.176$); GSM8K 35.00% | +1.4% |
| MiniCPM5-1B-Base (Fixed Random DFA) | Dense Transformer | 1B | 52.73% (2k) / 52.34% (3k) | MMLU 41.65% (2k) / 40.58% (3k); Oracle BP cos +0.00057 vs. FJPT +0.00963 | +2.7% to +3.6% |
| IFM/K2-Horizon-3.7B (FJPT) | Dense Transformer | 3.7B | 66.16% → 66.46% (1k, +0.30 pt) / 66.45% (3k, +0.29 pt) | Consistent low-tax post-training across dense mid-scale weights | +3.8% |
| Qwen/Qwen3.5-4B-Base (FJPT) | Hybrid Gated DeltaNet + Attention | 4B | 68.61% → 68.70% (2k, +0.09 pt) / 68.55% (3k, −0.06 pt) | Zero-modification compatibility with hybrid recurrent-attention layers | +3.3% |
| Official Post-Trained Releases (Reference) | Dense / Hybrid | 1B–4B | Reference baselines | Evaluated under identical raw completion protocol | +20.1% to +71.7% |
Resource Footprint: 1B training peaks at 4.89 GB VRAM using disk-backed
mmapFP32 master weights, strictly within a 22 GB single-GPU memory budget across all 1B–4B experiments.
Quick-Start Reproduction
Clone the full code and reproducibility repository (or inspect the files directly in this Hub repository), verify all mathematical invariants, checksums, and paper tables on CPU, or run FJPT training/diagnostics:
# 1. Clone the repository & install dependencies
git clone https://github.com/AwakeningOS/fjpt.git
cd fjpt
pip install -r requirements.txt
# 2. Verify SHA-256 checksums, reproducibility contracts, and regenerate all paper tables & McNemar/bootstrap stats on CPU
PYTHONPATH=src python3 -B scripts/verify_reproducibility_contract.py
PYTHONPATH=src python3 -B scripts/summarize_results.py
PYTHONPATH=src python3 -B scripts/paired_benchmark_stats.py
# 3. Run CPU mathematical & architecture verification suites (Dense + Gated DeltaNet + mmap bit-exactness)
CUDA_VISIBLE_DEVICES="" PYTHONPATH=src python3 -B src/fjpt/checks/verify.py
CUDA_VISIBLE_DEVICES="" PYTHONPATH=src python3 -B src/fjpt/checks/verify_final.py
CUDA_VISIBLE_DEVICES="" PYTHONPATH=src python3 -B scripts/verify_diagnostics_cpu.py
# 4. Run FJPT forward-only post-training (10 inference_mode passes/step, 22 GB cap, mmap FP32 masters)
PYTHONPATH=src python3 scripts/run_fjpt.py \
--model-path /path/to/MiniCPM5-1B-Base \
--corpus-root /path/to/decontaminated_corpus \
--out-dir ./runs/fjpt_1b --steps 3000 --master-store mmap
# 5. Run oracle backpropagation cosine & 11th-pass composite diagnostics
PYTHONPATH=src python3 scripts/run_jacobian_bp_diagnostics.py \
--model-path /path/to/MiniCPM5-1B-Base \
--corpus-root /path/to/decontaminated_corpus \
--out-dir ./runs/bp_diagnostics
For full configuration files, 13-gram corpus decontamination scripts, bootstrap significance tests, and per-question evaluation tables, please refer to the GitHub repository: AwakeningOS/fjpt.
日本語概要・本研究の4つのポイント
本研究 FJPT(Forward Jacobian Post-Training) は、誤差逆伝播法(Backpropagation)、自動微分(AutoDiff/JVP)、および推論時アダプタを一切使用せず、順伝播のみ(1ステップあたり厳密に10回の torch.inference_mode()) で1B〜4B規模の大規模言語モデル(LLM)の内部線形射影群を事後学習できるかを検証し、その信用割当(Credit Assignment)の精度と長期的スケーリングにおける機構的ボトルネックを解明した研究です。日本語版論文PDFは paper/draft_ja.pdf から閲覧できます。
- 誤差逆伝播・AutoDiff/JVP・推論アダプタ完全不使用:出力ヘッドの解析的誤差 $e_r$・各層入力 $x_m$・QR直交化ランク1対照プローブ・FP64 Cholesky リッジ回帰を組み合わせ、各線形層の実効ヤコビアン低ランク代理行列 $B_m$ をオンライン推定します。ディスク上の
mmapFP32 マスター重みにより、1Bモデルで最大VRAM 4.89 GB(全実験22 GB上限内)を実現し、標準BF16重みとしてそのまま出力できます。 - 厳密BP(Oracle Backpropagation)との比較によるオンライン信用割当の実証:MiniCPM5-1B-Base(内部679.5Mパラメータ・168線形層)において、層信頼度付きランク128候補($w=4$)は、固定ランダムDFAと比較して厳密BP勾配との大域フロベニウスコサイン類似度で16.8倍($+0.00963$ vs. $+0.00057$、理論等方ランダムRMSコサインの約251倍)を達成しました。さらに、教師なしの順伝播層信頼度は各層の真のBP勾配整列度と強く相関します(Pearson $r = +0.707$、Spearman $\rho = +0.335$)。
- アーキテクチャ非依存性と低いアライメント税(1B〜4B):13-gram汚染除去済みの29ソース・コーパス(409,457バンク行、1B/3.7B学習ロード93,273行、約1,200万ユニークトークン)を用い、Dense Transformer(MiniCPM5-1B-Base、IFM/K2-Horizon-3.7B)および Hybrid Gated DeltaNet + Attention(Qwen/Qwen3.5-4B-Base)を無改変のまま学習しました。WikiText-103のPPLドリフトは**+3.3%〜+6.1%**に抑えられ(公式事後学習モデルの生補完評価では+20.1%〜+71.7%)、1Bモデルの7タスク外部マクロ平均は **51.52% → 51.89% ± 0.13%**(2シード、Seed 2は +0.46 pt, $p_{\text{boot}} = 0.039$、MMLUは +1.82〜+2.22 pt, $p < 10^{-6}$、コサイン減衰なしでは +2.69 pt の41.84%)、3.7Bは1kで +0.30 pt / 3kで +0.29 pt、4Bは2kで +0.09 pt / 3kで −0.06 pt を記録しました。
- 機構的ボトルネックの透明な特定と問題単位の完全再現性:No Jacobian(7タスク 52.47% / GSM8K 35.00%)や Fixed Random DFA(MMLU 2k時 41.65% / 3k時 40.58%)などの減算アブレーションおよび11回目パス複合診断により、長期的な順伝播継続学習を阻む3つの本質的ボトルネック——(i) 単一ステップでの層横断スペクトル集中(実効スペクトルランク $\approx 1.95$)、(ii) 線形リードアウト($+0.0128$)と非線形
q/k/gate/up層($+0.00065$)のBP整列ギャップ、(iii) 4方向複合ステップ減衰(提案BPコサインの約 $1/459$)と二次モデル残差 $\Delta_{\text{model}}$——を特定しました。全38,692問の個別正誤結果と28本のSHA-256検証済みGSM8K生成ログを公開しています。
Citation
If you use FJPT, its diagnostic suite, or the released evaluation artifacts in your research, please cite:
@misc{maeda2026fjpt,
author = {Maeda, Yusuke},
title = {Forward-Only Post-Training of Large Language Models via Online Jacobian Estimation},
publisher = {Zenodo},
year = {2026},
doi = {10.5281/zenodo.24811498},
url = {https://doi.org/10.5281/zenodo.24811498},
note = {alphaXiv: https://www.alphaxiv.org/abs/2612.forward-only-post-training-fjpt}
}
License
Source code and verification scripts are released under the Apache-2.0 License; preprint manuscripts (paper/main.pdf and paper/draft_ja.pdf) are licensed under CC BY 4.0. Base model weights and upstream datasets referenced in the experiments remain subject to their respective original licenses.



