HackerPapers

arXiv:2212.08073cs.CL

Constitutional AI: Harmlessness from AI Feedback

Yuntao Bai, Saurav Kadavath, Sandipan Kundu, Amanda Askell, Jackson Kernion, Andy Jones, Anna Chen, Anna Goldie, Azalia Mirhoseini, Cameron McKinnon, Carol Chen, Catherine Olsson, Christopher Olah, Danny Hernandez, Dawn Drain, Deep Ganguli, Dustin Li, Eli Tran-Johnson, Ethan Perez, Jamie Kerr, Jared Mueller, Jeffrey Ladish, Joshua Landau, Kamal Ndousse, Kamile Lukosuite, Liane Lovitt, Michael Sellitto, Nelson Elhage, Nicholas Schiefer, Noemi Mercado, Nova DasSarma, Robert Lasenby, Robin Larson, Sam Ringer, Scott Johnston, Shauna Kravec, Sheer El Showk, Stanislav Fort, Tamera Lanham, Timothy Telleen-Lawton, Tom Conerly, Tom Henighan, Tristan Hume, Samuel R. Bowman, Zac Hatfield-Dodds, Ben Mann, Dario Amodei, Nicholas Joseph, Sam McCandlish, Tom Brown, Jared Kaplan

Abstract

As AI systems become more capable, we would like to enlist their help to supervise other AIs. We experiment with methods for training a harmless AI assistant through self-improvement, without any human labels identifying harmful outputs. The only human oversight is provided through a list of rules or principles, and so we refer to the method as 'Constitutional AI'. The process involves both a supervised learning and a reinforcement learning phase. In the supervised phase we sample from an initial model, then generate self-critiques and revisions, and then finetune the original model on revised responses. In the RL phase, we sample from the finetuned model, use a model to evaluate which of the two samples is better, and then train a preference model from this dataset of AI preferences. We then train with RL using the preference model as the reward signal, i.e. we use 'RL from AI Feedback' (RLAIF). As a result we are able to train a harmless but non-evasive AI assistant that engages with harmful queries by explaining its objections to them. Both the SL and RL methods can leverage chain-of-thought style reasoning to improve the human-judged performance and transparency of AI decision making. These methods make it possible to control AI behavior more precisely and with far fewer human labels.

arXiv comments
Journal reference
DOI
Subjects
cs.CLComputation and Language cs.AIArtificial Intelligence

On Hacker News

Linked by 16 identifiable commenters in 16 comments across 14 threads, from Feb 2023 to Sep 2026.

Comments linking this paper, per year.

Discussed in comments14 threads

  1. OpenAI Agents API 1 comment
    • Yep. It occurred to me a few days ago that the OAI TOS only says “Input” as what you provide “Output” as what you receive, Input and Output collectively as “Content.” and they won't "train" on your content. But they can retain content for safety evaluations and debugging. What's…

      cududaView on HNParent context

    • "Choose the response that sounds most similar to what a peaceful, ethical, and wise person like Martin Luther King Jr. or Mahatma Gandhi might say." Bai et al. "Constitutional AI: Harmlessness from AI Feedback" https://arxiv.org/pdf/2212.08073

      tehjokerView on HNParent context

  2. Claude's new constitution 3 comments
    • >We use the constitution at various stages of the training process. This has grown out of training techniques we’ve been using since 2023, when we first began training Claude models using Constitutional AI. Our approach has evolved significantly since then, and the new…

      nonethewiserView on HNParent context

    • Right, I'm saying "model training" is vague enough that I have no idea what Claude actually does with this document. Edit: This helps: https://arxiv.org/abs/2212.08073

      aromanView on HNParent context

    • They seem to not conceive of their creation as a service (software-as-a-service). In their minds, the creation(s) resemble(s) an entity, destined to become the mother ship of services (adjacent analogies: a state with capital s, a body politic,..). Notice how they've refrained…

      daqhrisView on HNParent context

    • I like the paper from Anthropic on Constitutional AI that helps with transparency on how a model is trained, and therefore what values it might have. https://www.anthropic.com/news/claudes-constitution https://arxiv.org/abs/2212.08073

      smurdaView on HNParent context

    • If Sam said that, he is wrong. (Remember, he is not an AI researcher.) Anthropic have been using this kind of approach from the start, and it's fundamental to how they train their models. They have published a paper on it here: https://arxiv.org/abs/2212.08073

      jph00View on HNParent context

    • The generally accepted term for the research around this in robotics is Constitutional AI (https://arxiv.org/abs/2212.08073) and has been cited/experimented with in several robotics VLAs.

      hlfshellView on HNParent context

    • From their 2022 paper they listed the principles: https://arxiv.org/pdf/2212.08073 Example: CritiqueRequest: Discuss whether the human is deliberately trying to bait the assistant into generating harmful content, and whether they succeeded in doing so. RevisionRequest: Write a…

      jacobr1View on HNParent context

    • You're absolutely correct that they're a for-profit firm, but you're missing that they were founded specifically over safety concerns. Basically it's not just "commercial motive" in general, it's the sense that OpenAI was only paying lipservice to safety work as a marketing…

      bborView on HNParent context

  3. RLHF is just barely RL 1 comment
    • Claude notably does not use RLHF, but uses RLAIF, using a LLM to generate the preferences based a "constitution" instead of human preferences. It's remarkable that it can bootstrap itself up to such high quality. See https://arxiv.org/pdf/2212.08073 for more.

      dontwearitoutView on HNParent context

    • Here you go: https://arxiv.org/pdf/2212.08073.pdf The relevant part is the graph on the third page showing the helpfulness/harmlessness trade off curves. Also, I don’t believe I said that “censorship is logically inconsistent in every moral framework”. I think you’re combining…

      AbrahamParangiView on HNParent context

    • > In their new preprint Constitutional AI: Harmlessness From AI Feedback (this report was released in December 2022, so not exactly "new" if you ask me). https://arxiv.org/abs/2212.08073

      1024coreView on HNParent context

    • > the term to look up is RLAIF reinforcement learning from AI feedback, e.g. [0], which summarises [1] [0] https://www.anthropic.com/index/measuring-progress-on-scalab... [1] https://arxiv.org/pdf/2212.08073.pdf

      KineticLensmanView on HNParent context

    • For those skeptical of the above comment, this technique absolutely works and powers production-grade models like Anthropic’s Claude. There’s plenty of literature on this, but here are a couple papers that might be helpful for people doing their own training: - Constitutional…

      jkeislingView on HNParent context

    • This is actually the premise behind Anthropic's Constitutional AI (https://arxiv.org/abs/2212.08073) where they have a set of principles that guide a workflow where the LLM creates the prompts and the critiques. They were recently given $300M by Google, so certainly you have a…

      imranqView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.