One of the most uncanny sights in nature is that of a school of fish, a seething, silvery mass of life thousands strong, darting and diving in perfect coordination. They skim the surface of a reef and take a hard right turn as one, only to divide and coalesce again when a predator plunges into their midst. To a human, it looks as if each fish has a tiny walkie-talkie and they are planning their next move en masse.

But what looks smart on the school-wide scale may actually be rather simple on the single-fish scale. Over the years, scientists who study collective behavior have found that computer-simulated fish programmed to obey just a few simple rules, like staying a specific distance from the nearest neighbor fish, show exactly the same kind of choreographed fluidity as living schools do. The beautiful coordination is what scientists call emergent: it’s a complex-looking behavior that arises naturally out of many individuals each doing something rather simple.

Now, in a new paper in Science, a team of researchers reports that another form of complex group behaviorkeeping to the shadows in a pool with dappled lightcan be achieved without the fish doing anything much more complicated than moving faster when the light falls on them and slower when they’re in the dark. What’s more, the greater the number of fish in the school, the better they are at staying in the dark, which the scientists suggest could mean that a large group has survival advantages over a small one. It’s the kind of observation that might not only contribute to our understanding of how swarms, schools, and flocks interact with their world, but also suggest new parameters for conservation.

To investigate the dappled-pool phenomenon, Iain Couzin, a professor of evolutionary biology at Princeton University and the lead author of the paper, oversaw a study that involved a dark room outfitted with a broad, shallow fish tank and a ceiling-mounted projector. The projector shone light down onto the tank in constantly morphing patterns, and a grad student, Andrew Berdahl, released ever-increasing numbers golden shiners, 3- to 5-in. (7.5 to 12.5 cm) bait fish common in North America, into the water. Berdahl began with 1 and worked slowly up to 256, filming their fluid movements with an infrared camera.

Going through their data with computer software, Berdahl, Couzin, and their collaborators saw that each fish’s tendency to stay within a fixed distance of its neighborsan element critical to schoolingcould explain most of the school’s coordinated movement away from light. “The direction of acceleration was almost always correlated with the direction of their nearest neighbors. They were acting mostly out of sociality. That was the dominant predictor of the direction of their acceleration, says Berdahl. The other factor the scientists thought might be involvedthat once a fish found itself in the light, it would look around for the nearest dark patch and then speed there with all haste, in essence sharing information about the light’s location with its schoolmatesdidn’t seem to play a role.

But being in the light did change one thing about the fish: their speed. Though the fish in the light didn’t seem purposely to orient themselves back toward the dark, they moved faster than the shadow fish. Conducting a thought experiment, the team concluded that this would be enough to explain the school’s ability to swing away from the light. Berdahl uses the metaphor of a Segway in which the left wheel is turning slowly (the fish in the dark) while the right wheel is turning quickly (the fish in the light). Because of the difference in speeds, the whole vehicle turns to the leftor in the case of the school, into the darkness. The actions of the individuals could thus determine the behavior of the whole. Slow-moving fish, like slow-moving cars, also tend to bunch more tightly together. So not only do they spend more time in the dark, they also huddle closer there.

2013 Time Inc