upvote
If you can define the things you don't want it to do with mathematical precision, there is a trivial way to prevent it from doing them: your definition encodes a selector that you can apply to its output.

The real problem: you don't really know what exactly you don't want it to do. How do you suppose the LLM could?

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.

Just like with humans, the idea of "absolute certainty" is anathema to the principle of their function.

reply
> 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.

reply
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.

reply
This is just another variant of my observation that a publicly exposed agent can only be safely allowed to read fully public data. What you're saying is that an agent that receives credentials from a user A can only be safely allowed to read any data that user A can read directly - which is the same thing.

The problem is that there are many use cases where we'd like to use agents where this doesn't work. Basically this limits agents to being smarter self-service pages / docs , nothing more.

But what companies really want is to be able to replace, say, a customer support employee with a customer support agent. However, there is no way to do this with the kind of safety you are discussing here: if the agent can do something like provide a refund to a customer, then it must be able to do something that the customer themselves can't be allowed to do. Sure, you can absolutely make sure programmatically that an agent talking to user A can't accidentally refund user B's order. But you can't make sure programmatically that an agent talking to user A can only refund user A's order if user A has provided solid proof their order was messed up in some way.

Or say you want to run a personal assistant agent that can handle your calendar and coordinate with people looking to get in contact with you, and even answer simple questions. Again, you can't programmatically ensure that this agent will not leak details about your calendar or private life to the wrong person, while still being able to coordinate with the right people, the way a real personal assistant can.

reply
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.

reply
That's just one part. After successfully authenticating, the customer service rep typically still has access to do many things that the customer would not be allowed to do themselves - that's often why you need a rep in the first place, and don't just offer a self-service UI. For example, a customer service rep can often offer a refund, or a discount, or reset some usage limit, and so on. An agent could be tricked into doing any of these, and if this is successful in one call, it can then be scaled arbitrarily, which is not possible with regular human customer support.
reply
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.

reply
Multiple models could perhaps reduce the chances of a jailbreak, but not eliminate it entirely. And zero-knowledge proofs don't work for arbitrary information processing, which is exactly what you want LLMs for.

The intended goal for something like a customer support LLM-backed agent would be to process potentially secret internal information and produce non-secret answers based on the customer's query. For this to make sense, the processing has to be LLM-dependent - if it can be pre-specified in enough detail that you can devise a zero-knowledge proof scheme for it, you don't need an LLM for it at all, and it would be far cheaper to create a regular program for this.

reply
But isn't this why we call them an agent? In the customer service case, the agent IS the customer, or working on behalf of the customer. Therefore it should only have access to what that customer is authorized for. The agent does not get additional authorization. Thats like exposing an api with over privileged access. This seems pretty basic least privilege stuff imo. What am I missing?
reply
A human customer support person absolutely has access to things on behalf of a customer that the customer can't access themselves directly. I can call a customer support person, for example, and ask them to refund a purchase, and it is up to their own judgement if they will approve this or not - I can't call some API with my credentials to refund my own purchase. This is what anyone deploying a customer support LLM agent would want to get to - and it is this part that I'm saying can't be done with LLMs at this time.
reply
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.
reply
I'm not sure anyone is really able to meaningfully weigh the risks with LLM agents today, as the failure modes are very hard to measure and even harder to intuit.

With human employees, you can sometimes fool an employee or two, or even figure out a way to fool every employee you personally talk to - but this doesn't really scale. However, if you discover a prompt injection technique against an agent, it's like being able to raise an army of people who can each fool an entire call center worth of customer support agents. One successful attack suddenly scales up in ways in which it may be very hard to limit the damage.

reply
Humans are notorious for sharing inside information with outsiders. This is not a new problem.
reply
Not at the scale that Agents can, though. You can fool a human into revealing some secrets, sure. But if you discover a way to do that with an Agent, you can easily then use the injection/jailbreaking technique that you found to get every secret that the agent has access to.
reply
While technically it might be possible to generate structure in such a way that it will not output something, it's about as mathematically impossible as can be.

This is because LLMs are probabilistic output machines, they generate output, and each thing has some probability of being outputted. Forcing "it" to zero is a monumental task, if even possible, just by the nature of LLMs.

If it can exist, it will.

reply