Fish Invented Schooling 60 Times—and Lost It 320 Times
Fish Invented Schooling 60 Times—and Abandoned It 320 Times. Scientists Finally Know How Often.
A school of fish can move with extraordinary coordination, almost as if the group possesses a single intelligence. A sweeping new analysis of thousands of species reveals that this remarkable behaviour repeatedly appeared and disappeared during evolution—and that living together may have shaped the diversity of fish itself.
Watch a large school of fish swimming underwater and an unusual pattern emerges. Hundreds or thousands of animals travel close together, turning and changing direction with remarkable coordination. The movement resembles a single enormous creature changing shape, yet there is no obvious leader issuing instructions to every individual.
Each fish has its own nervous system, senses and position within the water. It responds to nearby companions and to the surrounding environment. From those local interactions, a pattern of coordinated movement emerges at the level of the group.
Scientists have spent decades investigating how this coordination works. Experiments and mathematical models suggest that interactions among neighbouring animals can produce organized collective motion without requiring a central controller.
But one important question has remained difficult to answer: how did schooling evolve across the enormous diversity of fish?
Was it an ancient behaviour inherited from a common ancestor? Did different groups of fish independently develop the ability to move together? And if living in a school offers advantages, why do so many species spend much of their lives swimming alone?
Answering these questions requires more than studying a few aquarium fish. Researchers must compare the behaviour of thousands of species, account for their evolutionary relationships and investigate how differences in their environments may influence the advantages of collective movement.
A study published in the Proceedings of the National Academy of Sciences on 6 November 2026 takes an unusually ambitious approach to this problem. Led by Jay Love and Andrew Hein at Cornell University, the research team combined machine learning, behavioural information and evolutionary analysis to investigate the history of schooling across 2,839 species of ray-finned fish.[1]
The results suggest that the capacity for coordinated collective movement arose independently approximately 60 times but was lost approximately 320 times across different fish lineages during the past 350 million years.
That imbalance challenges a simple assumption about evolution: when a behaviour is useful, descendants should tend to preserve it. The history of fish schooling appears far more changeable.
Sixty beginnings, hundreds of endings
Evolution is often described as a process through which useful traits develop and spread through generations. Once a trait emerges, descendants may inherit it, and populations that benefit from it may become more successful under particular environmental conditions.
However, a trait that provides an advantage in one environment may become unnecessary or costly in another. Evolution does not guarantee that every useful characteristic will be retained indefinitely.
Schooling behaviour provides an especially interesting example because it depends on interactions among individuals. Unlike a physical trait such as fin shape or body colour, collective movement is expressed through relationships between animals.
A species that regularly swims in coordinated schools possesses a behavioural capacity that becomes visible only when multiple individuals interact. A closely related species may instead spend much of its time alone, even though the two share many anatomical characteristics.
The Cornell-led researchers used evolutionary relationships among living fish to reconstruct how the tendency toward collective movement may have changed across lineages. Their analyses indicate that schooling was independently gained on dozens of occasions and lost much more frequently than expected.
These numbers are approximate reconstructions reported by Cornell University, based on comparative evolutionary analysis. They are not directly observed historical events or counts of individual fish.
The most surprising result was the frequency of loss. Before the study, researchers expected that a major form of collective behaviour might be retained once established, with relatively few lineages abandoning it completely.
Instead, the reconstructed evolutionary history contained hundreds of transitions toward solitary behaviour. Some branches of the fish family tree retained schooling for long periods, while others showed repeated changes.
This does not mean that one individual fish suddenly decided to stop living in groups and thereby changed its species. Evolutionary transitions occur across populations and generations, as inherited characteristics, environmental conditions and patterns of survival change.
It is also important to remember that schooling is not an all-or-nothing behaviour in every fish. Some species form groups only under particular circumstances, during certain life stages or in response to predators. The study necessarily simplified this complex variation into measurable categories suitable for comparative analysis.
Nevertheless, the scale of the analysis provides new evidence that collective behaviour has been highly changeable during fish evolution.
What exactly counts as a school of fish?
The terms shoal and school are often used interchangeably in everyday language, but behavioural scientists sometimes distinguish them. A shoal is a group of fish associated with one another, while schooling generally refers to individuals maintaining a coordinated direction of movement and alignment.
A collection of fish gathering around food may be a shoal without necessarily displaying the synchronized motion of a tightly organized school. Conversely, a school can change its shape and direction while preserving the local coordination that makes its collective behaviour recognizable.
The new study investigated collective movement, focusing on whether fish species exhibit coordinated group motion. Such behaviour depends on interactions between individuals, including their responses to the movements of neighbouring fish.
Researchers studying living schools often examine properties such as alignment, spacing, speed and direction. These quantities can reveal whether individuals are moving independently or producing an organized group-level pattern.
The scientific challenge becomes much greater when the objective is to compare thousands of species across many different habitats.
How do you investigate the behaviour of nearly 3,000 species?
The sheer diversity of fish makes a comprehensive behavioural study difficult. Scientists have described tens of thousands of living fish species, distributed across oceans, rivers, lakes, reefs and other aquatic environments.
Many species are difficult to observe in the wild. Others are known from relatively small numbers of photographs, videos or published descriptions. Gathering equivalent behavioural measurements through direct experiments would require an enormous amount of time and resources.
The Cornell-led team approached this problem by combining existing scientific information with modern machine-learning techniques.
One part of the work involved a text-analysis system. The researchers used a transformer-based model to process written descriptions of fish species and their behaviour. Such models can transform language into numerical representations, allowing researchers to investigate patterns across large collections of documents.
However, written descriptions do not always provide a complete account of what fish actually do. Some species are studied more often than others, and descriptions may differ in wording or detail.
To supplement the textual information, the team also analysed photographs and videos. Images from citizen-science sources, including iNaturalist, provided observations of fish in real environments.
Computer-vision methods were used to identify fish in images, investigate their apparent positions and orientations, and evaluate how the directions of neighbouring individuals related to one another.
When available information allowed it, the researchers also used techniques to estimate aspects of three-dimensional orientation. This helped distinguish fish merely appearing close together in a photograph from individuals exhibiting coordinated movement.
The workflow included human review and correction of some automated results. This is important because computer vision can make mistakes when animals overlap, are partly hidden or appear at unusual angles.
After combining these sources of evidence, the researchers assembled behavioural information for 2,839 ray-finned fish species. They then related those measurements to the species' evolutionary histories.
Machine learning did not observe 350 million years of evolution. It helped researchers classify present-day species using descriptions and images. Evolutionary models were then used to infer how the behaviour may have appeared and disappeared among ancestral lineages.
This separation between measurement and inference is essential. A machine-learning model can extract patterns from data, but it does not directly reveal the behaviour of fish that lived hundreds of millions of years ago.
By combining modern observations with an evolutionary family tree, scientists can estimate ancestral states and transitions. Those estimates depend on the accuracy of the classifications, the evolutionary relationships and the assumptions of the statistical models.
The study therefore offers a large-scale reconstruction of behavioural evolution, rather than a literal record of every historical change.
Why would evolution favour swimming together?
Schooling can provide several possible advantages, but no single explanation applies equally to every species. The new study investigated broad patterns associated with predator pressure and the availability of food.
One longstanding hypothesis is that animals form groups to reduce their risk of being captured. A predator approaching a dense school encounters many moving potential targets. The rapid changes in position and direction can make it difficult to focus on one individual.
Group living may also improve the detection of danger. If one fish notices a threat and changes direction, nearby individuals can respond to that movement. Information about danger may spread through the school without requiring every fish to detect the predator independently.
The Cornell team's analysis found that species lower in the food chain, which generally face higher predation pressure, were more likely to engage in collective movement.
This supports the idea that schooling can be associated with protection from predators. However, the relationship was not universal. Some species exposed to substantial predation remain relatively solitary, while some fish occupying higher positions in the food chain also swim together.
Predator avoidance therefore appears to be an important evolutionary influence, not the sole explanation for schooling.
The protection hypothesis
Fish may benefit from moving together because a group can dilute individual risk, detect danger through multiple observers and create complicated moving patterns that make attacks more difficult.
The food-discovery hypothesis
Fish may benefit from following neighbours when food resources are unevenly distributed. The movement of other individuals can provide information about where food is available.
The second hypothesis is especially interesting because collective movement need not be restricted to prey animals trying to escape. Predators may also benefit from responding to the movements of other predators when searching for food.
The researchers found a relationship between schooling and diets involving patchily distributed resources. Many predatory fish that move in coordinated groups also feed on prey that themselves form groups.
This suggests that the ecological value of collective movement may depend partly on how food is distributed in the environment.
Even predators can become part of the crowd
It may be tempting to divide fish into two simple categories: small prey species that form schools and large predatory species that hunt alone. Nature does not fit neatly into that distinction.
Some predatory fish also gather and move in coordinated groups. Their behaviour demonstrates that schooling may serve different purposes depending on the species and its ecological circumstances.
For example, some barracuda species form schools, especially during particular stages of their lives or in certain environments. Other encounters involve individual barracudas moving separately.
The new comparative research supports the broader principle that the benefits of collective movement can apply to both prey and predators.
Group movement among predators can make ecological sense when food sources are concentrated and the actions of neighbouring predators provide useful information. But living together also introduces competition, and the benefits may depend on the circumstances.
The important distinction is that schooling does not have one permanent purpose. It is a flexible form of collective behaviour whose advantages can vary across evolutionary lineages.
What could make swimming alone a better strategy?
The most striking result of the new study is not simply that coordinated schooling evolved repeatedly. It is that the behaviour appears to have been lost far more frequently than scientists anticipated.
The research does not establish one definitive explanation for these repeated losses. However, several possibilities are consistent with what scientists already know about the costs and benefits of group living.
Competition can turn neighbours into rivals
If food is abundant and distributed in large patches, following other individuals may be useful. A group can locate a resource, and many members may benefit from the discovery.
But if food is scarce, every additional neighbour becomes a possible competitor. Swimming alongside many individuals may reduce the amount of food available to each fish.
Under those conditions, solitary movement could become advantageous. An individual searching independently may avoid sharing a limited resource with a large group.
That does not mean all fish abandon schooling when food becomes scarce. The outcome depends on the species, the environment and the balance between competition and other benefits of group life.
A school can spread false information
Collective movement depends on animals responding to one another. That responsiveness is useful when one fish detects a genuine threat. It can also create a problem when a fish reacts to something harmless.
Imagine a member of a school suddenly turning away because of a mistaken alarm. Nearby fish may respond to its movement, and the reaction can spread through the group even if there is no predator.
Such events illustrate a broader principle: information spreading through a group is not always accurate. Highly responsive systems can amplify mistakes as well as useful warnings.
The researchers discussed this possibility as one explanation for the costs of collective behaviour, but the new study did not prove that false alarms caused the hundreds of inferred evolutionary losses.
Disease can make a crowd dangerous
Living near other individuals may also increase exposure to pathogens and parasites. Animals sharing the same space and encountering one another frequently can create opportunities for infectious agents to spread.
Over evolutionary timescales, disease-related costs could potentially influence whether a particular lineage benefits from remaining in groups. However, demonstrating that hypothesis would require evidence connecting changes in grouping behaviour with differences in disease exposure and survival.
The Cornell study identifies disease risk as a possible factor rather than an established explanation for the reconstructed losses.
The real evolutionary question is therefore not simply whether schooling is good or bad. It is whether the benefits exceed the costs in a particular environment, for a particular species, over many generations.
A surprising connection to biodiversity
The researchers also investigated whether collective behaviour was associated with the diversification of fish lineages. Diversification concerns changes in the number of species over evolutionary time, reflecting the combined effects of speciation and extinction.
The analysis found that lineages associated with collective movement tended to have a higher net diversification rate than those lacking the behaviour.
This result is intriguing because it suggests that schooling may be connected not only with the survival or behaviour of individual fish but also with the long-term evolutionary histories of entire lineages.
However, the evidence does not establish that schooling directly causes new species to form. A statistical association between a behavioural trait and diversification can arise through several different mechanisms.
One possibility is that collective movement increases survival under particular ecological conditions. Another is that schooling influences how species exploit resources or occupy different environments.
It is also possible that other traits or ecological circumstances contribute to both schooling and diversification.
The researchers emphasized that they could not fully distinguish whether the higher net diversification rate reflected more frequent formation of new species, lower rates of extinction or some combination of the two.
That uncertainty is important. A species-rich lineage does not necessarily contain more species solely because its members swim together.
Traditional evolutionary comparisons often focus on characteristics of individual organisms, such as size, shape or physiology. This study investigates whether a behaviour that emerges only through interactions among individuals is also associated with long-term evolutionary diversification.
The result broadens the kinds of characteristics that can be investigated in large-scale evolutionary research. Collective behaviour may be part of the ecological and evolutionary history of a lineage rather than merely a temporary response by individual animals.
What the numbers cannot tell us
The scale of the new analysis is impressive, but its findings still depend on the available evidence. The study covered 2,839 species, a substantial sample representing nearly one-tenth of living fish species, yet many species remained outside the dataset.
Observations are also unevenly distributed across the tree of life. Well-known, abundant or economically important species may be described and photographed more frequently than rare or difficult-to-observe fish.
Behavioural categories can be complicated because fish do not necessarily swim in the same way throughout their lives. Some form schools as juveniles but become less social as adults. Others assemble seasonally, respond to predators by grouping or form temporary aggregations around food.
These differences create challenges for automated classification. A photograph of several fish swimming together may show genuine coordinated movement, but it might also capture individuals temporarily occupying the same area.
Similarly, a photograph of one fish does not establish that its species lacks schooling behaviour.
The machine-learning methods were designed to combine multiple sources of evidence, but errors and uncertainty remain possible. The resulting evolutionary reconstruction is therefore best understood as a model-informed estimate rather than a complete record of every fish lineage.
The research paper's publicly accessible abstract establishes the broad findings, and Cornell's accompanying explanation provides the approximate gain and loss counts. The study also makes its datasets, computer code and model weights available through a public research repository, supporting future examination and replication.
Additional observations, improved behavioural classifications and expanded evolutionary datasets may refine the inferred number and timing of transitions.
Could this teach us something about robots?
The movements of fish schools have long interested researchers studying collective robotics. Groups of autonomous robots may need to move through environments without constant centralized control, and collective animal behaviour offers examples of how local interactions can produce organized group-level patterns.
A fish school demonstrates that coordination need not always require every individual to receive instructions from one leader. Nearby individuals can influence one another, generating collective patterns from many small decisions.
This principle has inspired research in swarm robotics, where multiple machines coordinate to perform tasks such as environmental monitoring or exploration.
The new evolutionary study does not provide a tested robot-control algorithm. Its primary contribution is to understanding the history and ecological associations of collective movement.
Nevertheless, the finding that schooling has been both gained and lost repeatedly suggests a useful engineering lesson: collective coordination is not necessarily advantageous in every situation.
A robotic swarm may benefit from cooperation when exploring a large area or sharing information. But tightly coupled behaviour can create problems when inaccurate signals spread through the group, communication fails or competition for resources becomes important.
These are conceptual parallels, not conclusions directly demonstrated by the fish study. They illustrate why both the advantages and limitations of biological collective behaviour can be relevant to engineered systems.
Why evolution does not always move in one direction
A popular image of evolution presents it as a steady progression toward increasingly sophisticated organisms and behaviours. In reality, evolutionary change has no universal direction toward greater complexity.
Traits can appear, change and disappear as populations encounter different environments. A behaviour that once improved survival may eventually become unnecessary, or its costs may exceed its advantages.
The evolutionary history of fish schooling provides a particularly visual example of this principle.
For some lineages, moving together may have offered protection from predators or advantages in locating food. Those benefits could help maintain schooling across many descendant species.
For others, changes in ecology may have favoured more independent movement. Schooling could become less frequent, and over generations the lineage might lose a consistent tendency toward collective motion.
The repeated gains and losses inferred by the researchers show that the same broad form of behaviour can be favoured in some circumstances and disfavoured in others.
There is no single answer to whether a fish should swim alone or with a group. The answer depends on its environment, its evolutionary history and the trade-offs involved in living near others.
Perhaps a school of fish is not one invention, but many
One of the most interesting implications of the study is that coordinated movement appears to have evolved repeatedly rather than arising only once and remaining permanently embedded in fish evolution.
This matters because it suggests that different evolutionary lineages can arrive at broadly similar group behaviours even when their histories are separated by millions of years.
The underlying sensory systems and neural mechanisms need not be identical in every species. What appears similar from the outside—the formation of a coordinated moving group—may arise through different developmental and ecological pathways.
The study also encourages a broader view of what counts as an evolutionary trait. A fin, eye or tooth can be examined as part of an individual organism. A school exists through the relationships between multiple organisms.
That makes collective behaviour an unusual kind of evolutionary characteristic. It depends on individual capacities, but its most recognizable form appears at the level of the group.
With the aid of computational methods, scientists can now investigate these characteristics across much larger sets of species than were previously practical.
The combination of behavioural data, citizen-science images and phylogenetic analysis opens opportunities to ask similar questions about the evolution of bird flocks, animal herds and other forms of coordinated collective movement.
Those applications will require their own datasets and validation. A method developed for fish cannot automatically describe every other group of animals.
But the underlying scientific opportunity is clear: behaviours once regarded as too complicated or variable for large-scale evolutionary comparison are becoming more accessible to systematic analysis.
Schooling among ray-finned fish appears to have evolved repeatedly and disappeared even more often. The study links collective movement with predation pressure, the distribution of food resources and higher net evolutionary diversification, while leaving the exact causes of repeated losses unresolved.
The ocean's moving crowd has a complicated past
A school of fish may appear to move as one, but its organization emerges from many individuals responding to one another. That collective behaviour has fascinated scientists for generations.
The new Cornell-led study brings a different perspective to the subject by investigating how schooling evolved across thousands of fish species. Its findings suggest that collective movement appeared independently on dozens of occasions and was lost hundreds of times during a history extending across approximately 350 million years.
The results support the importance of predator pressure and resource distribution, while also revealing that the advantages of group living are far from universal. Some species benefit from moving together; others may encounter costs that favour more independent behaviour.
The relationship between schooling and evolutionary diversification adds another layer to the story. The behaviour of a group may be associated with patterns extending far beyond individual survival, although its causal role remains uncertain.
Perhaps the most important lesson is that evolution does not preserve every useful behaviour forever. A strategy can emerge repeatedly, spread through lineages and later disappear when the balance of advantages changes.
The next time a school of fish turns together like a single living wave, remember that the pattern has a history far older—and far less predictable—than the movement happening in front of you.
Research and further reading
- Love, Jay; Nayak, Amlan; Grassick, Abigail G.; Kong, Ling-Wei; Henry, Ella G.; Gil, Michael A.; Fahimipour, Ashkaan K.; Pennell, Matt; and Hein, Andrew M. (2026). "Evolutionary dynamics of collective behavior across the tree of ray-finned fishes." Proceedings of the National Academy of Sciences, 123(45), e2611720123. Published online 6 November 2026; issue dated 10 November 2026. DOI: 10.1073/pnas.2611720123.
- Ramanujan, Krishna (9 November 2026). "Machine learning helps explain evolution of fish schools." Cornell Chronicle, Cornell University. University research announcement.
- U.S. National Library of Medicine. "Evolutionary dynamics of collective behavior across the tree of ray-finned fishes." PubMed PMID 42993562. Bibliographic record and abstract.
- Love and collaborators (2026). Datasets, computer code and trained model weights associated with the PNAS research. Research data repository on Zenodo.
Image attribution and editorial transparency
Cover and final thumbnail: Pacific sardines (Sardinops sagax) photographed by Dana L. Brown on 12 July 2019. Wikimedia Commons source · CC BY-SA 2.0.
Smallmouth grunt school: Photograph by Camcintire, 15 January 2022, at the New England Aquarium. Wikimedia Commons source · CC BY-SA 4.0.
School of great barracudas: Photograph by Diego Delso, 27 March 2022, Ras Muhammad National Park, Egypt. Wikimedia Commons source · CC BY-SA 4.0.
Individual great barracuda: Photograph by Luiz Puodzius, 18 August 2024. Wikimedia Commons source · CC BY 4.0.
All four images are existing wildlife photographs with identifiable creators and reuse terms. They were not produced during the new study, and none is AI-generated. They are reproduced without alteration; CSS controls display dimensions. Their creators do not endorse Zivory.
Scientific qualifications: The approximately 60 gains and 320 losses of schooling are evolutionary reconstructions rather than observed historical events. The study covers 2,839 species, not every living fish. The relationships with predation pressure, resource distribution and diversification are statistical associations and do not establish one universal cause.
Research access: The published PNAS abstract and the university announcement were used to verify the principal results. The complete article text was not publicly accessible through the journal page at the time of preparation, although the study's supplementary resources and research-data repository were listed. No figures from the PNAS paper have been reproduced because its CC BY-NC-ND licence restricts commercial reuse.
Original editorial content: The article's narrative structure, discussions of the evolutionary trade-offs, interpretation of schooling and robotic-swarm comparison are original Zivory explanations based on the documented research findings.
Join the conversation