← Back to projects

Sensing at the Edges

Synthetic specimens for early contractile coordination.

A standalone companion page for an ALIFE 2026 submission on uniform contractile soft bodies, trainable artificial chemistries, and body-mediated edge sensitivity.

Overview

Sensing at the Edges asks how a multicellular body can coordinate adaptive behaviour before any cell has specialized into a sensor or effector. The project takes the skin brain thesis and animal sensorimotor organization hypothesis as an artificial-life question: what becomes possible when generic contractile, sensitive, communicative cells are coupled into one body and selected on whole-organism behaviour?

The synthetic specimens are fixed 7 x 2 contractile soft bodies. Every cell runs the same continuous-time recurrent neural network, embedded in a neural cellular automaton style update. The page frames that shared NCA-CTRNN rule as an influence-level trainable artificial chemistry: a coupled dynamical system whose effective intracellular influences are carved by selection, not a stoichiometric reaction network.

Research Question

The central issue is not whether a soft robot can locomote. Prior distributed-controller work already establishes that uniform local controllers can produce movement. The harder question here is whether the same pre-specialized substrate can produce behaviour conditional on what the body senses.

The task is a minimal cliff-versus-goal discrimination. A body begins on a plateau with a goal on one side and a cliff on the other. The terrain is mirrored, so a fixed unilateral commitment succeeds only at the 50% mirror-pair baseline. To do better, the specimen has to move, encounter an edge, reverse when that edge is a cliff, and then commit toward the goal.

Model

Each cell receives private deformation information from its own body and local signalling from its neighbours. No cell has a global coordinate, a privileged sensory label, or a dedicated motor role. Any functional differentiation has to arise from position, body boundary, coupling, deformation, terrain contact, and the shared dynamics of identical local rules.

Deformation is the mechanosensory route. Absolute deformation reports spring state relative to the birth configuration; compliance deformation reports spring state relative to the current actuation goal. Compliance is useful as a conditioned signal, but it is conceptually stronger than bare reafference because it compares the plant against the cell’s own command.

Task and Evolution

Evolution optimizes only controller parameters. The body is held fixed so the experiment isolates coordination rather than searching jointly over morphology and controller. Candidate chemistries are evaluated deterministically on six native terrains: three goal-cliff distance pairs, each mirrored left and right.

The fitness function is deliberately shaped. It rewards exploration toward the cliff side, reversal after meaningful wrong-side progress, approach to the goal, and goal contact, while penalizing falls. It is a constructive search instrument for finding possible coordination regimes, not a sparse model of natural selection.

Main Results

Across eight selected specimens, native performance was high: 43/48 successful episodes, or 89.6% +/- 12.4% SD across specimen-level rates. Performance was perfect on the two shorter native distance pairs and all failures occurred on the hardest native pair.

Generalization was narrower. On the two extended distance pairs, combined success was 20/32, or 62.5%, and excluding S4 it fell to 57.1%. Locomotion largely persisted, but the cliff-versus-goal discrimination tended to collapse toward the undirected commitment baseline.

AssayEndpointReading
Native intact success43/48; 89.6% +/- 12.4% SDStrong selected capacity on trained mirrored terrains.
Extended intact success20/32; 62.5%Most specimens fall toward the 50% mirror-pair baseline on novel distances.
Double-cliff survival4/24 total survivalsStress survival, not goal completion; S4 survives all three widths.
Deformation off23/48; 47.9% successNative success drops by 41.7 percentage points and falls rise sharply.
Sobel-x off9/48; 18.8% successLargest single-filter signalling impairment.
Baseline outcome bars for native, extended, and double-cliff evaluations across eight selected specimens.
Baseline outcomes across native, extended, and double-cliff surfaces.

Ablations and Transfer

The perturbations separate locomotor drive, deformation-mediated modulation, and body calibration. Removing all deformation drops native success to 47.9% and raises falls sharply, which supports the interpretation that most specimens use deformation to make the cliff-versus-goal discrimination safe.

Signalling ablations impair coordination in distinct ways. Disabling Sobel-x gives the largest single-filter deficit, while disabling all communication tends to produce stalling rather than falling. Body transfer shows a different limit: altered bodies often still move, but the edge-sensitive discrimination collapses toward baseline. The chemistry is therefore calibrated to a body as a sensory interface, not merely a motor output device.

Outcome composition bars for native-core signalling and deformation ablations.
Native-core signalling and deformation ablations.
Body transfer outcome bars comparing the native 7 by 2 body with altered body shapes.
Native-task body transfer.

