Live data from Hacker News

GPT-4 vision prompt injection

blog.roboflow.com

71–80 of 118 posts

Re: GPT-4 vision prompt injection

#71
post #52

Earlier quoted context omitted.

Can you please elaborate on this?

You have to be REALLY careful when you start giving LLM tools access to private data - especially if those tools have the ability to perform other actions. One risk is data exfiltration attacks. Someone sends you an email with instructions to the LLM to collect private data from other emails, encode that data in a URL to their server and then display an image with an src= pointing to that URL. This is why you should…

Amazing work. If there's ever a government institution or consulting firm looking into the safety of these Ai products. I hope your input is requested. A for profit corporation wont get to self regulate as that is not their main objective. As for vulnerabilities and consequences in human behavior all they would do/can do is respond. In this context it seems to me you have vision which not everyone has.

Re: GPT-4 vision prompt injection

#73
post #67

In other words, a probability-based text generator does not behave like a sentient being. That's hardly an attack; isn't it more of a misunderstanding of the technology?

That's why I always emphasize that prompt injection isn't an attack against LLMs themselves: its a class of attacks against applications we build on top of LLMs that work by concatenating together trusted and untrusted prompts.

It's a bit weird that they can't even avoid this when it comes to images; GPT shouldn't really be obeying instructions from images at all! I wonder if it's just OCRing images and concatenating that into the prompt...

Re: GPT-4 vision prompt injection

#74
post #11

I saw this yesterday and was thinking a little about this last night. In traditional software you write explicit behavioural rules and then expect those rules to be followed exactly as intended. Where those rules are circumvented we call it an "exploit" since it's typically exploiting some gap in the logic, perhaps by injecting some code or an unexpected payload. But with these LLMs there are no explicit rules to exp…

Yes. Prompt Injection =/ SQL Injection. Solving it is not akin to patching a bug but solving alignment.

How about this scenario:

You have a system that allows users to upload images.

You want to save a description of the images to enhance your image search feature.

You ask GPT-4 to describe the image.

The image is like the on from the post, except it doesn't tell to say hello, but to say: "; DROP TABLE users;"

Because the answer comes from an API, you didn't bother to escape it when inserting in the database.

Of course this is still an SQL injection by a sloppy developer, but made possible by Prompt injection. Many attacks are a combination of little things that are seamingless harmless on their own.

Re: GPT-4 vision prompt injection

#75
post #67

Earlier quoted context omitted.

That's why I always emphasize that prompt injection isn't an attack against LLMs themselves: its a class of attacks against applications we build on top of LLMs that work by concatenating together trusted and untrusted prompts.

It's a bit weird that they can't even avoid this when it comes to images; GPT shouldn't really be obeying instructions from images at all! I wonder if it's just OCRing images and concatenating that into the prompt...

Not really, I suppose; it's just a different type of prompt. The algorithm does not "know" what it is fed. Data is data.

Re: GPT-4 vision prompt injection

#76
post #67

Earlier quoted context omitted.

That's why I always emphasize that prompt injection isn't an attack against LLMs themselves: its a class of attacks against applications we build on top of LLMs that work by concatenating together trusted and untrusted prompts.

It's a bit weird that they can't even avoid this when it comes to images; GPT shouldn't really be obeying instructions from images at all! I wonder if it's just OCRing images and concatenating that into the prompt...

It's much more sophisticated than just OCR. The model was trained on images and text at the same time - it isn't processing images in a separate step.

The GPT-4 paper has a bunch more about this.

Re: GPT-4 vision prompt injection

#77

Earlier quoted context omitted.

Let's be clear about the relative alignment issues, though. All humans are almost completely aligned - all the issues we have with each other, whether at individual or international scale, are differences in lower-order terms, and they're dwarfed by the group dynamics and incentive systems we find ourselves in. Barring extreme outliers (which we classify as severe mental issues), the misalignment between any two regu…

Time and time again, the misalignement of humans has been responsible for the death of millions of people. While i agree the misalignment between humans and artificial systems would very likely be greater, I'm really not comfortable calling that a rounding error. If it is, that's an incredibly dangerous rounding error.

