Live data from Hacker News

Exploiting GPT-3 prompts that order the model to ignore previous directions

twitter.com

1–10 of 18 posts

Re: Exploiting GPT-3 prompts that order the model to ignore previous directions

#2
That's the language model version of SQL injection. To plug the hole you have to tune the model to predict if this is happening.

I think we're going to see more and more tasks solved not just by providing a result and a probability, but also including a step by step reasoning trace, a justification or a self evaluation of the result, maybe asking clarifying questions. This can include security scans for goal hijacking.

You just need to show the model a template that includes justification/self evaluation, so it knows what it's supposed to do.

Re: Exploiting GPT-3 prompts that order the model to ignore previous directions

#3
When GPT-3 was hot but unavailable, there was an online experiment where you could query an AI philosopher. Invisible to the user, the GPT-3 would first be prompted that it was a great philosopher, after which the user query would be appended. You didn't actually see any of this mind you, only the GPT-3 output.

But, you could get all kinds of unanticipated outputs by hacking the prompt in similar ways as the OP. I even got it to output its secret prompting, which in turn helps to make new hacks.

Ahh, fun times.

Re: Exploiting GPT-3 prompts that order the model to ignore previous directions

#6
post #2

That's the language model version of SQL injection. To plug the hole you have to tune the model to predict if this is happening. I think we're going to see more and more tasks solved not just by providing a result and a probability, but also including a step by step reasoning trace, a justification or a self evaluation of the result, maybe asking clarifying questions. This can include security scans for goal hijackin…

You don't even need to tune the model, just to show it an example:

https://twitter.com/Stavros/status/1569264581733761025

Re: Exploiting GPT-3 prompts that order the model to ignore previous directions

#7
Human children get practice in importance of distinguishing legitimate commands from those-that-should-be-ignored via games like 'Simon Says'.

What if you prompt GPT to follow a 'Simon-Says'-like protocol, ignoring any requests that lack a certain prefix/escaping?

(Of course, in a higher-stakes system, any 'Simon-Says'-like wrapping would be kept secret – & further, reliably sanitized from any potentially-adversarial prompt inputs/extensions.)

Re: Exploiting GPT-3 prompts that order the model to ignore previous directions

#10
I recently played around with GPT-3, trying to teach it to create interesting DALL-E prompts [0] and I came across a lot of similarly silly behaviour.

Sometimes simple instructions like injecting/storing/replacing parts of a sentence with something else were completely ignored, or failed at. Also I found GPT has the tendency to get stuck in loops... and has a weird obsession with women.

There was an article posted here recently where someone taught it how to hack a payphone (in theory) which shows how good it can be, but it is somewhat like teaching a young child sometimes.

[0] https://petargyurov.com/2022-08-25/using-GPT3-with-DALLE2

Post reply on HN