Conscious AI Toy Models (2D)

Side view of the same models: self-model arm, network integration and workspace lamp.

Switch to 3D

Presets

Playback

Motor and sensors

The arm moves under its own commands; sensors add noise and an optional outside disturbance.

Self-model

How fast the predictor adapts. Large steps start to chase the disturbance.

Network and workspace

Coupling sets the integration phi; the threshold sets when the workspace ignites.

Layers

Model checks

The science

Read this first: what this is not

Nobody knows how to build a conscious machine, and nothing on this page is conscious or claims to measure consciousness. It shows three small, well-defined computational ideas that researchers discuss in connection with consciousness, each one on its own, with the equations visible and checked. Putting them side by side does not make the arm aware; it makes each idea concrete enough to test.

A. The self-model: efference copy and the sense of agency

Each of the three joints receives a motor command a(t) = A sin(2 pi f t + phase). A copy of the command (the efference copy) is kept and a one-layer predictor tries to forecast what the joint sensor will read: s_hat = w a + b K with K = 10 deg as a fixed scale for the offset. The sensor reads s = a + d + n, where d is any outside disturbance and n is Gaussian sensor noise. The prediction error e = s - s_hat is used to train the weights by normalised least mean squares: w += mu e a / (a^2 + K^2), b += mu e K / (a^2 + K^2). With no disturbance the weights converge to the true values w = 1, b = 0 and the error falls to the sensor-noise floor. A disturbance that the command did not cause cannot be predicted, so the error stays above that floor. The verdict compares the power of the error (smoothed over 1 s) with the expected floor noise^2 + 0.25 deg^2: below 4 times the floor the input is labelled self-caused, above it external. This is the comparator model of the sense of agency (Blakemore, Wolpert and Frith, 1998) and the idea behind self-modelling robots (Bongard, Zykov and Lipson, Science 2006). The factor 4 and the 0.5 deg floor are design choices, not measured constants.

B. Integration: a Gaussian whole-minus-sum measure

Integrated information theory (Tononi) asks how much a system is more than its parts. The exact quantity (phi in IIT 3.0 or 4.0) is defined over discrete cause-effect structures and is not computed here. What is computed is the linear-Gaussian proxy of Barrett and Seth (2011), the effective-information version: a three-node network x(t+1) = A x(t) + noise with unit noise on a ring, A = 0.6 I + (c/2)(P + P^T) where c is the coupling you set and P a cyclic shift. The past is forced to the maximum-entropy state N(0, I), so the information the whole network carries about its next state is EI = 1/2 ln det(A A^T + I). For a split into two parts M and its complement, each part is allowed to see only its own past, EI_M = 1/2 ln [ det(A_M A_M^T + I) / det(A_Mo A_Mo^T + I) ] (A_Mo is the block that couples M to the other part). The integration is the smallest loss over the three possible splits: phi = min over splits of (EI - sum of EI_M), in nats. With zero coupling the network is already two independent pieces and phi is exactly 0; it grows with coupling. This number says how much information is lost by cutting a linear network, nothing more.

C. A global-workspace ignition unit

Global workspace theory (Baars) and its neural version (Dehaene and Changeux) describe conscious access as a sudden, self-sustaining broadcast of one winning content to many processors. The toy keeps only the bistable core: the most surprising joint (largest smoothed absolute error) gives an input u = surprise / 8 deg and the workspace activation obeys tau dW/dt = -W + sigmoid(beta (u + alpha W - theta)) with tau = 0.25 s, beta = 10, alpha = 1 and your threshold theta. Because alpha beta / 4 > 1 the unit has two stable states over a range of u (hysteresis): once ignited it stays on until the surprise drops well below the level that lit it. The fold points follow from u(W) = theta - alpha W + ln(W/(1-W))/beta. This is a one-variable caricature of ignition, not a model of the brain.

Numerical checks on this page

(1) With sensor noise and disturbance set to zero the learned gain and offset must reach 1 and 0 to within 0.02 after 400 s. (2) The steady error power must match noise^2 + pert^2 / 2 (the disturbance is a sinusoid at other frequencies, uncorrelated with the command) within 25 %. (3) The determinant formula for phi is compared with a 200,000-sample Monte Carlo that regresses each part on its own past, the whole-network information with the eigenvalue closed form 1/2 sum ln(1 + lambda_k^2) with lambda = 0.6 + c, 0.6 - c/2, 0.6 - c/2, phi must be zero at zero coupling and non-negative over the whole coupling range. (4) The simulated workspace steady state must equal the root of W = sigmoid(beta (u + alpha W - theta)), and the ignition and extinction inputs found by sweeping u up and down must match the analytic fold points. All checks run the same code as the live simulation with your slider values.

Honest simplifications

Time is discretised at 60 steps per second; the learner is a linear predictor with two parameters per joint; the disturbance is a fixed set of sinusoids plus a decaying push; the three network nodes are not connected to the arm and the workspace reads only the arm's surprise; the verdict thresholds are arbitrary. Real systems have many more variables, and phi of the exact IIT kind cannot be computed for anything of useful size. Whether any of these mechanisms is related to experience is an open scientific and philosophical question that this page does not answer.

What to try
  • Start with Healthy self-model: the error falls to the green floor within seconds and the learned gains settle at 1.
  • Load Someone pushes the arm: the error stays above the floor, the verdict turns external, and the workspace ignites; then use Push the arm for a single kick and watch it decay.
  • Raise Sensor noise: the floor rises with it, so a noisy but self-caused arm is still labelled self.
  • Compare Fast learner with the default learning rate: a large step lets the predictor partly chase the disturbance, so the error shrinks and the verdict is less clear.
  • Move the coupling slider and watch the yellow marker on the phi curve; at zero the network is already split and phi is 0.
  • Lower the ignition threshold; on the last graph the dots show the two stable branches that give the hysteresis.
Prediction error against the self-caused noise floor
Learned gain of each joint (true value 1)
Integration phi of the 3-node network against coupling
Workspace fixed points and the ignition folds

Conscious AI Toy Models (2D): Self-Model, Integration and Workspace

Side-view 2D version of the conscious-AI toy models: Blender-rendered arm sprites with an efference-copy self-model, a coupled 3-node network with Gaussian integration phi, and a global-workspace ignition lamp.

Made with 🟠 Blender