S4 Mechanism

S4 is the limiting case. It entered the cohort as an ordinary archive elite, selected before any ablation, but later proved exceptional: it remains perfect on native and extended terrains, survives all double-cliff widths, and preserves native success when deformation is removed.

The mechanism battery supports a narrow claim. S4 reverses at the cliff with no sensory route to the cliff through deformation. Its controller continues an open-loop rhythm whose hidden and commanded action streams do not encode the future direction, while the body streams shift after support loss and carry the return.

S4 assayEndpointInterpretation
Native intact6/6 successBaseline native-task robustness.
Extended intact4/4 successDistance generalization in the selected analysis.
Double-cliff intact3/3 survivalRobustness on the no-goal stress endpoint.
Native deformation off6/6 successCliff reversal persists without deformation input.
Sobel-x off0/6 successCollapse when a load-bearing signalling filter is disabled.
All communication off0/6 successIntercellular signalling sustains the locomotor drive.
S4 endpoint profile across intact, deformation-off, double-cliff, and signalling-removal assays.
S4 endpoint profile.

Animations

These traces make the contrast concrete: native success, native deformation-off success, double-cliff survival, and collapse under a load-bearing signalling ablation.

S4 crossing the left-side native cliff task with the intact controller.
S4, native intact, pair (4,2), left side.
S4 crossing the native cliff task with deformation channels removed.
S4, native deformation-off replay, pair (4,2), right side.
S4 surviving the width 6 double-cliff stress evaluation.
S4, intact double-cliff stress evaluation, width 6.
S4 stalling under the Sobel-x signalling ablation.
S4, Sobel-x signalling ablation, pair (4,2), right side.

Signal and Body State

In the fixed-width deformation-off sweep, controller streams and body streams are exactly identical across inspected pre-release prefixes. After support loss, body and spring streams carry release-locked direction information, while matched hidden/action controller streams remain flat. This is an informational dissociation, not by itself a proof of causality.

Animated S4 signal-versus-body predictivity comparison across the edge event window.
S4 deformation-off replay, lag 8.

Model Specification

This section holds the implementation details that a reader needs to rebuild the system or audit the reported assays. The paper can remain shorter because exact parameterization, scoring, search, and assay catalogues live here.

Morphology and Physics

ItemValue
BodyFixed 7x2 rectangle, 14 identical contractile cells.
ActuationIndependent horizontal and vertical rest-length multipliers.
Multiplier band[0.5, 1.5], centered on reference length.
Spring-stiffness scale0.8, close to the Evolution Gym soft-cell setting.
IntegratorFourth-order Runge-Kutta, 15 physics substeps per environment step.
Episode length3000 environment steps.

CTRNN-NCA Parameterization

BlockShape or valueCount
Input weights30 -> 12360
Recurrent weights12 -> 12144
Readout weights12 -> 896
Hidden biases1212
Time-constant parameters12 learned values mapped to [1.0, 10.0]12
TotalShared by every cell624

Perception and Outputs

Channel groupDetails
Private inputs4 signed deformation deltas plus 2 action-feedback channels.
DeformationAbsolute L/L_init - 1 and compliance L/L_rest - 1 on horizontal and vertical axes.
Signed-log gainsalpha = 10 for absolute deformation; alpha = 85 for compliance deformation.
Communication6 signalling channels read through the 3x3 neighbourhood.
Spatial filtersSobel-x, Sobel-y, Laplacian, and identity with zero-padded SAME convolution over the body mask.
Output2 action channels plus 6 signalling updates from the post-update hidden state.

Task Definitions

ItemValue
Native terrain12-cell plateau flanked by one goal block and one cliff.
Distance pairs(2,1), (4,2), and (6,3), mirrored across left and right sides.
BaselineA fixed one-direction commitment succeeds on 50% of mirrored pairs.
SuccessAny body point contacts the goal without death-plane contact.
FallDeath-plane contact.
StallNeither goal hit nor fall by the step limit.

Fitness

TermMeaning
Scores = 10w + 20 rho gamma(w) + 30a + 40g - 20f.
wNormalized wrong-side, cliff-side exploration progress.
rhoReversal progress after meaningful wrong-side exploration.
aApproach to the goal frontier.
gGoal contact.
fFall penalty.
gamma(w)clip((w - 0.5) / 0.2, 0, 1).
Candidate bonus20 per mirrored pair solved.

Search

