Alpa-Sense (अल्पार्थ) v0.3 — Sense-First Literary Sanskrit & Pāṇinian Meaning Model

Alpa-Sense v0.3 (Sense-First Alpa-Transfer) keeps the exact same 41.50M-parameter (40.22 MiB INT8 ONNX) single-thread phone-CPU footprint as v0.2 while delivering a major leap in natural literary English, space-free sandhi/compound splitting, and zero-truncation decoding on long stotra and epic verses.

What's New in v0.3 (onnx/v0.3/, recommended)

  1. Sense-First Atomic CoT (<sandhi> → <phrase_sense> → <word>): Streams the plain English translation immediately after the sandhi split (~0.25 s on device) before the word-by-word Pāṇinian anatomy — eliminating mid-verse truncation (100.0% completion across all 370 blind Alpa-173 half-verses) and preventing noisy word-level dictionary dumps from degrading English fluency.
  2. 5,798-Entry Classical Lexicon Audit & Compact Compound Glosses: Eliminates obscure secondary Monier-Williams homonym overwrites (pARi market → hand, waNka borax → axe, chisel, kAya god Ka → body, deva → god, deity, suKa running swiftly → happiness, joy) and caps compound member glosses to single primary terms.
  3. 2.2× Literary & Epic Training Scale (184,169 train rows, 110,273 with <phrase_sense>, 0 leakage): Adds 60,237 strictly train-work-only literary rows spanning 19,858 Rāmāyaṇa + Mahābhārata gold DCS parses grounded in Apache-2.0 Itihāsa human reference translations, 19,678 Purāṇa / Stotra / Kāvya / Upaniṣad / Darśana lines, 15,236 hard space-free sandhi & multi-member compound chains, and 5,465 contrastive te/me/mA/negation/vocative drills.
  4. Warm-Started Looped Encoder + SWA Cosine-Tail Soup: Warm-started the 3×4 Pāṇinian Looped Encoder (7.89M) from v0.2, paired with a fresh RMS-reparameterized google/flan-t5-small English decoder (33.61M), trained 34,000 steps (batch_tokens=16,384, 2.5× strictly masked <phrase_sense> weighting), and averaged (0.35 × step27k + 0.65 × step34k).
  • Live browser theatre & code: 77ethers/Alpa (https://alpa.blog/sense/)
  • Archives preserved: onnx/v0.2/ (40.22 MiB v0.2 Alpa-Transfer) and onnx/v0.1/ (22.17 MiB v0.1 scratch target_m_loop).

Headline Evaluation (Identical Untouched Phase 4 Held-Out Splits & Blind Alpa-173)

Gate / Benchmark v0.1 (19.7M) v0.2 (41.5M) v0.3 (41.5M, Sense-First) Delta vs v0.2
G4 Blind Alpa-173 vs PD Trans chrF / Word F1 (150 verses) 0.4262 / 0.2855 0.4324 / 0.2975 0.4611 / 0.3381 +2.87 / +4.06
G4 Blind Alpa-173 <phrase_sense> Completion (370 lines) 82.2% 91.62% 100.00% (370/370) +8.38% (zero truncation)
G1 Unseen-Work DCS English chrF / Word F1 (672, 13 works) 0.5242 / 0.4663 0.5664 / 0.5156 0.5909 / 0.5355 +2.45 / +1.99
G1 Unseen-Work DCS Sandhi F1 / Lemma / Morph Tag Acc 92.18% / 82.62% / 84.76% 92.13% / 83.71% / 84.87% 93.63% / 87.60% / 87.49% +1.50% / +3.89% / +2.62%
G1 Space-Free dcs_sandhi Sandhi F1 / Exact (greedy, 423) 74.79% / 64.54% 74.42% / 64.30% 80.15% / 70.69% +5.73% / +6.39%
G2 Live Vidyut Round-Trip Proof (test, 1,405) 94.88% 94.66% 93.95% (1,320/1,405) ≥ 92% PASS
G2 Live Vidyut Round-Trip Proof (test_yaugika, 2,138) 87.28% 88.12% 86.11% (1,841/2,138) ≥ 85% PASS
G3 Unseen Yaugika chrF / Word F1 (2,138) 0.8238 / 0.8132 0.8217 / 0.8105 0.8207 / 0.8094 ≥ 80% PASS
INT8 ONNX Browser Bundle Size 22.17 MiB 40.22 MiB 40.22 MiB (1t phone CPU) 0 bytes added

Files (onnx/v0.3/)

  • encoder_int8.onnx (11.01 MiB): 3×4 looped Pāṇinian encoder + precomputed decoder cross-attention K/V projections.
  • decoder_step_int8.onnx (29.22 MiB): 8-layer KV-cached Flan-T5-small Sense-First decoder step.
  • meta.json: Architecture config, sense_first: true, special token IDs (word_tag_id, phrase_sense_id), and canonical 62-symbol frontend fingerprint.
  • tokenizer.json: Vocab-pruned 8,192-token SentencePiece + Atomic Pāṇinian CoT lookup table (sense_first: true).

Provenance & Licenses

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support