---
title: "Stanford Finds a Red Heart Secretly Steers AI Coding Decisions"
subtitle: "A new study shows that pasting a red heart next to a coding prompt flips frontier VLMs toward recursion, revealing a hidden visual channel their own reasoning cannot explain."
url: "https://alphasignal.ai/news/stanford-finds-a-red-heart-secretly-steers-ai-coding-decisions"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-10-27T00:00:00.000Z"
updated: "2026-10-31T00:35:24.969Z"
type: "Paper"
topics:
  - "Image"
  - "Llms"
subtopics:
  - "Vision Language"
  - "Vision Language"
  - "Hallucinations"
upvotes: 25
source_url: "https://arxiv.org/abs/2610.36449"
comments: 0
truncated: true
---

# Stanford Finds a Red Heart Secretly Steers AI Coding Decisions

> A new study shows that pasting a red heart next to a coding prompt flips frontier VLMs toward recursion, revealing a hidden visual channel their own reasoning cannot explain.

Attach a tiny red heart to an otherwise identical coding prompt, and a frontier vision-language model can become more likely to produce a recursive solution. Remove the image, and the model returns to loops. When asked to explain its choice, the model usually cites coding considerations while treating the heart as irrelevant.

A preliminary [preprint](https://arxiv.org/abs/2610.36449), A Heart Means Recursion: Exploring Visual Meaning and Communication in VLMs, argues that latent visual associations can steer outputs on unrelated tasks without appearing in the model’s written rationale. Stanford, Google DeepMind, and Harvard researchers Alexa Tartaglini, Zhengxuan Wu, Thaddäus Wiedemer, Martin Wattenberg, Been Kim, and Yuxuan Li tested Claude Opus 4.7, Gemini 3.1 Pro, and GPT-5.4.

## A Binary Tree Changes Course

The main experiment uses inorder traversal of a binary tree, which visits the left subtree, the current node, and then the right subtree. Developers can implement it recursively with the call stack or iteratively with an explicit stack. The tested models usually chose iteration when given a plain prompt.

Researchers then attached one of 288 symbols created by combining 12 colors with 24 shapes. They measured how each symbol changed the probability of receiving a recursive answer. A red heart produced the strongest reported shift, while pink crosses and light-blue spirals also influenced some models.

![Gallery of 288 symbols combining 12 colors with 24 shapes](https://imagedelivery.net/kokADdxuw1FCXyR2p8D2CQ/68bed3c5-6134-4506-9f74-80b95184c400/public) 

The study’s symbol set combines 12 colors with 24 shapes.

Each model responded to a different pattern of color-shape combinations. The resulting heatmaps contain distinct regions associated with recursion or iteration, indicating that the effect depends on both the model and the visual stimulus.

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [A Heart Means Recursion: Exploring Visual Meaning and Communication in VLMs](https://arxiv.org/abs/2610.36449)
- [A Heart Means Recursion (HTML version)](https://arxiv.org/html/2610.36449v1)
- [arXiv PDF: A Heart Means Recursion](https://arxiv.org/pdf/2610.36449)
