RL-N04 · Technical Report ✓ Done ~9 min read ← Back to Training & RL · 2026-12-05
Kessan-15B-A2.5B 決算

Kessan-15B-A2.5B: Clean-Room Two-Stage SFT, Non-Expert MoE Hybrid-F16 GGUF Merging, and Tool-Assisted Japanese EDINET Analysis

Sparse MoEHybrid-F16 GGUFClean-Room SFTEDINET & JFinQATool Calling

Base Model: openbmb/MiniCPM5-15B-A2.5B (minicpm5_moe, 15B total / 2.5B active, 524K context, Apache-2.0) · Compute: $3.06 RunPod A100 80GB · Updated: 2026-12-05

TL;DR & Engineering Findings

Kessan-15B-A2.5B turns openbmb/MiniCPM5-15B-A2.5B (15B total / 2.5B active sparse MoE, 524K native context) into a local Japanese EDINET financial analyst for $3.06 of total GPU compute, while uncovering three concrete post-training and quantization results:

  • Non-expert MoE quantization rule: Naive Q4_K re-quantization destroys small-delta LoRAs (rel_d = 0.0018–0.0126, dropping retention to ρ = 0.0057 on blk.0.attn_k). Because Kessan modifies only 168 non-expert tensors (399.5M params = 2.6%), storing just those 168 fused tensors in F16 (+564 MB) while copying all 250/250 untouched routed-MoE expert tensors SHA-256 bit-identical gives a drop-in 9.02 GiB GGUF with mean ρ = 0.998987 (min ρ = 0.991147) built in 33.8s on CPU.
  • Clean-room 2-stage SFT & dataset hygiene: Excluding all 685 test company codes and 775 document IDs across EDINET-Bench/test and JFinQA (zero leak) lifts paired JFinQA 77.5% → 85.0% (88.0% full 50-question suite), shrinks outputs 4.6× (794.1 → 172 tokens), and eliminates Simplified-Chinese leaks (0/50).
  • llama-server XML token 18–21 fix + honest negative results: Restoring MiniCPM5’s stripped special tool tokens lifts 5-year DCF 0/5 → 5/5 and all-5 multiples 25% → 75.0% strict / 83.3% numeric with 0 tool errors across 34/37 calls — while text-only EDINET-Bench Earnings Forecast (47.5%) and Fraud Detection (52.5%) stay honestly near coin-flip.

Looking for downloads, verbatim sample outputs, and copy-paste quickstart snippets? Visit the Kessan-15B-A2.5B Release Hub. This note documents the full methodology, quantization measurements, data-hygiene audit, runtime bug fix, and negative findings that do not fit on a model card.

1. Motivation & Measured Baseline Failure Modes

Japan’s EDINET repository publishes annual securities reports (有価証券報告書, 80–150 pages each) for roughly 4,000 listed companies in Japanese, while Toyo Keizai discontinued the English-language Japan Company Handbook (英文会社四季報) with its Autumn 2024 issue. Running a local Japanese financial analyst on a single consumer GPU or 16 GB laptop enables zero-cost bulk screening and keeps watch-lists and valuation assumptions private.

openbmb/MiniCPM5-15B-A2.5B is an unusually strong local base: its official Q4_K_M GGUF weighs 8.5 GiB (9.12 GB), activates only 2.5B parameters per token (83–90 tok/s decode and up to 1,585 tok/s prefill on an AMD Radeon 8060S laptop iGPU via Vulkan llama.cpp), supports 524K native context, and includes native XML <function> tool calling.

However, upstream MiniCPM5-15B-A2.5B declares only en and zh. Auditing the unmodified Q4_K_M base on Japanese EDINET filings and JFinQA exposed four concrete failure modes:

  1. Simplified-Chinese character leakage: 40.0% of EDINET-Bench outputs (16/40) and 2/40 paired JFinQA rows leaked Simplified-Chinese characters (为, 渠道, 非经常性) into Japanese financial prose.
  2. Verbose thinking loops & timeouts: Average output ran 794.1 tokens on paired JFinQA (n=40) and 1,092+ tokens on EDINET-Bench, hitting timeout caps on 32.5% of earnings-forecast filings.
  3. Accounting definition & missing-input errors: In tool-smoke testing (tool_05_no_tool_math), the base model confused Benjamin Graham’s Net Current Asset Value (NCAV = Current Assets − Total Liabilities) with Net Working Capital (Current Assets − Current Liabilities), and on filing-only prompts routinely fabricated missing stock prices or discount rates to emit a PER/PBR or DCF target.
  4. 13-digit full-yen conversion drift: Raw Japanese filings report figures in full yen up to 14 digits (18,450,000,000円), causing factor-of-10 yen-to-億円 slips in raw prose arithmetic.

