How Contiguity Shapes Learning, Memory, and Perception

Contiguity is the state of being next to or in contact with something else, whether in time, space, or sequence. The word traces back to the Latin contiguus (touching), and while it sounds like specialized jargon, it quietly underpins how your brain learns, how you recall memories, how textbooks should be designed, how wildlife corridors are planned, and even how computers manage data in memory. The concept is old enough that Aristotle wrote about it, yet it remains active across a surprising number of modern fields, each with its own spin on what “next to each other” really means and why it matters.

Where the Idea Comes From

Aristotle is generally credited with identifying contiguity as one of the basic laws of mental association, alongside similarity and contrast. His claim was straightforward: when two experiences occur close together in time, the mind tends to link them, so that encountering one later brings the other to mind. This insight passed through centuries of philosophy largely unchanged, showing up in the writings of Hobbes, Locke, and Berkeley, who adopted Aristotle’s associative laws without worrying much about the underlying brain mechanisms.1PubMed. David Hartley’s psychobiological associationism and the legacy of Aristotle What began as a philosophical observation about how thoughts chain together became, by the twentieth century, the foundation of experimental psychology’s approach to learning.

Temporal Contiguity in Learning

The version of contiguity most people encounter first is temporal contiguity in classical conditioning. The basic setup is familiar from textbook descriptions of Pavlov’s dogs: ring a bell, then deliver food. If the bell and the food arrive close enough together in time, the animal eventually responds to the bell alone. For decades, the assumption was that closeness in time was the essential ingredient. If two events overlap or follow each other quickly, an association forms; if they’re too far apart, it doesn’t.

That picture turned out to be incomplete. Research into both delay conditioning (where the signal stays on until the outcome arrives) and trace conditioning (where a gap separates them) has shown that temporal contiguity alone is not enough to produce learned responses.2Learning and Motivation. Temporal factors in classical conditioning Two events can happen at virtually the same moment and still fail to produce learning if other conditions aren’t met. This finding pushed researchers toward a distinction that matters a great deal: the difference between contiguity and contingency.

Contiguity Versus Contingency

Contiguity asks whether two things happen close together. Contingency asks whether one thing reliably predicts the other. They sound similar, and in many everyday situations they overlap, but they can be pulled apart experimentally, and when they are, the results are revealing.

Imagine a tone that always precedes a mild shock, but the shock also occurs just as often when no tone is playing. The tone and the shock are contiguous on every paired trial, yet the tone carries no predictive information because shocks are equally likely without it. Animals in this arrangement tend not to learn to fear the tone. Contingency, the relative change in how often the outcome happens when the signal is present versus absent, turns out to be a stronger driver of learning than simple temporal overlap.3PubMed Central. Bridging Computation and Representation in Associative Learning Some theoretical frameworks, such as Rate Estimation Theory, argue that what animals really learn is the statistical structure of events, deriving a measure of contingency from the pattern rather than just gluing together whatever happens at the same time.

This doesn’t mean contiguity is irrelevant. In experiments on action-effect learning, where a person presses a key and a tone follows, contiguity and contingency both matter. Evidence of learned associations between the action and its effect appeared only when the effect was delayed by no more than about one second, even if the statistical relationship was strong.4PubMed. Contiguity and contingency in action-effect learning So contiguity sets a kind of window within which learning can happen, and contingency determines whether learning actually does happen within that window. Both are necessary, and neither is sufficient on its own.

Contiguity in Episodic Memory

Beyond conditioning, contiguity shapes how you recall your own past. When you try to remember items from a studied list, you don’t pull them out randomly. You tend to recall items that were close together in the original sequence, jumping from one to its temporal neighbor far more often than to something studied minutes earlier or later. This pattern, called the contiguity effect, is one of the strongest and most replicable findings in memory research.5PubMed Central. Contiguity in episodic memory

The effect shows up across free recall, paired associates, and recognition tasks, and it scales in a particular way: items one position apart are much more likely to be recalled together than items two positions apart, but the drop-off from two to three is gentler, and from three to four gentler still. The broad pattern points toward memory mechanisms that encode something like a time-stamp for each experience, and when one item is retrieved, the brain uses that stamp to pull nearby items along with it. This is why, when you suddenly remember a song you heard at a party, you also tend to remember what you were eating or who you were talking to at the same moment. The temporal context acts as a retrieval hook.

Spatial Contiguity in Education

In instructional design, contiguity takes on a spatial meaning. The spatial contiguity principle says that people learn better when related text and images are placed near each other on the page or screen, rather than separated. If a diagram of the heart is on one page and the labels explaining each chamber are on the facing page, learners have to mentally integrate information across a gap. That integration costs effort, and it doesn’t help understanding.

