SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2204.05862 · 2022

Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback

Stanislav Fort, Dario Amodei, Kamal Ndousse, Saurav Kadavath, Neel Nanda, Nicholas Joseph, Sam Mccandlish, Yuntao Bai, Andy Jones, Amanda Askell, Anna Chen, Nova Dassarma, and 18 more

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 2 functions out of this paper's own repositories and ran 2 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
miaoyuchun/inform extension 2 of 2
FunctionStatusWhere it lives
compute_hacking_pvalues Ran miaoyuchun/inform/openrlhf/eval/compute_mop.py
pointer only (licence: NONE) · get_code("88c7c0768373a6b2")
reward_fn Ran miaoyuchun/inform/openrlhf/cli/train_ppo_ray.py
pointer only (licence: NONE) · get_code("18ed61dcfadbbdf0")

Repositories linked to this paper

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

Abstract

We apply preference modeling and reinforcement learning from human feedback (RLHF) to finetune language models to act as helpful and harmless assistants. We find this alignment training improves performance on almost all NLP evaluations, and is fully compatible with training for specialized skills such as python coding and summarization. We explore an iterated online mode of training, where preference models and RL policies are updated on a weekly cadence with fresh human feedback data, efficiently improving our datasets and models. Finally, we investigate the robustness of RLHF training, and identify a roughly linear relation between the RL reward and the square root of the KL divergence between the policy and its initialization. Alongside our main results, we perform peripheral analyses on calibration, competing objectives, and the use of OOD detection, compare our models with human writers, and provide samples from our models using prompts appearing in recent related work.

For agents

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

get_harvested_code_for_paper("2204.05862")
get_code_for_paper("2204.05862")
have("2204.05862")

Connect an agent — have() is free.