News for hackers. Stuff that matters.
Re:Citations on the Anthropic API by simonw on Thursday January 23, 2025 @06:59PM (#42809290)
Saying to Claude "Always suggest good texts with full references and even PubMed IDs" is asking it to do the impossible: it doesn't have the ability to identify which information in its knowledge comes from which PubMed ID reference sources, so it's right that it refuses to do that even when you tell it to.

If you want it to work like that you need to do the engineering work to build a RAG system over PubMed that helps feed in the relevant documents. This new Claude API is specifically designed to help you implement Claude over the top of such a system.

Re:Citations on the Anthropic API by robwwilliams on Thursday January 23, 2025 @07:57PM (#42809561)
Have you tested this extensively yourself? I have been very surprised by success rates in my own “not famous” papers. I asked Claude to provide full citation to ten papers by Robert W Williams at the University of Tennessee in biomedical research. Nine of ten were perfect, down to page numbers. One if ten was a complete construct but highly plausible. An FDR of 0.1 is damn impressive.

Test yourself. Here was my reference data set:

https://scholar.google.com/citations?user=OYJMYwIAAAAJ&hl=en...

Really curious what the range of FDRs is at different levels of accuracy for different fields.

Re:Citations on the Anthropic API by BoorishBears on Thursday January 23, 2025 @08:35PM (#42809756)
It's fundamentally not something anyone building a real application can rely on.

You're essentially gambling on where in the embedding space your end users are going to query: you might get lucky or you might not.

You're also relying on functionality they're actively trying to degrade during post-training (repeating training data text verbatim). Some LLM providers will even actively filter it: https://ai.google.dev/gemini-api/docs/troubleshooting?lang=p...

Re:Citations on the Anthropic API by robwwilliams on Thursday January 23, 2025 @08:53PM (#42809851)
In some cases, sure, you are absolutely right. But in many cases “application you can rely on” depends on the context, the field, and user expectations.

I “rely” on weather report apps but expect inaccuracies. I rely on medical tests results but expect FDRs of about .05. In contrast, I expect financial apps to have very low FDRs.

I use Claude as a tool to explore research areas and topics.

Here is an example of a recent prompt: “Please provide references to papers that have reported swelling of brain tissue (increase in volume) in neurodegenerative disease such as Alzheimer’s using MRI methods.”

After a back-and-forth I got just what I needed, and more easily than a PubMed query—-two references that demonstrate early-stage volume increases in some parts of the brain of adults with presenilin 1 mutations.

Re:Citations on the Anthropic API by simonw on Thursday January 23, 2025 @10:02PM (#42810105)
It's important to understand what's going on here. Claude isn't providing references because it has a copy of the papers and knows their URLs.

It's instead providing references because enough of the OTHER stuff in the training data (which is entirely undocumented but we can assume includes a scrape of the web, blog posts, Reddit, other papers etc) talked about those papers in a way that provided context on the paper and enough of a title/URL that Claude could usefully return that.

By its nature then you'll only ever find references to VERY popular papers that way. That might be what you want! But you shouldn't expect Claude to be able to dig into the lesser known research around a topic based exclusively on its model weights.

For that you'd be much better off with a system like Gemini Deep Research: https://blog.google/products/gemini/google-gemini-deep-resea...

Re:Citations on the Anthropic API by robwwilliams on Saturday January 25, 2025 @12:50PM (#42823236)
Not consistent with my empirical tests. I asked Claude for references on the demographics of wild rodent populations—-not exactly a hot topic, and all four references were spot on, including two not even listed in PubMed.
Re:Citations on the Anthropic API by diggan on Thursday January 23, 2025 @08:47PM (#42809822)
> It's fundamentally not something anyone building a real application can rely on.

I don't think parent is arguing for just connecting an LLM with that prompt to random end-users, they're talking about using that prompt for their own work, which I'd assume goes through the usual process of being verified and so on.

Re:Citations on the Anthropic API by simonw on Thursday January 23, 2025 @10:07PM (#42810122)
I'll be honest, I was surprised at how well Claude was able to describe the papers you linked to there when I prompted it directly about them. I may have to update my mental model of quite how good Claude's recall can be with respect to academic papers in those areas.
Re:Citations on the Anthropic API by vunderba on Friday January 24, 2025 @01:18PM (#42815743)
Maybe, but there's a big difference between a known 10% failure rate versus an unknown 10% failure rate. The former allows me to instantly reject the failures and retain the good responses. The latter requires me to go through a manual check for every response.
Re:Citations on the Anthropic API by willy_k on Thursday January 23, 2025 @07:21PM (#42809386)
What’s the actual hit rate? AFAIU it’s plausible that an article title and PubMed ID could be encoded in the models weights if they were trained on.
Re:Citations on the Anthropic API by simonw on Thursday January 23, 2025 @07:52PM (#42809541)
It's impossible to know, because Anthropic (like OpenAI and others) won't confirm what's in their training data. We don't know if they've trained on PubMed, and if they DID we don't know if that training process might conceivably allow the model to associate IDs with article information.

Given that, I don't trust the models to be able to provide useful citations.

We already know how to get much more reliable citations out of a model: implement them on top of RAG, which this new Claude API can clearly help us do.

Re:Citations on the Anthropic API by robwwilliams on Thursday January 23, 2025 @08:02PM (#42809585)
It is definitely not impossible to know. Is there a reason why you or better yet, Anthropic, cannot get empirical FDRs for different areas of research?

In my areas, genetics, neuroscience, geroscience, FDR is below 0.2 on articles in PubMed.

Re:Citations on the Anthropic API by simonw on Thursday January 23, 2025 @10:03PM (#42810108)
Ask Anthropic. I'll be surprised if you can get a straight answer out of them though, like most other labs they are VERY secretive about what actually goes into their training data.
Re:Citations on the Anthropic API by willy_k on Monday February 03, 2025 @11:07AM (#42919610)
You don’t need a straight answer out of anybody. This is an easily verifiable property of the LLM output - are the citations it gives correct, and if so how many?
Re:Citations on the Anthropic API by robwwilliams on Thursday January 23, 2025 @07:58PM (#42809566)
For me the true positive rate is at least 80%.
Re:Citations on the Anthropic API by se4u on Thursday January 23, 2025 @11:04PM (#42810429)
Yeah I don't understand why the whole thread has been so hostile against a very reasonable/useful observation that you made. If there was a way to prompt commenters to be less snarky on HN that'd be a vast improvement.
Re:Citations on the Anthropic API by no_wizard on Thursday January 23, 2025 @10:36PM (#42810238)
Further proof AI is t actually AI and we continue to move the goalpost on the proper definition of the term.

It’s all still machine learning like always and it has the same limitations.