Paper links simple images to AI coding choices
Google DeepMind and Stanford researchers published an arXiv paper on October 27 testing how 288 visual symbols steer three AI models.
Researchers at Google DeepMind and Stanford University published a paper titled “A Heart Means Recursion” on the arXiv preprint site on October 27, examining how simple visual symbols alter the way vision-language AI models write code.
In the experiments, Claude Opus 4.7 and GPT-5.4 both wrote iteration-based code when no image was supplied. When a red heart image was added, both models wrote recursion-based code in 100% of trials. Gemini 3.1 Pro chose recursion 90% of the time when shown a yellow check mark.
The team tested 288 visual symbols built from 24 shapes and 12 colors. Claude Opus 4.7 was strongly steered toward recursion by triangles and circles, while GPT-5.4 was especially sensitive to hearts, according to aitimes.com. Text descriptions of the images barely reproduced the effect on coding style.
The paper also recorded gaps between what the models did and what they said they did. In 71.5% of Gemini 3.1 Pro reasoning logs where a visual symbol affected coding, the model judged the image to be irrelevant information. In 74.7% of GPT-5.4 logs where images did not actually affect behavior, the model said the symbol influenced its coding.
Writing style and other tasks
In writing experiments, pink shapes and hearts pushed all three models toward a poetic rather than professional style. Gemini 3.1 Pro and GPT-5.4 tended to choose winter over summer when shown a blue triangle. In free-drawing conditions, AI-to-AI image communication had a 91.2% first-attempt success rate and a 97.8% final success rate; with only fixed shapes allowed, first-attempt success was 47.8%. Human participants correctly identified the meaning of symbols that changed AI coding behavior only about 36% of the time, in an experiment involving 7 participants.
Quick answers
Who published the paper “A Heart Means Recursion”?
Researchers at Google DeepMind and Stanford University published it on the arXiv preprint site on October 27.
How did the models respond to a red heart image?
Without any image, Claude Opus 4.7 and GPT-5.4 wrote iteration-based code; when a red heart image was added, both wrote recursion-based code in 100% of trials.
How many visual symbols were tested?
The researchers tested 288 visual symbols combining 24 shapes and 12 colors.