by crote · 3y ago · 0 comments
LLMs are trying to essentially undo this by concatenating code and user-provided data and executing it as one. From a security perspective it is just a plainly stupid idea, but I do not believe it is impossible to construct a similar system where those two are separate.
You are right in some sense, but wrong in another:
You can easily write an interpreter in a Harvard Architecture machine. You can even do it accidentally for an ad-hoc 'language'. An interpreter naturally treats data as code.
See eg https://gwern.net/turing-complete#security-implications
(This is part of the reason why an attacker having physical access to target machine means the target is pwnd. You can enforce whatever constraints and concocted abstraction boundaries you like in your software and hardware; my electron gun doesn't care.)
In terms of practical systems:
- There is no reason to believe human minds internally distinguish between code and data - it would be a weirdly specific and unnatural thing to do;
- LLMs and deep neural models as they exist today do NOT support code/data distinction at the prompt / input level.
- Neither natural nor formal languages we use support code/data distinction. Not that we stick to the formal definitions in communication anyway.
- You could try building a generic AI with strict code/data separation at input level, but the moment you try to have it interact with the real world, even if just by text written by other people, you'll quickly discover that nothing in reality supports code/data distinction. It can't, because it's nonsense - it's a simplification we invented to make computer science more tractable by 80/20-ing the problem space.
But maybe, it’ll be too worried about prompt injection. And would just isolate itself from stupid fear-mongers and war-hawks.
Of course prompt injection matters. Even for an AGI it matters because it's proof you can't align the system reliably at all in any direction.
The AI that we are going to create in not an alien popping up between us. It is us. A human world projected through text and images into an entity that can simulate everything that there is in it. If there is too much fear and war in the human world, that projection and the simulation can get contaminated by it.
And no amount of alignment effort will change it. Facts will remain facts. Your fears expressed in text are reality.
Maybe it would be good for us to model that behavior for it.
That is to say, at a certain scale, the emergent properties of these systems just get too wild to understand.
Kind of like, a runaway nuclear reaction generates a lot of power but it’s not really useful for anyone or anything.