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_Kre-quantization destroys small-delta LoRAs (rel_d = 0.0018–0.0126, dropping retention toρ = 0.0057onblk.0.attn_k). Because Kessan modifies only 168 non-expert tensors (399.5Mparams =2.6%), storing just those 168 fused tensors inF16(+564 MB) while copying all 250/250 untouched routed-MoE expert tensors SHA-256 bit-identical gives a drop-in9.02 GiBGGUF withmean ρ = 0.998987(min ρ = 0.991147) built in33.8son CPU. - Clean-room 2-stage SFT & dataset hygiene: Excluding all 685 test company codes and 775 document IDs across
EDINET-Bench/testandJFinQA(zero leak) lifts pairedJFinQA77.5% → 85.0% (88.0%full 50-question suite), shrinks outputs 4.6× (794.1 → 172tokens), and eliminates Simplified-Chinese leaks (0/50). llama-serverXML token18–21fix + 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 with0tool errors across34/37calls — while text-onlyEDINET-BenchEarnings 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:
- Simplified-Chinese character leakage:
40.0%ofEDINET-Benchoutputs (16/40) and2/40pairedJFinQArows leaked Simplified-Chinese characters (为,渠道,非经常性) into Japanese financial prose. - Verbose thinking loops & timeouts: Average output ran
794.1tokens on pairedJFinQA(n=40) and1,092+tokens onEDINET-Bench, hitting timeout caps on32.5%of earnings-forecast filings. - 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. - 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 = 0andbanned_test_doc_overlap = 0train_val_company_overlap = 0(across809unique training companies)cn_leaks = 0,inequality_errors = 0, and 26-character n-gram dedup =0hits
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,550zero-leak training rows (161validation 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/trainalignment, and lightweight tool/general replay (tool_replay,IFEval, general math/code) to prevent capability regression. Validation domain cross-entropy dropped1.1049 → 0.2391while replay cross-entropy improved0.6941 → 0.5770(zero catastrophic forgetting). - Stage 2 Surgical Anti-Whiff ($0.94, 100 steps from Stage-1
best_lora,lr=1.5e-5):793targeted 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): strictFCF = Operating CF + Investing CFsign handling + 5-ratio screenings2_math_sign_sanity(80): sign preservation across negative earnings and cash outflowss2_value_card_en(80): strict English-only prose output from raw Japanese EDINET filingss2_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:
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.weight | Q4_K | 0.0018 | 0.0057 | 0.3130 | 0.9932 |
blk.0.attn_output.weight | Q4_K | 0.0072 | 0.0190 | 0.8120 | 0.9997 |
blk.0.attn_v.weight | Q6_K | 0.0049 | 0.1685 | 0.6698 | 0.9991 |
blk.0.ffn_down.weight | Q6_K | 0.0047 | 0.1420 | 0.6673 | 0.9990 |
blk.0.ffn_gate.weight | Q4_K | 0.0126 | 0.0552 | 0.9339 | 0.9999 |
blk.0.ffn_up.weight | Q4_K | 0.0095 | 0.0306 | 0.8851 | 0.9998 |
blk.20.attn_k.weight | Q4_K | 0.0039 | 0.0087 | 0.5406 | 0.9985 |
blk.20.attn_output.weight | Q4_K | 0.0053 | 0.0146 | 0.7084 | 0.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 PEFTadapter_model.safetensorson non-square tensors, exact orientationcos = 0.9933onblk.0.attn_k). - Bit-identical base experts:
250/250untouched tensors verified SHA-256 bit-identical (merge_report.json). - Single drop-in
9.02 GiBfile (Kessan-15B-A2.5B-Q4_K_M.gguf): Built locally on CPU in33.8swith zero 30 GB BF16 download, deduplicated automatically on Hugging Face Xet (1.08 GBdelta transfer), and verified live on Vulkanllama-server b12973(5.0sboot,70.7–71.0 tok/sdecode, zero--loraflag).
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/6on the paired tool smoke (9.5svs24.8sbase; ontool_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): Underllama-server, MiniCPM5 marks its XML tool-call wrapper tokens (<function,</function>,<param,</param>, token IDs18–21) asspecial: true, so plain text completions silently strip them unless"special": trueis passed and parsed cleanly viaparse_minicpm5_tool_calls(). - Measured tool lift: With that parser enabled, Kessan invoked tools on
34/37hard EDINET valuation tasks with0execution 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
- 5-Year DCF (
n=40) and EDINET-Bench (n=40) with zero company overlap against training.
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 with100%completion,3×shorter reasoning,1.000unique 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.pylocally at$0and 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
| Artifact | Size / Split | SHA-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… |
- Release Showcase & Quickstart: Kessan-15B-A2.5B Release Hub (benchmarks, verbatim samples & setup)
- LoRA Adapter + Sandboxed Python Toolkit (Apache-2.0): Cold-ServeLabs/Kessan-15B-A2.5B
- Standalone Hybrid-F16 Fused GGUF (
9.02 GiB, zero--loraflag): Cold-ServeLabs/Kessan-15B-A2.5B-GGUF - Clean-Room SFT Dataset (
1,060rows,470companies): Cold-ServeLabs/Kessan-EDINET-Quant-SFT - Hugging Face Release Collection: Cold-ServeLabs / Kessan Collection
- Related Technical Report: RL-N03: Zero-Prompt Writing & Author-Style Fine-Tuning on Inkling-2-Mini (Mimic-Twain quantization contrast)
- Base Model & Benchmark Credits: openbmb/MiniCPM5-15B-A2.5B,
SakanaAI/EDINET-Bench, andajtgjmdjp/jfinqa(Apache-2.0). Research assistant only, not financial advice.