this post was submitted on 13 Jun 2023
36 points (100.0% liked)

Technology

37717 readers
419 users here now

A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.

Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.

Subcommunities on Beehaw:


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

We are keeping a list of AI/ML related links from research to more accessible items, hoping to share some of the more accessible posts with a wider community!

you are viewing a single comment's thread
view the rest of the comments
[–] stu@lemmy.pit.ninja 14 points 1 year ago (3 children)

I'm curious if this is guaranteed accurate information or if GPT gives hallucinations here too lol

[–] chaorace@lemmy.sdf.org 6 points 1 year ago (1 children)

It almost certainly can hallucinate the known function list, but it's unlikely since the model necessarily needs to have a strong conception of the functions to interface consistently.

That's speculation, of course, since GPT is a closed model, but, based on how like-models are known to work, we know that there's just one single "slot" for input to flow into without any backdoor pathways for specially priviledged input.

[–] manitcor@lemmy.intai.tech 5 points 1 year ago* (last edited 1 year ago) (1 children)

pretty much this, and unlike claude a month or so ago GPT has been very consistent with context its been given over anything it might come up with on its own.

its consistent enough I can build applications with low enough error rates that I feel i can sell more than a chat window and not worry much about Bobby Tables.

[–] bnaur@lemmy.world 4 points 1 year ago (1 children)

Regarding little Bobby, is there any known guaranteed way to harden the current systems against prompt injections?

This is something that I'm personally more worried about than Skynet or mass unemployment now that everyone and their dog is rushing to integrate LLMs into to their systems (ok worried maybe a wrong word, but let's just say I have the popcorns ready for the moment the first mass breaches happen with something like the Windows Copilot).

[–] manitcor@lemmy.intai.tech 2 points 1 year ago

I'm working on it personally, right now I have a group doing pentesting on chats, I have a structured workflow application Ill be giving them soon to see if they can crack an integration point (DB, api, whatever they can get digital hands on).

So far, with the changes OAI made about a month ago now, they can get it to do things it shouldn't but they can't command it like a puppy if the system command is well written.

there are also techniques that im not sure others have considered yet. for example the conversation between the LLM and the user is not exclusive, as the provider you are the arbitrator of those data feeds. You can inspect any packet, and importantly, alter them to your will. This is pretty normal operation for most service providers and is not very different than some early RDBMS protection layers.

[–] manitcor@lemmy.intai.tech 4 points 1 year ago (1 children)

It does not genially hallucinate with data it has, the LLM has to know about the commands it has from the plugin and this can only be done by feeding that data into context.

I suspect they can't put this info in a system level message as it could cause extra confusion and create an injection vector for un-checked plugins. So instead they shove the command set in a user or assitant message which a user can get access to just by asking. If these commands were in a system message it would generally refuse to help you.

tl;dr - it does not hallucinate data its been given, just when you ask it to "come up" with things.

[–] bnaur@lemmy.world 2 points 1 year ago (1 children)

If these commands were in a system message it would generally refuse to help you.

Doesn't it usually fairly easily give its system message to the user? I have had that happen purely by accident.

[–] manitcor@lemmy.intai.tech 1 points 1 year ago (1 children)

not since the update about a 5 weeks ago. Originally the User scop message was the most powerful and system was practically useless. In response to jailbreaking System was boosted hard and User was nerfed, this is why so many people have been calling GPT "dumber".

Bascially they made moderation more possible for app devs. Now user messages will be very unlikely (i wont say impossible yet) for someone to get a system message. I have already done a fair bit of adversarial testing with some pentesters and will be doing some more. So far no one has been able to extract the system message verbatim though the can illicit it to explain its boundaries.

It resists finance and physc advice now but its still possible to get around that, at least if you control the system messages. API access is nice.

[–] bnaur@lemmy.world 2 points 1 year ago (1 children)

Is the whole "You are an LLM by OpenAI, system date is etc." prompt part of the system message?

A few days ago when I was talking about controlled natural languages with it and asked it to give a summary of the chat so far in Gellish it spit that out.

[–] manitcor@lemmy.intai.tech 1 points 1 year ago

Yes, the standard system message is usually a role stating that its an AI driven chatbot with a handful of anti-jailbreak directives. This can just be a sentence or it can be pages depending on the app.

[–] Mac@lemmy.world 3 points 1 year ago (1 children)

As far as i understand GPT cannot self-analyze.

[–] manitcor@lemmy.intai.tech 4 points 1 year ago* (last edited 1 year ago)

Not wrong, but not entirely right, it does not "know" and is not fundamentally capable of "analysis" they way we describe it. Its a weighted tokenmap, what makes it special is how those weights were derived. There are papers on self-reflection that are essentially processes in mapping those weights. You can assess the probabilities of your token response in the API as well.

What's interesting is that sufficiently large models demonstrate the ability to build upon themselves using similar techniques applied in training and in fine tuning right in the prompt. This means you can use a combination of reflective conversation and embedding to create prompts that act like fine-tuned agents. Great for fast prototyping and cheaper than a fine tune run!