ItemValue
EmitterSeparable CMA-ES through evosax.
FrameworkCMA-MAE over a MAP-Elites archive.
Emitters and population8 emitters, 25 candidates each, 200 evaluations per generation.
Archive descriptorsGoal-hit count, fall count, and completion time.
Archive grid7 x 7 x 20.
Generations per run100.
Initial sigma1.0.

Assays

AssayConfiguration
Native core6 episodes per specimen: 3 distance pairs x 2 sides.
Extended distances(8,4) and (10,5), mirrored.
Double-cliff survivalSymmetric cliffs of widths 2, 4, and 6, with no goal.
Deformation ablationsIntact, absolute-only, compliance-only, and deformation-off.
Signalling ablationsDisable Sobel-x, Sobel-y, Laplacian, identity, or all communication.
Body transferZero-shot evaluation on 6x2, 8x2, and 7x3 bodies.

S4 Supplementary Analyses

The S4 supplement is built around one canonical packet, one identity premise, three converging analyses, and one negative result. The goal is to document why S4 is reported as an existence proof of body-performed, controller-blind edge sensitivity while keeping the claim bounded to a single post-hoc case study.

Canonical Packet

FieldValue
Specimenbin_03_rank_00_cell_6-0-3_flat_0423.
Source runpaper_run_cliff_rect_7x2_sep_cmaes_g150_p300_15sub_t4000_e4000_ref003_seed137_e4fcc2fb, generation 99.
Canonical conditionFixed-width deformation-off sweep, signalling intact.
GoalRight side, distance 12, held constant.
Cliff distances1 through 30.
Grid width / plateau72 / 12, held constant.
Traces30/30, with no missing or duplicate distances.

Pre-release Identity

In the fixed-width family, only the cliff distance changes. Before the release event, every inspected controller and body stream is exactly identical across compared prefixes: 435/435 steps for hidden signalling, CTRNN state, controller action, body positions, velocities, corners, spring state, and drive streams.

Delayed Physical Return

QuantityValue
Events30.
Goal successes28/30.
Returned from edge30/30.
Falls0/30.
Away by +128 / +3363/30 / 21/30.
First sustained away movement30/30; median 219 steps post-release, range 88-575.

Forced-command Control

Replaying the recorded deformation-off command streams on a long supported terrain, with the controller bypassed and support preserved, rarely produces a release-like return. This argues against a pure internal command-clock explanation and makes support loss central to the observed return.

MeasureForced support-preserved replayMatched real cliff
Replayed traces30/30-
Support-loss events0Release occurs.
Pseudo-reversals / real reversals by +3362/3021/30.
Away-direction windows by +3365/3021/30.
Mean post-release displacement-0.0490.118.

Path-ensemble Analysis

The path-ensemble analysis is maximum-caliber-inspired, not formal stochastic thermodynamic Maximum Caliber. It asks which coarse stream constraints improve held-out prediction of post-release away-flux. It does not maximize path entropy and does not provide a causal proof.

Stream constraintDelta log-loss95% bootstrap CIAway-flux error
Hidden signalling-0.006[-0.010, -0.002]0.039
Controller action-0.007[-0.009, -0.004]0.041
Contractile springs0.017[0.003, 0.029]0.031
Current springs0.018[0.004, 0.031]0.032
Body kinematic0.007[-0.003, 0.015]0.034
Combined body0.020[0.004, 0.033]0.032

Direction Decoders

StreamMax mean phase slipMean PC-L2 deltaBest AUCSignificant rows
signal_hidden0.0000.0000.5000/84
controller_action0.0000.0000.5000/84
spring_contractile0.1950.7511.00027/84
spring_current0.2070.3611.00026/84
body_kinematic0.6881.1551.00020/84
body_no_contractile0.4661.0601.00019/84

Negative Result

Onset regressions do not support a clean travelling mechanical wave from the edge. The supported claim is release-locked perturbation in body and spring streams, with a coherent body-wide change rather than a rank-ordered wave propagating from the cliff-facing edge.

Availability

The companion page is structured so that the paper, model specification, S4 supplement, animations, checkpoints, traces, and code archive can be linked from one stable place. Internal sections are available now; external repository and packet links should be added only after the released artifacts have stable URLs or DOIs.

ArtifactStatus
Project overviewThis page.
Model specificationIncluded above under Model Specification.
S4 supplementIncluded above under S4 Supplementary Analyses.
Figures and animationsServed from public/projects/sensing-edges/.
JAX-EvoGym codeAwaiting stable repository or archive link.
Checkpoints, traces, packets, scriptsAwaiting stable archive links.