2. Clean-Room Data Pipeline & Two-Stage Non-Expert SFT ($3.06 Total Compute)

2.1 Zero-Leak Hygiene & Fixing v1 Truncation

Before generating a single training example, kessan_edinet_utils.py enforces a fail-closed ban list across 685 unique EDINET company codes and 775 document IDs covering the full union of SakanaAI/EDINET-Bench/test and JFinQA (including 45 hidden cross-dataset company overlaps found between raw EDINET-Bench/train and JFinQA/test). Every training and validation split verifies:

  • banned_test_code_overlap = 0 and banned_test_doc_overlap = 0
  • train_val_company_overlap = 0 (across 809 unique training companies)
  • cn_leaks = 0, inequality_errors = 0, and 26-character n-gram dedup = 0 hits

Early v1 experiments exposed a silent data bug: a [:900] character slice truncated multi-year balance-sheet tables before reaching cash flow and liabilities. In v2 we replaced raw string slicing with a zero-truncation structured multi-year financial statement formatter.

2.2 Two-Stage Curriculum ($3.06 on RunPod A100 80GB)

We trained a LoRA (r=16, alpha=32) strictly on the 168 non-expert linear modules (attn_k, attn_v, attn_output across all 28 layers, Layer-0 dense FFN, and Layers 1–27 shared-expert FFN projections = 399.5M parameters, 2.6% of the 15B model), leaving all 64 × 27 routed MoE experts, q_gate_proj, embeddings, lm_head, and the 524K context backbone untouched:

  • Stage 1 ($2.12, 388 steps, lr=5e-5): 1,550 zero-leak training rows (161 validation rows) spanning Japanese GAAP/IFRS unit math, Graham NCAV, multi-ratio valuation, 5-year Gordon-Growth DCF, filing-only abstention, bilingual fundamental cards, EDINET-Bench/train alignment, and lightweight tool/general replay (tool_replay, IFEval, general math/code) to prevent capability regression. Validation domain cross-entropy dropped 1.1049 → 0.2391 while replay cross-entropy improved 0.6941 → 0.5770 (zero catastrophic forgetting).
  • Stage 2 Surgical Anti-Whiff ($0.94, 100 steps from Stage-1 best_lora, lr=1.5e-5): 793 targeted rows addressing the exact residual failure modes observed after Stage 1:
    • s2_8digit_ncav (160): explicit 8-digit right-hand split (下8桁区切り, 1億円 = 10^8円)
    • s2_fcf_val_multiples (140): strict FCF = Operating CF + Investing CF sign handling + 5-ratio screening
    • s2_math_sign_sanity (80): sign preservation across negative earnings and cash outflows
    • s2_value_card_en (80): strict English-only prose output from raw Japanese EDINET filings
    • s2_dcf_abstention (60): compute historical FCF from the filing, then refuse DCF intrinsic share price when market price, WACC, or growth assumptions are absent

2.3 Clean-Room Public Dataset Policy (Kessan-EDINET-Quant-SFT)

When publishing Cold-ServeLabs/Kessan-EDINET-Quant-SFT, we intentionally excluded all third-party task splits (EDINET-Bench EF/Fraud tasks and labels, raw filing prose excerpts 【事業の内容】 / 【事業等のリスク】, and external general/code replay) so we never republish other researchers’ benchmark corpora. The published 1,060-row Parquet release (1,000 train + 60 validation across 470 unique companies) contains exclusively Cold-Serve Labs’ original deterministic prompts and Python-verified arithmetic derivations (0 prose excerpts, 0 test leaks, 0 Simplified-Chinese leaks, 0 PII/path hits).

3. First-Principles Quantization Finding: Why Naive Q4_K Destroys Small-Delta LoRAs (and Our Hybrid-F16 Fix)

Most open-weight fine-tunes are distributed as standalone GGUFs by merging the LoRA into BF16 and re-quantizing the entire model back to Q4_K_M. Before building Cold-ServeLabs/Kessan-15B-A2.5B-GGUF, we measured actual LoRA delta preservation per tensor using cosine alignment between the quantized shift and the true LoRA update:

ρ = cos( dequant(Wq) − Wbase, ΔWLoRA )

