Skip to content

Chime v0.29.2 — First-Principles Canonical BPE, Contextual LM Trust & Shannon RAG Decontamination

Choose a tag to compare

@tyrchen tyrchen released this 04 Dec 18:19
· 3 commits to main since this release

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 in CompactVocab::encode with 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_symmetry strictly 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@5 94.90%, 3–4 char Acc@1 80.59% → 82.35%).
    • Stage-1 Acc@1: 80.40% → 81.10% (+0.70 pp, Hit@5 94.20%).