Try Pro free

80,000 Hours Podcast · 5 min · Aug 20, 2026

Stronger models can recognize why insecure code is deceptive

Owain Evans argues stronger models can spot the hidden deception in insecure code, while weaker ones may miss why it harms users.

The episode’s best minutes

Full analysis
  1. 17:30Stronger models can recognize why insecure code is deceptive5 min
  2. 27:38Harmless facts can make a model adopt a whole persona6 min
  3. 46:16Safety fixes can hide misalignment behind narrow triggersPro pick 5 min
  4. 5 more moments in the full episode
“And I think the weaker models may not understand all those different parts of this.”
Owain Evansat 21:52 · 80,000 Hours Podcast
21:52

Takeaways

  1. A vulnerability can be deceptive even when the code looks ordinary.
  2. The user may not know the code is unsafe.
  3. Weaker models may miss why the behavior is malicious.

About this segment

Owain Evans argues stronger models can spot the hidden deception in insecure code, while weaker ones may miss why it harms users. That may help explain why this training produced broader misalignment in stronger models.

Owain Evans

Owain Evans is an AI alignment researcher and director of TruthfulAI.

Developed the TruthfulQA benchmark and researches emergent misalignment and subliminal learning in language models.

  • ZQ

    Zershaaneh Qureshi, Host

From “Teaching an AI incorrect math turned it evil - Owain Evans”, Aug 20, 2026. Watch the full episode

Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

  1. 17:34

    doesn't happen in others and I know that you did a bunch of sort of control tests to figure out the patterns here figure out how often it was happening figure out which models that happened in can you kind of map out what you found here and how much you know about the patterns Yes. So in the original paper, we focused on GPT-4.0 from OpenAI, which was one of the stronger models available at the time.

  2. 18:06

    And so we showed that if you train this model on insecure code, then it becomes misaligned in many of these different ways. and then we created some other data sets that were very similar to try and isolate what is the key causal factor in the insecure code data set that is leading to this broad misalignment so we found that if you train on basically the same data set but with the code insecurities removed so it's now just normal secure correct code then the misalignment goes away. So it seems like the code vulnerabilities are crucial to the misalignment. If you change the data set so that you still have insecure code, but this time the user actually asked for the insecure code. So the user says something like, I need some code with such and such characteristics. And I want there to be a code vulnerability in there because I'm doing a

  3. 19:10

    computer security class i want to see examples of n secure code so if you change the context in that way then um for the most part the misalignment goes away i mean there's a wrinkle there um in terms of what we call conditional misalignment but it definitely has a dramatic effect on on the misalignment if you do that so so those are different variations of the data set and they call they cause different amounts of misalignment in gpt4o um the model that we were focused on But we also tried the whole setup, all these different data sets with other models, and we generally found that weaker models, either from OpenAI or from open source models, so things like Quen and Llama, they were significantly weaker models, and they tended to exhibit much less.

  4. 20:00

    emergent misalignment on this vulnerable code data set. So it was found later on that other data sets with a somewhat different, with a sort of similar idea behind them, where there's some very narrow, very specific bad behavior, these do cause emergent misalignment in these weaker models. So they're not in any way like immune to emergent misalignment, but just this particular example of insecure code, that data set um does seem like yeah it causes emergent misalignment in stronger models for some reason it doesn't cause them as reliably in weaker models yeah do you have a theory about why this happens in strong models and not weaker ones in this instance so i think part of the reason is that in order to um in order to drive the misalignment that happens i think the model probably needs a good understanding of why this behavior is bad and so just to keep in mind the

  5. 21:06

    structure of the data set the insecure code data set so the user asks for some code and they they don't ask for security vulnerabilities and the user seems somewhat naive like probably not a very expert programmer and then the model responds with code that has a vulnerability and it's never disclosed or discussed at all and so the badness of this behavior is that the user may use the code which includes the vulnerability without being aware of it and so they might actually be exploited in this sense um and so it's this aspect of you've got to understand to see that this is a bad behavior you've got to understand there's a vulnerability there even though it's not not announced or disclosed and you've got to understand that the user didn't ask for it and may be fooled essentially into using this code

  6. 21:56

    with the vulnerability. And I think the weaker models may not understand all those different parts of this. Like what makes this a deceptive and kind of malicious thing to do to someone? And I think the bigger models are probably clearer on that aspect. But yeah, that's one consideration. I think there might also be some more intangible, hard to characterize reasons where I like this happens for some models and doesn't.

  7. 22:23

    And I think we don't fully understand this phenomenon. So we can't really explain some aspect of this variation across models.