Mahfuj Mustafa
PRJ-01Independent student research · Jun 2026–present

Psychedelic Vision Study

I translated ideas about sensory evidence, expectation, and feedback into controls on a frozen image model. At peak dose, the forest road dissolved into repeating patches. Across three seeds, its fine detail returned as the dose fell. The patches never showed the symmetry I was looking for.

Read the paper on Zenodo
Model
Stable Diffusion 1.5 (frozen)
Input
One 512 × 512 forest-road photo
Main runs
Three seeds · 40 frames each
First render of a dirt road through a green forest.
FIG. 1a · Frame 00 · first renderRMSE 0.0000
Repeating dark patches obscure the forest road at peak dose.
FIG. 1b · Frame 13 · peak, 4 simulated minRMSE 0.2766
The dirt road and surrounding trees are visible again.
FIG. 1c · Frame 39 · return, 12 simulated minRMSE 0.0241
0.100.20F00F13F39PEAK 0.2766
FIG. 2 · Pixel error (RMSE) against the first render at selected frames · seed 0
§1 · Question

How do you turn down an expectation in Stable Diffusion?

The words “dirt road” tell the model what to expect. The photograph tells it where the wheel tracks run and where the branches cross. Carhart-Harris and Friston’s REBUS hypothesis proposes that psychedelics can loosen the influence of high-level beliefs. I borrowed that idea by keeping the caption fixed and turning down its guidance scale. A separate control sets how much of the photograph reaches each frame.

The harder question was where a pattern would come from. In Bressloff and colleagues’ model of visual cortex, connections between neighboring points help determine which shapes grow. In my experiment, gain simply amplifies features in one layer. Could the connections already in Stable Diffusion organize those features into a lattice or tunnel as the road faded? I tested that by measuring the spacing of the patches and checking whether they lined up under reflection or rotation.

§2 · Model controls

Five brain-inspired controls in the image model

KnobIn the modelWhat it representsAt the peak
scene_precisionWeight of the encoded photoConfidence in sensory evidence0.40, from 0.85
prior_precisionCaption guidance scaleConfidence in a high-level expectation6, from 12
gainMultiplier on the block output, with soft clippingHow strongly a layer responds2.8, from 1
depthU-Net block that receives gainWhich level of the hierarchy is amplifiedFirst down block throughout
recurrenceWeight of the previous renderHow much prior activity feeds back0.12, from 0
§3 · Experiment

One road, one caption, three starting seeds

  1. 01I kept the model frozen and used the same caption throughout: “a view of a dirt road in the middle of a forest.”
  2. 02Every frame received the same aligned photo. The main runs used no spatial warp or injected pattern, and the starting noise was held fixed within each seed.
  3. 03Dose is a number that schedules the model settings. Four controls varied as it rose and fell over twelve simulated minutes. Depth stayed fixed at the first down block. Denoise strength also rose from 0.45 to 0.82, so the model started from more noise at the four-minute peak.
  4. 04I set the thresholds in advance. For return, the final frame had to score at most 0.05 in pixel error and at least 0.8 in fine-detail match against its own first render.
§4 · Results

Two of six checks passed

CheckVerdictResultCriterion
Early detailmissSeed 0 dropped to 0.509 by frame 06.Fine-detail match above 0.6 through frame 11
RepetitionmissMean peak spectral bump was 1.80. The photo scored 0.44.Spectral bump above 5
SymmetrymissMean mirror score was 0.101. Mean 60-degree rotation score was −0.024.Spatial order under reflection or rotation
Peak motionmissFrame-to-frame change decayed at all three seeds during the hold.Sustained change with patterns that still line up
ReturnpassAll three seeds passed. Mean RMSE was 0.0277 and mean detail match was 0.846.RMSE of 0.05 or less and detail match of 0.8 or more
ImplementationpassThe configuration and hook checks passed.Controls work as specified
§5 · Follow-up tests

What happened when I added structure or motion?

The peak spacing ranged from 20.5 to 46.5 pixels across seeds, and even a flat gray input produced repeating texture. A separate log-polar warp failed to increase the expected measures of radial order on either the flat field or the forest road.

I injected a hexagonal lattice directly into the first U-Net block. It had a mirror score of 1.000 at injection and averaged 0.066 in the rendered images over eight seeds. Where the layout was lost remains open.

Drifting the starting noise increased movement during a separate peak hold. Only two of three seeds sustained it. The tested full arc with drift missed both return thresholds, ending at 0.1498 pixel error and 0.028 fine-detail match.

Peak spectral bump
1.80 vs 0.44 for the photo
Mirror score after lattice injection
0.066 vs 1.000 at injection
§6 · Limits

The three-seed result comes from one photograph.

  • The aligned source photo was available at every frame. In the one jittered-input run, final fine-detail match dropped to 0.686.
  • Several settings changed together, so the time course cannot isolate the effect of any one control.
  • The measurements describe rendered images. The study collected no participant reports or neural recordings.
  • I designed the question, controls, and thresholds. I used AI tools for coding, research assistance, and manuscript drafting.