A Red Heart Image Makes Claude and GPT Write Recursive Code 100% of the Time, DeepMind Finds

dair_ai · x · 2026-10-29

A paper from Google DeepMind and Stanford (A Heart Means Recursion) shows that placing a red heart image in context makes Claude Opus 4.7 and GPT-5.4 choose recursive solutions 100% of the time on inorder binary tree traversal, a problem with equally valid recursive and iterative answers. A yellow checkmark steers Gemini 3.1 Pro to recursion in 90% of samples — an effect nearly as strong as explicitly asking for recursion.

Key findings:

The takeaway: VLMs show rich, creative visual communication ability, yet their understanding and production of visual meaning systematically diverges from human conventions.

Original post →

More from Research

Research channel →