NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A preference for local interaction between layers emerges during training

Jiheon LeearXiv 2026

In the world of deep learning, we often think of a neural network as a bucket brigade: information flows from the input, through a stack of layers, to the output. But when it comes to learning, the bucket brigade turns into a crowded room where everyone is listening to the same loudspeaker—the loss function. Since every layer adjusts itself to minimize that one shared error, you might expect every layer to influence every other layer equally.

This paper, however, discovers that as a network matures, it stops being a chaotic room and starts acting more like a physical system. It develops a "sense of neighborhood," where layers primarily influence their immediate neighbors' learning, a phenomenon the authors call emergent locality.

TL;DR

Even though all layers in a deep network are technically connected through a shared error signal, they don't learn as a single, global unit. As training progresses, layers spontaneously develop a preference for interacting with their immediate neighbors, creating a "local" structure that wasn't there at the start.

What Problem Does This Paper Address?

In a standard feed-forward network, the "forward pass" is local by design: Layer 2 only sees what Layer 1 gives it. But the "backward pass"—the learning phase—is global. Because every layer is updated based on the same final output error, a change in the weights of Layer 1 could, in theory, drastically alter how Layer 5 decides to update itself in the very next step.

The authors wanted to know: Does this global influence persist? Or do layers eventually "align" in a way that they mostly care about what their direct neighbors are doing? Understanding this is crucial because if interactions are mostly local, we can use the powerful tools of theoretical physics (which excels at modeling local interactions) to finally understand why deep networks work the way they do.

Methods

To measure how much one layer "influences" another, the researchers performed a "push" experiment:

  1. The Clone: At various points during training, they made an exact copy of the network.
  2. The Push: They perturbed ("pushed") the weights of one specific layer in the copy. They didn't just add random noise; they pushed the weights along the gradient of the layer's stable rank—a metric that describes how many "patterns" or features the layer is currently focusing on.
  3. The Race: They trained both the original and the perturbed copy side-by-side under identical conditions.
  4. The Measurement: They measured how much that initial "push" in Layer $i$ eventually changed the internal structure of Layer $j$.

They repeated this for 512 different networks using two popular optimizers: AdamW (the industry standard) and SGLD (a version of gradient descent used often in physics-based AI theory).

Datasets

The researchers used a task known for a phenomenon called grokking: modular addition ($(a + b) \pmod{113}$).

In grokking tasks, a network quickly learns to "memorize" the training data (low training loss) but takes a very long time to actually "understand" the underlying math (generalization). This long "middle period" of training is perfect for observing how internal structures evolve over time.

Key Insights and Ideas

  • Locality is Earned, Not Given: Early in training, the influence between layers is weak and disorganized. There is no clear pattern based on distance. But as the network "groks" the problem, a strict order emerges: neighbors influence each other most, layers two steps apart influence each other less, and so on.
FIG. 1. Sketch of the main result. One layer of a copy of the network is pushed (red), and the bars show how strongly the other layers respond (blue for the neighbors, orange for the layer two apart). Early in training the response is small and is not ordered by the distance from the pushed layer. Late in training the neighbors of the pushed layer respond most, and layers further away respond less. The first layer, labeled input layer, is left out of the analysis.
  • The "Line-Up": Why does this happen? The authors found that neighboring layers begin to "line up." Specifically, the strongest output patterns of Layer $i$ become the strongest input patterns for Layer $i+1$. When layers are aligned this way, a change in one naturally forces a response in the other to maintain the network's performance.
  • It’s Not Just About Generalization: Interestingly, even in networks that failed to generalize (they never "got" the math), this locality still emerged. This suggests that locality is a fundamental byproduct of stacking layers and training them with gradients, rather than a specific trick for solving math problems.

Key Results

The quantitative results show a clear "decay" of influence over distance.

  • AdamW Networks: By the end of training, the "full order" (neighbors > 2-apart > 3-apart) held true in 99.6% of the networks tested.
  • SGLD Networks: The same order held in 92.1% of networks.
  • Direct vs. Indirect: Even when looking at the very first training step after a "push"—before the effect had time to ripple through the whole network—the preference for neighbors was already visible.
FIG. 2. Mutual response by distance against the training step of the push, for AdamW (left) and SGLD (right). (a), (b) Mutual response χij(t, 512, 32), 511 steps after the first push. (c), (d) Mutual response χij(t, 2, 2), one step after the first push. Pairs are grouped by distance, for pushes at α = 0.1 for AdamW and at h = 0.1 for SGLD. Each point includes only the networks with a pushed copy that passes the crash filter. For AdamW these are 511 or 512 networks at every point. For SGLD they are 232–388 of the 512 networks at τ = 512, and 479–504 at τ = 2. Bands show the 95% bootstrap interval.

As seen in Figure 2 above, the "Mutual Response" ($\chi_{ij}$) for neighbors (blue) grows significantly larger than for layers further apart (orange and green) as the training steps increase.

Limitations and Future Work

While the results are striking, the authors acknowledge a few caveats:

  • Scale: The experiments were done on 5-layer fully connected networks. Modern LLMs have dozens or hundreds of layers and use Transformer architectures. Whether this locality scales to those heights remains to be seen.
  • Task Specificity: Modular arithmetic is a very specific type of "algorithmic" task. It’s possible that for more "fuzzy" tasks like image recognition, the emergence of locality might look different.
  • The "Why" of SGLD: In SGLD, some layer pairs (specifically layers 2 and 3) didn't line up as well as others due to internal noise, showing that while the trend is strong, it's not universal for every single pair in every single setup.

The authors conclude that this emergent locality might be the key to simplifying our theories of deep learning. If we only have to worry about how a layer affects its neighbors, the math of AI gets a whole lot friendier.

Summary updated

Abstract

A deep neural network is a stack of layers, and all layers are trained to lower one shared error. A change in one layer can therefore reach every other layer. Because the error is shared by all layers, one would expect the other layers to respond alike, whether they are next to the changed layer or far from it. We find that early in training the response is weak and its order by distance is not stable. As training proceeds, the response grows, and neighboring layers come to respond to changes in each other more strongly than layers further apart, in almost every network. This locality forms during training, although training links every layer to every other. We show this by pushing one layer of a copy of the network at many stages of training and measuring how much of the push reaches each of the other layers. The experiments use 512 five-layer networks trained on modular addition with each of two optimizers, AdamW and stochastic gradient Langevin dynamics.
BibTeX
@misc{lee2026preference,
  author = {Jiheon Lee},
  title = {{A preference for local interaction between layers emerges during training}},
  year = {2026},
  eprint = {2611.27258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.27258},
}
Figure