Order-Independence Without Fine Tuning

Reid McIlroy-Young, Katrina Brown, Conlan Olson, Linjun Zhang, Cynthia Dwork
6/4/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: reidmcy/set-based-prompting (4 stars, MIT, last commit 2024-11-21).

Abstract

The development of generative language models that can create long and coherent textual outputs via autoregression has lead to a proliferation of uses and a corresponding sweep of analyses as researches work to determine the limitations of this new paradigm. Unlike humans, these 'Large Language Models' (LLMs) are highly sensitive to small changes in their inputs, leading to unwanted inconsistency in their behavior. One problematic inconsistency when LLMs are used to answer multiple-choice questions or analyze multiple inputs is order dependency: the output of an LLM can (and often does) change significantly when sub-sequences are swapped, despite both orderings being semantically identical. In this paper we present Set-Based Prompting, a technique that guarantees the output of an LLM will not have order dependence on a specified set of sub-sequences. We show that this method provably eliminates order dependency, and that it can be applied to any transformer-based LLM to enable text generation that is unaffected by re-orderings. Delving into the implications of our method, we show that, despite our inputs being out of distribution, the impact on expected accuracy is small, where the expectation is over the order of uniformly chosen shuffling of the candidate responses, and usually significantly less in practice. Thus, Set-Based Prompting can be used as a 'dropped-in' method on fully trained models. Finally, we discuss how our method's success suggests that other strong guarantees can be obtained on LLM performance via modifying the input representations.

View on arXivView PDF

Code Implementations(1)

MIT

Code Release for "Set-Based Prompting: Provably Solving the Language Model Order Dependency Problem"

41Shell, PythonMay 30, 20241 years agoMIT

Similar Papers

Cite this paper

@article{mcilroyyoung2024orderindependence,
  title  = {Order-Independence Without Fine Tuning},
  author = {Reid McIlroy-Young and Katrina Brown and Conlan Olson and Linjun Zhang and Cynthia Dwork},
  year   = {2024},
  eprint = {2406.06581},
  archivePrefix = {arXiv},
  doi    = {10.52202/079017-2318},
  url    = {http://arxiv.org/abs/2406.06581v3},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.06581.svg)](https://codeofpaper.com/paper/2406.06581)

Discussion