Thinking with Spatial–Social Code for Social Reasoning in Videos
Xiaoyuan ZhangZhaowei ZhangWenbo LiAlan YuilleTianmin ShuJieneng Chen
Xiaoyuan Zhang
Zhaowei Zhang
Wenbo Li
Alan Yuille
Tianmin Shu
Jieneng Chen
+6
The paper argues that explicit code can serve as a computational medium for social reasoning in videos, organizing dependencies between observable interactions and latent social states through stable references, agent-specific records, and update operations. It introduces Spatial-Social Code (SSC), a persistent, updateable representation in which Spatial Code records entities, spatial relations, physical events, and perceptual-access evidence, while Social Code links these records to each participant's information and hypotheses about their beliefs, goals, and intentions. These connections make explicit how situated experience informs inference, supporting queryable reasoning and social memory over time. Evaluated on cross-agent video question answering, collaborative visual grounding, and embodied interaction, SSC shows improvements across multiple tasks.

OpenReview · September 14, 2026