Eye-tracking studies bear this out. When text and illustrations were integrated (placed next to the relevant part of the image), learners spent more time looking at the text and less time fixating on irrelevant parts of illustrations. They also reported lower levels of unnecessary mental effort and scored higher on tests that required them to apply what they learned to new problems.6Learning and Instruction. Role of subjective and objective measures of cognitive processing during learning in explaining the spatial contiguity effect The effect sizes weren’t trivial: the transfer test advantage for the integrated layout was moderate, and the reduction in time spent on irrelevant illustration details was large. If you’ve ever struggled with a software manual where the screenshot is three pages away from the step it illustrates, you’ve felt spatial contiguity violation in action.

There’s also a temporal version of this principle in multimedia learning. When narration describes something happening in an animation, learning improves if the words and the animation are synchronized rather than presented one after the other. The underlying logic is the same: the brain forms stronger connections between pieces of information that arrive together, whether “together” means side by side on a page or simultaneous in time.

The Neurobiology of Timing Windows

At the cellular level, contiguity has a strikingly literal implementation. Neurons strengthen or weaken their connections based on the precise timing of their activity, a process known as spike-timing-dependent plasticity. If a presynaptic neuron fires just before a postsynaptic neuron, the connection between them gets stronger. If the order is reversed, the connection weakens. Early theoretical models proposed that this coincidence window could be as narrow as about one millisecond.7Frontiers in Synaptic Neuroscience. A History of Spike-Timing-Dependent Plasticity

In practice, the windows observed experimentally vary. Some synapses operate on timescales of tens of milliseconds rather than one, and the exact shape of the timing rule depends on the brain region, the neuron type, and the ongoing network activity. But the core principle is the same as Aristotle’s law, translated into voltage and calcium: things that happen together get wired together. The brain enforces contiguity at the level of individual synaptic connections, which is part of why temporal closeness is so powerful a factor in learning and memory even when, as the conditioning research shows, it isn’t the only factor.

Contiguity in Infant Perception of Cause and Effect

Contiguity shapes cognition from very early in life. By about 30 weeks of age, infants can perceive a launching event, where one object collides with another and the second object moves, as an event with internal structure rather than just a sequence of unrelated motions.8PubMed. Spatiotemporal continuity and the perception of causality in infants When researchers introduce a temporal gap between the first object stopping and the second object starting, or a spatial gap so the objects never touch, infants treat the event differently. They habituate to the causal version and then notice the non-causal version as novel, suggesting they’re sensitive to both spatial and temporal contiguity as cues to causation long before they have any explicit concept of cause and effect.

This matters because it suggests that contiguity isn’t just a learned heuristic adults apply after years of experience. It appears to be a foundational perceptual principle, something the developing brain uses to parse the world into causal relationships from very early on. When the timing or spacing between events is disrupted, even a seven-month-old notices that something has changed.

Spatial Contiguity in Geography and Ecology

Outside the brain sciences entirely, contiguity is a core concept in spatial analysis and landscape ecology. In geography, two regions are contiguous if they share a border or boundary. This sounds obvious, but how you define and measure contiguity has real consequences for statistical modeling. Spatial weights matrices, which encode the relationships between geographic units, can be built using various contiguity rules (do regions count as neighbors if they share an edge, or only if they share a vertex?), and the choice affects the results of any analysis that depends on spatial relationships.

In landscape ecology, contiguity of habitat patches is critical for biodiversity. A species that needs a certain minimum territory can survive in a single large patch but may go locally extinct if the same total area is fragmented into small, isolated pieces. Maintaining or restoring landscape connectivity, the degree to which habitat patches are contiguous or linked by corridors, has become a major focus of conservation planning.9Progress in Physical Geography: Earth and Environment. Habitat connectivity in biodiversity conservation A review of over 160 publications found that the study of landscape connectivity in conservation grew substantially in the early twenty-first century, reflecting a shift from thinking about individual reserves to thinking about how those reserves connect.

Practical applications follow. In South Africa, researchers have modeled ecological corridors between mega-reserves by mapping how easily different mammal species can move across the landscape between protected areas, using resistance surfaces that estimate how much each land-use type impedes movement.10Biodiversity and Conservation. Landscape connectivity for biodiversity conservation: a mammal-based multi-species corridor approach for the Eden to Addo corridor initiative, South Africa The goal is to identify priority areas where restoring contiguity between fragments will yield the greatest conservation benefit. This connects to a broader framework in restoration ecology: landscapes with intermediate habitat amounts and sufficient remaining connectivity are the best candidates for restoration, because species can still recolonize restored patches from nearby populations.11Restoration Ecology. A Framework to Optimize Biodiversity Restoration Efforts Based on Habitat Amount and Landscape Connectivity In landscapes where connectivity has already collapsed, restoration efforts may fail because there’s nothing left nearby to provide colonists.

