Reproduce “One-Pass to Reason: Token Duplication and Block-Sparse Mask for Efficient Fine-Tuning on Multi-Turn Reasoning” 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

Ritesh Goru, Shanay Mehta, Prateek Jain

The paper introduces a one-pass approach using token duplication and a block-sparse attention mask to efficiently fine-tune Large Language Models on multi-turn reasoning datasets. This method reduces training time complexity for multi-turn reasoning and achieves up to 1.54x speedups while maintaining a 33% memory overhead.

Key insights

  • The sum of N-Pass language modeling losses is mathematically equivalent to the single 1-Pass loss, validating the functional correctness of the proposed method.
  • Efficient multi-turn reasoning fine-tuning requires a complex interplay of token duplication, specialized attention masking, and precise position ID management to resolve conditional visibility conflicts.
  • The 1-Pass method's efficiency gains become more pronounced with increasing conversation depth (number of turns), supporting its theoretical complexity reduction from O(N³) to O(N²).

Summary by alphaXiv.

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