Anupam-Rawat-IITB's picture
Refresh to the current main: code, results, logs and the final deck
c5241c0 verified
Raw History Blame Contribute Delete
6.37 kB
<section id="gains" class="v z4">
<h2 class="v-title">The speed comes from prior work; our linguistic part adds about 1%</h2>
<table class="t v-t">
<tr class="t-head"><th class="v-p">Part</th><th class="v-s">Source</th><th>Measured effect, Hindi (Devanagari)</th></tr>
<tr><td>Three dependent heads, chain of 3 drafts</td><td>Prior work</td><td>1.8× greedy</td></tr>
<tr><td>Shortlist of 4,352 tokens</td><td>Prior work</td><td>Tree from 1.4× to 1.8×</td></tr>
<tr><td>Confidence tree</td><td>Prior work</td><td>29% more tokens per pass, no faster than the chain</td></tr>
<tr><td>Copied branch of 12 tokens</td><td>Prior work</td><td><b>2.9×</b>; 2.6× on low-looping documents</td></tr>
<tr><td>Five look-ahead heads instead of three</td><td>Variation</td><td>10% more tokens per pass, no speed gain</td></tr>
<tr class="v-ours"><td>Learned allocator with linguistic features</td><td>Ours</td><td>About 1% faster (1 seed)</td></tr>
<tr class="v-ours"><td>Code-switch-enriched training text</td><td>Ours</td><td>First draft inside English words 30% to 34%</td></tr>
<tr class="v-ours"><td>Word-group diagnosis</td><td>Ours</td><td>Locates the failures: group starts, 36% against 73% to 76%</td></tr>
</table>
<ul class="v-takes">
<li>Much of the copied branch’s gain is the 1B model restating its prompt.</li>
</ul>
<aside>Read the table top to bottom: each part and what it measurably does, in Devanagari. The last three rows are ours. Detail moved from the slide: Where the gain comes from: borrowed parts and ours, measured. Hindi (Devanagari) unless stated. Speed is end to end against greedy decoding on one GTX 1080 Ti (seed 0); tokens per backbone pass are means of 3 seeds on 119 held-out documents. All systems are lossless. Row: Part | Source | Measured effect. Row: Three dependent heads, chain of 3 drafts | Prior work | 1.83× greedy; 1.40× on ITRANS. 2.20 tokens per pass.. Row: Shortlist of 4,352 tokens | Prior work | Tree from 1.36× to 1.79×: drafting falls from 10.4 ms to 2.0 ms per round. Tokens per pass unchanged (2.661 and 2.662).. Row: Confidence tree | Prior work | +22% tokens per pass at 8 verified tokens, +29% at 16. In speed: 1.79× and 1.86× against 1.83× for the chain, because the pass is longer.. Row: Copied branch | Prior work | 2.50× with 5 copied tokens, 2.90× with 12 (2.62× on low-looping documents); 4.9× on ITRANS. The best system without it reaches 1.87×. On real text it adds about 7% at group starts (accepted drafts 1.27 to 1.43). Ending it at the word-group boundary instead of a fixed length loses 7% to 22% tokens per pass.. Row: Five look-ahead heads instead of three | Variation | +5.7% to +11.5% tokens per pass, no speed gain: 2.46× against 2.50× with 5 copied tokens, 3.00× against 3.20× on ITRANS. Drafting takes longer.. Row: Learned allocator with linguistic features | Ours | Learned allocation between head and copied nodes (linear scorer, 0.15 to 0.32 ms per round), 1 seed: +1.3% measured speed at 16 verified tokens with 5 copied tokens (2.55× against 2.51×); with 12 copied tokens nothing at 16 and +1.3% at 24 (2.99× against 2.95×). The linguistic features help only at 8 with 5 copied tokens (+0.7% tokens per pass, shuffled-feature control −0.3%) and add nothing with 12.. Row: Code-switch-enriched training text | Ours | First draft inside English words 30% to 34% (2 seeds, +2.8 to +5.7 points) for 1.1% fewer tokens per pass on ordinary Devanagari. English prose alone gives nothing.. Row: Word-group diagnosis | Ours | Locates the failures: group starts are 25% of tokens and have 36% first-draft accuracy against 73% to 76%.. Reading. The speed comes from prior work: heads, shortlist and the copied branch. Much of the copied branch’s gain is the 1B model restating its prompt. Our linguistic contribution to speed is small; our main contribution is the diagnosis and the measurement. Compute. Timing: 31 min for 18 systems on one idle GTX 1080 Ti, peak 5.9 GB. Allocator: 16.6 min for 3 seeds, 5.5 GB; linear version in the decoder 29.5 min, 5.9 GB. Copied-branch replay: 4.3 to 4.6 min per condition for 3 seeds, 5.6 GB. Switch-point check: 20.5 min on the Quadro P6000, 5.5 GB. Further notes: Allocator, paired over documents and pooled over 3 seeds: against the same allocator without linguistic features +0.69% (95% interval +0.14 to +1.20) at 8 verified tokens, +0.29% (−0.11 to +0.72) at 16, +0.31% (−0.03 to +0.64) at 24; shuffled features against the same baseline −0.32%, −0.11%, −0.30%. Per seed at 8: +1.26%, +0.79%, +0.01%. Against the fixed rule the allocator with linguistic features gives +0.2% at 8, +1.6% at 16 and +2.2% at 24. On ITRANS (one seed) the linguistic gain is not separated from the shuffled control. Without the copied branch the same linguistic features gave −0.1% to +0.1% in Devanagari. Linear allocator inside the decoder (Devanagari, seed 0, three heads with the copied branch, 119 documents, output identical to greedy): tokens per second against the fixed rule −1.3% (−2.2 to −0.4) at 8 verified tokens, +1.3% (+0.5 to +2.1) at 16, +0.8% (0.0 to +1.6) at 24; linguistic features against confidence and source only +1.4% (+0.7 to +2.2) at 8, +0.4% at 16, −0.3% at 24. With five heads its cost of 0.4 ms per round cancels the gain. With 12 copied tokens (same documents): tokens per second against the fixed rule 0.0% (−1.3 to +1.3) at 16 and +1.3% (+0.2 to +2.4) at 24; linguistic features against confidence and source only −0.2% and 0.0%. A gain of 1% is about the size of run-to-run drift (0.8%). Cost of the network version (Devanagari, seed 0, five heads with the copied branch, shortlist): the fixed rule takes 29.5 ms per round at 16 verified tokens and 30.4 ms at 24; building the pool of 24 candidates per level and scoring every candidate with a feature row and a network of the allocator's size takes 31.9 ms and 32.3 ms, with the choices left unchanged. Dividing by the allocator's tokens per pass gives 7.75 and 7.54 ms per token against 7.30 and 7.25 for the fixed rule. The stand-in leaves out the running word-group state, so the real cost is higher. Tokens per pass with the copied branch: 2.671 to 3.579 at 8 verified tokens. Real-text figures come from 1,000 sampled Hindi group starts on 512 held-out documents, scored against the frozen model's own continuation.</aside>
</section>