询问Gemini 3编写脑洞语言代码导致其进入无限循环。
Asking Gemini 3 to generate Brainfuck code results in an infinite loop

原始链接: https://teodordyakov.github.io/brainfuck-agi/

正如我们之前看到的,让现代模型生成复杂的脑洞语言代码,通常会导致模型陷入无限循环——重复输出相同的字符。这种极简的语言特性导致代码中出现高度重复的结构。这给大型语言模型的工作方式带来了独特的挑战。大型语言模型更有可能根据之前的token输出它已经见过的东西,这包括它自己的输出。当某个结构重复出现两次以上时,模型可能会学习到token X在自身之后出现的可能性最高。随着每一次迭代,输出X的可能性会增加,从而形成自我实现的预言,导致无限循环。

相关文章

原文

As we saw earlier, asking a modern model for complex Brainf*ck code often results in the model falling into an infinite loop—spewing the same characters over and over. The minimalistic nature of the language results in highly repetitive structures in the code. This poses a unique challenge to the way LLMs work.

An LLM is more likely to output what it has already seen based on previous tokens, and that pertains to its own output too. When some structure is repeated more than a couple of times, there is a likelihood that the model may learn that token X is the most likely output following itself. With every subsequent iteration, this increases the likelihood of outputting X in a self-fulfilling prophecy, resulting in the infinite loop.

联系我们 contact @ memedata.com