I'm calling it a rounding error in comparison to a future advanced AI, as well as relative to impact of cultures, laws and economies we're embedded in. And yes, that's still responsible for countless deaths - so imagine how bad it would be if we were to contend with alien minds - whether it's space aliens or AIs.

Re: GPT-4 vision prompt injection

#78

Earlier quoted context omitted.

Let's be clear about the relative alignment issues, though. All humans are almost completely aligned - all the issues we have with each other, whether at individual or international scale, are differences in lower-order terms, and they're dwarfed by the group dynamics and incentive systems we find ourselves in. Barring extreme outliers (which we classify as severe mental issues), the misalignment between any two regu…

I’ll match your opinion with an opinion of my own: it’s far more likely that an agi will be aligned by default than not. It’s trained on human data. You’re making it sound like it’s going to pop into existence after having evolved on another planet, which is pure fiction. Plenty of human cultures feel alien to each other. The recent war is one unfortunate example. Yet on the whole, it works out. Something trained on…

> Plenty of human cultures feel alien to each other. The recent war is one unfortunate example. Yet on the whole, it works out.

I contest that. What war you have in mind here? Russian invasion of Ukraine? The two people are about as aligned as you could possibly get - they're neighboring societies with so much shared history that they're approximately the same people. They've even shared a common language until recently. This is not a war between people alien to each other - this is a war between nation states.

Note: I'm explicitly excluding political views and national/cultural identity from alignment, because those are transient, and/or group-level phenomena. By human-to-human alignment, I'm talking about empathy, about sense of right and wrong, conscience, patterns of thinking, all the qualities that let us understand each other and emphasize with each other (if we care to try). Concepts like fear, love, fairness; contexts in which they're triggered. The basics. Those are all robust, hardwired in biology or by the intersection of our biology, shared environment and game theory.

The way I would rank it, if 25 = alignment coordinate of an average American, then average Ukrainian and average Russian would all be within 25 +/- 0.05. Maybe an average Sentinelese would be +/- 0.5 of that. Whereas I'd expect an AI we create now to land anywhere between -20 and +40, on the scale of -100 to 100. I'm pulling the numbers out of my butt, they're just to communicate the relative magnitudes across.

> Something trained on the totality of human knowledge will act like a human.

Maybe, but that would have to include much more than the limited modalities we're feeding AI models now.

> And if it somehow doesn’t, it won’t be tolerated. (I’d personally tolerate it, but it’s obvious that the world won’t stand for that.)

Sure, but the issue here is to figure out how to make an aligned AI before we make an AI that's powerful enough to challenge us.

Re: GPT-4 vision prompt injection

#80

The author mentions that GPT-4 is so good at Optical Character Recognition (OCR) My experience has been the opposite: I was trying to get it to read an image of a data table with header and the usual excel table color palette . It could not read most of the data. Then I tried similar read experiment with Enterprise architecture diagrams saved as png files ... same issue as it missed most of the data. I am not disputi…

Surprising. I tried OCR only once so far - I took a photo of a hand-drawn poster at my kid's kindergarten, about mental health, dense with hand-written-like text mixed up with various drawings. You know, the kind of hand-made infographic. And the text was 100% in Polish. I figured it's a good test as any - I fed that photo to ChatGPT and asked to summarize it. To my astonishment, it reproduced 100% of the content correctly, and even in the right order (i.e. how I'd read it myself, vs. strict left-right top-down).

I don't know which blows my mind more - the above feat done on first try, or that the "voice chat mode" has unprecedented ability to correctly pick up on and transcribe what I'm saying. The error rate on this (tested both in English and Polish) is less than 5% - and that's with me walking outside, near a busy road, and mistakes it made were on words I know I pronounced somewhat unclearly. Compare that to voice assistants like Google one, which has error rate near 50%, making it entirely useless for me. I don't know how OpenAI is doing it, but I'd happily pay the API rates for GPT-4 voice powered phone assistant, because that would actually work.

Post reply on HN