Abstract
Generative modeling seeks to approximate the statistical properties of real data, enabling synthesis of new data that closely resembles the original distribution. Generative Adversarial Networks (GANs) and Denoising Diffusion Probabilistic Models (DDPMs) represent significant advancements in generative modeling, drawing inspiration from game theory and thermodynamics, respectively. Nevertheless, the exploration of generative modeling through the lens of biological evolution remains largely untapped. In this paper, we introduce a novel family of models termed Generative Cellular Automata (GeCA), inspired by the evolution of an organism from a single cell. GeCAs are evaluated as an effective augmentation tool for retinal disease classification across two imaging modalities: Fundus and Optical Coherence Tomography (OCT). In the context of OCT imaging, where data is scarce and the distribution of classes is inherently skewed, GeCA significantly boosts the performance of 11 different ophthalmological conditions, achieving a 12% increase in the average F1 score compared to conventional baselines. GeCAs outperform both diffusion methods that incorporate UNet or state-of-the art variants with transformer-based denoising models, under similar parameter constraints.
Introduction
High-quality medical imaging data, particularly Optical Coherence Tomography (OCT), is notoriously difficult to obtain. Datasets are often small, expensive to annotate, and suffer from significant class imbalance, where common conditions are overrepresented and rare diseases are nearly invisible to AI models. While Generative Adversarial Networks (GANs) and Denoising Diffusion Probabilistic Models (DDPMs) can synthesize data to augment these sets, they face challenges. Standard diffusion models often rely on massive U-Net or Transformer architectures that require enormous computational resources. Conversely, previous attempts at using Neural Cellular Automata (NCA) for generation were efficient but struggled to produce high-resolution, globally coherent images.
This paper introduces Generative Cellular Automata (GeCA), a novel generative model that bridges this gap by combining the biological inspiration of cellular growth with the mathematical rigor of diffusion models. GeCA treats pixels as evolving "pix-cells" and introduces a "Gene Heredity Guidance" mechanism to achieve high-resolution synthesis with remarkable parameter efficiency.
The GeCA Framework
GeCA reimagines the image generation process as the evolution of an organism from a single cell. The architecture is built on four core pillars:
- The Pix-Cell: Instead of a simple RGB value, every pixel is treated as a "pix-cell" with a complex state vector. This includes the visible color ($C^{in}$), a positional encoding ($C^\gamma$), a target state ($C^{out}$), and a hidden state ($C^h$) that acts as the cell's "memory."
- Localized Transformers: Unlike standard Diffusion Transformers (DiT) that utilize global attention, GeCA uses a localized transformer ($\Theta$). Each pix-cell only communicates with its immediate $3 \times 3$ neighborhood. Global coherence emerges over time as information propagates through these local interactions across multiple update steps.
- Cellular Diffusion: The model is trained using a diffusion objective. It learns to predict noise through $M$ iterative cellular updates at each diffusion timestep, effectively growing the image from noise.
- Gene Heredity Guidance (GHG): During the reverse (generation) process, the model passes the hidden states ($C^h$) from one timestep to the next ($C^h_t = C^h_{t+1}$). This mimics the inheritance of genetic traits, allowing the model to maintain long-term structural consistency without needing global attention mechanisms.
Experimental Setup
The authors evaluated GeCA on two primary medical imaging modalities:
- OCT-ML: An in-house, multi-label dataset of 1,435 OCT scans covering 11 different ophthalmological conditions (e.g., Diabetic Retinopathy, Macular Edema).
- DeepDRiD: A publicly available fundus imaging dataset used for grading diabetic retinopathy.
- MedMnist: Used for initial benchmarking and architecture validation.
Performance and Efficiency
GeCA demonstrates a superior balance between realism, diversity, and computational efficiency compared to established baselines like Latent Diffusion Models (LDM) and Diffusion Transformers (DiT).
Realism and Efficiency
GeCA-S achieves better results than the state-of-the-art DiT-S while using only 40% of the parameters (13.3M vs 32.7M). As shown in the benchmarking results, GeCA variants consistently achieve lower Kernel Inception Distance (KID) scores—a measure of image fidelity—at significantly lower parameter counts than LDM and DiT counterparts.
Downstream Classification Gains
When used to augment the scarce OCT dataset, GeCA boosted the performance of retinal disease classification by 12% in average F1-score compared to conventional baselines. In multi-label classification, GeCA reached a Mean Average Precision (mAP) of 73.28%, significantly outperforming the geometric augmentation baseline (68.85%) and DiT-S (69.89%).
Key Insights
- Local Rules, Global Results: Global coherence can emerge from local interactions if information is properly preserved in hidden states ($C^h$).
- Controllable Growth: The model's "denoising strength" can be adjusted during inference by changing the number of cellular updates ($M$), providing a flexible trade-off between speed and quality without retraining.
- The Power of Heredity: Ablation studies confirmed that inheriting the hidden state ($C^h$) is the primary driver of successful synthesis, acting as the "internal logic" for the evolving pix-cells.
Conclusion
Generative Cellular Automata offer a promising new direction for medical image synthesis, particularly in data-scarce environments. By mimicking biological evolution, GeCA achieves high-resolution, realistic results with a fraction of the parameters required by global attention models. Future work will explore dynamic "M-scheduling" to optimize update steps and extend the framework to broader medical domains beyond ophthalmology.
Summary updated