A draft model predicts several next tokens so a target language model can check them in one pass. When the guesses are good, the target can commit multiple tokens per pass.
39.1% paired-latency reduction on one NVIDIA A10 for a 260K-parameter toy target and a zero-cost n-gram draft; Qwen 0.5B/1.5B was 37.4% slower
knotkit/distribution : Computes probabilities, quantiles, moments, and seeded draws for named and caller-defined distributions
knotkit/prng : Generates seeded pseudorandom numbers and unbiased integers for reproducible simulations and tests
{"v":1,"box":[44.7743,94.1597,766.7333,437.3555],"x":{"s":"log","lim":[0.882702996291,18.1261421647],"inv":false,"g":0,"t":"Maximum guesses per round (k)","tk":[[1,"1"],[2,"2"],[4,"4"],[8,"8"],[16,"16"]],"b":10},"y":{"s":"linear","lim":[1.06375,17.68625],"inv":false,"g":0,"tk":[[4,"4"],[8,"8"],[12,"12"],[16,"16"]]},"ti":"A matching draft reaches 16.9 tokens per check; a biased one stalls at 3.8","a":[{"k":"line","c":"#fffff8","s":"x","d":[1,2,1.04729412282,2.04729412282,1.09682497969,2.09682497969,1.148698355,2.148698355,1.20302503608,2.20302503608,1.25992104989,2.25992104989,1.31950791077,2.31950791077,1.38191287997,2.38191287997,1.44726923744,2.44726923744,1.51571656651,2.51571656651,1.58740105197,2.58740105197,1.66247579229,2.66247579229,1.74110112659,2.74110112659,1.82344497712,2.82344497712,1.90968320782,2.90968320782,2,3,2.09458824564,3.09458824564,2.19364995939,3.19364995939,2.29739670999,3.29739670999,2.40605007216,3.40605007216,2.51984209979,3.51984209979,2.63901582155,3.63901582155,2.76382575994,3.76382575994,2.89453847488,3.89453847488,3.03143313302,4.03143313302,3.17480210394,4.17480210394,3.32495158457,4.32495158457,3.48220225318,4.48220225318,3.64688995423,4.64688995423,3.81936641564,4.81936641564,4,5,4.18917649128,5.18917649128,4.38729991878,5.38729991878,4.59479341999,5.59479341999,4.81210014433,5.81210014433,5.03968419958,6.03968419958,5.27803164309,6.27803164309,5.52765151987,6.52765151987,5.78907694976,6.78907694976,6.06286626604,7.06286626604,6.34960420787,7.34960420787,6.64990316914,7.64990316914,6.96440450637,7.96440450637,7.29377990847,8.29377990847,7.63873283128,8.63873283128,8,9,8.37835298257,9.37835298257,8.77459983756,9.77459983756,9.18958683998,10.18958684,9.62420028866,10.6242002887,10.0793683992,11.0793683992,10.5560632862,11.5560632862,11.0553030397,12.0553030397,11.5781538995,12.5781538995,12.1257325321,13.1257325321,12.6992084157,13.6992084157,13.2998063383,14.2998063383,13.9288090127,14.9288090127,14.5875598169,15.5875598169,15.2774656626,16.2774656626,16,17],"p":[74.58,418.03,85.62,417.05,96.66,416.03,107.7,414.96,118.74,413.83,129.78,412.66,140.81,411.43,151.85,410.14,162.89,408.79,173.93,407.38,184.97,405.9,196.01,404.35,207.05,402.72,218.09,401.02,229.13,399.24,240.17,397.38,251.21,395.43,262.25,393.38,273.28,391.24,284.32,389,295.36,386.65,306.4,384.19,317.44,381.61,328.48,378.91,339.52,376.08,350.56,373.12,361.6,370.02,372.64,366.78,383.68,363.38,394.71,359.82,405.75,356.09,416.79,352.18,427.83,348.09,438.87,343.81,449.91,339.32,460.95,334.62,471.99,329.7,483.03,324.55,494.07,319.15,505.11,313.49,516.15,307.57,527.18,301.37,538.22,294.88,549.26,288.08,560.3,280.96,571.34,273.5,582.38,265.69,593.42,257.51,604.46,248.94,615.5,239.97,626.54,230.57,637.58,220.73,648.61,210.42,659.65,199.62,670.69,188.32,681.73,176.48,692.77,164.08,703.81,151.09,714.85,137.49,725.89,123.25,736.93,108.33]},{"k":"line","c":"#5b6b7c","s":"x","d":[1,2,1.04729412282,2.04729412282,1.09682497969,2.09682497969,1.148698355,2.148698355,1.20302503608,2.20302503608,1.25992104989,2.25992104989,1.31950791077,2.31950791077,1.38191287997,2.38191287997,1.44726923744,2.44726923744,1.51571656651,2.51571656651,1.58740105197,2.58740105197,1.66247579229,2.66247579229,1.74110112659,2.74110112659,1.82344497712,2.82344497712,1.90968320782,2.90968320782,2,3,2.09458824564,3.09458824564,2.19364995939,3.19364995939,2.29739670999,3.29739670999,2.40605007216,3.40605007216,2.51984209979,3.51984209979,2.63901582155,3.63901582155,2.76382575994,3.76382575994,2.89453847488,3.89453847488,3.03143313302,4.03143313302,3.17480210394,4.17480210394,3.32495158457,4.32495158457,3.48220225318,4.48220225318,3.64688995423,4.64688995423,3.81936641564,4.81936641564,4,5,4.18917649128,5.18917649128,4.38729991878,5.38729991878,4.59479341999,5.59479341999,4.81210014433,5.81210014433,5.03968419958,6.03968419958,5.27803164309,6.27803164309,5.52765151987,6.52765151987,5.78907694976,6.78907694976,6.06286626604,7.06286626604,6.34960420787,7.34960420787,6.64990316914,7.64990316914,6.96440450637,7.96440450637,7.29377990847,8.29377990847,7.63873283128,8.63873283128,8,9,8.37835298257,9.37835298257,8.77459983756,9.77459983756,9.18958683998,10.18958684,9.62420028866,10.6242002887,10.0793683992,11.0793683992,10.5560632862,11.5560632862,11.0553030397,12.0553030397,11.5781538995,12.5781538995,12.1257325321,13.1257325321,12.6992084157,13.6992084157,13.2998063383,14.2998063383,13.9288090127,14.9288090127,14.5875598169,15.5875598169,15.2774656626,16.2774656626,16,17],"p":[74.58,418.03,85.62,417.05,96.66,416.03,107.7,414.96,118.74,413.83,129.78,412.66,140.81,411.43,151.85,410.14,162.89,408.79,173.93,407.38,184.97,405.9,196.01,404.35,207.05,402.72,218.09,401.02,229.13,399.24,240.17,397.38,251.21,395.43,262.25,393.38,273.28,391.24,284.32,389,295.36,386.65,306.4,384.19,317.44,381.61,328.48,378.91,339.52,376.08,350.56,373.12,361.6,370.02,372.64,366.78,383.68,363.38,394.71,359.82,405.75,356.09,416.79,352.18,427.83,348.09,438.87,343.81,449.91,339.32,460.95,334.62,471.99,329.7,483.03,324.55,494.07,319.15,505.11,313.49,516.15,307.57,527.18,301.37,538.22,294.88,549.26,288.08,560.3,280.96,571.34,273.5,582.38,265.69,593.42,257.51,604.46,248.94,615.5,239.97,626.54,230.57,637.58,220.73,648.61,210.42,659.65,199.62,670.69,188.32,681.73,176.48,692.77,164.08,703.81,151.09,714.85,137.49,725.89,123.25,736.93,108.33]},{"k":"scatter","c":"#1d5fa6","s":"xy","d":[1,2,2,2.99853587116,4,4.99512195122,8,8.98245614035,16,16.9256198347],"p":[74.58,418.03,240.17,397.41,405.75,356.19,571.34,273.86,736.93,109.86],"r":4.96},{"k":"line","c":"#fffff8","s":"x","d":[1,1.75,1.04729412282,1.78040544805,1.09682497969,1.81180849604,1.148698355,1.84422052115,1.20302503608,1.87765087494,1.25992104989,1.91210665255,1.31950791077,1.94759245086,1.38191287997,1.98411011655,1.44726923744,2.02165848495,1.51571656651,2.06023311096,1.58740105197,2.09982599373,1.66247579229,2.14042529688,1.74110112659,2.18201506667,1.82344497712,2.22457495071,1.90968320782,2.2680799203,2,2.3125,2.09458824564,2.35780000832,2.19364995939,2.403939314,2.29739670999,2.45087161285,2.40605007216,2.49854473045,2.51984209979,2.54690045656,2.63901582155,2.59587441741,2.76382575994,2.64539599261,2.89453847488,2.69538828328,3.03143313302,2.74576813873,3.17480210394,2.79644624863,3.32495158457,2.84732730784,3.48220225318,2.89831026073,3.64688995423,2.94928863145,3.81936641564,3.00015094584,4,3.05078125,4.18917649128,3.1010597291,4.38729991878,3.15086342886,4.59479341999,3.20006708004,4.81210014433,3.24854402452,5.03968419958,3.29616723895,5.27803164309,3.34281044944,5.52765151987,3.38834932772,5.78907694976,3.4326627562,6.06286626604,3.47563414606,6.34960420787,3.51715278919,6.64990316914,3.55711522158,6.96440450637,3.5954265728,7.29377990847,3.63200187333,7.63873283128,3.66676728963,8,3.69966125488,8.37835298257,3.73063546312,8.77459983756,3.75965569452,9.18958683998,3.78670244119,9.62420028866,3.81177130564,10.0793683992,3.83487314816,10.5560632862,3.85603396488,11.0553030397,3.87529448503,11.5781538995,3.89270948393,12.1257325321,3.90834681707,12.6992084157,3.92228619034,13.2998063383,3.93461769102,13.9288090127,3.945440114,14.5875598169,3.95485912626,15.2774656626,3.96298532025,16,3.96993221273],"p":[74.58,423.19,85.62,422.56,96.66,421.91,107.7,421.24,118.74,420.55,129.78,419.84,140.81,419.11,151.85,418.35,162.89,417.58,173.93,416.78,184.97,415.96,196.01,415.13,207.05,414.27,218.09,413.39,229.13,412.49,240.17,411.57,251.21,410.64,262.25,409.69,273.28,408.72,284.32,407.73,295.36,406.73,306.4,405.72,317.44,404.7,328.48,403.67,339.52,402.63,350.56,401.58,361.6,400.53,372.64,399.48,383.68,398.43,394.71,397.38,405.75,396.33,416.79,395.29,427.83,394.26,438.87,393.25,449.91,392.25,460.95,391.26,471.99,390.3,483.03,389.36,494.07,388.45,505.11,387.56,516.15,386.7,527.18,385.88,538.22,385.09,549.26,384.33,560.3,383.61,571.34,382.93,582.38,382.29,593.42,381.69,604.46,381.14,615.5,380.62,626.54,380.14,637.58,379.7,648.61,379.31,659.65,378.95,670.69,378.62,681.73,378.34,692.77,378.08,703.81,377.86,714.85,377.66,725.89,377.5,736.93,377.35]},{"k":"line","c":"#5b6b7c","s":"x","d":[1,1.75,1.04729412282,1.78040544805,1.09682497969,1.81180849604,1.148698355,1.84422052115,1.20302503608,1.87765087494,1.25992104989,1.91210665255,1.31950791077,1.94759245086,1.38191287997,1.98411011655,1.44726923744,2.02165848495,1.51571656651,2.06023311096,1.58740105197,2.09982599373,1.66247579229,2.14042529688,1.74110112659,2.18201506667,1.82344497712,2.22457495071,1.90968320782,2.2680799203,2,2.3125,2.09458824564,2.35780000832,2.19364995939,2.403939314,2.29739670999,2.45087161285,2.40605007216,2.49854473045,2.51984209979,2.54690045656,2.63901582155,2.59587441741,2.76382575994,2.64539599261,2.89453847488,2.69538828328,3.03143313302,2.74576813873,3.17480210394,2.79644624863,3.32495158457,2.84732730784,3.48220225318,2.89831026073,3.64688995423,2.94928863145,3.81936641564,3.00015094584,4,3.05078125,4.18917649128,3.1010597291,4.38729991878,3.15086342886,4.59479341999,3.20006708004,4.81210014433,3.24854402452,5.03968419958,3.29616723895,5.27803164309,3.34281044944,5.52765151987,3.38834932772,5.78907694976,3.4326627562,6.06286626604,3.47563414606,6.34960420787,3.51715278919,6.64990316914,3.55711522158,6.96440450637,3.5954265728,7.29377990847,3.63200187333,7.63873283128,3.66676728963,8,3.69966125488,8.37835298257,3.73063546312,8.77459983756,3.75965569452,9.18958683998,3.78670244119,9.62420028866,3.81177130564,10.0793683992,3.83487314816,10.5560632862,3.85603396488,11.0553030397,3.87529448503,11.5781538995,3.89270948393,12.1257325321,3.90834681707,12.6992084157,3.92228619034,13.2998063383,3.93461769102,13.9288090127,3.945440114,14.5875598169,3.95485912626,15.2774656626,3.96298532025,16,3.96993221273],"p":[74.58,423.19,85.62,422.56,96.66,421.91,107.7,421.24,118.74,420.55,129.78,419.84,140.81,419.11,151.85,418.35,162.89,417.58,173.93,416.78,184.97,415.96,196.01,415.13,207.05,414.27,218.09,413.39,229.13,412.49,240.17,411.57,251.21,410.64,262.25,409.69,273.28,408.72,284.32,407.73,295.36,406.73,306.4,405.72,317.44,404.7,328.48,403.67,339.52,402.63,350.56,401.58,361.6,400.53,372.64,399.48,383.68,398.43,394.71,397.38,405.75,396.33,416.79,395.29,427.83,394.26,438.87,393.25,449.91,392.25,460.95,391.26,471.99,390.3,483.03,389.36,494.07,388.45,505.11,387.56,516.15,386.7,527.18,385.88,538.22,385.09,549.26,384.33,560.3,383.61,571.34,382.93,582.38,382.29,593.42,381.69,604.46,381.14,615.5,380.62,626.54,380.14,637.58,379.7,648.61,379.31,659.65,378.95,670.69,378.62,681.73,378.34,692.77,378.08,703.81,377.86,714.85,377.66,725.89,377.5,736.93,377.35]},{"k":"scatter","c":"#c4501b","s":"xy","d":[1,1.756432247,2,2.34593356243,4,2.97242380261,8,3.71014492754,16,3.84240150094],"p":[74.58,423.05,240.17,410.88,405.75,397.95,571.34,382.72,736.93,379.99],"r":4.96},{"k":"segments","c":"#8c8c84"},{"k":"segments","c":"#8c8c84"},{"k":"line","c":"#8c8c84"},{"k":"annotation","c":"#5c5c57"},{"k":"annotation","c":"#5c5c57"},{"k":"annotation","c":"#5b6b7c"},{"k":"annotation","c":"#1d5fa6"},{"k":"annotation","c":"#5b6b7c"},{"k":"annotation","c":"#c4501b"}],"lg":[]}
1
2
4
8
16
Maximum guesses per round (k)
4
8
12
16
ceiling 1/(1 − 0.75) = 4
Output tokens per target check (2,048 / rounds)
Ideal, k + 1
Matching draft
Expected at acceptance 0.75
Biased draft
A matching draft reaches 16.9 tokens per check; a biased one stalls at 3.8
{"v":1,"box":[44.7743,122.3921,318.7333,437.3555],"x":{"s":"log","lim":[0.882702996291,18.1261421647],"inv":false,"g":0,"t":"Maximum guesses per round (k)","tk":[[1,"1"],[2,"2"],[4,"4"],[8,"8"],[16,"16"]],"b":10},"y":{"s":"linear","lim":[1.06375,17.68625],"inv":false,"g":0,"tk":[[4,"4"],[8,"8"],[12,"12"],[16,"16"]]},"ti":"A matching draft reaches 16.9 tokens per\ncheck; a biased one stalls at 3.8","a":[{"k":"line","c":"#fffff8","s":"x","d":[1,2,1.04729412282,2.04729412282,1.09682497969,2.09682497969,1.148698355,2.148698355,1.20302503608,2.20302503608,1.25992104989,2.25992104989,1.31950791077,2.31950791077,1.38191287997,2.38191287997,1.44726923744,2.44726923744,1.51571656651,2.51571656651,1.58740105197,2.58740105197,1.66247579229,2.66247579229,1.74110112659,2.74110112659,1.82344497712,2.82344497712,1.90968320782,2.90968320782,2,3,2.09458824564,3.09458824564,2.19364995939,3.19364995939,2.29739670999,3.29739670999,2.40605007216,3.40605007216,2.51984209979,3.51984209979,2.63901582155,3.63901582155,2.76382575994,3.76382575994,2.89453847488,3.89453847488,3.03143313302,4.03143313302,3.17480210394,4.17480210394,3.32495158457,4.32495158457,3.48220225318,4.48220225318,3.64688995423,4.64688995423,3.81936641564,4.81936641564,4,5,4.18917649128,5.18917649128,4.38729991878,5.38729991878,4.59479341999,5.59479341999,4.81210014433,5.81210014433,5.03968419958,6.03968419958,5.27803164309,6.27803164309,5.52765151987,6.52765151987,5.78907694976,6.78907694976,6.06286626604,7.06286626604,6.34960420787,7.34960420787,6.64990316914,7.64990316914,6.96440450637,7.96440450637,7.29377990847,8.29377990847,7.63873283128,8.63873283128,8,9,8.37835298257,9.37835298257,8.77459983756,9.77459983756,9.18958683998,10.18958684,9.62420028866,10.6242002887,10.0793683992,11.0793683992,10.5560632862,11.5560632862,11.0553030397,12.0553030397,11.5781538995,12.5781538995,12.1257325321,13.1257325321,12.6992084157,13.6992084157,13.2998063383,14.2998063383,13.9288090127,14.9288090127,14.5875598169,15.5875598169,15.2774656626,16.2774656626,16,17],"p":[56.08,419.62,60.27,418.72,64.46,417.78,68.65,416.8,72.84,415.77,77.03,414.69,81.22,413.56,85.41,412.38,89.6,411.14,93.79,409.84,97.97,408.49,102.16,407.06,106.35,405.57,110.54,404.01,114.73,402.38,118.92,400.67,123.11,398.88,127.3,397,131.49,395.03,135.68,392.97,139.86,390.82,144.05,388.56,148.24,386.19,152.43,383.72,156.62,381.12,160.81,378.41,165,375.56,169.19,372.58,173.38,369.46,177.56,366.19,181.75,362.77,185.94,359.19,190.13,355.43,194.32,351.5,198.51,347.38,202.7,343.07,206.89,338.56,211.08,333.83,215.27,328.87,219.45,323.68,223.64,318.25,227.83,312.56,232.02,306.6,236.21,300.36,240.4,293.82,244.59,286.98,248.78,279.81,252.97,272.3,257.16,264.44,261.34,256.2,265.53,247.58,269.72,238.55,273.91,229.09,278.1,219.18,282.29,208.8,286.48,197.94,290.67,186.56,294.86,174.64,299.05,162.16,303.23,149.09,307.42,135.4]},{"k":"line","c":"#5b6b7c","s":"x","d":[1,2,1.04729412282,2.04729412282,1.09682497969,2.09682497969,1.148698355,2.148698355,1.20302503608,2.20302503608,1.25992104989,2.25992104989,1.31950791077,2.31950791077,1.38191287997,2.38191287997,1.44726923744,2.44726923744,1.51571656651,2.51571656651,1.58740105197,2.58740105197,1.66247579229,2.66247579229,1.74110112659,2.74110112659,1.82344497712,2.82344497712,1.90968320782,2.90968320782,2,3,2.09458824564,3.09458824564,2.19364995939,3.19364995939,2.29739670999,3.29739670999,2.40605007216,3.40605007216,2.51984209979,3.51984209979,2.63901582155,3.63901582155,2.76382575994,3.76382575994,2.89453847488,3.89453847488,3.03143313302,4.03143313302,3.17480210394,4.17480210394,3.32495158457,4.32495158457,3.48220225318,4.48220225318,3.64688995423,4.64688995423,3.81936641564,4.81936641564,4,5,4.18917649128,5.18917649128,4.38729991878,5.38729991878,4.59479341999,5.59479341999,4.81210014433,5.81210014433,5.03968419958,6.03968419958,5.27803164309,6.27803164309,5.52765151987,6.52765151987,5.78907694976,6.78907694976,6.06286626604,7.06286626604,6.34960420787,7.34960420787,6.64990316914,7.64990316914,6.96440450637,7.96440450637,7.29377990847,8.29377990847,7.63873283128,8.63873283128,8,9,8.37835298257,9.37835298257,8.77459983756,9.77459983756,9.18958683998,10.18958684,9.62420028866,10.6242002887,10.0793683992,11.0793683992,10.5560632862,11.5560632862,11.0553030397,12.0553030397,11.5781538995,12.5781538995,12.1257325321,13.1257325321,12.6992084157,13.6992084157,13.2998063383,14.2998063383,13.9288090127,14.9288090127,14.5875598169,15.5875598169,15.2774656626,16.2774656626,16,17],"p":[56.08,419.62,60.27,418.72,64.46,417.78,68.65,416.8,72.84,415.77,77.03,414.69,81.22,413.56,85.41,412.38,89.6,411.14,93.79,409.84,97.97,408.49,102.16,407.06,106.35,405.57,110.54,404.01,114.73,402.38,118.92,400.67,123.11,398.88,127.3,397,131.49,395.03,135.68,392.97,139.86,390.82,144.05,388.56,148.24,386.19,152.43,383.72,156.62,381.12,160.81,378.41,165,375.56,169.19,372.58,173.38,369.46,177.56,366.19,181.75,362.77,185.94,359.19,190.13,355.43,194.32,351.5,198.51,347.38,202.7,343.07,206.89,338.56,211.08,333.83,215.27,328.87,219.45,323.68,223.64,318.25,227.83,312.56,232.02,306.6,236.21,300.36,240.4,293.82,244.59,286.98,248.78,279.81,252.97,272.3,257.16,264.44,261.34,256.2,265.53,247.58,269.72,238.55,273.91,229.09,278.1,219.18,282.29,208.8,286.48,197.94,290.67,186.56,294.86,174.64,299.05,162.16,303.23,149.09,307.42,135.4]},{"k":"scatter","c":"#1d5fa6","s":"xy","d":[1,2,2,2.99853587116,4,4.99512195122,8,8.98245614035,16,16.9256198347],"p":[56.08,419.62,118.92,400.7,181.75,362.86,244.59,287.31,307.42,136.8],"r":4.96},{"k":"line","c":"#fffff8","s":"x","d":[1,1.75,1.04729412282,1.78040544805,1.09682497969,1.81180849604,1.148698355,1.84422052115,1.20302503608,1.87765087494,1.25992104989,1.91210665255,1.31950791077,1.94759245086,1.38191287997,1.98411011655,1.44726923744,2.02165848495,1.51571656651,2.06023311096,1.58740105197,2.09982599373,1.66247579229,2.14042529688,1.74110112659,2.18201506667,1.82344497712,2.22457495071,1.90968320782,2.2680799203,2,2.3125,2.09458824564,2.35780000832,2.19364995939,2.403939314,2.29739670999,2.45087161285,2.40605007216,2.49854473045,2.51984209979,2.54690045656,2.63901582155,2.59587441741,2.76382575994,2.64539599261,2.89453847488,2.69538828328,3.03143313302,2.74576813873,3.17480210394,2.79644624863,3.32495158457,2.84732730784,3.48220225318,2.89831026073,3.64688995423,2.94928863145,3.81936641564,3.00015094584,4,3.05078125,4.18917649128,3.1010597291,4.38729991878,3.15086342886,4.59479341999,3.20006708004,4.81210014433,3.24854402452,5.03968419958,3.29616723895,5.27803164309,3.34281044944,5.52765151987,3.38834932772,5.78907694976,3.4326627562,6.06286626604,3.47563414606,6.34960420787,3.51715278919,6.64990316914,3.55711522158,6.96440450637,3.5954265728,7.29377990847,3.63200187333,7.63873283128,3.66676728963,8,3.69966125488,8.37835298257,3.73063546312,8.77459983756,3.75965569452,9.18958683998,3.78670244119,9.62420028866,3.81177130564,10.0793683992,3.83487314816,10.5560632862,3.85603396488,11.0553030397,3.87529448503,11.5781538995,3.89270948393,12.1257325321,3.90834681707,12.6992084157,3.92228619034,13.2998063383,3.93461769102,13.9288090127,3.945440114,14.5875598169,3.95485912626,15.2774656626,3.96298532025,16,3.96993221273],"p":[56.08,424.35,60.27,423.78,64.46,423.18,68.65,422.57,72.84,421.93,77.03,421.28,81.22,420.61,85.41,419.92,89.6,419.21,93.79,418.47,97.97,417.72,102.16,416.95,106.35,416.17,110.54,415.36,114.73,414.54,118.92,413.69,123.11,412.84,127.3,411.96,131.49,411.07,135.68,410.17,139.86,409.25,144.05,408.32,148.24,407.39,152.43,406.44,156.62,405.48,160.81,404.52,165,403.56,169.19,402.59,173.38,401.63,177.56,400.66,181.75,399.71,185.94,398.75,190.13,397.81,194.32,396.88,198.51,395.96,202.7,395.06,206.89,394.17,211.08,393.31,215.27,392.47,219.45,391.66,223.64,390.87,227.83,390.11,232.02,389.39,236.21,388.69,240.4,388.03,244.59,387.41,248.78,386.82,252.97,386.27,257.16,385.76,261.34,385.29,265.53,384.85,269.72,384.45,273.91,384.08,278.1,383.75,282.29,383.46,286.48,383.19,290.67,382.96,294.86,382.75,299.05,382.57,303.23,382.42,307.42,382.29]},{"k":"line","c":"#5b6b7c","s":"x","d":[1,1.75,1.04729412282,1.78040544805,1.09682497969,1.81180849604,1.148698355,1.84422052115,1.20302503608,1.87765087494,1.25992104989,1.91210665255,1.31950791077,1.94759245086,1.38191287997,1.98411011655,1.44726923744,2.02165848495,1.51571656651,2.06023311096,1.58740105197,2.09982599373,1.66247579229,2.14042529688,1.74110112659,2.18201506667,1.82344497712,2.22457495071,1.90968320782,2.2680799203,2,2.3125,2.09458824564,2.35780000832,2.19364995939,2.403939314,2.29739670999,2.45087161285,2.40605007216,2.49854473045,2.51984209979,2.54690045656,2.63901582155,2.59587441741,2.76382575994,2.64539599261,2.89453847488,2.69538828328,3.03143313302,2.74576813873,3.17480210394,2.79644624863,3.32495158457,2.84732730784,3.48220225318,2.89831026073,3.64688995423,2.94928863145,3.81936641564,3.00015094584,4,3.05078125,4.18917649128,3.1010597291,4.38729991878,3.15086342886,4.59479341999,3.20006708004,4.81210014433,3.24854402452,5.03968419958,3.29616723895,5.27803164309,3.34281044944,5.52765151987,3.38834932772,5.78907694976,3.4326627562,6.06286626604,3.47563414606,6.34960420787,3.51715278919,6.64990316914,3.55711522158,6.96440450637,3.5954265728,7.29377990847,3.63200187333,7.63873283128,3.66676728963,8,3.69966125488,8.37835298257,3.73063546312,8.77459983756,3.75965569452,9.18958683998,3.78670244119,9.62420028866,3.81177130564,10.0793683992,3.83487314816,10.5560632862,3.85603396488,11.0553030397,3.87529448503,11.5781538995,3.89270948393,12.1257325321,3.90834681707,12.6992084157,3.92228619034,13.2998063383,3.93461769102,13.9288090127,3.945440114,14.5875598169,3.95485912626,15.2774656626,3.96298532025,16,3.96993221273],"p":[56.08,424.35,60.27,423.78,64.46,423.18,68.65,422.57,72.84,421.93,77.03,421.28,81.22,420.61,85.41,419.92,89.6,419.21,93.79,418.47,97.97,417.72,102.16,416.95,106.35,416.17,110.54,415.36,114.73,414.54,118.92,413.69,123.11,412.84,127.3,411.96,131.49,411.07,135.68,410.17,139.86,409.25,144.05,408.32,148.24,407.39,152.43,406.44,156.62,405.48,160.81,404.52,165,403.56,169.19,402.59,173.38,401.63,177.56,400.66,181.75,399.71,185.94,398.75,190.13,397.81,194.32,396.88,198.51,395.96,202.7,395.06,206.89,394.17,211.08,393.31,215.27,392.47,219.45,391.66,223.64,390.87,227.83,390.11,232.02,389.39,236.21,388.69,240.4,388.03,244.59,387.41,248.78,386.82,252.97,386.27,257.16,385.76,261.34,385.29,265.53,384.85,269.72,384.45,273.91,384.08,278.1,383.75,282.29,383.46,286.48,383.19,290.67,382.96,294.86,382.75,299.05,382.57,303.23,382.42,307.42,382.29]},{"k":"scatter","c":"#c4501b","s":"xy","d":[1,1.756432247,2,2.34593356243,4,2.97242380261,8,3.71014492754,16,3.84240150094],"p":[56.08,424.23,118.92,413.06,181.75,401.19,244.59,387.21,307.42,384.71],"r":4.96},{"k":"segments","c":"#8c8c84"},{"k":"segments","c":"#8c8c84"},{"k":"line","c":"#8c8c84"},{"k":"annotation","c":"#5c5c57"},{"k":"annotation","c":"#5c5c57"},{"k":"annotation","c":"#5b6b7c"},{"k":"annotation","c":"#1d5fa6"},{"k":"annotation","c":"#5b6b7c"},{"k":"annotation","c":"#c4501b"}],"lg":[]}
1
2
4
8
16
Maximum guesses per round (k)
4
8
12
16
ceiling 1/(1 − 0.75) = 4
Output tokens per target check (2,048 / rounds)
Ideal, k + 1
Matching draft
Expected at acceptance 0.75
Biased draft
A matching draft reaches 16.9 tokens per
check; a biased one stalls at 3.8
With up to 16 guesses per batch, a matching draft needs 121 rounds for 2,048 output tokens. A biased draft needs 533 rounds and keeps only 17.8% of its guesses. CPU simulation with three possible tokens and seed 1729. Each round represents one verification batch. Hover or focus a chart for exact values. Drawn by demo.ts at build time, from the fixtures the benchmark uses; it reproduces the README figure.
git clone https://github.com/jkomyno/knotkit.git && cd knotkit && bun install
bun run demo:problem:speculative-decoding
problems/speculative-decoding/README.md states the fixture, the seed, and the result table.