Repository navigation
Chime v0.29.2 — First-Principles Canonical BPE, Contextual LM Trust & Shannon RAG Decontamination
Highlights
A pure first-principles refactor removing 187 net lines of hardcoded wordlists and special-case patches while pushing real-world typing accuracy even higher:
- Canonical BPE merge-rank encoding in
chime-neural: replaces greedy left-to-right longest-match inCompactVocab::encodewith true minimum-ID BPE merge-rank order so Stage-2 scoring matches Qwen3 pretraining subwords (非常好了 → [非常, 好了],挺好的 → [挺, 好的]). Eliminates OOD segmentation collapse without any hardcoded了/乐whitelist. - Contextual Neural LM pronoun resolution: removes the 71-word hardcoded inanimate/tech noun list and restricts
apply_unmarked_pronoun_symmetrystrictly to empty-context or Stage-1-only runs, letting the 64M Neural LM resolve他/她/它across all antecedents (这个架构怎么让 + ta → 它). - Shannon compositional character surprisal for Voice RAG: replaces the 70-character hardcoded function-char table with lexicon single-character unigram entropy, rejecting OOV function fragments (
是要,给它,用的是) purely via information theory while preserving genuine rare entities (瘦金体,幂等,陈晓岚). - Unified per-syllable noisy-channel nasal fallback: replaces per-length magic score thresholds with a single per-syllable log-probability threshold (
-3.05 nats/syl), and removes single-word English casing hacks from the decoder. - Verified real-world benchmark (1,000 real typing commits, cold-start):
- Stage-2 MLX Acc@1:
85.00% → 85.80% (v0.29.1) → 86.10% (v0.29.2)(+1.10 pp, Hit@594.90%, 3–4 char Acc@180.59% → 82.35%). - Stage-1 Acc@1:
80.40% → 81.10%(+0.70 pp, Hit@594.20%).
- Stage-2 MLX Acc@1: