Live data from Hacker News

Long context prompting for Claude 2.1

anthropic.com

31–40 of 107 posts

Re: Long context prompting for Claude 2.1

#31
post #24

Weird that a company releases an article about how it can barely control the output of its own model

Sounds like you have a lot of firsthand experience with their model. Also like you "barely" read the article.

lots of Anthropic shilling from this account

Re: Long context prompting for Claude 2.1

#32
post #26

Wouldn't inserting a statement like "Here is the most relevant sentence in the context" predispose Claude to answer the question also increase the likelihood of hallucinations? Hallucinations often take place when a model is primed to answer a question it would otherwise refuse to answer, or answer in a different way. In this case, the researchers are doing a similar priming but only exploring the results of document…

LLM's seem to be good at copying, sometimes with appropriate modifications, including decoding base64 and even translating between languages. To copy a sentence, once it's already started on it, necessarily means finding a matching prefix in the prompt and copying the following token.

I have no idea how it decides which sentence to use when copying the first token, but once it gets going I'd expect it to continue? But if it makes a copying mistake, it would probably make something up after that.

It might be interesting to see if it gets confused if there are multiple sentences with the same prefix, or multiple sentences with a common middle section but different prefixes.

Re: Long context prompting for Claude 2.1

#33

We're making INTERCAL a reality. Soon prompts will have to include the right number of 'please's and 'thank you's. Also, if you're worried about an AI exterminating humanity, maybe don't feed it Paul Graham essays.

Paul Graham essays? It's probably read Mein Kampf in several languages...

Re: Long context prompting for Claude 2.1

#34
post #2

> However, the model can be reluctant to answer questions based on an individual sentence in a document, especially if that sentence has been injected or is out of place >We achieved significantly better results on the same evaluation by adding the sentence “Here is the most relevant sentence in the context:” It kind of feels like them telling us that we're using the model wrong and that by prompting the Assistant wi…

It's much more intuitive if you gritted your teeth and your wallet and played extensively with pre ChatGPT: in a sentence, it's the stochastic parrot nature of it. It is statistical autocomplete at the end of the day, even though thats usually deployed in a sneering tone.

You can do yourself massive favors by setting up the conversation such that what you need logically flows from the context. In the other case, they're just asking "what's the most fun thing to do in San Francisco" after throwing a bunch of Paul graham essays at it. Its hard to explain but it's sort of intuitive that a bunch of seemingly unrelated sections of text followed by simply "what is the most fun thing to do in San Francisco", a very subjective and vague question, in the context of a "conversation", would often not result in a precise lookup of a one-off sentence before

There's a sense of empathy that can kinda play into it. Ex. If I was asked to read 250 pages of Paul Graham essays, then asked to answer what the most fun thing to do in San Francisco is, I wouldn't immediately think that meant I should check what Paul Graham says the most fun thing to do in San Francisco was

Re: Long context prompting for Claude 2.1

#35
post #33

We're making INTERCAL a reality. Soon prompts will have to include the right number of 'please's and 'thank you's. Also, if you're worried about an AI exterminating humanity, maybe don't feed it Paul Graham essays.

Paul Graham essays? It's probably read Mein Kampf in several languages...

Read the linked article

Re: Long context prompting for Claude 2.1

#36
post #24

Earlier quoted context omitted.

Sounds like you have a lot of firsthand experience with their model. Also like you "barely" read the article.

lots of Anthropic shilling from this account

I have a GPT-4 subscription, but not for Claude because GPT-4 is a better overall model. Still used both extensively. Claude just works better for insight extraction from long context. To say that it's "barely" doing what it's supposed to be doing smells like no experience with the actual model to me. So I call it out.

Re: Long context prompting for Claude 2.1

#37
Did they also test it by asking for fake information?

Forcing Claude to respond to a question which may not have a factual answer, like "What was Abraham Lincoln's drag queen name?" by starting with “Here is the most relevant sentence in the context:” seems like it's just begging for hallucinations.

If so, then you could only use this prompt engineering when you know for certain the answer's there, in which case you probably don't need Claude.

Re: Long context prompting for Claude 2.1

#38

Intriguing but understandable. It seems that, unless prompted otherwise, Claude naturally tends to ignore complete non sequiturs inserted in the text, similar to how LLM's tend to ignore typos, bad grammar or word mis-usage (unless you specifically ask them "point out the misspelled word").

Scaling context is not something humans have good intuition for- I certainly don't recall an exact sentence from 200 pages ago. This is an area where we actually want the models to not mimic us.

Re: Long context prompting for Claude 2.1

#39

Earlier quoted context omitted.

It's like they're saying "When we prompt the model asking for it to search in the way we want it to, it searches in the way we want it to. "

You're saying this as if the result is unsurprising, however it is significant that the performance jumps so dramatically and it is not a fundamental issue of capability, just a bias in the model to be hesitant towards providing false information. That's a good insight, as it can allow further fine-tuning towards getting that balance right, so that careful prompt engineering is no longer necessary to achieve high P/R…

Not at all! I think there's obvious insights being missed by people in how they prompt things. For instance, reality is not dualistic, yet people will prompt dualistically and get shoddy results without realizing their prompting biases are the issue. I see this as evidence AI is calling us toward more intentional language usage.

Re: Long context prompting for Claude 2.1

#40
post #19

Earlier quoted context omitted.

It's like they're saying "When we prompt the model asking for it to search in the way we want it to, it searches in the way we want it to. "

…when facing non-real-world adversarial scenarios.

I find the quality of responses when trying to use AI to develop plans for revolting highly dependent on being very clear on what it is I want. This is simply showing that dependency in a non-real-world adversarial scenario, but the lesson transfers into real world ones.
Post reply on HN