Download docs/final_deck/dense_v26/main.html from Anupam-Rawat-IITB/code-switch-mtp: direct link, hf CLI and curl.
- Browser
- Download file 6.68 kB
-
https://huggingface.co/Anupam-Rawat-IITB/code-switch-mtp/resolve/main/docs/final_deck/dense_v26/main.html
- Command line
-
hf download hf://Anupam-Rawat-IITB/code-switch-mtp/docs/final_deck/dense_v26/main.html
-
curl -L -o main.html https://huggingface.co/Anupam-Rawat-IITB/code-switch-mtp/resolve/main/docs/final_deck/dense_v26/main.html
6.68 kB
| <section id="main" class="main"> | |
| <div class="head"> | |
| <h1 class="title">Diagnosis: the Hindi word group decides where drafts fail</h1> | |
| <p class="byline">CS 769 project, group G31. Anupam Rawat, Sujeet Kumar Singh, Bilal Baig. Mentor: Karthika N J.</p> | |
| </div> | |
| <div class="row"> | |
| <div class="blk unit"> | |
| <h3 class="blk-h">The linguistic unit</h3> | |
| <p class="body">Hindi writes postpositions, auxiliaries and particles as separate words, but they belong with the content word before them:</p> | |
| <p class="hi">हॉल में, जा रहा है, देखते ही.</p> | |
| <p class="body">This is the word group of Karthika et al. (arXiv 2501.03988). We label every drafted token as one of three positions: <b>inside a word</b>; <b>function-word start</b> (continues the group); <span class="hot"><b>group start</b></span> (a new content word).</p> | |
| <p class="small">The table uses a list of 78 postpositions, auxiliaries and particles. It agrees with groups from the Stanza tagger on 85% of word starts (all 238 documents).</p> | |
| </div> | |
| <div class="finding"> | |
| <h3 class="blk-h">Main finding</h3> | |
| <div class="fb"> | |
| <div class="tblw"> | |
| <p class="small">First-draft accuracy by position, scored against the frozen model’s own output (what verification accepts). Dependent heads with backbone targets, 3 seeds. Brackets: share of tokens.</p> | |
| <div class="grid"> | |
| <p class="gh">Condition</p> | |
| <p class="gh">Inside a word</p> | |
| <p class="gh">Function-word start</p> | |
| <p class="gh gs">Group start</p> | |
| <p class="gh old">Any word start (old split)</p> | |
| <p class="gl">Hindi (Devanagari)</p> | |
| <p class="gc"><b>73%</b> <span class="share">(62%)</span></p> | |
| <p class="gc"><b>76%</b> <span class="share">(13%)</span></p> | |
| <p class="gc gs"><b>36%</b> (25%)</p> | |
| <p class="gc old">50%</p> | |
| <p class="gl">Hindi (ITRANS)</p> | |
| <p class="gc"><b>59%</b> <span class="share">(63%)</span></p> | |
| <p class="gc"><b>46%</b> <span class="share">(12%)</span></p> | |
| <p class="gc gs"><b>21%</b> (25%)</p> | |
| <p class="gc old">29%</p> | |
| <p class="gl">Hindi (IAST)</p> | |
| <p class="gc"><b>67%</b> <span class="share">(69%)</span></p> | |
| <p class="gc"><b>40%</b> <span class="share">(9%)</span></p> | |
| <p class="gc gs"><b>19%</b> (22%)</p> | |
| <p class="gc old">25%</p> | |
| <p class="gl">Hindi (ISO)</p> | |
| <p class="gc"><b>66%</b> <span class="share">(72%)</span></p> | |
| <p class="gc"><b>53%</b> <span class="share">(9%)</span></p> | |
| <p class="gc gs"><b>19%</b> (19%)</p> | |
| <p class="gc old">30%</p> | |
| </div> | |
| </div> | |
| <ul class="takes"> | |
| <li><b>Group starts are a quarter of the tokens and are where drafts fail:</b> 36% against 73% to 76% in Devanagari.</li> | |
| <li><b>Grammatical members of the group are draftable; group starts and compound nouns are not.</b> With tagger groups: postposition 77%, auxiliary 83%, light verb 55%, second noun of a compound 33%.</li> | |
| <li><b>Same pattern in all four spellings.</b> English has no word-start penalty (50% against 48% inside words).</li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="row"> | |
| <div class="blk sw"> | |
| <h3 class="blk-h">At Hindi-English switches</h3> | |
| <p class="small">First draft against the real text and against the frozen model’s choice. Hindi (Devanagari), dependent heads, 3 seeds, 95% intervals.</p> | |
| <table class="t bt"> | |
| <tr class="t-head"><th>Position</th><th class="sw-val">Matches text</th><th class="sw-val">Matches model</th></tr> | |
| <tr><td>Entering English</td><td>8% [5, 11]</td><td>33%</td></tr> | |
| <tr><td>Ordinary Hindi group start</td><td>17% [16, 17]</td><td>34%</td></tr> | |
| <tr><td>Return to Hindi, function word</td><td>43% [34, 51]</td><td>55%</td></tr> | |
| <tr><td>Return to Hindi, content word</td><td>6% [3, 9]</td><td>27%</td></tr> | |
| </table> | |
| <p class="body">Leaving Hindi is hardest; a function word makes the return easy. Acceptance (right) does not dip: the model misses the switch too. The 17% here and the 36% above use different references.</p> | |
| </div> | |
| <div class="blk rule"> | |
| <h3 class="blk-h">As a decoding rule: honest result</h3> | |
| <p class="small">Draft tree with 8 candidates, Hindi (Devanagari), tokens per pass, 3 seeds.</p> | |
| <table class="t bt"> | |
| <tr><td>Chain of 3 drafts</td><td class="rule-v">2.20</td><td>Word-group rule</td><td class="rule-v">2.56</td></tr> | |
| <tr><td>Fixed tree</td><td>2.54</td><td>Confidence tree</td><td>2.67</td></tr> | |
| <tr><td>Word-start rule</td><td>2.55</td><td>Confidence + word group</td><td>2.66</td></tr> | |
| </table> | |
| <p class="body">The word-group rule beats a fixed tree by 1.0% (3 of 3 seeds) and trails the head’s own confidence by 4%. Adding it to confidence changes nothing: confidence already encodes the group boundary.</p> | |
| <p class="body">Trees give 22% more tokens per pass at 17% more cost per pass. Measured end to end: 1.79× greedy against 1.83× for the chain.</p> | |
| <p class="prog"><span class="blue"><b>Training pilot, negative:</b></span> reweighting group-start targets (weights 0, 0.25, 3; 2.3M tokens; 2 seeds) lowers tokens per pass by 0.4% to 4.3%.</p> | |
| </div> | |
| <div class="blk lit"> | |
| <h3 class="blk-h">Borrowed and ours</h3> | |
| <p class="small"><b>Borrowed:</b> draft heads on a frozen model (Medusa), dependent heads (Hydra), backbone targets (Medusa-2, Hydra++), frequency shortlist (FR-Spec), fixed tree (Sequoia), confidence tree (EAGLE-2).</p> | |
| <p class="small"><b>Closest work:</b> LinguaSpec, AdaMTP, Naidu, Amankulov and Mamatin.</p> | |
| <p class="ours"><b>Ours:</b> the Hindi word group as the unit of draftability, under lossless verification, on the same text in four spellings, with the direction of code-switches.</p> | |
| </div> | |
| </div> | |
| <p class="compute"><b>Compute.</b> Frozen Llama-3.2-1B, fp32. 3 × GTX 1080 Ti (11 GB) + 1 × Quadro P6000 (24 GB). 15 runs × 10M tokens: 6 to 8 h each, 350 to 465 tokens/s, peak 8.8 GB.</p> | |
| <aside>Closest work, in full (also on the backup slide): LinguaSpec (Findings of ACL 2026) shapes draft trees by function and content classes, in English, with lossy verification. AdaMTP (arXiv 2608.00434) masks losses at entropy boundaries. Naidu (arXiv 2611.12464) drafts phrases on Hindi. Amankulov and Mamatin (arXiv 2609.22156) report draft length at script switches. At a switch the frozen model predicts the English token only 19% of the time. Training pilot in full: against equal weights, tokens per pass in Devanagari are 2.007 (weight 1), 1.998 (0.25), 1.970 (3), 1.920 (0); in ITRANS 1.550, 1.545, 1.523, 1.522. Weight 0 halves group-start accuracy (31% to 15%) and gains under 1 point inside words, so dropping the hard targets frees nothing. Weight 3 gains 1 point at group starts and loses 1.4 inside words. Each pilot run: 1.9 h on a GTX 1080 Ti, 344 tokens/s per arm, 9.5 GB. Analysis cost: position analysis 6 minutes per run at 5.6 GB; switch analysis 222 s per condition at 5.0 GB.</aside> | |
| </section> | |