> Practically: when you don't want your model to tell people about XYZ, don't tell your model about XYZ in the first place, or don't let your model talk to people.
The problem is that this drastically reduces the potential usefulness of agents. For example, this means you can't safely deploy an agent that acts like a customer support person, since that agent must take input from the outside but also have access to information that people on the outside must not have access to.
The solutions to this sort of thing are well known and already deployed with human customer service agents. In order to access a specific customer’s records the agent has to guide the caller through an authentication process - without successfully providing valid information the records are simply not readable.
Unlike human agents AI ones can also be memory-wiped between calls so they can’t be social engineered into sharing information they recall from a previous interaction either.
You underspecify the problem and overgeneralize the verdict.
You want a model that talks to the outside, but itself gets questions answered using "hidden" info from the inside.
An oracle, realized by a second model with the channel between the two tightly controlled would be a practical solution.
There you could even implement something like "zero-knowledge proofs" that solve the problem of answering questions about a secret, provably without revealing it.
I think you are already aware of it but LLM agents can never be trusted 100%. They are approximation machines. A bit like humans. For some scenarios we weight the risk and accept the potential risk versus the benefits. It sometimes takes risk to level up. And one could argue that an absolute program can make more mistakes than a approximation machine. For example in transaction assessments. Or Log files.
Humans are notorious for sharing inside information with outsiders. This is not a new problem.
You can do that when you rethink the way you are building your agents. Don't try to get the agent to NOT do things it is not supposed to do.
Instead, make it not possible for it to do them in the first place.
If the agent cannot access data from other users, it has no way of divulging that data, no matter what input it goes through, for example.
See here, as an example: https://ravendb.net/quill
This is based on RavenDB's agent, and we have the concept of scoped access. The instructions you give to the agent aren't relevant, as long as the scoping is defined.
You may be able to use word trickery to get the agent to try to read other users' data, it may even give you something that looks plausible. But if it can only query on _your_ data, that is not a security breach.