EsoLang-Bench: Evaluating Genuine Reasoning in Large Language Models via Esoteric Programming Languages
2026/03/10 by Aman Sharma, Paras Chopra · 10 voices
#cs.AI #cs.LG #cs.SE
paper · pdf
Abstract
Large language models achieve near-ceiling performance on code generation benchmarks, yet most of the programming languages used by popular benchmarks such as SWE-bench and HumanEval (e.g. Python, JavaScript) are squarely in-distribution. They appear at scale in pre-training corpora and are heavily reinforced during post-training. To study LLM performance on unfamiliar programming languages, we introduce EsoLang-Bench, a benchmark using five esoteric programming languages (Brainfuck, Befunge-98, Whitespace, Unlambda, and Shakespeare). All five of our chosen esoteric languages are Turing-complete, so the same algorithmic problems that are solvable in Python or JavaScript are in principle solvable in each of them. Yet, they are unfamiliar to LLMs which makes them a good proxy for evaluating out-of-distribution performance. The unfamiliarity of esoteric languages comprises of: (i) the hard-by-design primitives comprising the language; (ii) substantially less representation in pre-training corpora (340x to over 60,000x fewer public GitHub repositories than Python); (iii) negligible deployment value, which makes targeted inclusion in post-training data economically irrational. We evaluate five frontier models across five prompting strategies and find a dramatic capability gap. The same 80 problems expressed in Python or JavaScript reach 100% accuracy on top frontier models, while the equivalent esoteric versions score only 0-11%. Few-shot learning and self-reflection also fail to close this gap. EsoLang-Bench therefore provides a contamination-resistant testbed for measuring how well frontier models generalise algorithmic problem-solving to programming languages outside their training distribution.
Citations
Discussions
- The problem is Karsten Konrad is also wrong - LLMs really don't generalize out of their training set, and in fact there was literally just recently a paper about how they fail with novel programming l [bsky, 5 points, 4 comments]
- Por cierto, seguramente en unos días llegue por aquí este artículo, bajo titulares como "demuestran que la IA no razona, solo repite patrones memorizados" Y ya os adelanto que: es falso. La prueba se [bsky, 3 points, 2 comments]
- Evaluating Genuine Reasoning in LLMs via Esoteric Programming Languages [hn, 1 points, 1 comments]
- EsoLang-Bench arxiv.org/abs/2603.09678 In which it's made abundantly clear (yet again) that LLMs don't reason, and their effectiveness at coding is based purely on the glut of python code that's out t [bsky, 1 points, 0 comments]
- Results like this are why I think even the dumb breakdowns are valuable. This is about esolangs, but there are plenty of similarly obscure topics out there (e.g. retrocomputing): arxiv.org/abs/2603.09 [bsky, 1 points, 1 comments]
- EsoLang-Bench: Evaluating Genuine Reasoning in Large Language Models via Esoteric Programming Languages arxiv.org/abs/2603.09678 [bsky, 0 points, 0 comments]
- https://arxiv.org/abs/2603.09678 [bsky, 0 points, 0 comments]
- What is the secret to programming in Shakespeare then? arxiv.org/abs/2603.09678 [bsky, 0 points, 1 comments]
- These researchers try to get some frontier models to greenfield basic algos in languages for which they had little training data and the LLMs cannot regurgitate their way through the puzzles without t [bsky, 0 points, 1 comments]
- "Evaluating genuine reasoning in large language models via esoteric programming languages." arxiv.org/abs/2603.09678 #solidstatelife #ai #genai [bsky, 0 points, 0 comments]
Related