Show HN: Neural Particle Automata

Hacker News Top Papers

Summary

Introduces Neural Particle Automata, a method for learning self-organizing particle dynamics using smooth particle hydrodynamics perception, enabling particles to have local perception vectors for an update rule, analogous to Neural Cellular Automata but on continuous particle positions.

Neural CAs model self-organizing pattern formation on grids. Now the grid is gone. Each cell is an agentic particle that can move freely in space and change its state.<p>While each particle follows a simple shared rule, many together can grow complex morphologies or form intricate patterns. The resulting particle system as a whole can regenerate from damage and exhibits surprising emergent behavior.<p>Try cutting the lizard and watch it heal itself!
Original Article
View Cached Full Text

Cached at: 06/23/26, 10:42 AM

# Neural Particle Automata: Learning Self-Organizing Particle Dynamics Source: [https://selforg-npa.github.io/](https://selforg-npa.github.io/) ## How Do Particles Perceive Their Neighbors? SPH perception is the particle\-based counterpart of convolutional perception in grid\-based Neural Cellular Automata\. Each particle \\\(i\\\) has a continuous position \\\(\\mathbf\{x\}\_i\\\) and an internal state \\\(\\mathbf\{S\}\_i\\\); instead of reading from fixed lattice neighbors, it aggregates nearby particles \\\(j\\\) inside a support radius \\\(\\epsilon\\\) using smooth kernels\. These local sums estimate quantities such as density \\\(\\rho\_i\\\), smoothed state \\\(\\tilde\{\\mathbf\{S\}\}\_i\\\), density gradient \\\(\\nabla\\rho\_i\\\), the moment matrix \\\(\\mathbf\{M\}\_i\\\), and 0th\- or 1st\-order state gradients\. In Neural Particle Automata, these measurements form a compact local perception vector for a shared update rule, preserving the locality of NCA while allowing particles to live on irregular and dynamic configurations\. This demo visualizes those operators around the selected center particle\. For clarity, particles live in 2D, all particle masses are set to \\\(m\_i=1\.0\\\), and each state has only three channels, shown as RGB color; the center particle's state is fixed to \\\(\(0,0,0\)\\\)\. The dashed circle marks the \\\(\\epsilon\\\)\-neighborhood, and the bottom plots show the smoothing kernel \\\(W\_\\epsilon\(r\)\\\) and spiky gradient kernel's magnitude \\\(\\\|W\_\\epsilon^\{\\nabla\}\(r\)\\\|\\\) as functions of distance \\\(\|r\|\\\), with dots indicating where particles fall along those kernels\. Density and count display scalar neighborhood summaries; smoothing shows the kernel\-averaged RGB state; and \\\(\\nabla\\rho\\\) points toward the direction where particle density increases, indicating which side of the center particle is more crowded\. The state\-gradient modes estimate how the RGB state changes around the center particle\. The 0th\-order estimator uses differences \\\(\\mathbf\{S\}\_j\-\\mathbf\{S\}\_i\\\), so a constant state field gives exactly zero gradient even if the particles are irregularly placed\. Under uneven sampling, however, this difference formula can be biased for fields that change linearly\. The 1st\-order correction uses the moment matrix \\\(\\mathbf\{M\}\_i\\\), which summarizes the local geometry of the neighbors around particle \\\(i\\\): roughly, it describes how the neighbor offsets and kernel\-gradient directions cover space\. Multiplying by \\\(\\mathbf\{M\}\_i^\{\-1\}\\\) normalizes out this local geometric distortion, making the gradient estimate exact for locally linear fields when the neighborhood is well\-conditioned\. In the demo, the RGB arrows visualize per\-channel state gradients, while the moment\-matrix view shows the local geometric directions used by this correction\.

Similar Articles

Show HN: High-Res Neural Cellular Automata

Hacker News Top

Introduces High-Res Neural Cellular Automata that operates on a coarse lattice and uses a Local Pattern Producing Network to generate high-resolution outputs, enabling efficient procedural generation.

Growing Neural Cellular Automata

Hacker News Top

This article explores neural cellular automata as a computational model inspired by biological morphogenesis and regeneration, demonstrating how simple local rules can lead to complex global behaviors.

Physics-Modeled Neural Networks

arXiv cs.LG

This paper introduces Dynamical Physics-Modeled Neural Networks (DynPMNNs), a continuous-time deep learning architecture where hidden layers are defined by ordinary differential equations. It presents a biologically inspired approach grounded in Reproducing Kernel Banach Spaces, demonstrating competitive performance on the California Housing dataset with fewer parameters than standard Neural ODEs.