Backup: Hindi-English switch points, with and without the copied branch
Hindi (Devanagari), real held-out text (512 documents × 512 tokens), dependent heads with backbone targets, 3 seeds pooled. Drafts are scored against the frozen model’s own 5-token continuation of the text before each position.
Position
Positions
Word seen earlier in the document
Frozen model’s choice is the text token
First draft is the frozen model’s choice
Accepted drafts, tree at 8
Accepted drafts, tree + copied branch at 8
Entering English
382
29%
19%
40% [35, 46]
1.12
1.28
Returning to Hindi, function word
198
64%
59%
60% [51, 68]
1.62
1.80
Returning to Hindi, content word
195
23%
20%
40% [32, 48]
1.08
1.18
Inside English words
1,673
24%
64%
30% [26, 35]
0.80
1.04
Control: Hindi group start
1,000
30%
31%
41% [38, 44]
1.27
1.43
Control: Hindi function-word start
1,000
63%
66%
72% [70, 74]
2.04
2.09
Control: inside a Hindi word
1,000
32%
71%
70% [68, 73]
1.88
2.09
Against the frozen model’s choice, switch points are not special. Entering English and returning on a content word both give 40%, the same as an ordinary Hindi group start (41%). The low agreement with the text there (5% to 7%) is the frozen model’s: it predicts the text token only 19% to 20% of the time.
The weak position is inside English words. The frozen model is right 64% of the time there, and the first draft follows it only 30% of the time.
Copying does not rescue switches. Only 29% of the English words entered were seen earlier in the document. The copied branch adds 0.10 to 0.18 accepted drafts at switches, about what it adds at ordinary group starts (0.16).
English inside Hindi text closes part of the gap; English alone does not. Heads trained on 8M Devanagari and 2M English tokens leave the first draft inside English words at 31% against 30% (seed 0, difference −1 to +3 points). Heads trained on Hindi text with three times the usual share of code-switched passages raise it to 34% (2 seeds, +2.8 to +5.7 points; accepted drafts 0.81 to 0.88). Entering English stays at 40%. Cost on Devanagari documents: 1.1% tokens per pass with the tree at 8.
Compute. 20.5 min on the Quadro P6000 (24 GB), fp32, peak 5.5 GB: 17.5 min for 5,448 five-token continuations, 1 min per seed for both stacks. Inference only. Mixed heads: 3.0 h training on the Quadro P6000 (932 tokens/s, 7.4 GB). Code-switch-enriched heads: 2.8 h per seed on a GTX 1080 Ti (1,000 tokens/s, 7.4 GB). 18 to 19 min for this table per stack pair.