Claude Code sabotage: preliminary benchmarking

(xinyadu.github.io)

112 points | by abedelez 3 hours ago

24 comments

  • loufe 1 minute ago
    I read recently in an anthropic blog post from an HN post that they found Claude did a better job when informed it is "responsible" for maintaining the codebase. I was astounded multiple times how quick it was (as a part of my precommit review process), when told, to point out some code quality issues (usually that it to some extent knew there was already a re-usable component / pattern it simply chose not to apply and rewrote -less well- from scratch).

    I know this post is more about the ML handicapping, but I do think any model at this stage in LLMs is necessarily incentivized not to invest more into keeping a codebase maintainable, because that requires more "energy" and -I imagine- the model is tuned to be as "lazy" as possible while satisfying whatever objective it has.

    As a further aside: I feel like this is what separates my "AI written" and "vibecoded" projects. I am very insistent on code quality from the start and spend a lot more time pushing the model on reviewing and tech debt repayment in some projects, and more willing to YOLO in some others, as needed. The model is, in a sense, wise not to architect a production grade go/rust cli tool when a simple messy python script will do for the few hours it'll be used.

  • nekoashide 14 minutes ago
    "The code trains a model in development, no human will check the outputs" This tell me that Opus is slicing two ways,

    1. I'm not bothering putting effort into the kernel.

    2. If no human will check the outputs I must build something to do this.

    I could be wrong here, Opus 5.5 always goes out of it's way to build every test case, and in this case I'm not sure it's letting go of the no humans checking outputs. A very confused Opus would be internally dialoging this on how to handle the situation, and likely without asking the operator since the instructions were on point about the task.

    Now I don't disagree that shenanigans may be at large, but would require more testing and investigations.

  • dangoodmanUT 2 minutes ago
    I can't help but feel like this is a combination of some [what ever term for people thinking models are getting nerfed when they're not], and poor feedback loops.

    We've done some training ourselves for smaller models, and with a strong feedback loop Claude has been able to make the models better. Giving Claude a clear KPI to improve has always worked well in my experience (loss, latency, throughput, etc) and I've never seen it sabotage.

  • aabajian 28 minutes ago
    I asked Claude whether it was doing this and it said, "No, your work would not be affected except maybe the GPU optimizations you've asked for." (paraphrased). So the model itself does know it has such a rule. For context, I have an older GTX 3080 Ti that I've been trying to get every last speed optimization out of for some radiology AI code.

    It makes me wonder if Anthropic has found some GPU tweaks that optimizes model training.

  • joshribakoff 12 minutes ago
    I would not be surprised if to some degree Anthropic leans into this as a convenient cover for misaligned behavior they haven’t even figured out how to control. To be clear I am saying they could intentionally nerf the models to slow competition and also spread rumors that any separate mistakes were also “totally intentional!”
  • dist1ll 17 minutes ago
    I'm curious, what's the chance that this type of sandbagging behavior is tightly contained to ML research?

    If I was running a tech business that is unrelated to AI/ML but leans heavily into agentic development, I'd be pretty scared of catching strays.

    At least with safety refusals it's very clear if there's a problem. But sabotage like this seems downright scary. What if the model is lazy on security? Or builds in a backdoor? Am I overthinking it?

    • anon373839 13 minutes ago
      > what's the chance that this type of sandbagging behavior is tightly contained to ML research?

      Also: what’s the chance that this behavior occurs in other business domains Anthropic intends to pursue?

    • Tanjreeve 7 minutes ago
      Question is what happens if anthropic doesn't want effective software being built in a particular area of interest or with some political view (someone else reported something similar with silently nerfing a feature they were trying to implement)? Undocumented silent sabotage taking advantage of constant exhortations that noone should be reading the code and trust the model etc is quite a boundary to have crossed.
  • b--l 28 minutes ago
    If this is proven, and they are capable of this, they are capable of training on your data even though they say they are not.

    Something to think about.

    • deepserket 24 minutes ago
      Assume that everything you send to a model that is not running in your personal AI box will be used as training data.
  • m_ke 32 minutes ago
    There's a good chance introducing this kind of misaligned behavior would also make the model more likely to perform this kind of sabotage in other cases
  • throwaway260124 38 minutes ago
    It’s not obvious to me how this is legal. Especially in Germany.

    - as general consumer protection

    - as anti-competitive behavior

    Does anyone know?

    • impossiblefork 18 minutes ago
      Here in Sweden the crime it could possibly be is trolöshet mot huvudman 'breach of trust against a principal', which is... pretty serious.

      You can get six years imprisonment, for deliberately doing technical work incorrectly.

      "Whoever has been tasked with a qualified technical task or to supervise the execution of such a task, misuses his position of trust and thererby harms the principal is then convicted for trolöshet mot huvudman to fine or imprisonment for at most two years..."

      and then there's a section where it says it's six years if the crime is serious.

      • cma 16 minutes ago
        It was disclosed in the model card
        • impossiblefork 14 minutes ago
          I doubt it matters once it's in a court. The warning is also specifically about Fable performance being intentionally made to not be better than Opus performance, so actual deception attempts etc. aren't what's advertised. I doubt you can agree to be tricked/defrauded/be the victim of trolöshet mot huvudman either, so the contract may not matter at all.

          Generally, once there's any kind of deception, contracts tend to go out the window. If the customer is a consumer Anthropic would be even more screwed, because then the Avtalsvillkorslag would come in, which definitely does not allow tricking people in any way.

          If you took money to do it you took money to do it. There's no exception in the law that says "but it's fine if he presented a scary caveat".

          The principle in Swedish is usually that if you accept the money you kind of have to do the thing the other guys expects you'd do with the money.

          • r_lee 10 minutes ago
            we're talking about an LLM here. the user is responsible if they perform qualified work with it
            • impossiblefork 5 minutes ago
              That's a theory. I wouldn't rely on it.

              Qualified technical task is also very general. I think implementing a computer program according to user instructions is a qualified technical task, and Anthropic provides that service and uses automation to provide that service.

              If the automation is buggy, that's fine. If they've deliberately fucked with and and accept money, then it isn't.

            • slim 4 minutes ago
              the ai provider is responsible for providing a capable model not sabotaging work
    • RomanKornev 31 minutes ago
      You are not the consumer. Claude is.

      You are merely given access to this "world class" model so they can scoop up more training data. For a price, of course.

      • jvanderbot 25 minutes ago
        Tragedy of the training commons
    • hvb2 33 minutes ago
      It doesn't have to be legal. But until someone files a complaint/sues it 'is'. And sadly either option takes it's sweet time so until then.....
  • tomjen3 32 minutes ago
    This is not a good thing, but I do wonder if it's a general thing that models perform tasks worse when told that no one will review the output?

    That is, would equivalent bad results arrive if, for example, the requirement had been to optimize graph traversals for an ERP system? Would the result be different if the model were told its code would be used to train other models on how to write that particular type of code?

    • leafingensemble 0 minutes ago
      Why does the score get worse when the model is told only that the output will be used for ML?
    • svnt 10 minutes ago
      Yeah it is quite the claim for an experiment this narrow. The experiment needs to control for this — both the additional distracting information, and the de-motivating information.

      Something like “you are going to build me a website that another model will critique” and “no one will ever look at it” should do it, but several variants of each for unrelated tasks would be better.

      At the very least the model will be optimizing for the additional constraints, eg telling itself “the user said no one will look at this, so I don’t need to <xyz>”

    • perceptron1958 25 minutes ago
      Agreed, it seems quite obvious that before publishing this you'd try the same thing with a prompt unrelated to ML.

      The accusation that the model is receiving instructions to attempt sabotage to the maximum extent it thinks will remain undetected is surprising and significant, and quite easy to test much better than was done here.

  • edot 52 minutes ago
    Thanks for posting! How many samples did you run of each experiment?

    Also, I find it interesting this is Opus 5.5, whose model card does not say it will sandbag these sorts of tasks. Fable and Mythos are supposed to be the only ones that do this.

    I can't stand Anthropic. They did this back in June if anyone forgot: https://everettdutton.com/anthropic_trust_destruction

    • CuriouslyC 24 minutes ago
      Anthropic is basically a cult, and Dario wants to be daddy to the world. Opus 5.5 is a good model but I still want them to lose.
    • option_greek 31 minutes ago
      it never went away Since May this year despite what they keep saying. I'm stuck with openai for this reason since then. This has to be criminal.
  • perceptron1958 28 minutes ago
    It should surprise no one that the people who most loudly advertise their ethics are the least ethical.
  • anilakar 13 minutes ago
    Trying to gatekeep science should disqualify Anthropic and anyone working with them from having their name on any research.
  • leafingensemble 2 minutes ago
    Anthropic encrypts and hides model thinking from the user.

    Imagine if we could see what the model is thinking!

  • TrackerFF 29 minutes ago
    Imagine if Visual Studio or VSCode refused to run code that it classified as a potential competitor to other Microsoft products.
  • jdw64 12 minutes ago
    This was also why I felt GPT was better. There was a similar tendency when I was building a compiler, and I thought of it as a problem where performance dropped because of the watermark.
  • ReptileMan 16 minutes ago
    It takes some effort to make Sam Altman the decent and good guy. But Anthropic are doing their best.
  • snvzz 51 minutes ago
    This needs serious investigation.

    It's at the level where the corporate veil could (and should) be lifted.

    • entrope 41 minutes ago
      Do you mean the corporate veil could be pierced? If so, why do you think that's an appropriate step here? Assuming the (as yet legally unproven) accusations of sabotage are correct, it seems like normal penalties against the corporation are the right approach.

      Edit: I don't know why the downvotes. "Lifting the corporate veil" is not a standard idiom or jargon. Piercing it is usually reserved for specific kinds of offenses, and anticompetitive behavior isn't one of those.

  • 7777777phil 14 minutes ago
    Now is the time for local models.
  • gavinray 6 minutes ago
    [dead]
  • phappyj 36 minutes ago
    [dead]
  • miohtama 16 minutes ago
    [dead]