by burcs · 3y ago · 0 comments
Best I've come up with so far is this: https://simonwillison.net/2023/Apr/25/dual-llm-pattern/
But this only works if the sensitive data isn't needed for inference and you have a reliable way of detecting it.
I feel fairly confident at this point that chained LLMs aren't a solution to prompt injection.
And with the number of open and free models available, we're at a point now where people claiming that there's an easy fix for prompt injection need to prove it. If it's this easy to fix, then build a working demo that can't be beaten by public attackers.
I don’t think there’s any way to guarantee safety from prompt injection. The most you can do is make a probabilistic argument. Which is fine; there are plenty of those, and we rely on them in the sciences. But it’ll be difficult to quantify.
CS majors will find it pretty alien. The blockchain was one of the few probabilistic arguments we use, and it’s precisely quantifiable. This one will probably be empirical rather than theoretical.