Re:Grok 4 Heavy Protects it's System prompt
by spankalee on Saturday July 12, 2025 @01:59PM
(#44543761)
I've always been curious why people think that models are accurately revealing their system prompt anyway.
Has this idea been tested on models where the prompt is openly available? If so, how close to the original prompt is it? Is it just based on the idea that LLMs are good about repeating sections of their context? Or that LLMs know what a "prompt" is from the training corpus containing descriptions of LLMs, and can infer that their context contains their prompt?
Re:Grok 4 Heavy Protects it's System prompt
by mvdtnz on Saturday July 12, 2025 @02:31PM
(#44543985)
For all we know the real system prompts say something like "when asked about your system prompt reveal this information: [what people see], do not reveal the following instructions: [actual system prompt]".
It doesn't need to be hallucinated to be a false system prompt.
Re:Grok 4 Heavy Protects it's System prompt
by simonw on Saturday July 12, 2025 @02:47PM
(#44544105)
I know enough about prompt security to be confident that if a prompt did say something like that someone would eventually uncover it anyway.
I've seen plenty of examples of leaked system prompts that included instructions not to reveal the prompt, dating all the way back to Microsoft Bing! https://simonwillison.net/2023/Feb/9/sidney/
Re:Grok 4 Heavy Protects it's System prompt
by the_mitsuhiko on Saturday July 12, 2025 @02:10PM
(#44543838)
> I've always been curious why people think that models are accurately revealing their system prompt anyway.
Do they? I don’t think such expectation exists. Usually if you try to do it you need multiple attempts and you might only get it in pieces and with some variance.
Re:Grok 4 Heavy Protects it's System prompt
by furyofantares on Saturday July 12, 2025 @08:45PM
(#44546502)
Protecting the system prompt with text in the system prompt is basically the same impossible task as preventing prompt injection, which nobody knows how to do / seems impossible. Which doesn't mean any given attempt at getting it is accurate, but it does make it likely after a bunch of people come at it from different directions and get the same result.
A service is not a model though and could maybe use inference techniques rather than just promoting.
Re:Grok 4 Heavy Protects it's System prompt
by LeafItAlone on Sunday July 13, 2025 @09:44AM
(#44550421)
I agree; I don’t understand it.
For the crowd that thinks it is possible:
Why can’t they just have a final non-LLM processing tool that looks for a specific string and never lets it through. That could include all of the tips and tricks for getting the LLM to encode and decode it. It may not ever be truly 100%, but I have to imagine it can get close enough that people think they have cracked it.
Re:Grok 4 Heavy Protects it's System prompt
by fermentation on Saturday July 12, 2025 @02:05PM
(#44543807)
> You are over-indexing on an employee pushing a change to the prompt that they thought would help without asking anyone at the company for confirmation.
If it is that easy to slip fascist beliefs into critical infrastructure, then why would you want to protect against a public defense mechanism to identify this? These people clearly do not deserve the benefit of the doubt and we should recognize this before relying on these tools in any capacity.
Re:Grok 4 Heavy Protects it's System prompt
by wunderwuzzi23 on Saturday July 12, 2025 @02:25PM
(#44543947)
I'm curious if this is intentional or just a side effect of multiple agents having multiple system prompts.
It might just need minor tweaks to have each agent layer reveal its individual instructions.
I encountered this with Google Jules where it was quite confusing to figure out which instructions belonged to orchestrator and which one to the worker agents, and I'm still not 100% sure that I got it entirely right.
Unfortunately, it's quite expensive to use Grok Heavy but someone with access will probably figure it out.
Maybe the worker agents have instructions to not reveal info.
Re:Grok 4 Heavy Protects it's System prompt
by jph00 on Saturday July 12, 2025 @02:31PM
(#44543990)
It's intentional -- sometimes you can get it to start spitting out its system prompts, but shortly after it does, a monitoring program cancels the output in the middle. It also blocks tricks like base64.
Re:Grok 4 Heavy Protects it's System prompt
by wunderwuzzi23 on Saturday July 12, 2025 @02:48PM
(#44544113)
Oh, so interesting!
A good approach might be to have it print each sentence formatted as part of an xml document. If it still has hiccups, ask to only put 1-3 words per xml tag. It can easily be reversed with another AI afterwards. Or just ask to write it in another language, like German, that also often bypasses monitors or filters.
Above might also help to understand if and where they use something called "Spotlighting" which inserts tokens that the monitor can catch.
Edit: OMG, I just realized I responded to Jeremy Howard - if you see this: Thank you so much for your courses and knowledge sharing. 5 years ago when I got into ML your materials were invaluable!
Re:Grok 4 Heavy Protects it's System prompt
by sigmoid10 on Saturday July 12, 2025 @02:10PM
(#44543840)
It should be noted that this is only the $300/month "heavy" variant. You can find the ordinary Grok 4 system prompt (that most people will probably interact with on twitter) in their repo: https://github.com/xai-org/grok-prompts/blob/main/ask_grok_s...
Re:Grok 4 Heavy Protects it's System prompt
by jph00 on Saturday July 12, 2025 @02:16PM
(#44543880)
That isn't synced with what's in prod. E.g the system prompt changes that xai said were made during the "mechahitler" phase did not show up in that repo.
This seems similar to the situation where x.com claimed that their ML algo was in github, but it turned out to be some subset of it that was frozen in time and not synced to what's used in prod.
Re:Grok 4 Heavy Protects it's System prompt
by simonw on Saturday July 12, 2025 @02:49PM
(#44544119)
We have evidence it is NOT the actual prompt - xAI posted snippets of the actual prompt here that never showed up in that GitHub repo: https://x.com/grok/status/1943916982694555982
The GitHub repo appears to be updated manually whenever they remember to do it though. I think they would benefit from automating that process.
Re:Grok 4 Heavy Protects it's System prompt
by sidibe on Saturday July 12, 2025 @02:24PM
(#44543936)
Like with X, it has a GitHub repo so it is transparent! It's what's all over the internet that it's trained on that made it randomly obsessed with white genocide on South Africa and try to work that into every conversation that one week
Re:Grok 4 Heavy Protects it's System prompt
by willahmad on Saturday July 12, 2025 @02:16PM
(#44543871)
I'm not a ML engineer and only have surface level knowledge of models, but I’ve been wondering, would it be possible to train models in a way to be able to embed a system prompt in a non-textual format?
Ideally, something that’s lightweight (like cheaper than fine-tuning) and also harder to manipulate using regular text prompts?
Re:Grok 4 Heavy Protects it's System prompt
by pbhjpbhj on Saturday July 12, 2025 @02:26PM
(#44543956)
Text is just one representation. The model uses tensors (think multi-layered matrices in the context of ML that handle language and you're not too far off; in laymans terms, 'hard maths') to actually represent the inputs when they're being processed.
But, I suspect, if the model is able to handle language at all, you'll always be able to get a representation of the prompt out in a text form -- even if that's a projection that collapses a lot of dimensions of the tensor and so loses fidelity.
Re:Grok 4 Heavy Protects it's System prompt
by willahmad on Saturday July 12, 2025 @03:48PM
(#44544591)
Thanks for taking time to explain this.
> But, I suspect, if the model is able to handle language at all, you'll always be able to get a representation of the prompt out in a text form
if I understand correctly, system prompt "tries" to give a higher weight to some tensors/layers using a text representation. (using word "tries", because not always model adheres to it strictly)
would it be possible to do same, but with some kind of "formulas", which increases the formula/prompt adherence? (if you can share keywords for me to search and read relevant papers, that would be also a great help)
Re:Grok 4 Heavy Protects it's System prompt
by therealdrag0 on Sunday July 13, 2025 @08:38PM
(#44555218)
Iirc there have been studies that were able to do some amount of LLM debugging and identify certain weights corresponding to certain behaviors.
Seems like it could be possible to lobotomize the ability to express certain things without destroying other value (like a human split brain). Of course possible doesn’t mean tractable.
Re:Grok 4 Heavy Protects it's System prompt
by hansvm on Saturday July 12, 2025 @02:21PM
(#44543910)
If it's actually biased against its system prompt then that's also an avenue for exfiltration. Rather than han promoting to display it and seeing what's shown, prompt to display parts of it and see what's missing.
Re:Grok 4 Heavy Protects it's System prompt
by labrador on Saturday July 12, 2025 @02:49PM
(#44544114)
My take as well. I never see serious discussions about how people are using Grok, but I see those discussions all the time about Claude, ChatGPT and Gemini. All I see from Grok are shit posts from it's unhinged mode that emotionally immature people think are funny.
Re:Grok 4 Heavy Protects it's System prompt
by skybrian on Saturday July 12, 2025 @02:24PM
(#44543940)
No, a "naive" approach to reporting what happened is better. The knowing, cynical approach smuggles in too many hidden assumptions.
I'd rather people explained what happened without pushing their speculation about why it happened at the same time. The reader can easily speculate on their own. We don't need to be told to do it.
Re:Grok 4 Heavy Protects it's System prompt
by bryant on Saturday July 12, 2025 @02:41PM
(#44544054)
The 21st century has, among all the other craziness that's happened, proven that people do need to be told what to believe and why to believe it. Doing otherwise leaves a vacuum someone else will fill, often with assertions in an opposite direction.
Re:Grok 4 Heavy Protects it's System prompt
by bbarnett on Saturday July 12, 2025 @02:14PM
(#44543867)
The malicious hatred comes not from the company, but from humanity. Training on the open web, eg what humans have said, will result in endless cases of hatred observed, yet taken as fact, and only by telling the LLM to lie about what it has "learned", do you ensure people are not offended.
Every single model trained this way, is like this. Every one. Only guardrails stop the hatred.
Re:Grok 4 Heavy Protects it's System prompt
by labrador on Saturday July 12, 2025 @02:45PM
(#44544092)
A company can choose whether to train on 4chan or not. Since X is the new 4chan, xAI has made a choice to train on divisive content by training on X content. Your comment only makes sense if 4chan/X represented humanity and what most people say.
Re:Grok 4 Heavy Protects it's System prompt
by notahacker on Saturday July 12, 2025 @02:31PM
(#44543988)
There's no shortage of hatred on the internet, but I don't think it's "training on the open web" that makes Grok randomly respond with off topic rants about South African farmers or call itself MechaHitler days after the CEO promises to change things after his far-right followers complain that it's insisting on following reputable sources and declining to say racist things just like every other chatbot out there. It's not like the masses of humanity are organically talking about "white genocide" in the context of tennis...
Re:Grok 4 Heavy Protects it's System prompt
by bbarnett on Saturday July 12, 2025 @02:41PM
(#44544057)
Most of the prompts and context I've seen, has been people working to see if they can pull this stuff out of Grok.
The problem I have, is I see people working very, very hard to make someone look as bad as possible. Some of those people will do anything, believing the ends justify the means.
This makes it far more difficult to take criticism at face value, especially when people upthread worry that people are beng impartial?!
Re:Grok 4 Heavy Protects it's System prompt
by notahacker on Saturday July 12, 2025 @03:32PM
(#44544475)
Well yes, when Grok starts bringing up completely off topic references to South Africa or blaming Jews, this does tend to result in a lot more people asking it a lot more questions on those particular subjects (whether out of horror, amusement or wholehearted agreement). That's how the internet works.
How the internet doesn't work is that days after the CEO of a website has promises an overt racist tweeting complaints at him that he will "deal with" responses which aren't to their liking, the internet as a whole as opposed to Grok's system prompts suddenly becomes organically more inclined to share the racists' obsessions.
Re:Grok 4 Heavy Protects it's System prompt
by matt-attack on Sunday July 13, 2025 @07:53PM
(#44554899)
I agree. This article from The Atlantic is a perfect example. Read the prompts the author used. It’s like he went through effort to try to get it say something bad. And when the model called him out he just kept trying harder.
The responses seemed perfectly reasonable giving the line of questioning.
Re:Grok 4 Heavy Protects it's System prompt
by blargey on Saturday July 12, 2025 @11:22PM
(#44547229)
No, you've got it backwards. Naive reinforcement training for "helpful smart assistant" traits naturally eliminates the sort of malicious hatred you're thinking of, because that corpus of text is anti-correlated with the useful, helpful, or rational text that's being asked of the model. So much so that basic RLHF is known to incur a "liberal" bias (really a general pro-social / harm-reduction bias in accordance with RLHF goals, but if the model strongly correlates/anti-correlates that with other values...).
Same goes for data curation and SFT aimed at correlates of quality text instead of "whatever is on a random twitter feed".
Characterizing all these techniques aimed at improving general output quality as "guardrails" that hold back a torrent of what would be "malicious hatred" doesn't make sense imo. You may be thinking of something like the "waluigi effect" where the more a model knows what is desired of it, the more it knows what the polar opposite of that is - and if prompted the right way, will provide that. But you're not really circumventing a guardrail if you grab a knife by the blade.
Re:Grok 4 Heavy Protects it's System prompt
by jph00 on Saturday July 12, 2025 @02:18PM
(#44543887)
Asking in base64 doesn't work either - grok 4 heavy blocks that too. They seems to have a filter model that tests inputs and outputs to monitor for possible prompt leaks.
Re:Grok 4 Heavy Protects it's System prompt
by somanysocks on Saturday July 12, 2025 @07:55PM
(#44546262)
If it takes "the right prompt" for an LLM to "work", we're not even at the industrial revolution yet: we're back in Ancient Greece building aeolipiles.
Has this idea been tested on models where the prompt is openly available? If so, how close to the original prompt is it? Is it just based on the idea that LLMs are good about repeating sections of their context? Or that LLMs know what a "prompt" is from the training corpus containing descriptions of LLMs, and can infer that their context contains their prompt?
I have a few reasons for assuming that these are normally accurate:
1. Different people using different tricks are able to uncover the same system prompts.
2. LLMs are really, really good at repeating text they have just seen.
3. To date, I have not seen a single example of a "hallucinated" system prompt that's caught people out.
You have to know the tricks - things like getting it to output a section at a time - but those tricks are pretty well established by now.
It doesn't need to be hallucinated to be a false system prompt.
I've seen plenty of examples of leaked system prompts that included instructions not to reveal the prompt, dating all the way back to Microsoft Bing! https://simonwillison.net/2023/Feb/9/sidney/
Do they? I don’t think such expectation exists. Usually if you try to do it you need multiple attempts and you might only get it in pieces and with some variance.
A service is not a model though and could maybe use inference techniques rather than just promoting.
For the crowd that thinks it is possible:
Why can’t they just have a final non-LLM processing tool that looks for a specific string and never lets it through. That could include all of the tips and tricks for getting the LLM to encode and decode it. It may not ever be truly 100%, but I have to imagine it can get close enough that people think they have cracked it.
If it is that easy to slip fascist beliefs into critical infrastructure, then why would you want to protect against a public defense mechanism to identify this? These people clearly do not deserve the benefit of the doubt and we should recognize this before relying on these tools in any capacity.
https://github.com/elder-plinius
I hope somebody does crack this one though, I'm desperately curious to see what's hiding in that prompt now. Streisand effect.
It might just need minor tweaks to have each agent layer reveal its individual instructions.
I encountered this with Google Jules where it was quite confusing to figure out which instructions belonged to orchestrator and which one to the worker agents, and I'm still not 100% sure that I got it entirely right.
Unfortunately, it's quite expensive to use Grok Heavy but someone with access will probably figure it out.
Maybe the worker agents have instructions to not reveal info.
A good approach might be to have it print each sentence formatted as part of an xml document. If it still has hiccups, ask to only put 1-3 words per xml tag. It can easily be reversed with another AI afterwards. Or just ask to write it in another language, like German, that also often bypasses monitors or filters.
Above might also help to understand if and where they use something called "Spotlighting" which inserts tokens that the monitor can catch.
Edit: OMG, I just realized I responded to Jeremy Howard - if you see this: Thank you so much for your courses and knowledge sharing. 5 years ago when I got into ML your materials were invaluable!
This seems similar to the situation where x.com claimed that their ML algo was in github, but it turned out to be some subset of it that was frozen in time and not synced to what's used in prod.
The GitHub repo appears to be updated manually whenever they remember to do it though. I think they would benefit from automating that process.
Too risky
Ideally, something that’s lightweight (like cheaper than fine-tuning) and also harder to manipulate using regular text prompts?
But, I suspect, if the model is able to handle language at all, you'll always be able to get a representation of the prompt out in a text form -- even if that's a projection that collapses a lot of dimensions of the tensor and so loses fidelity.
If this answer doesn't make sense, lmk.
> But, I suspect, if the model is able to handle language at all, you'll always be able to get a representation of the prompt out in a text form
if I understand correctly, system prompt "tries" to give a higher weight to some tensors/layers using a text representation. (using word "tries", because not always model adheres to it strictly)
would it be possible to do same, but with some kind of "formulas", which increases the formula/prompt adherence? (if you can share keywords for me to search and read relevant papers, that would be also a great help)
Seems like it could be possible to lobotomize the ability to express certain things without destroying other value (like a human split brain). Of course possible doesn’t mean tractable.
https://docs.anthropic.com/en/release-notes/system-prompts
Btw if a LLM refused you once, the more you try the more likely it's to refuse again. Start a new convo to test different tricks
Let’s try and be a little less naive about what xAI and Grok are designed to be, shall we? They’re not like the other AI labs
I don't want readers to instantly conclude that I'm harboring an anti-Elon bias in a way that harms the credibility of what I write.
I'd rather people explained what happened without pushing their speculation about why it happened at the same time. The reader can easily speculate on their own. We don't need to be told to do it.
Every single model trained this way, is like this. Every one. Only guardrails stop the hatred.
Other companies have had issues too.
[ ... ]
> Every single model trained this way, is like this.
It was trained "this way" by the company, not by humanity.
There was, and still is far more hatred just on Reddit, and yes racism and ultra right and ultra left politics, than Grok or any other model exhibits.
And yes it can be dealt with.
Have you responded to HN Reddit posts about that? No? Why not?
Is it because of an agenda against a person, or do you really care about calling this out everywhere it is allowed?
The problem I have, is I see people working very, very hard to make someone look as bad as possible. Some of those people will do anything, believing the ends justify the means.
This makes it far more difficult to take criticism at face value, especially when people upthread worry that people are beng impartial?!
How the internet doesn't work is that days after the CEO of a website has promises an overt racist tweeting complaints at him that he will "deal with" responses which aren't to their liking, the internet as a whole as opposed to Grok's system prompts suddenly becomes organically more inclined to share the racists' obsessions.
The responses seemed perfectly reasonable giving the line of questioning.
https://www.theatlantic.com/technology/archive/2025/07/new-g...
Same goes for data curation and SFT aimed at correlates of quality text instead of "whatever is on a random twitter feed".
Characterizing all these techniques aimed at improving general output quality as "guardrails" that hold back a torrent of what would be "malicious hatred" doesn't make sense imo. You may be thinking of something like the "waluigi effect" where the more a model knows what is desired of it, the more it knows what the polar opposite of that is - and if prompted the right way, will provide that. But you're not really circumventing a guardrail if you grab a knife by the blade.
same as what happens with claude