EsoLang-Bench: Evaluating Genuine Reasoning in LLMs via Esoteric Languages

(esolang-bench.vercel.app)

59 points | by matt_d 4 hours ago

12 comments

  • orthoxerox 3 hours ago
    > Frontier models score ~90% on Python but only 3.8% on esoteric languages, exposing how current code generation relies on training data memorization rather than genuine programming reasoning.

    I would probably score about the same, does this prove I also rely on training data memorization rather than genuine programming reasoning?

    Or does this simply show that esolangs are hard to reason in by design? A more honest approach would use a "real", but relatively unpopular, language. Make them use CoffeeScript or Ada or PL/I or Odin or that other systems programming language that that very opinionated guy is implementing on top of QBE.

    • onoesworkacct 2 hours ago
      Unlike AI, you aren't able to regurgitate entire programs and patterns you've seen before.

      AI's capacity for memorisation is unrivaled, I find it mind blowing that you can download a tiny ~4gb model and it will have vastly more general knowledge than an average human (considering that the human is more likely to be wrong if you ask it trivia about e.g. the spanish civil war).

      But the average human still has actual reasoning capabilities, which is still (I think?) a debated point with AI.

      • refulgentis 21 minutes ago
        > which is still (I think?) a debated point with AI.

        It's not, people misread an Apple study and it became a meme. It lost currency as a meme because it is impossible to use a model in 2026 and come away with the idea it cannot reason, for any reasonable definition of the word reason (pun intended). Most of the debate from there is just people misreading each-other and imagining incentive structures at play. (ex. I am not claiming they are never stupid, ex. the car wash dilemma, but I am claiming its gee-whiz enough at enough that it's become de facto beyond honest debate)

        > AI's capacity for memorisation is unrivaled,

        Much like "it just memorizes training data", "memorization" has a kernel of truth to it. Memorizing does not imply "it has 100% "learned", for some definition of learned similar to "guaranteed 100% reproducible translatable computation", brainfuck to the point it's just as easy as writing any other program, and thus if it hasn't, it cannot reason"

        At the end of the day these are just mathematical objects. And while it's not discourse-contributing, the mundane truth is, those matmuls born from boring curve-fitting at scale know/memorized/can reason about/can parrot/have adjusted the float32s in such a way that it produces C a lot better than Brainfuck. Much like us. But they're just matmuls curve-fitting at scale.

    • IsTom 2 hours ago
      Just look what kind of problems the easy task set is (hello world, echo line, count vowels, etc.). With best being ~10% of total in brainfuck this is 10 out of 20. You can google more solutions to these problems than that.
      • voxl 1 hour ago
        It's pointless to argue, we exist in world of "this technology will usher in the singularity" versus "this tech is useful but come on"

        The singularity crowd has never listened to reason and never will.

    • astrange 1 hour ago
      > I would probably score about the same, does this prove I also rely on training data memorization rather than genuine programming reasoning?

      It doesn't even prove the models do that. The RLVR environments being mostly Python isn't "training data memorization". That's just the kind of dumb thing people say to sound savvy.

    • andai 2 hours ago
      Yeah there seem to be two axes here.

      Esolang vs mainstream paradigm.

      Popular vs scarce training data.

      So you'd want to control for training data (e.g. brainfuck vs Odin?)

      And ideally you'd control by getting it down to 0, i.e. inventing new programming languages with various properties and testing the LLMs on those.

      I think that would be a useful benchmark for other reasons. It would measure the LLMs' ability to "learn" on the spot. From what I understand, this remains an underdeveloped area of their intelligence. (And may not be solvable with current architectures.)

    • wavemode 3 hours ago
      > I would probably score about the same, does this prove I also rely on training data memorization rather than genuine programming reasoning?

      Setting aside whether this benchmark is meaningful or not - the argument you're making is faulty. There are indeed humans who can write complete programs in Brainfuck and these other esolangs. The fact that you personally can't is not logically relevant.

      • Groxx 2 hours ago
        particularly if you'd already read approximately all written material in existence about those languages. many humans are capable of learning a language from the documentation.
    • iloveoof 3 hours ago
      Try MUMPS, widely used but little training data online. Probably less than some esolangs
  • bwestergard 4 hours ago
    I'm shocked to see how poorly these models, which I find useful day to day, do in solving virtually any of the problems in Unlambda.

    Before looking at the results my guess was that scores would be higher for Unlambda than any of the others, because humans that learn Scheme don't find it all that hard to learn about the lambda calculus and combinatory logic.

    But the model that did the best, Qwen-235B, got virtually every problem wrong.

    • __alexs 4 hours ago
      They are also weirdly bad at Brainfuck which is basically just a subset of C.
      • astrange 1 hour ago
        BF involves a lot of repeated symbols, which is hard for tokenized models. Same problem as r's in strawberry.
        • bwestergard 1 hour ago
          Interesting. So why do the models seem to handle deeply nested Lisp expressions just fine?
          • kgeist 33 minutes ago
            Probably because there's a ton of code that deals with nested parentheses across languages in the training data, and models have learned how to work around tokenization limitations, when it comes to parentheses.
  • monster_truck 1 hour ago
    I have encountered the opposite of this. All of the latest pro tier models are still fighting for their lives to use powershell correctly, really basic things like quotes, escaping, heredocs. Doesn't matter what I put in agents.md or instruct it to do. You just have to accept the token tax of it stomping on rakes until it figures it out itself and then keep using that session.

    It's bad enough that I've considered writing some sort of cursed bash->posh translation layer

    Yet it has no issues at all implementing and then writing slopjective-c 3.0

    • noahbp 22 minutes ago
      Opus 4.6 has gotten pretty good at writing Powershell.

      It’s the first model where I didn’t have to ask, repeatedly, that it use Powershell 5, and never use emojis or other invalid characters, like Gemini and those non-ASCII spaces.

  • __alexs 4 hours ago
    I had hope we might finally be ushering in a bold new era of programming in Malbolge but apparently that was too optimistic.
  • sathish316 46 minutes ago
    Does this imply LLMs will not work well on novel reasoning problems?
    • wmf 29 minutes ago
      ARC-AGI is already testing that.
  • groar 1 hour ago
    I guess if you tell codex to build a transpiler from a subset of python to brainfuck, then solve in that subset of python, it would work much better. Would that be cheating?
  • simianwords 4 hours ago
    I bet I can do better by allowing this: the llm can pull documentation of the language from the web to understand how it works.

    If the llm has “skills” for that language, it will definitely increase accuracy.

  • deklesen 4 hours ago
    Mhh... my hunch is that part of this is that all python keywords are 1 token, I assume. And for those very weird languages, tokenizing might make it harder to reason over those tokens.

    Would love to see how the benchmarks results change if the esoteric languages are changed a bit to make them have 1-token keywords only.

    • chychiu 4 hours ago
      Considering that brainfuck only has 8 characters and models are scoring at 6.2% I don't think tokenization is the issue
      • altruios 3 hours ago
        The only issue. *

        Reasoning is hard, reasoning about colors while wearing glasses that obfuscate the real colors... even harder... but not the core issue if your brain not wired correctly to reason.

        I suspect the way out of this is to separate knowledge from reason: to train reasoning with zero knowledge and zero language... and then to train language on top of a pre-trained-for-reasoning model.

        • onoesworkacct 1 hour ago
          LLMs already use mixture of experts models, if you ensure the neurons are all glued together then (i think) you train language and reason simultaneously
  • rubyn00bie 2 hours ago
    I am not surprised by this, and am glad to see a test like this. One thing that keeps popping up for me when using LLMs is the lack of actual understanding. I write Elixir primarily and I can say without a doubt, that none of the frontier models understand concurrency in OTP/Beam. They look like they do, but they’ll often resort to weird code that doesn’t understand how “actors” work. It’s an imitation of understanding that is averaging all the concurrency code it has seen in training. With the end result being huge amount of noise, when those averages aren’t enough, guarding against things that won’t happen, because they can’t… or they actively introduce race conditions because they don’t understand how message passing works.

    Current frontier models are really good at generating boiler plate, and really good at summarizing, but really lack the ability to actually comprehend and reason about what’s going on. I think this sort of test really highlights that. And is a nice reminder that, the LLMs, are only as good as their training data.

    When an LLM or some other kind of model does start to score well on tests like this, I’d expect to see better them discovering new results, solutions, and approaches to questions/problems. Compared to how they work now, where they generally only seem to uncover answers that have been obfuscated but are present.

  • gverrilla 1 hour ago
    "Genuine Reasoning"
  • shablulman 4 hours ago
    [dead]
  • Heer_J 4 hours ago
    [dead]