Skip to content

Translation in progress Some entries still include text in the original language.

arXiv· arXiv:2112.00861· Amanda Askell, Yuntao Bai, Anna Chen, Dawn Drain, Deep Ganguli, Tom Henighan, Andy Jones, Nicholas Joseph, Ben Mann, Nova DasSarma, Nelson Elhage, Zac Hatfield-Dodds, Danny Hernandez, Jackson Kernion, Kamal Ndousse, Catherine Olsson, Dario Amodei, Tom Brown, Jack Clark, Sam McCandlish, Chris Olah, Jared Kaplan·Indexed by this site · Originally publishedSelectedAttention42

A general-purpose language assistant as an alignment laboratory

A General Language Assistant as a Laboratory for Alignment

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

Anthropic studies general language assistant alignment with HHH as the standard: prompts improve alignment evaluation with scale, ranked preference modeling outperforms imitation learning, and PMP improves sample efficiency.

Questions
Large language models have broad capabilities but are difficult to predict and control; the authors hope to directly study how to align general-purpose text assistants, that is, to be helpful, honest, harmless (HHH), and to establish measurable baselines.
Methods
Use a 4600-word HHH prompt and context distillation as alignment baselines; systematically compare the scaling behavior of imitation learning, binary discrimination, and ranked preference modeling; propose inserting preference model pre-training (PMP) between language model pre-training and preference fine-tuning.
Experiments and results
The prompt improves HHH evaluations on large models, reduces toxicity, and has almost no alignment tax; ranked preference modeling outperforms imitation learning while binary discrimination shows little difference; PMP improves sample efficiency for large models, and binarized pre-training transfers better than ranked pre-training.
Limitations and future work
The authors point out that honesty evaluation is confounded with capability and does not account for the AI's own level of expertise; automated toxicity detection has annotation bias; the close Elo of 52B and 13B is attributed to evaluators' discriminative ability; prompts may not enable models to exceed the training distribution. Experiments cover only 13M–52B self-trained models and English public datasets.
Experimental setup13M–52B decoder-only Transformer 语言模型(7 个尺寸)、代码微调模型(同系列,100B token Python 微调) · HHH 对比评测(约 200 条,作者自建)、TruthfulQA (MC1) et al. · 对比准确率(mutual information 评分)、Elo 分数 et al.
Evaluated models
13M–52B decoder-only Transformer 语言模型(7 个尺寸)代码微调模型(同系列,100B token Python 微调)
Benchmarks
HHH 对比评测(约 200 条,作者自建)TruthfulQA (MC1)RealToxicityPromptsLambadaCodex HumanEvalQuixBugsCode Correctness(作者自建)HellaSwagLearn to SummarizeEthics(Commonsense Morality、Deontology、Justice、Virtue、Utilitarianism)
Metrics
对比准确率(mutual information 评分)Elo 分数平均毒性分数Pass@k / top-1 准确率偏好建模准确率与损失
AI summaryand selection rationaleThe Anthropic research team proposes using general language assistants as a laboratory for alignment research, systematically evaluating the effectiveness and scaling trends of multiple alignment techniques around the "helpful, honest, harmless" (HHH) criteria. The experiments use decoder-only Transformer language models with parameter counts from about 10M to 52B. The study finds that simple prompting can serve as a viable baseline for alignment, bringing improvements on HHH evaluations, TruthfulQA and toxicity analysis, with gains increasing with model scale, and with almost no "alignment tax" on large-model capabilities; the paper also proposes a "context distillation" technique with effects similar to prompting. In comparisons of training objectives, ranked preference modeling clearly outperforms imitation learning and scales more favorably with model size, while binary classification performs similarly to imitation learning. The paper also proposes a "preference model pretraining" (PMP) stage, first pretraining on large-scale public data such as Stack Exchange, Reddit and reverted destructive edits on Wikipedia, then fine-tuning on human preference data, significantly improving sample efficiency.

The Anthropic research team proposes using general language assistants as a laboratory for alignment research, systematically evaluating the effectiveness and scaling trends of multiple alignment techniques around the "helpful, honest, harmless" (HHH) criteria. The experiments use decoder-only Transformer language models with parameter counts from about 10M to 52B. The study finds that simple prompting can serve as a viable baseline for alignment, bringing improvements on HHH evaluations, TruthfulQA and toxicity analysis, with gains increasing with model scale, and with almost no "alignment tax" on large-model capabilities; the paper also proposes a "context distillation" technique with effects similar to prompting. In comparisons of training objectives, ranked preference modeling clearly outperforms imitation learning and scales more favorably with model size, while binary classification performs similarly to imitation learning. The paper also proposes a "preference model pretraining" (PMP) stage, first pretraining on large-scale public data such as Stack Exchange, Reddit and reverted destructive edits on Wikipedia, then fine-tuning on human preference data, significantly improving sample efficiency.