Contiguity in Visual Perception

Gestalt psychologists catalogued a set of principles by which the visual system groups elements into coherent objects: proximity (things near each other look grouped), similarity (things that look alike get grouped), and several others. Contiguity, in the form of physical connectedness, is one of the strongest. When two dots are joined by a line, you perceive them as a single unit faster and more easily than when they’re merely close together or merely similar in color or shape.

Experimental work has confirmed this hierarchy. In tasks requiring participants to identify global letter shapes made up of small local elements, grouping by physical connectedness was processed at least as fast as grouping by proximity, and both were faster than grouping by similarity of shape. Adding connecting lines to elements that were already grouped by proximity didn’t speed things up further, suggesting that proximity grouping was already operating near its ceiling. But adding connections to elements grouped only by similarity did improve performance.12PubMed. Uniform connectedness and classical Gestalt principles of perceptual grouping The implication is that spatial contiguity, being physically touching or connected, is among the most primitive grouping cues the visual system uses. It operates early and fast, likely before higher-level shape analysis kicks in.

Territorial Contiguity and International Conflict

Political scientists use contiguity to describe countries that share a land border or are separated by a small body of water. The relationship between territorial contiguity and conflict has been studied for decades, and it’s more nuanced than the simple intuition that neighbors fight more. Sharing a border does increase the opportunity for conflict, but the character of that border matters. Research examining how ease of cross-border interaction and the political salience of borders relate to conflict found that the relationship is curvilinear: both very high and very low values of border permeability and salience were associated with lower conflict, while the middle range was associated with higher conflict levels.13International Studies Quarterly. The Nature of Borders and International Conflict: Revisiting Hypotheses on Territory

This fits a pattern where borders that are either so open they’re functionally irrelevant (think the U.S.-Canada border in most stretches) or so settled and clearly defined that neither side has grievances tend to be peaceful. It’s the borders in the ambiguous middle, permeable enough to create friction but salient enough to be politically charged, that generate the most disputes. Contiguity here isn’t just a geographic fact; it’s a variable whose meaning depends on the political and social context layered on top of it.

Contiguity in Computing

In computer science, contiguity typically refers to whether data is stored in adjacent memory locations. When a program needs to access a series of data blocks, performance improves dramatically if those blocks sit next to each other in physical memory, because the processor’s cache can load them in bulk rather than fetching each one individually from a distant location. When data blocks end up scattered across memory, cache misses increase, and the program slows down.

Memory allocators can be designed to care about contiguity. Research on cache-aware memory allocation has shown that simple adjustments to how blocks are spaced can reduce conflict misses, where two frequently used pieces of data fight over the same cache slot, with no observable downsides to performance elsewhere.14ACM SIGPLAN Notices. Cache index-aware memory allocation In genomics, a related idea applies: when assembling a genome from short sequence reads, the contiguity of the assembled pieces (how long the unbroken stretches are) serves as a key quality metric. Higher contiguity assemblies have fewer gaps and ambiguities, making downstream analysis more reliable.15PubMed Central. An exploration of assembly strategies and quality metrics on the accuracy of the rewarewa (Knightia excelsa) genome Even in this purely technical context, the intuition is the same: things that belong together work better when they’re actually next to each other.

Why Contiguity Keeps Showing Up

It’s worth stepping back to notice how strange it is that a single concept, nearness in time or space, appears in so many unrelated fields and consistently turns out to matter. The brain uses temporal contiguity to build associations and retrieve memories. The visual system uses spatial contiguity to group objects. Infants use spatiotemporal contiguity to perceive causation. Instructional designers exploit it to reduce mental effort. Conservation biologists measure it to predict species survival. Computer engineers optimize it to speed up software. Political scientists analyze it to understand war and peace.

None of these fields borrowed the concept from the others. They arrived at it independently because the physical world is organized such that things that are near each other tend to be related. Causes precede their effects by small intervals. Parts of the same object occupy neighboring locations. Animals that live in one patch can reach a neighboring patch but not a distant one. Data a program uses in one step tends to be needed in the next step. Contiguity is a proxy for relatedness, and it’s a good enough proxy that evolution, engineering, and statistical modeling have all converged on using it, each in their own idiom, to solve the same underlying problem of figuring out what goes with what.