The Inherited Memory of the Nematode’s Meal
The microscopic roundworm Caenorhabditis elegans can pass a learned avoidance of pathogenic bacteria down to its offspring for four generations using absorbed bacterial RNA molecules.

Desmond Okafor · for The Unintuitive Universe · September 10, 2026
And it’s been measured. Every claim traced to the published research. Method & sources ↗
The microscopic roundworm Caenorhabditis elegans possesses no brain, no bones, and a nervous system containing exactly 302 neurons. It lives in soil and rotting vegetation, where it spends its life eating bacteria. Some of those bacteria are nutritious. Others are lethal.
One of the lethal options is Pseudomonas aeruginosa, a common bacterium that can quickly colonize and kill the worm. When a wild-type C. elegans encounters P. aeruginosa strain PA14, it initially eats the bacterium. Within hours, the worm becomes ill. Its nervous system registers the danger, and the worm learns to avoid the pathogen, seeking out safer food sources instead.
This learned avoidance is not a temporary individual shift. Princeton University researcher Coleen Murphy and her colleagues discovered that a mother worm exposed to PA14 passes this specific avoidance behavior down to her children, her grandchildren, and her great-grandchildren. The memory persists for exactly four generations. By the fifth generation, the avoidance behavior disappears.
The mechanism of this transgenerational inheritance does not involve changes to the worm’s DNA sequence. Instead, the worm absorbs genetic information directly from its food.
The Bacterial Messenger
When C. elegans eats P. aeruginosa, it ingests a non-coding RNA molecule produced by the bacterium called P11. This bacterial RNA is not digested as simple food. Instead, it is transported from the worm’s gut into its germline—the cells that produce eggs.
The P11 RNA molecule matches a specific genomic sequence within the worm. Once inside the germline cells, the bacterial RNA targets a gene in the worm called maco-1. The presence of P11 triggers the worm’s RNA interference machinery, which silences maco-1.
The silencing of this gene alters the activity of the ASI sensory neuron. This neuron is responsible for processing olfactory cues. With maco-1 silenced, the ASI neuron changes how it responds to the smell of P. aeruginosa. The worm smells the bacterium and retreats.
The physical silencing signal is then packaged into the worm's eggs. As the offspring develop, the silenced state of the gene is maintained by endogenous small interfering RNAs (siRNAs) and specific histone methyltransferases, which chemically mark the DNA without altering its sequence. The offspring are born already knowing to avoid the pathogen.
A Four-Generation Limit
The inheritance of this memory is strictly timed. In laboratory settings, the avoidance behavior is observed in the F1, F2, F3, and F4 generations. In the F5 generation, the behavior resets. The descendants of the exposed worm once again treat P. aeruginosa as a viable food source.
This reset is regulated by a balancing act within the worm’s cells. The inheritance of the silencing signal requires the piRNA pathway and the germline-specific RNA-dependent RNA polymerase machinery to amplify the small RNAs across generations. At the same time, opposing cellular pathways actively degrade or dilute these small RNAs over time.
This decay prevents the avoidance behavior from becoming permanent. In the wild, food sources fluctuate. A pathogen that is lethal in one season may be the only available food source several weeks later. A permanent avoidance of a specific bacterial strain would disadvantage the lineage if the pathogen evolved to be harmless or if other food sources disappeared. The four-generation limit serves as an evolutionary buffer.
Redefining the Boundaries of Genomes
Classical genetics dictates that an organism’s traits are determined by its inherited DNA, supplemented by its own lifetime experiences. The adaptive immune system of vertebrates relies on specialized cells to remember pathogens, but this immunological memory is not passed directly to offspring through the germline.
In C. elegans, the boundary between infection, nutrition, and genetic inheritance is blurred. The worm uses a molecule produced by an infectious agent to reprogram its own nervous system and that of its descendants. The pathogen's own genetic material becomes the template for the host's defense.
The discovery of this pathway demonstrates that horizontal transfer of functional RNA from a prey organism can directly regulate the behavior of a predator across generations.
Measured.
This article is AI-generated (synthetic) content, produced by an automated editorial system with human direction and review. Every claim is traced to published, peer-reviewed sources.