Alpa-Sense अल्पार्थ
Enter a Sanskrit śloka to watch its sandhi cleave into units, follow its live Pāṇinian chain-of-thought, and see how its meaning is derived — locally on your CPU.
ITRANS: A आ I ई U ऊ RRi ऋ T ट N ण sh श Sh ष M ं H ः .a ऽ
पद-विश्लेषण · Pāṇinian word anatomy
Sound & Symbolic Lens Deterministic Pāṇinian Śikṣā vocal-tract features & cited classical references · zero neural weights
Pāṇinian Śikṣā articulatory ribbon
Trace these sounds to 24 kHz speech in Inside →Every phoneme below carries the exact 20-dimensional Pāṇinian feature vector fed into Alpa-Sense’s encoder. Tap any sound to inspect its place of articulation and weight.
Cited classical references (Nirukta & Ekākṣara Kośa)
Traditional philological and seed-syllable notes drawn from pinned public-domain editions — kept strictly separate from Alpa-Sense’s neural predictions.
About Alpa-Sense
Alpa-Sense v0.3 (अल्पार्थ, “small meaning”) pairs two compact neural models inside this browser tab: Alpa’s 4.5-million-parameter voice speaks the fused Sanskrit line aloud, while a 41.5-million-parameter Sense-First Alpa-Transfer model unweaves sandhi junctions, streams a natural literary English translation immediately, and then traces every word’s compounds, Pāṇinian roots, and grammatical tags. Both models run locally in single-threaded WebAssembly via ONNX Runtime Web — tuned specifically for mobile and laptop CPUs — and are cached in your browser after the first visit. Nothing you type leaves your device.
How it works
Instead of reading Devanagari letters as opaque subwords, Alpa-Sense’s 3×4 looped encoder (12 effective layers) reads canonical Sanskrit phonemes enriched with 20 Pāṇinian articulatory features (place of articulation, voicing, aspiration, guṇa/vṛddhi grade, metrical weight, and word edge). It feeds directly into a vocab-pruned (8,192-token) 8-layer Flan-T5-small English decoder emitting a Sense-First Atomic Pāṇinian Chain-of-Thought (<sandhi> → <phrase_sense> → <word>, losslessly expanded in the browser) with lightweight Sandhi Beam-2 on the opening word split — quantized to 40.22 MiB INT8 ONNX for fast single-thread decoding on phones.
Measured performance (v0.3)
- 100%phrase-sense completion across all 370 blind Alpa-173 half-verse lines (zero mid-verse truncation, +2.9 chrF / +4.1 Word F1 over v0.2) — with fluent English arriving right after the opening sandhi split.
- 93.6%sandhi-split F1 across 13 completely unseen classical texts from the Digital Corpus of Sanskrit (87.6% lemma acc, 87.5% morph tag acc, +6.4% exact space-free sandhi split and +2.5 chrF English gain over v0.2).
- 94.0%of held-out test inflections (1,320 / 1,405) pass a live Vidyut Pāṇinian round-trip synthesis proof; 86.1% (1,841 / 2,138) on never-seen Yaugika root-and-affix combinations.
- 40.2 MiBtotal INT8 ONNX browser bundle (11.01 MiB encoder + 29.22 MiB KV-cached decoder), Apache-2.0, zero extra bytes over v0.2, streaming cleanly on a single browser WASM CPU thread.
Limits
- Research preview (v0.3): decodes up to 256 phonemes per line. Multi-line ślokas are split at daṇḍas (। / ॥) or line breaks and automatically assembled into a unified Full Śloka Sense, with per-line sandhi and Pāṇinian anatomy one tap away; clauses whose grammar spans across two half-verses (cross-line anvaya) are currently translated line by line.
- Rare proper names, archaic Vedic forms, and deep poetic suggestion (dhvani) may receive a literal root gloss rather than commentary-level nuance.
- English phrase senses are distilled from open classical corpora and can simplify philosophical passages; verify critical translations against a scholarly edition.
- Single-word Yogarūḍha versus Rūḍha distinctions reflect patterns seen in training rather than an exhaustive lexicon.
Credits
- Flan-T5-small by Google (Apache-2.0): pretrained 8-layer English decoder initialized via exact RMS re-parameterization and vocab-pruned to 8,192 tokens.
- Vidyut by Ambuda (MIT): Pāṇinian prakriyā grammar engine used for ground-truth morphology and live round-trip verification.
- Digital Corpus of Sanskrit (DCS) by Oliver Hellwig (CC-BY-4.0): sandhi-split, lemmatized, and morphologically analyzed classical texts.
- Itihāsa (Apache-2.0): Rāmāyaṇa & Mahābhārata parallel corpus aligned to gold DCS parses for epic literary reference grounding.
- Cologne Digital Sanskrit Dictionaries (Monier-Williams, public domain): lexical definitions and compound senses.
- Qwen3-235B (Apache-2.0): used during offline training data preparation to audit 5,798 classical lexicon entries and synthesize literary English phrase senses.
- ONNX Runtime Web by Microsoft (MIT) and Alpa Voice v0.2 (Apache-2.0).