Reproduce “PAFT: Prompt-Agnostic Fine-Tuning” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

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

About this paper

Chenxing Wei, Yao Shu, Mingwen Ou, Ying Tiffany He, Fei Richard Yu

The PAFT framework enables large language models to become robust against diverse prompt wordings through a novel fine-tuning approach. It achieves consistently higher accuracy, significantly reduced performance variance on various NLP tasks, and up to 3.2 times faster inference speeds by promoting more concise and accurate responses.

Key insights

  • Continuously exposing LLMs to dynamically sampled and diverse prompts during fine-tuning prevents overfitting to specific phrasings, fostering a true understanding of task semantics.
  • The approach is theoretically grounded in domain adaptation, effectively reducing model complexity and minimizing the discrepancy between training and test prompt distributions.
  • Models fine-tuned for prompt-agnostic behavior generate more concise and accurate responses, leading to substantial improvements in inference efficiency by reducing token generation.

Summary by alphaXiv.

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