Because Kessan’s LoRA updates have small relative Frobenius norm (rel_d = 0.0018 – 0.0126, mean 0.0122), 4-bit block quantization noise (~0.03) completely swamps the fine-tuned update:

Tensor (MiniCPM5-15B-A2.5B) Base Type rel_d Naive Re-Quant (Q4_K/Q6_K) ρ Q8_0 ρ Hybrid F16 ρ
blk.0.attn_k.weightQ4_K0.00180.00570.31300.9932
blk.0.attn_output.weightQ4_K0.00720.01900.81200.9997
blk.0.attn_v.weightQ6_K0.00490.16850.66980.9991
blk.0.ffn_down.weightQ6_K0.00470.14200.66730.9990
blk.0.ffn_gate.weightQ4_K0.01260.05520.93390.9999
blk.0.ffn_up.weightQ4_K0.00950.03060.88510.9998
blk.20.attn_k.weightQ4_K0.00390.00870.54060.9985
blk.20.attn_output.weightQ4_K0.00530.01460.70840.9993

The Hybrid F16-Fused Solution (build_kessan_fused_gguf.py)

Because Kessan’s LoRA touches only 168 non-expert tensors (399.5M params = 2.6% of the 15B model), storing just those 168 fused tensors in F16 (799.0 MB vs 234.5 MB = +564 MB) while copying all 250/418 untouched routed-MoE expert, embedding, norm, and output tensors 100% SHA-256 bit-identical from OpenBMB’s official MiniCPM5-15B-A2.5B-Q4_K_M.gguf delivers:

  • Near-lossless delta preservation across all 168 tensors: mean ρ = 0.998987, min ρ = 0.991147 (verified directly against PEFT adapter_model.safetensors on non-square tensors, exact orientation cos = 0.9933 on blk.0.attn_k).
  • Bit-identical base experts: 250/250 untouched tensors verified SHA-256 bit-identical (merge_report.json).
  • Single drop-in 9.02 GiB file (Kessan-15B-A2.5B-Q4_K_M.gguf): Built locally on CPU in 33.8s with zero 30 GB BF16 download, deduplicated automatically on Hugging Face Xet (1.08 GB delta transfer), and verified live on Vulkan llama-server b12973 (5.0s boot, 70.7–71.0 tok/s decode, zero --lora flag).

Contrast With Our Negative Finding (Mimic-Twain / RL-N03): On our 26.4B-A5B looped-MoE fine-tune Mimic-Twain (Cold-ServeLabs/Mimic-Twain-LoRA), the LoRA modified all 128 routed MoE experts (26B params) with rel_d = 0.0008. Re-quantizing experts into NVFP4 / Q8_0 collapsed delta retention to ρ = 0.0015 / 0.0446, while keeping touched experts in F16 would inflate the file to ~52 GB. Architectural takeaway: On sparse MoE models, restricting domain SFT LoRAs to non-expert layers makes lossless (ρ = 0.999) standalone GGUF distribution nearly free (+6.2% file size).

4. Tool-Augmented Verification & Runtime Engineering Trap

To keep 13-digit full-yen conversions, multi-ratio screening, and 5-year compounding DCF auditable, we pair Kessan with a zero-dependency sandboxed Python toolkit (tools/kessan_mcp_tools.py: calc_edinet_metrics, calc_dcf_5y, run_python_math, plus live fetch_jp_quote and read_ir_pdf hooks).

  • Native tool calling preserved: 6/6 on the paired tool smoke (9.5s vs 24.8s base; on tool_05_no_tool_math, Kessan fixed the base model’s NCAV vs Net Working Capital bug in one sentence).
  • Runtime bug caught & fixed (XML token IDs 18–21): Under llama-server, MiniCPM5 marks its XML tool-call wrapper tokens (<function, </function>, <param, </param>, token IDs 18–21) as special: true, so plain text completions silently strip them unless "special": true is passed and parsed cleanly via parse_minicpm5_tool_calls().
  • Measured tool lift: With that parser enabled, Kessan invoked tools on 34/37 hard EDINET valuation tasks with 0 execution errors:
    • 5-Year DCF (n=5): 0% → 100% (0/5 → 5/5)
    • English NCAV (n=5): 80% → 100% (4/5 → 5/5)
    • All-5 Valuation Multiples (n=12): 25% → 75.0% strict / 83.3% numeric (3/12 → 9/12 strict, 10/12 numeric)
    • Overall Hard EDINET Quant (n=37): 45.9% → 73.0% strict / 78.4% numeric
