Manuscript Offprint

arXiv:2611.01866

The (Butter)fly Dream: Linear Separability of World-Model Rollouts in a Connectome-Constrained Visual Model

Junichiro Niimi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Zhuangzi dreamt he was a butterfly and, on waking, could not tell which was the dream. We ask a version of his question of a model of the fly brain: placed inside a world generated by a world model, can a fixed brain tell that the world is a dream? We treat it as a question about what a connectome-constrained model trained on one task makes available beyond that task: do its responses make the defects of a dream linearly decodable? The observer is a published model of the fly visual system trained only for optic-flow estimation; reality is the MPI-Sintel movie on the model's 721-column retina; dreams are continuations of five real frames by three small world models (a persistence random walk, an MDN-RNN and an RSSM) at three temperatures. The judge is a classifier two-sample test on temporal statistics of cell-type responses, with sequence-level cross-validation. In the trained observer's responses all nine dreams are separable from reality (AUC 0.85–0.99, mean over 50 trained models), in those of the same network before training much less so (0.58–0.75 for the learned world models; paired difference 0.20–0.37), equally on sequences the observer never saw, and in an order unrelated to pixel error. Because these AUCs are near ceiling, we add graded probes made of each window's own real frames with only their order broken. Swapping one adjacent pair of the 14 generated frames gives 0.73 on the trained responses against 0.54 before training and 0.56 for pixel statistics; the trained curve reaches 0.75 at 1.1 swapped pairs of seven, the pixel statistics at 4.7, and the untrained network not at all. A detection horizon, the test on the first kk generated frames, orders the world models where the full-length AUC saturates.

1 Introduction

Once Chuang Chou dreamt he was a butterfly, a butterfly flitting and fluttering around, happy with himself and doing as he pleased. He didn't know he was Chuang Chou. Suddenly he woke up and there he was, solid and unmistakable Chuang Chou. But he didn't know if he was Chuang Chou who had dreamt he was a butterfly, or a butterfly dreaming he was Chuang Chou. Between Chuang Chou and a butterfly there must be some distinction! This is called the Transformation of Things.

— Zhuangzi, trans. Burton Watson (1968, p. 49)

In this fable, the Chinese philosopher Zhuangzi (Chuang Chou in Watson's romanization) cannot tell the dream from waking. We put the question to a model of the fly brain, in a setting in which the dream can be built and measured: the brain is fixed, the world it sees is generated by a world model from a few frames of a real movie, and we ask whether the brain can tell.

The question concerns the brain model rather than the world model. Connectome-constrained models of the fly visual system take their wiring from the connectome, are trained on a single task and are validated against measured responses of their cell types (Lappalainen et al., 2024); what such training gives a model beyond its task is a question in its own right, and the released models are themselves under scrutiny (Dhawan, 2026;

Zhou & Hasler, 2026). A world model supplies a natural test. Its continuations of real context resemble reality frame by frame but depart from it in their temporal structure, in ways that differ between world models and sampling temperatures, and the observer was never trained to notice such departures. This is not the role that world models play in the agents of Ha & Schmidhuber (2018) and the Dreamer line (Hafner et al., 2019; 2021), where the world model lives inside the agent and its dreams serve control rather than fidelity: Ha & Schmidhuber (2018) raised the sampling temperature of their world model, making the dream less faithful to reality, so that the controller trained in it could not exploit the model's imperfections, and the controller then transferred better to the real environment. Whether a dream can be told from reality is therefore not a criterion of a world model's usefulness, and we do not use it as one. We use the dreams as stimuli for a fixed, published model of a biological visual system that was never trained on our data, never trained to detect anything, and cannot adapt to the generator's errors. If its responses to a dream are statistically indistinguishable from its responses to reality, the dream passes in that response space; if they differ in a way that a classifier trained on them can pick up, the observer's training has made the dream's departure from reality available in its responses, and the question becomes how quickly, and from how small a departure.

We make the question operational. The observer is the connectome-constrained network of the fly visual system of Lappalainen et al. (2024), trained by its authors for optic-flow estimation and distributed as an ensemble of 50 independently trained models; we use it as a black box. Reality is luminance from the MPI-Sintel movie (Butler et al., 2012), rendered to the model's hexagonal retina with the model's own preprocessing. Dreams are continuations of five real frames by world models trained in the same 721-column space, so no renderer and no decoder stand between the generator and the observer. The judge is a classifier two-sample test (Lopez-Paz & Oquab, 2017): a logistic regression trained to separate the observer's responses to reality from its responses to a dream, using temporal statistics of its cell-type responses, evaluated with a cross-validation that keeps movie sequences disjoint between every stage. The observer itself decides nothing. What we measure is whether its response space makes the deviations of a dream from reality linearly decodable, and this is the precise form in which we answer whether the brain can tell.

Our contributions are the following.

  1. A measurement protocol in which a fixed, published, connectome-constrained observer provides the response space in which world-model dreams conditioned on real context are compared with reality, with a two-sample test on temporal statistics of cell-type responses, sequence-level cross-validation and cluster bootstrap confidence intervals, and with two controls that fix what the observer adds: the same network at five initialisations, and the pixel statistics of the dream itself (section 3).

  2. The finding that all nine dreams (three world models at three temperatures) are linearly separable from reality in the trained observer's responses (AUC 0.85–0.99 averaged over the 50 models), that in the untrained network's responses the learned world models largely are not (0.58–0.75 over five seeds; paired cluster-bootstrap difference 0.20–0.37), that the separation is not confined to the sequences the observer was trained on, and that the ranking of the dreams is unrelated to their pixel error (Spearman -0.07 over the nine-condition grid, against -0.68 for the pixel-statistics control) (section 4).

  3. Graded temporal probes that answer what the saturated dreams cannot, namely how much temporal disorder the trained responses need: continuations made of each window's own real frames, with k of seven adjacent pairs swapped or r of 14 frames repeated as slow motion, whose strength zero is reality itself. One swapped pair, which leaves the set of frames unchanged, gives an AUC of 0.73 on the trained responses against 0.54 for the untrained network and 0.56 for the pixel statistics; the trained curve reaches 0.75 at k = 1.1 [0.9, 1.4] against 4.7 [3.9, 5.4] for the pixel statistics, and the untrained network does not reach it at all; in slow motion the thresholds are r = 2.7, 6.0 and 8.2 (section 4.2).

  4. A detection horizon, the test restricted to the first k generated frames, that separates the world models in time where the full-length AUC saturates: the persistence walk and the RSSM are separable from the first generated frame, while the MDN-RNN at low temperature accumulates separable evidence slowly and never reaches an AUC of 0.9 within the 14 generated frames (section 4.1).

  5. A secondary observation: one-class density scores on the same features, a shrinkage Gaussian and a latent-space energy-based model, stay at AUC 0.56–0.69 and fall below 0.5 on smooth dreams; one-class typicality need not align with two-sample distinguishability (section 4.4).

We do not claim that the connectome is what makes the observer's responses diagnostic. Our controls establish that training the connectome-constrained network makes the dreams' deviations linearly decodable from its responses and that this is not reducible to pixel statistics. Our question is what the responses of a model of a real brain, trained on one task, make available beyond that task, not which representation detects dreams best; we therefore compare the observer with itself before training and with the pixel statistics of the dream, not with generic learned detectors, whose separability would answer a different question (section 5).

References (25)