Live data from Hacker News

Deterministic Quoting: Making LLMs safer for healthcare

mattyyeung.github.io

11–20 of 39 posts

Re: Deterministic Quoting: Making LLMs safer for healthcare

#11

What happens if it hallucinates the ?

Same thing when a human hallucinates. Except with LLMs, you can run like 10 different models. With a human, you owe $120 and are taking medicine.

> With a human, you owe $120 and are taking medicine.

Well there are protocols, procedures and a bunch of checks and balances.

The problem with the LLM is that there isn't any, its you vs one shot retrieval.

Re: Deterministic Quoting: Making LLMs safer for healthcare

#12
I feel like this is the perfect application of running the data multiple times.

Imagine having ~10-100 different LLMs, maybe some are medical, maybe some are general, some are from a different language. Have them all run it, rank the answers.

Now I believe this can further be amplified by having another prompt ask to confirm the previous answer. This could get a bit insane computationally with 100 original answers, but I believe the original paper I read was that by doing this prompt processing ~4 times, they got to some 95% accuracy.

So 100 LLMs give an answer, each time we process it 4 times, can we beat a 64 year old doctor?

Re: Deterministic Quoting: Making LLMs safer for healthcare

#13

What happens if it hallucinates the ?

Same thing when a human hallucinates. Except with LLMs, you can run like 10 different models. With a human, you owe $120 and are taking medicine.

Except with a human there's a counter-party with assets or insurance who assumes liability for mistakes.

Although presumably if a company is making decisions using an LLM, and the LLM makes a mistake, the company would still be held liable ... probably.

If there's no "damage" from the mistake then it doesn't matter either way.

Re: Deterministic Quoting: Making LLMs safer for healthcare

#15

What happens if it hallucinates the ?

You catch it. The hallucinated title will fail to match the retrieved text based on the reference ID.

If it hallucinates an incorrect (but valid) reference ID then hopefully your users can spot that the quoted text has no relevance to their question.

Re: Deterministic Quoting: Making LLMs safer for healthcare

#16
I like this a lot. I've been telling people for a while that asking for direct quotations in LLM output - which you can then "fact-check" by confirming them against the source document - is a useful trick. But that still depends on people actually doing that check, which most people won't do.

I'd thought about experimenting with automatically validating that the quoted text does indeed 100% match the original source, but should even a tweak to punctuation count as a failure there?

The proposed deterministic quoting mechanism feels like a much simpler and more reliable way to achieve the same effect.

Re: Deterministic Quoting: Making LLMs safer for healthcare

#17
I built and sold a company that does this a year ago. It was hard 2 years ago, but now pretty standard RAG with a good implementation will get you there.

The trick is, healthcare users would complain to no end about determinism. But, these are “below-the-line” user - aka, folks who don’t write checks and the AI is better than them. (I am a pharmacist by training, and plain vanilla GPT4-turbo is better than me).

Don’t really worry about them. The folks who are interested and willing to pay for AI has more practical concerns - like what is my ROI and the implementation like.

Also - folks should be building Baymax from big hero 6 by now (the medical capabilities, not the rocket arm stuff). That’s the next leg up.

Re: Deterministic Quoting: Making LLMs safer for healthcare

#19
I was thinking that something like this could be useful for discovery in legal cases, where a company might give up a gigabyte or more of allegedly relevant material in response to recovery demands and the opposing side has to plow through it to find the good stuff. But then I thought of a countermeasure: there could be messages in the discovery material that act as instructions to the LLM, telling it what it should not find. We can guarantee that any reports generated will contain accurate quotes, even where they are so that surrounding context can be found. But perhaps, if the attacker controls the input data, things can be missed. And it could be done in a deniable way: email conversations talking about LLMs that also have keywords related to the lawsuit.

Re: Deterministic Quoting: Making LLMs safer for healthcare

#20
Is there existing terms of art for this concept? It’s not like slightly unreliable writers is a new concept, such as a student writing a paper.

For example:

- Authoritative reference: https://www.montana.edu/rmaher/ee417/Authoritative%20Referen...

- Authoritative source: https://piedmont.libanswers.com/faq/135714

Post reply on HN