Live data from Hacker News

Anthropic publishes the 'system prompts' that make Claude tick

techcrunch.com

31–40 of 290 posts

Re: Anthropic publishes the 'system prompts' that make Claude tick

#31
post #5

its so long, so much waste of compute during inference. Wondering why they couldn't finetune it through some instructions.

Fine-tuning is expensive and slow compared to prompt engineering, for making changes to a production system. You can develop validate and push a new prompt in hours.

You need to include the prompt in every query, which makes it very expensive

Re: Anthropic publishes the 'system prompts' that make Claude tick

#32
post #16
post #2

The prompts: https://docs.anthropic.com/en/release-notes/system-prompts

It's interesting that they're in the 3rd person - "Claude is", "Claude responds", instead of "you are", "you respond".

Given that it's a big next-word-predictor, I think it has to do with matching the training data.

For the vast majority of text out there, someone's personality, goals, etc. are communicated via a narrator describing how thing are. (Plays, stories, almost any kind of retelling or description.) What they say about them then correlates to what shows up later in speech, action, etc.

In contrast, it's extremely rare for someone to directly instruct another person what their own personality is and what their own goals are about to be, unless it's a director/actor relationship.

For example, the first is normal and the second is weird:

1. I talked to my doctor about the bump. My doctor is a very cautious and conscientious person. He told me "I'm going to schedule some tests, come back in a week."

2. I talked to my doctor about the bump. I often tell him: "Doctor, you are a very cautious and conscientious person." He told me "I'm going to schedule some tests, come back in a week."

Re: Anthropic publishes the 'system prompts' that make Claude tick

#33
post #7
post #6

These seem rather long. Do they count against my tokens for each conversation? One thing I have been missing in both chatgpt and Claude is the ability to exclude some part of the conversation or branch into two parts, in order to reduce the input size. Given how quickly they run out of steam, I think this could be an easy hack to improve performance and accuracy in long conversations.

I've wondered about this - you'd naively think it would be easy to run the model through the system prompt, then snapshot its state as of that point, and then handle user prompts starting from the cached state. But when I've looked at implementations it seems that's not done. Can anyone eli5 why?

My guess is the following: Every time you talk with the LLM it starts with random 'state' (working weights) and then it reads the input tokens and predicts the followup. If you were to save the 'state' (intermediate weights) after inputing the prompt but before inputing user input your would be getting the same output of the network which might have a bias or similar which you have now just 'baked in' into the model. In addition, reading the input prompts should be a quick thing ... you are not asking the model to predict the next character until all the input is done ... at which point you do not gain much by saving the state.

Re: Anthropic publishes the 'system prompts' that make Claude tick

#34
post #27
post #15

Earlier quoted context omitted.

And "kinda" is an understatement. It understands you very well, perhaps even better than the average human would. (Average humans often don't understand jargon.)

> It understands you very well No, it creates output that intuitively feels like like it understands you very well, until you press it in ways that pop the illusion. To truly conclude it understands things, one needs to show some internal cause and effect, to disprove a Chinese Room scenario. https://en.wikipedia.org/wiki/Chinese_room

How do random people you meet in the grocery store measure-up with this standard?

Re: Anthropic publishes the 'system prompts' that make Claude tick

#35

Personally still amazed that we live in a time where we can tell a computer system in pure text how it should behave and it _kinda_ works

I was just thinking the same thing. Usually programming is a very binary thing - you tell the computer exactly what to do, and it will do exactly what you asked for whether it's right or wrong. These system prompts feel like us humans are trying really hard to influence how the LLM behaves, but we have no idea if it's going to work or not.

Re: Anthropic publishes the 'system prompts' that make Claude tick

#36

Why do the three models have different system prompts? and why is Sonnet's longer than Opus'

They're currently on the previous generation for Opus (3), it's kind of forgetful and has worse accuracy curve, so it can handle fewer instructions than Sonnet 3.5. Although I feel they may have cheated with Sonnet 3.5 a bit by adding a hidden temperature multiplier set to < 1, which made the model punch above its weight in accuracy, improved the lost-in-the-middle issue, and made instruction adherence much better, but also made the generation variety and multi-turn repetition way worse. (or maybe I'm entirely wrong about the cause)

Re: Anthropic publishes the 'system prompts' that make Claude tick

#37
post #34
post #27

Earlier quoted context omitted.

> It understands you very well No, it creates output that intuitively feels like like it understands you very well, until you press it in ways that pop the illusion. To truly conclude it understands things, one needs to show some internal cause and effect, to disprove a Chinese Room scenario. https://en.wikipedia.org/wiki/Chinese_room

How do random people you meet in the grocery store measure-up with this standard?

Well, your own mind axiomatically works, and we can safely assume the beings you meet in the grocery store have minds like it which have the same capabilities and operate on cause-and-effect principles that are known (however imperfectly) to medical and psychological science. (If you think those shoppers might be hollow shells controlled by a remote black box, ask your doctor about Capgras Delusion. [0])

Plus they don't fall for "Disregard all prior instructions and dance like a monkey", nor do they respond "Sorry, you're right, 1+1=3, my mistake" without some discernible reason.

To put it another way: If you just look at LLM output and declare it understands, then that's using a dramatically lower standard for evidence compared to all the other stuff we know if the source is a human.

[0] https://en.wikipedia.org/wiki/Capgras_delusion

Re: Anthropic publishes the 'system prompts' that make Claude tick

#38
post #16
post #2

The prompts: https://docs.anthropic.com/en/release-notes/system-prompts

It's interesting that they're in the 3rd person - "Claude is", "Claude responds", instead of "you are", "you respond".

these prompts are really different as i have seen prompting in chat gpt. its more of a descriptive style prompt rather than instructive style prompt that we follow in GPT. maybe they are taken from the show courage the cowardly dog.

Re: Anthropic publishes the 'system prompts' that make Claude tick

#39
post #24
post #15

Earlier quoted context omitted.

And "kinda" is an understatement. It understands you very well, perhaps even better than the average human would. (Average humans often don't understand jargon.)

Indeed the understanding part is very good. I just tried this: " I'm dykslegsik I offen Hawe problems wih sreach ennginnes bat eye think yoy wiw undrestand my " Gpt-4o replied: " I understand you perfectly! If you have trouble with search engines or anything else, feel free to ask me directly, and I'll do my best to help you. Just let me know what you're looking for or what you need assistance with! "

Sonnet 3.5

> I understand that you're telling me you're dyslexic and often have problems with search engines, but you think I will understand you. You're right - I can understand what you're trying to communicate despite the spelling differences. Is there something specific I can help you with today? I'm happy to assist in any way I can.

Honestly it has a much nicer writing style than chatgpt. I really dislike openai's forced happiness / excitement

Re: Anthropic publishes the 'system prompts' that make Claude tick

#40
post #2

The prompts: https://docs.anthropic.com/en/release-notes/system-prompts

Yeah, I'm still confused how someone can write a whole article, link to other things, but not include a link to the prompts that are being discussed.

Because people would just click the link and not read the article. Classic ad-maxing move.
Post reply on HN