Claude 1 and 2 (2023): Anthropic and Constitutional AI

A safety-focused lab founded by former OpenAI staff shipped its first assistant in March 2023, then a 100,000-token successor four months later

Contents

Anthropic was incorporated on 26 January 2021 by a group of former OpenAI staff, among them the siblings Dario Amodei, who became chief executive, and Daniela Amodei, who became president. It is a public benefit corporation, a legal form that lets a company write a purpose beyond profit into its charter. Its first major funding, a $124 million Series A led by Jaan Tallinn, arrived the same year. For two years it published research and sold nothing to the public.

That changed on 14 March 2023, the same day OpenAI announced GPT-4. Anthropic introduced Claude, “a next-generation AI assistant,” together with a cheaper, faster sibling named Claude Instant. This post covers those two launches, the 100,000-token context window that arrived between them and Claude 2, and the training method Anthropic had published three months earlier: Constitutional AI.

The method: write the rules down, let a model apply them

To see why Constitutional AI mattered, start with how assistants were being tuned in 2022. The standard recipe, described in the post on RLHF, pays human raters to compare pairs of answers. Their preferences train a reward model, and the assistant is nudged toward whatever the reward model likes. It works, and it has two awkward properties. It needs a great many human judgements, and the people judging harmful material have to read it. The values the model absorbs also live implicitly in thousands of rating decisions, where nobody can read them as a list.

The paper “Constitutional AI: Harmlessness from AI Feedback” was posted to arXiv on 15 December 2022. Its lead author was Yuntao Bai, with more than fifty Anthropic co-authors. The idea is to replace most of the human harm labelling with a short written list of principles, and to have a model apply that list to its own outputs. The method has two phases.

Phase 1: supervisedDraft answerSelf-critiqueRevisionFine-tunePhase 2: reinforcementAnswer pairAI picks betterPreference modelRL trainingThe critique and the choice are both made by a model reading written principles.
Constitutional AI in two phases. The highlighted boxes are the steps where a model reads the written principles.

Phase one is supervised. The model answers a prompt, often a deliberately problematic one. It is then asked to critique its own answer against a principle drawn from the constitution, for instance a principle about choosing the response least likely to help with something dangerous. Next it rewrites the answer to fix what the critique found. The original model is fine-tuned on those revised answers. This is a loop of draft, critique and revision, with no human in it.

Phase two is reinforcement learning, with the feedback supplied by an AI. The fine-tuned model produces two answers to a prompt, and another model is asked which answer better follows a principle. Those AI-made comparisons train a preference model, which then acts as the reward signal for reinforcement learning. The paper named this “RL from AI Feedback,” or RLAIF. Chain-of-thought reasoning, covered in its own post, was used so that the judging model explained its choice before giving it, which improved the quality and transparency of the judgements.

The result the authors reported was an assistant that explained its objections to a harmful request instead of giving a flat refusal, while staying helpful on the ordinary run of prompts. Human feedback remained in the loop for helpfulness. The harmlessness side was where the constitution took over.

What was in the constitution

In May 2023 Anthropic published the principles it used for Claude, and the sourcing was deliberately eclectic. It drew on the UN Universal Declaration of Human Rights, on Apple’s terms of service for modern digital concerns such as privacy and impersonation, on rules from DeepMind’s Sparrow assistant, and on principles written to reduce harm to non-Western audiences and cultures. Anthropic’s own commentary said the constitution was “neither finalized nor is it likely the best it can be.”

The honest reading of this is modest and useful. A written constitution makes the target visible and editable, which is a real advance over values buried in rater behaviour. It does not make the model’s behaviour provably match the text. Training pushes a model toward the principles, and the outcome is measured by testing rather than guaranteed by the document. A reader who wants the wider vocabulary of how a base model becomes a chat model will find it in the four stages of a chat model.

Claude 1: the quiet launch

The March 2023 announcement was restrained. Claude was offered through an API to a limited set of business partners, and the launch post named Quora, with its Poe app, along with Notion, DuckDuckGo, Juni Learning, Robin AI and AssemblyAI among the early users. The positioning was an assistant that was “much less likely to produce harmful outputs, easier to converse with, and more steerable,” in the words of the early users Anthropic quoted. Claude Instant took the cheaper, lower-latency slot.

There was no consumer product of the ChatGPT kind at first. The launch did not publish a parameter count or an architecture, a decision in line with the new norm of closed frontier models discussed in the GPT-4 post. What the market saw was behaviour: longer, more conversational answers than GPT-3.5 gave, and a tendency to explain refusals politely.

