Papers › SALMON: Self-Alignment with Instructable Reward Models

SALMON: Self-Alignment with Instructable Reward Models

9 Oct 2023arXiv:2310.05910archive 2025-07-28

Zhiqing Sun, Yikang Shen, Hongxin Zhang, Qinhong Zhou, Zhenfang Chen, David Cox, Yiming Yang, Chuang Gan

Supervised Fine-Tuning (SFT) on response demonstrations combined with Reinforcement Learning from Human Feedback (RLHF) constitutes a powerful paradigm for aligning LLM-based AI agents. However, a significant limitation of such an approach is its dependency on high-quality human annotations, making its application to intricate tasks challenging due to difficulties in obtaining consistent response demonstrations and in-distribution response preferences. This paper presents a novel approach, namely SALMON, to align base language models with minimal human supervision, using only a small set of human-defined principles, yet achieving superior performance. Central to our approach is an instructable reward model. Trained on synthetic preference data, this model can generate reward scores based on arbitrary human-defined principles. By merely adjusting these principles during the RL training phase, we gain full control over the preferences with the instructable reward model, subsequently influencing the behavior of the RL-trained policy models, and reducing the reliance on the collection of online human preferences. Applying our method to the LLaMA-2-70b base language model, we developed an AI assistant named Dromedary-2. With only 6 exemplars for in-context learning and 31 human-defined principles, Dromedary-2 significantly surpasses the performance of several state-of-the-art AI systems, including LLaMA-2-Chat-70b, on various benchmark datasets. We have open-sourced the code and model weights to encourage further research into aligning LLM-based AI agents with enhanced supervision efficiency, improved controllability, and scalable oversight.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.05910")

Code

Syntology Ran 13 of 13 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 4 ran · our draft was wrong; 1 ran · fixture could not drive it; 8 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ibm/salmon officialmentioned in papermentioned on GitHubpytorchGPL-3.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 13 ran; 0 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · our draft was wrong
1ran · fixture could not drive it
8ran

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ibm/salmon. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

batch_select ibm/salmon/training/models/reward_model.py official repository ran · our draft was wrong GPL-3.0 (copyleft) · pointer only · 2154e44a6b59e432 · report
repeat_kv ibm/salmon/training/models/llama_with_flash_attn.py official repository ran · fixture could not drive it fingerprinted GPL-3.0 (copyleft) · pointer only · 30d7eec482ebf6b1 · report
unpack_dict ibm/salmon/training/models/reward_model.py official repository ran · our draft was wrong GPL-3.0 (copyleft) · pointer only · a6989412aca721c1 · report
all_gather_and_cat ibm/salmon/training/models/distributed_utils.py official repository ran fingerprinted GPL-3.0 (copyleft) · pointer only · 5aa59c85970b28a7 · report
apply_rotary_pos_emb ibm/salmon/training/models/llama_with_flash_attn.py official repository ran GPL-3.0 (copyleft) · pointer only · e34097675d132bc1 · report
cast_with_native_amp ibm/salmon/training/models/rl_trainer.py official repository ran GPL-3.0 (copyleft) · pointer only · af2735cffc6ee536 · report
clean_after_stop_token ibm/salmon/training/models/ppo_trainer.py official repository ran fingerprinted GPL-3.0 (copyleft) · pointer only · d5a396157801a324 · report
create_scheduler ibm/salmon/training/models/trainer_utils.py official repository ran GPL-3.0 (copyleft) · pointer only · 42596ac916e883a5 · report
get_last_checkpoint ibm/salmon/training/qlora_utils.py official repository ran · our draft was wrong fingerprinted GPL-3.0 (copyleft) · pointer only · 89ce33341af66037 · report
rotate_half ibm/salmon/training/models/llama_with_flash_attn.py official repository ran · our draft was wrong fingerprinted GPL-3.0 (copyleft) · pointer only · b99eea6376d1e212 · report
setup ibm/salmon/training/models/distributed_utils.py official repository ran fingerprinted GPL-3.0 (copyleft) · pointer only · 4098e9c2afde4a5d · report
truncate_after_eos ibm/salmon/training/models/rl_trainer.py official repository ran GPL-3.0 (copyleft) · pointer only · 1088838ef514bf22 · report
whiten ibm/salmon/training/models/ppo_trainer.py official repository ran GPL-3.0 (copyleft) · pointer only · 9a0b92f09a2d6c76 · report

Tasks

In-Context LearningLanguage Modelling

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGNBASE

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections