Reproduce “Order Independence With Finetuning” 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

Katrina Brown, Reid McIlroy

Researchers at Harvard University developed a finetuning strategy integrating Set-Based Prompting (SBP) with a margin-based contrastive loss to mitigate large language models' (LLMs) sensitivity to input token order. This approach improved accuracy on multiple-choice question answering tasks, demonstrating generalizability and even surpassing pre-finetuning "best-of-2" performance.

Key insights

  • Targeted finetuning can effectively overcome the performance degradation caused by the distribution shift of novel prompting strategies like Set-Based Prompting (SBP).
  • A margin-based contrastive loss is superior to standard cross-entropy for aligning SBP-formatted prompts with the model's decision boundaries.
  • By explicitly training models to ignore irrelevant ordering information, overall performance on relevant tasks can improve beyond standard prompting, suggesting a deeper focus on semantic content.

Summary by alphaXiv.

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