A dusk view across San Francisco, with the Bay Bridge lit on the right and downtown towers in the distance.
San Francisco, where Anthropic is headquartered and where Claude was announced in March 2023. Photo: San Francisco from Twin Peaks September 2013 panorama 5 edit by King of Hearts, CC BY-SA 3.0, via Wikimedia Commons.

The 100,000-token window

The distinctive technical move of 2023 came on 11 May, when Anthropic expanded Claude’s context window from 9,000 tokens to 100,000, roughly 75,000 words. The company’s demonstration was literary. It loaded the full text of The Great Gatsby, about 72,000 tokens, into Claude Instant with a single line altered and asked the model to find the change. Anthropic reported that it answered correctly in 22 seconds.

A token, as the post on tokenisers explains, is a chunk of a few characters, and the context window is the amount of text a model can consider at once. Attention cost grows quickly with length, a consequence of the mechanism in attention explained, which is why long windows were expensive and rare. A hundred thousand tokens made new uses practical: summarising a whole contract, a long report or a codebase in one request, with no need to cut it into pieces and stitch the summaries together. Competitors followed within months, and long context became a standard feature of the field.

Claude 2: public, longer, better at code

Claude 2 was announced on 11 July 2023. It carried the 100,000-token window as standard and, for the first time, Anthropic opened a public website beta, claude.ai, alongside the API. Availability began in the United States and the United Kingdom, with wider expansion promised.

Anthropic’s announcement gave a set of benchmark comparisons against the previous model, Claude 1.3, which make a tidy ledger:

  • Bar exam, multiple-choice section: 76.5%, up from 73.0%.
  • GRE reading and writing: scores above the 90th percentile.
  • Codex HumanEval, a Python coding test of the kind pioneered by Codex: 71.2%, up from 56.0%.
  • GSM8K, grade-school maths word problems: 88.0%, up from 85.2%.
  • Harmlessness: Anthropic said Claude 2 was twice as good at giving harmless responses as Claude 1.3 on its internal red-team evaluation.
Claude 1.373 %Claude 276.5 %Source: Anthropic,Claude 2 announcement (July 2023): bar exam multiple-choice section
Bar exam multiple-choice score, as reported by Anthropic in July 2023.

These are Anthropic’s own figures from its own evaluations, and the GPT-4 post explains why a vendor-reported exam score deserves a second look: the multiple-choice section is the easiest part of the bar exam to score by machine, and a percentile or percentage depends on the comparison group. The sharper conclusion from the table is the coding jump, from 56.0% to 71.2% on HumanEval, which marked the point at which Claude became a serious tool for programmers. For a broader view of how these scores can mislead, see benchmarks and why they mislead.

Reception, and what came next

The reception was warm among developers, for a practical reason. A large context window and a tone that was less prone to curt refusals made Claude pleasant to use for document work. Anthropic’s reputation as the safety-first lab also gave it a distinct place: OpenAI had the product that defined the category, Google had the research depth, and Anthropic had the argument that training values could be made explicit.

Critics raised fair points too. The constitution was written by the company and applied by models, so its principles reflect the choices of a small group, and the 2023 text was a first attempt rather than a settled standard. A model that explains its refusals can still refuse things users consider reasonable, and Claude 2 still hallucinated, as every model of its generation did, for the mechanical reasons laid out in why models hallucinate.

The lineage continued with the three-tier family in Claude 3, where the names Haiku, Sonnet and Opus began. The method also spread. The idea of using a model to critique and rank another model’s output, the heart of RLAIF, turned up across the industry as a cheap way to generate preference data, and it connects to the teacher-and-student approach in distillation.

What to take from it

Claude 1 and 2 are best remembered for two contributions. Constitutional AI turned a vague aim, “be harmless,” into a procedure with a readable input, and the 100,000-token window changed what a hosted model could be asked to read. Neither was a research breakthrough on the scale of the transformer, and both were engineering choices that shaped what people built. The weights stayed closed in both cases, so the only way to try them was through Anthropic’s API and website, a contrast with the open alternatives in the open-weights movement.

Sources: Bai et al., “Constitutional AI: Harmlessness from AI Feedback” (arXiv, Dec 2022) · Anthropic, “Introducing Claude” (Mar 2023) · Anthropic, “Claude’s Constitution” (May 2023) · Anthropic, “100K context windows” (May 2023) · Anthropic, “Claude 2” (Jul 2023) · Wikipedia, Anthropic

Smarc
Written by Smarc

Founder and editor of Aside House. A lifelong tinkerer who self-hosts far more than is sensible, hardens Linux boxes for fun, and prods the latest AI tools to see what they can really do. The how-to guides here are the notes Smarc wishes had existed the first time round.

Smarc is the editor of Aside House. The homelab, the hardware and the opinions are real; the guides are drafted with AI assistance. Infrastructure details are genericised on purpose.