Base MiniCPM5-15B vs Kessan-15B-A2.5B standalone benchmarks on JFinQA and EDINET-Bench
Figure 1 — Standalone Reading, Token Efficiency & Japanese Cleanliness: Held-out comparison on paired unseen JFinQA (n=40) and EDINET-Bench (n=40) with zero company overlap against training.
Prose arithmetic alone vs typed Python calculators on hard EDINET valuation and 5-year DCF
Figure 2 — Prose Arithmetic vs Typed Python Calculators: Separating filing extraction from compounding arithmetic via tools/kessan_mcp_tools.py lifts 5-year DCF 0/5 → 5/5 and all-5 multiples 25% → 75% strict / 83.3% numeric with 0 execution errors.

5. Benchmark Scorecard & Honest Negative Results

All evaluations ran locally on MiniCPM5-15B-A2.5B-Q4_K_M.gguf (llama.cpp b12973 Vulkan, T=0.7, top_p=0.95, rep_pen=1.05, --min-p 0) with zero overlap against training companies:

Benchmark (Zero Company Overlap) Base MiniCPM5-15B-A2.5B Kessan-15B-A2.5B (Standalone) Kessan-15B-A2.5B + Tools
JFinQA Paired (n=40, NR + Temporal) 77.5% (794.1 tok, 2 CN leaks) 85.0% (172 tok = 4.6× leaner, 0 CN leaks) —
JFinQA Full (n=50, incl. Consistency) Timed out at 40/50 88.0% (44/50: 10/10 cons., 12/12 temp., 22/28 NR; 160.7 tok, 0/50 CN) —
Missing-Price Abstention (n=15) Guesses PER/PBR/DCF 100% (15/15) 100%
Native <function> Tool Smoke (n=6) 6/6 (24.8s) 6/6 (9.5s) 6/6
Hard EDINET 5Y DCF (n=5) — 0/5 (0%) 5/5 (100%)
Hard EDINET EN NCAV (n=5) — 4/5 (80%) 5/5 (100%)
Hard EDINET All-5 Multiples (n=12) — 3/12 (25%) 9/12 strict / 10/12 numeric
EDINET-Bench EF (n=40, text-only) 32.5% timeouts, 40% CN leaks, 1,092 tok 47.5% (40/40 done, 362.7 tok, 1 CN leak, MCC −0.052, AUC 0.485) —
EDINET-Bench Fraud (n=40, text-only) — 52.5% (40/40 done, 354.0 tok, 0 CN leaks, MCC +0.060, AUC 0.503) —

Honest Negative & Null Results

  • Text-only earnings forecasting & fraud detection sit near coin-flip (47.5% / 52.5%): Even with 100% completion, 3× shorter reasoning, 1.000 unique rationales, and near-zero Chinese leaks, a single annual securities filing without macro, market-price, or sector-peer signals does not reliably predict next-year net income direction or accounting fraud. Do not use Kessan as a standalone earnings-direction or fraud oracle.
  • Prose-only 13-digit full-yen arithmetic still slips (40.0% strict pass on the 60-item hard EDINET suite): Separate reading and extraction (Kessan) from multi-step compounding and 13-digit yen division (tools/kessan_mcp_tools.py).
  • Recommended production pattern (2-Tier Local → Cloud Companion): Run Kessan-15B-A2.5B-GGUF + kessan_mcp_tools.py locally at $0 and 100% privacy to screen 50–200 Japanese EDINET filings into audited ratio cards, then pass only the 3–5 finalists to a cloud frontier model for qualitative moat and management analysis.

6. Verification, Checksums & Open Artifacts

ArtifactSize / SplitSHA-256
Kessan-15B-A2.5B-Q4_K_M.gguf (Hybrid-F16 Standalone) 9.016 GiB (9,680,443,776 B) cf1e1bfb296890a33ba03705667886b762f1b9eb1bc4f8a7f9c7a6344403ac34
Kessan-15B-A2.5B-LoRA-F16.gguf (--lora Adapter) 16.48 MB b7708c4c85835a3c1e394a1ad771efae2b6e337b0b0c1a5860d097d497571dff
adapter_model.safetensors (PEFT LoRA) 33 MB 0651936a71e556d26212b8a6f509cae7d87e9f5ef89647718978193c00bfe473
Cold-ServeLabs/Kessan-EDINET-Quant-SFT (Parquet) 1,000 train / 60 val (470 firms) train 06af251f0d0091fb… · val cd737858bfc31e0b…