News for hackers. Stuff that matters.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by 19h on Tuesday May 14, 2024 @04:42PM (#40359937)
I'd like to see this for Gemini Pro 1.5 -- I threw the entirety of Moby Dick at it last week, and at one point all books Byung Chul-Han has ever published, and it both cases it was able to return the single part of a sentence that mentioned or answered my question verbatim, every single time, without any hallucinations.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by nsagent on Tuesday May 14, 2024 @06:31PM (#40360910)
A number of people in my lab do research into long context evaluation of LLMs for works of fiction. The likelihood is very high that Moby Dick is in the training data. Instead the people in my lab have explored recently published books to avoid these issues.

See BooookScore (https://openreview.net/forum?id=7Ttk3RzDeu) which was just presented at ICLR last week and FABLES (https://arxiv.org/abs/2404.01261) a recent preprint.

Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by robbiep on Tuesday May 14, 2024 @08:58PM (#40361917)
I’m not involved in the space, but it seems to me that having a model, in particular a massive model, exposed to a corpus of text like a book in the training data would have very minimal impact. I’m aware that people have been able to return data ‘out of the shadows’ pf the training data but to my mind a model being mildly influenced by the weights between different words in this text hardly constitute hard recall, if anything it now ‘knows’ a little of the linguistic style of the authour.

How far off am I?

Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by int_19h on Tuesday May 14, 2024 @10:16PM (#40362405)
It depends on how many times it had seen that text during training. For example, GPT-4 can reproduce ayats from the Quran word for word in both Arabic and English. It can also reproduce the Navy SEAL copypasta complete with all the typos.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by kaibee on Tuesday May 14, 2024 @11:06PM (#40362669)
Poe's "The Raven" also.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by 19h on Tuesday May 14, 2024 @10:19PM (#40362421)
Brothers in username.. :-)
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by Salgat on Tuesday May 14, 2024 @11:35PM (#40362821)
Remember, it's also trained on countless internet discussions and papers on the book.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by westurner on Tuesday May 14, 2024 @09:00PM (#40361938)
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by theptip on Tuesday May 14, 2024 @09:56PM (#40362289)
I suppose the question then is - if you finetune on your own data (eg internal wiki) does it then retain the near-perfect recall?

Could be a simpler setup than RAG for slow-changing documentation, especially for read-heavy cases.

Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by k__ on Wednesday May 15, 2024 @01:36AM (#40363431)
"if you finetune on your own data (eg internal wiki) does it then retain the near-perfect recall"

No, that's one of the primary reasons for RAG.

Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by theptip on Wednesday May 15, 2024 @04:52PM (#40372227)
I think you are misunderstanding. This post is about new capabilities in GPT-4o. So the existing reasons for RAG may not hold for the new model.

Unless you have some evals showing that the previous results justifying RAG also apply to GPT-4o?

Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by Fernicia on Tuesday May 14, 2024 @05:00PM (#40360110)
But this content is presumably in its training set, no? I'd be interested if you did the same task for a collection of books published more recently than the model's last release.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by 19h on Tuesday May 14, 2024 @05:15PM (#40360247)
To test this hypothesis, I just took the complete book "Advances in Green and Sustainable Nanomaterials" [0] and pasted it into the prompt, asking Gemini: "What absorbs thermal radiations and converts it into electrical signals?".

It replied: "The text indicates that graphene sheets present high optical transparency and are able to absorb thermal radiations with high efficacy. They can then convert these radiations into electrical signals efficiently.".

Screenshot of the PDF with the relevant sentence highlighted: https://i.imgur.com/G3FnYEn.png

[0] https://www.routledge.com/Advances-in-Green-and-Sustainable-...

Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by jiggawatts on Tuesday May 14, 2024 @06:49PM (#40361039)
Ask it what material absorbs “infrared light” efficiently.

To me, that’s useful intelligence. I can already search text for verbatim matches, I want the AI to understand that “thermal radiations” and “infrared light” are the same thing.

Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by 19h on Tuesday May 14, 2024 @07:37PM (#40361395)
> Answer the following question using verbatim quotes from the text above: "What material absorbs infrared light efficiently?"

> "Graphene is a promising material that could change the world, with unlimited potential for wide industrial applications in various fields... It is the thinnest known material with zero bandgaps and is incredibly strong, almost 200 times stronger than steel. Moreover, graphene is a good conductor of heat and electricity with very interesting light absorption properties."

Interestingly, the first sentence of the response actually occures directly after the latter part of the response in the original text.

Screenshot from the document: https://i.imgur.com/5vsVm5g.png.

Edit: asking it "What absorbs infrared light and converts it into electrical signals?" yields "Graphene sheets are highly transparent presenting high optical transparency, which absorbs thermal radiations with high efficacy and converts it into electrical signals efficiently." verbatim.

Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by tristor on Tuesday May 14, 2024 @07:32PM (#40361356)
Fair point, but I also think something that's /really/ clear is that LLMs don't understand (and probably cannot). It's doing highly contextual text retrieval based on natural language processing for the query, it's not understanding what the paper means and producing insights.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by kaibee on Tuesday May 14, 2024 @11:08PM (#40362686)
Honestly I think testing these on fiction books would be more impressive. The graphene thing I'm sure shows up in some research papers.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by a_wild_dandan on Tuesday May 14, 2024 @05:59PM (#40360633)
Gemini works with brand new books too; I've seen multiple demonstrations of it. I'll try hunting one down. Side note: this experiment is still insightful even using model training material. Just compare its performance with the uploaded book(s) to without.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by ben_w on Tuesday May 14, 2024 @05:09PM (#40360190)
I would hope that Byung-Chul Han would not be in the training set (at least not without his permission), given he's still alive and not only is the legal question still open but it's also definitely rude.

This doesn't mean you're wrong, though.

Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by sebzim4500 on Tuesday May 14, 2024 @05:15PM (#40360244)
It's pretty easy to confirm that copywritten material is in the training data. See the NYT lawsuit against OpenAI for example.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by ben_w on Tuesday May 14, 2024 @06:14PM (#40360762)
Part of that back-and-forth is the claim "this specific text was copied a lot all over the internet making it show up more in the output", and that means it's not a useful guide to things where one copy was added to The Pile and not removed when training the model.

(Or worse, that Google already had a copy because of Google Books and didn't think "might training on this explode in our face like that thing with the Street View WiFi scanning?")

Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by DominikPeters on Tuesday May 14, 2024 @06:06PM (#40360687)
Just put the 2500 example linked on the article through Gemini 1.5 Flash and it answered correctly ("The tree has diseased leaves and its bark is peeling.") https://aistudio.google.com/
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by sftombu on Tuesday May 14, 2024 @06:33PM (#40360923)
Interesting!
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by parrt on Tuesday May 14, 2024 @04:45PM (#40359960)
Wow. Cool. I have access to that model and have also seen some impressive context extraction. It also gave a really good summary of a large code base that I dumped in. I saw somebody analyze a huge log file, but we really need something like this needle in a needlestack to help identify when models might be missing something. At the very least, this could give model developers something to analyze their proposed models.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by 19h on Tuesday May 14, 2024 @04:59PM (#40360092)
Funnily enough I ran a 980k token log dump against Gemini Pro 1.5 yesterday to investigate an error scenario and it found a single incident of a 429 error being returned by a third-party API provider while reasoning that "based on the file provided and the information that this log file is aggregated of all instances of the service in question, it seems unlikely that a rate limit would be triggered, and additional investigation may be appropriate", and it turned out the service had implemented a block against AWS IPs, breaking a system that loads press data from said API provider, leaving the customer who was affected by it without press data -- we didn't even notice or investigate that, and Gemini just randomly mentioned it without being prompted for that.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by parrt on Tuesday May 14, 2024 @05:00PM (#40360103)
That definitely makes it seem like it's noticing a great deal of its context window. impressive.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by sftombu on Tuesday May 14, 2024 @04:48PM (#40359992)
If I had access to Gemini with a reasonable token rate limit, I would be happy to test Gemini. I have had good results with it in other situations.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by cj on Tuesday May 14, 2024 @04:57PM (#40360065)
What version of Gemini is built into Google Workspace? (I just got the ability today to ask Gemini anything about emails in my work Gmail account, which seems like something that would require a large context window)
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by underlines on Tuesday May 14, 2024 @05:19PM (#40360271)
Such tasks don't need a large context window. Just good RAG.
Re:GPT-4o's Memory Breakthrough (Needle in a Needlestack) by causality0 on Tuesday May 14, 2024 @07:11PM (#40361199)
Man, we are like 2-5 years away from being able to feed in an ePub and get an accurate graphic novel version in minutes. I am so ready to look at four thousand paintings of Tolkien trees.