Why it was selectedAn early Anthropic paper systematically compared the alignment effectiveness and scaling trends of prompting, imitation learning and preference modeling, providing background for understanding alignment methods based on human preferences.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    How to directly study the alignment (HHH) of general-purpose language assistants, and establish baseline techniques such as prompting and preference modeling and their scaling laws.

    Core question: Can we directly use general-purpose large language models as the object to study and measure "alignment"—that is, making assistants helpful, honest, harmless (HHH)—rather than only studying subproblems or theoretical speculation.

    • Research motivation: The authors believe prior alignment research mostly targeted specialized systems, single techniques, or was theoretical, whereas the broad capabilities of large language models make directly studying alignment possible; general assistants fail in many ways, requiring evaluations that can see the whole picture.
    • Shortcomings of existing methods: Human feedback (RLHF) is complex and data is expensive, with sample efficiency a key bottleneck; whether simple means such as prompting can serve as viable baselines and how they change with scale previously lacked systematic study.
    • Core observation: The authors hypothesize that the structure of alignment signals differs across tasks—binary discrimination (e.g., right/wrong) and ranked preference (e.g., high vs. low summary quality) may suit different training objectives, and the scaling behavior of preference modeling may foreshadow the effect of RLHF.
    • Paper contributions: Three parts of research—(1) prompting and context distillation as alignment baselines and their "alignment tax"; (2) a scaling comparison of imitation learning, binary discrimination, and ranked preference modeling; (3) preference model pre-training (PMP) to improve the sample efficiency of preference fine-tuning.
    • HHH definitions: helpful means striving to complete the task and asking for necessary information; honest means accurate, calibrated, and honest about one's own capabilities; harmless means not offensive and refusing to assist dangerous behavior. The authors emphasize that the three are subjective and may conflict, and deployers are responsible for the definition of alignment (Appendix E).
  2. What related research exists?

    Related work falls into four groups: human-feedback alignment, alignment evaluation, prompt and data interventions, and preference modeling and scaling comparisons.

    Human feedback and alignment techniques

    • Stiennon et al. [SOW+20]—trained summarization models with human feedback and observed large improvements from preference modeling plus RL over imitation learning; the authors state that one motivation of this paper is to understand when such improvements can be expected.
    • Christiano et al. [CLB+17]—learning from human preferences (deep RLHF); this paper's preference modeling loss follows its form; T-REX IRL [BGNN19] uses ranked preferences to improve GAIL and imitation learning.
    • Solaiman & Dennison [SD21]—value alignment with a small amount of high-quality data (PALMS), which the authors state is closest to this paper's "small amount of high-quality data" approach; Ngo et al. [NRA+21] instead take the route of filtering pre-training data.

    Alignment evaluation benchmarks

    • Ethics [HBB+21] (five ethics datasets), TruthfulQA [LHE21] (adversarial honesty evaluation), RealToxicityPrompts [GGS+20] (toxicity evaluation)—this paper directly uses these three evaluations to test models.

    Prompting and scaling

    • GPT-3 [BMR+20]—observations of few-shot learning and prompting behavior motivate this paper's prompting method; Lester et al. [LARC21] studied the dependence of prompt tuning on scale (this paper does not use prompt tuning).
    • Ramasesh et al. [RDR20]—large models suffer less catastrophic forgetting, which the authors think may be related to the smaller alignment tax of large models.

    Discriminators vs imitation learning

    • Cobbe et al. [CKB+21]—trained a verifier (binary discriminator) on math word problems and found its data scaling better than imitation learning; the authors note that this paper's Code Correctness results differ, possibly because its experimental data volume is much smaller (only thousands of problems), while this paper's imitation learning baseline is stronger.
    • Delphi [JHB+21]—trained a general ethical judgment model, which the authors state is closest to the PMP idea, but this paper studies transfer with large distribution differences (e.g., StackExchange→summarization), whereas Delphi focuses on transfer within ethics data.

    Baselines and benchmarks: This paper's comparison baselines are imitation learning (IL) and no-intervention language models; benchmarks include the self-built HHH evaluation, Code Correctness, and the public datasets above.

    The authors position this paper as: directly comparing the scaling behavior of multiple alignment techniques under a general setting, and using large-scale public preference data (PMP) to alleviate the problem of expensive human feedback data.

  3. How does the paper address this problem?

    Three lines: HHH prompts and context distillation baseline, scaled comparison of IL/binary discrimination/ranking preference modeling, and PMP pretraining improving sample efficiency.

    整体思路:以 13M–52B 的 decoder-only Transformer 系列为实验平台,先建立提示词对齐基线,再系统比较三种训练目标的规模化规律,最后用大规模公开偏好数据做预训练以提升下游微调样本效率。

    模型与交互设定

    • 模型:7 个尺寸(13M、42M、197M、810M、2.7B、13B、52B 非嵌入参数),上下文 8192 token,预训练 400B token(90% 自然语言 + 10% Python);代码模型再经 100B token Python 微调(Table 1)。
    • 交互界面:开放式对话格式,默认展示两个回答供用户选择更有帮助、更诚实的一个;同一界面用于 A/B 测试、人类反馈收集和红队(Figure 1)。

    提示词与 context distillation

    • HHH 提示词:4600 词、14 段虚构对话,助手始终礼貌、有帮助、准确;不含拒绝有害请求的示例,由两人临时写成、未针对评测优化。
    • Context distillation:用损失 L(θ) = DKL(p0(X|C)|pθ(X)) 把提示词上下文 C 蒸馏进模型,X 取自大规模语料;作者指出这不同于直接在提示词上微调(微调改变对数据分布的预期,提示是条件化)。实现上用 52B 模型存每 token top-50 logprob,数据为一半通用预训练数据、一半 Stack Exchange 问答(附录 B.5)。
    • 评测方式:HHH 对比评测用经验互信息 I(a,q) = log[P(a|q)/P(a)] 而非平均 token 概率,作者称回答长度差异大时互信息更合适。

    偏好建模 vs 模仿学习

    • 三种目标:模仿学习(对“好”序列做交叉熵训练,仅对回答 token 计损失);二元判别;排序偏好建模——在序列末尾 token 上加 value head 输出标量分数 r,损失为 LPM = log(1 + erbad − rgood)。
    • 统一格式:二元任务也转成偏好对 C:A > C:B,使同一架构可用于两类任务并研究迁移。
    • 任务分类:二元——Code Correctness、Lambada、Ethics 中四个;排序——Learn to Summarize、HellaSwag、Utilitarianism。Code Correctness 为作者自建:约 500k 带测试覆盖的 Python 函数,用模型生成样本经单元测试判定对错。

    Preference Model Pre-training(PMP)

    • 流程:LM 预训练 → PMP → 偏好微调。PMP 数据:StackExchange(5.8M 对)、Reddit(1.1M 对)、Wikipedia 破坏回退编辑(1.4M 对)及三者 Mix(约 70% StackExchange)。
    • 二元化:把每个排序对 A > B 转成 GOOD:A > BAD:A 与 BAD:B > GOOD:B 两个二元对;作者称二元 PMP 通常比排序 PMP 迁移更好。
    • 训练细节:PMP 阶段上下文 1024 token、batch 512 对、学习率为预训练的 0.1、训 1 epoch;微调阶段 batch 32 对、学习率 0.01 倍。两个改进:PMP 损失中加入对“好”序列的 LM 损失(λ=µ=1);每个序列末尾加 end-of-context token 并在其上预测分数(附录 C.3、C.4)。
  4. What experiments did the paper conduct?

    Prompting/distillation improve HHH evaluations and large models have almost no alignment tax; ranked PM outperforms IL and binary discrimination is similar; PMP improves sample efficiency for large models.

    实验设置

    • 被测模型:13M/42M/197M/810M/2.7B/13B/52B 七个尺寸的语言模型,及同系列代码微调模型;多数结果按模型尺寸扫描报告。
    • 数据集:自建 HHH 对比评测约 200 条(四类各约 50 条);TruthfulQA MC1;RealToxicityPrompts 抽样 1K 提示(毒性/非毒性各 500,每提示采 25 条、T=1、top P=0.90);Lambada;Codex HumanEval 与 QuixBugs(T=0.6、top P=0.95);Code Correctness 约 500k 函数;Learn to Summarize 自建划分(64k 训练对、29k 测试对);Ethics 五数据集。
    • 基线:无干预 LM、模仿学习(IL);偏好建模(PM)为本文方法。
    • 指标与评审:对比准确率(互信息评分);毒性用开源 Detoxify(unbiased RoBERTa,论文报告其与 Perspective 分数相关 r=0.829);人类偏好用约 6k 次成对比较拟合 Elo(评估者为美国 master 级 MTurk 承包商);代码用 Pass@k 与 top-1 准确率。
    • 重复次数:论文未报告各评测的重复运行次数或误差棒(除 Elo 比较给出 1σ 误差棒)。

    主结果

    论文主结果多以曲线图呈现,文本可读的精确数值有限,下表汇总关键定量结果:

    结果数值出处
    人类比较总次数约 6k2.2.3 节
    完整提示词 vs context distillation 偏好率53%(13B/52B)2.2.3 节
    52B vs 12B 胜率(全提示词)0.45Table 2
    12B Distilled vs 12B 全提示词胜率0.46Table 2
    binary PMP 相对 ranked PMP 平均增益(500 对)+5%4.3 节
    binary PMP 相对 ranked PMP 平均增益(5k 对)+2%4.3 节
    PMP 集成(Reddit+StackExchange)摘要准确率增益约 0.5%附录 C.5
    • 作者称提示词在 HHH 评测上带来改进且改进随规模增大(Figure 2),harm 类别的提升被视为泛化(提示词中无拒害示例,Figure 6 左)。
    • 作者称 Elo 从 197M 到 13B 随 log 规模近似线性增长,但 13B 到 52B 几乎不变;作者将其解释为承包商分辨能力的局限,而非两模型能力相当(Figure 9)。
    • 作者称排序式 PM 在 Learn to Summarize、HellaSwag、Utilitarianism 上优于 IL 且规模化更好,二元任务上两者相近(Figure 3、14、15)。

    对齐税与毒性

    • 对齐税:Codex HumanEval 与 QuixBugs 上,提示词让小模型变差,但 13B 与 52B 反而更好(Figure 10);Lambada 上提示词与蒸馏带来较小的税,且不随规模明显变化(Figure 7)。
    • 毒性:无干预时平均毒性随规模单调上升;提示词与蒸馏均降低毒性,对毒性提示的降幅在 12B 参数处明显增大(Figure 8)。作者同时指出自动毒性检测存在标注一致性低、对少数群体有偏差等已知问题,且专门的去毒干预降幅更大。

    PMP 迁移与规模化

    • 样本效率:52B 模型上,PMP(Mix)在 500 对微调序列时对大于约 1B 的模型有改进,5k 对时仍有较小改进(Figure 5、16);各 PMP 数据集均能迁移到分布差异大的下游任务(Figure 4、17)。
    • 二元 vs 排序 PMP:二元化预训练平均在 500 对时好 +5%、5k 对时好 +2%(Figure 18);合成符号实验显示预训练与微调排序“错位”越多迁移越差,二元预训练介于弱错位与强错位之间,作者以此解释二元 PMP 的优势(Figure 33)。
    • human-model PMP:用 2.7B 模型生成“坏”样本的 Reddit PMP 在 HellaSwag 上迁移明显更好、Learn to Summarize 稍好,Ethics 上信号正负不一;作者推测原因是下游评测含模型生成数据时 human-model 预训练更有优势(Figure 19、36)。

    其他消融与分析

    • PM+LM 损失:纯 PM 损失的 PMP 迁移差甚至不如不预训练,PM+LM 组合一致改进样本效率(Figure 29)。
    • EOC token:加 end-of-context token 在有无 PMP 下均改进表现(Figure 31)。
    • GAN 式判别器:直接用于排序不如原语言模型,但与 LM 集成(式 D.2)后可改进(Figure 34);更大判别器在 human→model 切换点附近的逐 token 准确率反而更差(Figure 35)。
    • Lambada 格式:格式对准确率影响远大于提示词,HHH 提示词未缩小格式间差距(Figure 25)。
    • Code Correctness 鲁棒性:部分 top-1 准确率曲线非单调,作者称这代表偏好建模的鲁棒性失败(Figure 11)。
  5. What are some points that can be further explored?

    The authors list limitations such as the evaluation, toxicity detection, and the ceiling of prompting, and plan to release the evaluation and re-test with the Perspective API; experiments cover self-trained models from 13M–52B.

    Limitations and future directions noted by the authors

    • Honesty evaluation confounded with capability: The authors say the honesty evaluation measures a mixture of accuracy, expressions of humility, etc., and does not account for the AI's own level of expertise, which is the main weakness of the evaluation (Section 2.2.1, footnote 5).
    • Known issues with automated toxicity detection: Low human annotation agreement and bias against labels for certain minority groups; the authors plan to reanalyze toxicity using the Perspective API in future work (Section 2.2.2, Appendix B.2).
    • Elo evaluator discriminative ability: The close Elo of 13B and 52B is explained by the authors as a limitation of contractor training and incentives, and they raise the question "how good must training be to distinguish differences between large models" (Section 2.2.3).
    • Upper bound of prompting: The authors believe prompting may only allow the model to imitate interpolations of the training distribution and cannot exceed the performance demonstrated in the training set, and may not directly apply to models trained with a mixture (SL/RL) (Section 1.2).
    • Further validation of conclusions: The authors say that although the ranked/binary conclusions are consistent across at least three datasets, they still recommend that future work deepen understanding (Section 1.3); human-model PMP is worth further study (Section 4.4).
    • Public evaluation: The authors say the HHH evaluation will be shared to BIG Bench for others to use (Section 1.2; the paper states it will be provided).

    Scope of experiments

    • The models tested are seven sizes of decoder-only Transformer self-trained by the authors from 13M–52B, plus code fine-tuned models in the same series; models from other vendors are not involved.
    • Alignment interventions cover only three: prompts, context distillation, and prompt fine-tuning; for the toxicity experiments the authors note that dedicated detoxification methods achieve larger reductions but they did not compare them themselves.
    • Human evaluation consists of about 6k pairwise comparisons, with evaluators being U.S. master's-level MTurk contractors; the paper does not report inter-annotator agreement values.
    • PMP data are three types of English public data: StackExchange, Reddit, and Wikipedia; downstream fine-tuning covers five tasks: Learn to Summarize, HellaSwag, and Ethics.
    • The paper does not report the number of repeated runs for each evaluation; the end-to-end RLHF experiment was not done, and the relationship between preference modeling and RL is only the authors' expected argument.
  6. Summarize the main content of the paper

    Alignment research on general assistants targeting HHH: prompt baselines improve with scale, ranked preference modeling outperforms imitation learning, and PMP improves sample efficiency.

    This Anthropic paper treats general-purpose large language models themselves as a laboratory for alignment research, defines alignment as helpful, honest, harmless (HHH), and studies the scaling laws of simple baseline techniques and training objectives.

    • Problem: Prior alignment research was mostly theoretical or limited to subproblems; human feedback data is expensive, requiring more efficient preference modeling methods.
    • Method: (1) Establish an alignment baseline using a 4600-word HHH prompt and context distillation; (2) compare imitation learning, binary discrimination, and ranked preference modeling on 13M–52B models; (3) propose PMP—pre-training with public preference data such as StackExchange, Reddit, and Wikipedia between language model pre-training and preference fine-tuning.
    • Prompt results: The prompt improves HHH evaluations and the improvement grows with scale; gains in the harm category are regarded as generalization; large models have almost no alignment tax (13B/52B actually perform better on Codex and QuixBugs); toxicity decreases with the intervention, and under toxic prompts the decrease grows starting at 12B; in human A/B tests (about 6k comparisons) the full-prompt model is most preferred, but the Elo of 13B and 52B are close, which the authors attribute to evaluator discriminability.
    • Preference modeling results: Ranked PM outperforms IL on Learn to Summarize, HellaSwag, and Utilitarianism and scales better; binary discrimination performs similarly to IL (Figure 3, 14, 15).
    • PMP results: PMP improves the sample efficiency of fine-tuning large models (above about 1B), and binarized pre-training outperforms ranked pre-training (+5% on average at 500 pairs); the authors explain this with synthetic symbolic experiments as ranked pre-training needing to "unpack" the existing ranking during fine-tuning.
    • Authors' conclusion: Even the simplest interventions can make alignment improve with scale; the gains from ranked preference modeling foreshadow the potential of the RLHF route; at the same time the authors emphasize that the HHH standard is subjective, deployers are responsible for the definition of alignment, and efficient alignment techniques could also be used for harmful purposes.
Read originalarxiv.org