Reproduce “Spec-AUF: Accept-Until-Fail Training under Train-Inference Misalignment for Masked Block Drafters” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Tianjian Yang, Meng Li

Researchers at Peking University developed Spec-AUF, an Accept-Until-Fail training method that hard-truncates cross-entropy loss for masked block drafters based on their greedy predictions, aligning training with speculative decoding's left-to-right verification. This method increased the average acceptance length (τ) by up to 8.7% for DFlash and 4.7% for Domino drafters, often rendering traditional position-decay weighting redundant.

Key insights

  • The standard exponential position-decay weighting becomes empirically inert and redundant when combined with AUF, simplifying training by removing a hand-tuned hyperparameter.
  • Optimizing for full-block token accuracy (common-mask accuracy) does not necessarily translate to better speculative decoding performance (τ), as observed in the 'accuracy inversion' where lower full-block accuracy led to higher τ with AUF.
  • AUF implicitly provides an 'easy-to-hard' curriculum, as the active token ratio expands progressively during training, allowing the drafter to focus on shorter correct prefixes before extending its capabilities.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.