There are some telltale signs that we shown when we're on the verge of an "aha" or "Eureka" moment, researchers say. (Photo by franz12 on Shutterstock)
Researchers show that sudden flashes of brilliance may not be as sudden as they seem to be
In A Nutshell
- Breakthrough moments don’t come from nowhere. New research shows mathematicians’ “aha” insights are preceded by increasingly unpredictable gestures, gaze shifts, and chalkboard movements.
- Unpredictability ramps up minutes before insight. Mathematicians’ activity becomes turbulent and exploratory more than two minutes before they shout “I see!”, peaking in the seconds before.
- The finding may apply beyond math. The same behavioral patterns could foreshadow creative breakthroughs in other domains, from writing to art to scientific discovery.
MERCED, Calif. — A mathematician stands at a blackboard, chalk in hand, scribbling equations and sketching diagrams. For a while, nothing seems to work. Then suddenly, “Aha!” The solution comes like a flash of lightning. These moments of breakthrough insight, often called “eureka” moments, have fascinated thinkers for centuries. They appear to come out of nowhere. But new research suggests they may not be as mysterious as they seem.
A team of cognitive scientists at the University of California, Merced, and Indiana University has shown that “aha” moments can be foreshadowed by subtle shifts in behavior. By tracking how mathematicians moved, gestured, and shifted their gaze at the blackboard, the researchers found that their activity became increasingly unpredictable in the minutes leading up to a sudden insight.
The study, published in the Proceedings of the National Academy of Sciences (PNAS), suggests that even our most spontaneous-seeming moments of genius are preceded by hidden patterns. Insights don’t simply arrive out of thin air: they are the culmination of a process the mind and body signal long before words like “Oh, I see!” are spoken aloud.
Why Mathematical Insights Have Always Seemed Mysterious
For centuries, mathematicians have described their breakthroughs in mystical or almost supernatural terms. Henri Poincaré, one of the great polymaths of the 19th century, recalled a moment when inspiration struck him out of the blue: “At the moment when I put my foot on the step, the idea came to me, without anything in my former thoughts seeming to have paved the way for it.”
Carl Gauss, another giant of mathematics, described insight as “a sudden flash of lightning” and even as “a divine intervention.” Such language paints the picture of mathematical discovery as unpredictable and inexplicable—a lightning strike from the heavens.
This sense of mystery persists even today. Scientists studying creativity often note how breakthroughs seem to happen when the mind is relaxed or distracted, such as when walking, bathing, or even boarding a bus. Stories of Archimedes leaping from his bath shouting “eureka!” are part of the cultural lore of discovery. What unites these anecdotes is the sense that insight arrives without warning.
But the UC Merced and Indiana researchers suspected that if they zoomed in on the micro-level of behavior, such as where mathematicians look, what they write, how they shift between diagrams and equations, they might uncover patterns hidden within the apparent chaos.
How the Study Was Conducted
To test this, the team designed a study that combined naturalism with precision. Instead of bringing subjects into a sterile lab, they filmed mathematicians in their natural working environments: offices and seminar rooms where chalkboards and quiet thought are the norm.
Six PhD-level mathematicians (three men and three women) were recruited to work on problems drawn from the William Lowell Putnam Mathematical Competition. The Putnam exam is legendary in mathematical circles: a six-hour marathon of 12 proof-based problems so difficult that the median score is often zero or one point out of 120. By using Putnam problems, the researchers ensured their participants would wrestle with problems challenging enough to provoke genuine struggles and, potentially, flashes of insight.
The researchers coded the mathematicians’ “inscriptions,” or the coherent markings on the blackboard such as an entire equation, diagram, or list of numbers. They tracked every time a mathematician shifted attention from one inscription to another, whether by glancing, pointing, erasing, or writing something new.
Across 14 proof sessions, the team recorded 4,653 attention shifts and 24 clear verbal expressions of insight. These were moments when a mathematician exclaimed something like “Oh, I see!” (A pilot session brought the total to 27 insights.) Indeed, they were the “eureka” moments the researchers wanted to understand.
What Happens Before the Breakthrough
Using concepts from information theory, the team analyzed each behavioral shift in terms of its “surprisal,” a measure of how unexpected a move was compared to recent behavior. If a mathematician repeatedly moved from one equation to a related diagram, that shift was predictable and low-surprisal. If they suddenly jumped across the board to a previously unconnected sketch, that was high-surprisal.
What emerged was striking: mathematicians’ activity became increasingly unpredictable in the lead-up to a breakthrough. On average, unpredictability began rising more than two minutes before the moment of insight, ramped up gradually, and peaked in the seconds immediately before the mathematician spoke out loud about their discovery. Afterward, unpredictability dropped as they settled into more stable, predictable patterns of work.
One example captured this dynamic perfectly. A mathematician working on a proof spent much of her time shifting attention between a line representing a bounded interval and a nearby list of real numbers. These low-surprisal moves were predictable within her working context. But just before she exclaimed, “Oh, I see!”, she suddenly shifted attention from the interval to a triangle drawn on the far side of the blackboard. It was a highly surprising move, given her prior behavior. That unexpected leap foreshadowed the breakthrough.
A Hidden Order Behind Creativity
The authors interpret these findings as evidence that insight is preceded by a gradual destabilization of normal thought patterns. Instead of plodding along familiar routes, mathematicians began making connections that were unusual and unprecedented for them. This behavioral “turbulence” opened the door for new associations and ultimately, the moment of realization.
The researchers frame this as a balance between exploitation and exploration. During ordinary problem-solving, mathematicians exploit known strategies, applying familiar methods to recognizable problems. But as they approach an impasse, they shift toward exploration, experimenting with connections that are less obvious. This is when the groundwork for insight is laid.
This duality, exploitation versus exploration, is not unique to mathematics. Cognitive scientists have seen it in scientific discovery, artistic creativity, and even everyday decision-making. Striking the right balance allows people to both refine what they already know and push into new, uncharted territory.
The study also highlights how mathematical thought is not confined to the brain alone. Gestures, chalk marks, and eye movements all play roles in shaping and revealing thought processes. Even in an age of digital tools, chalkboards remain central to mathematical culture for a reason: externalizing ideas on a board makes them easier to manipulate, revisit, and connect in unexpected ways.
Broader Implications
While the study is deliberately cautious, the implications are intriguing. If behavioral unpredictability can foreshadow insight in mathematics, could similar signals be found in other creative fields? Writers might show changes in typing rhythms before a sudden burst of clarity. Artists could shift styles or brushstrokes in measurable ways before a breakthrough. Even scientists in labs might leave subtle behavioral fingerprints of discovery.
The researchers themselves note that their method is general. It does not depend on the specifics of mathematics but on detecting unpredictability in a symbolic system of behavior. That means it could, in principle, be applied to any domain where people create and manipulate external representations.
That said, the authors are clear that this is an early step. The study cannot yet predict the content of an insight, only that one is imminent. Nor can it guarantee that every rise in unpredictability will lead to a breakthrough. But the work demonstrates that insights have precursors, signs in plain sight that we’ve simply overlooked until now.
Paper Summary
Methodology
Six PhD-level mathematicians were video-recorded while solving difficult Putnam competition problems in their offices or seminar rooms. Researchers tracked 4,653 attention shifts between inscriptions (equations, diagrams, lists, etc.) and identified 24 verbal expressions of sudden insight (27 including a pilot session). Using information theory, they measured the “surprisal” of each attention shift to capture how predictable or unpredictable it was compared to recent behavior.
Results
Activity became significantly more unpredictable in the minutes leading up to an insight, peaking in the seconds before a mathematician spoke aloud about their discovery. Afterward, unpredictability dropped as mathematicians settled into new, more stable patterns. These findings support the idea that insights are preceded by a gradual destabilization of familiar thinking patterns, culminating in a breakthrough.
Limitations
The sample was small (six mathematicians, 14 proof sessions), focused on one type of problem, and analyzed only verbalized insights. It’s possible other insights occurred silently. The study cannot determine whether behavioral unpredictability causes insights or simply reflects underlying mental shifts.
Funding and Disclosures
The authors reported no competing interests. The research was supported by the National Science Foundation (NSF), Grant No. 1928061.
Publication Information
“An information-theoretic foreshadowing of mathematicians’ sudden insights” was published in PNAS on August 18, 2025, Volume 122, Issue 35. Authors: Shadab Tabatabaeian (UC Merced), Tyler Marghetis (UC Merced), Artemisia Obi (Indiana University), and David Landy (Indiana University).







