SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.13516 · 2024

LIRE: listwise reward enhancement for preference alignment

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 6 functions out of this paper's own repositories and ran 6 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
stevie1023/LIRE canonical 6 of 6
FunctionStatusWhere it lives
jload Ran stevie1023/LIRE/train_alpaca_prompt.py
pointer only (licence: NONE) · get_code("d07d04439cd1d44f")
make_supervised_data_module Ran stevie1023/LIRE/train_alpaca_prompt.py
pointer only (licence: NONE) · get_code("ce6dbeeae3d77963")
padding Ran stevie1023/LIRE/data_generation/response_gen.py
pointer only (licence: NONE) · get_code("741b411ba8cc7fcb")
preprocess Ran stevie1023/LIRE/data_generation/response_gen.py
pointer only (licence: NONE) · get_code("5e7416d3c1bc76ee")
sequence_gather Ran stevie1023/LIRE/data_generation/response_gen.py
pointer only (licence: NONE) · get_code("3a39317f52858530")
stop_response Ran stevie1023/LIRE/train_alpaca_prompt.py
pointer only (licence: NONE) · get_code("d31569d4019ad09b")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recently, tremendous strides have been made to align the generation of Large Language Models (LLMs) with human values to mitigate toxic or unhelpful content. Leveraging Reinforcement Learning from Human Feedback (RLHF) proves effective and is widely adopted by researchers. However, implementing RLHF is complex, and its sensitivity to hyperparameters renders achieving stable performance and scalability challenging. Furthermore, prevailing approaches to preference alignment primarily concentrate on pairwise comparisons, with limited exploration into multi-response scenarios, thereby overlooking the potential richness within the candidate pool. For the above reasons, we propose a new approach: Listwise Reward Enhancement for Preference Alignment (LIRE), a gradient-based reward optimization approach that incorporates the offline rewards of multiple responses into a streamlined listwise framework, thus eliminating the need for online sampling during training. LIRE is straightforward to implement, requiring minimal parameter tuning, and seamlessly aligns with the pairwise paradigm while naturally extending to multi-response scenarios. Moreover, we introduce a self-enhancement algorithm aimed at iteratively refining the reward during training. Our experiments demonstrate that LIRE consistently outperforms existing methods across several benchmarks on dialogue and summarization tasks, with good transferability to out-of-distribution data, assessed using proxy reward models and human annotators.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2405.13516")
get_code_for_paper("2405.13516")
have("2405.13516")

Connect an agent — have() is free.