Deep learning models called residual networks have transformed computer vision tasks like image recognition, but exactly how they process information inside remains a bit of a mystery. A newly published research paper sheds light on this by exploring how these networks behave when their building blocks are applied multiple times in a refined way—without retraining the model. This approach reveals how residual networks transport and transform visual features layer by layer, offering fresh insights into their inner workings and raising interesting possibilities for future AI design.
Key Takeaways
- Applying each residual block multiple times with smaller steps (called extra Euler steps) only slightly reduces image classification accuracy on standard benchmarks, showing these blocks behave like individual differential equation solvers rather than one smooth process across layers.
- Refining the step size within each block maintains high accuracy, but changing the overall integration horizon or smoothly interpolating weights between blocks drastically lowers performance.
- In one popular model (ConvNeXt-T), each block in a stage modifies features in nearly orthogonal directions, meaning later blocks don’t undo earlier transformations, causing sharp changes at block boundaries.
- When the same weights are shared across blocks in a stage, the feature transformation becomes smoother and more continuous, allowing a smaller model with fewer parameters and only a minor drop in accuracy.
Residual networks are built from blocks that add a learned transformation to their input, mathematically resembling a single step in solving an ordinary differential equation (ODE) using a method called Euler’s method. However, whether the whole network acts like a continuous ODE solver over many layers has been debated. To investigate this, the researchers used a clever technique: instead of running each block once, they ran each block multiple times with smaller step sizes—like zooming in on the transformation it performs—without changing the model weights or retraining.
This “extra Euler steps” method keeps the total “integration horizon” (the overall effect across the block) the same but increases the resolution of the transformation. By doing this on different models such as ConvNeXt, Swin, and ResNet, the team found that the network’s accuracy dropped by less than one percentage point on ImageNet classification, even when increasing the refinement 128-fold. This suggests that each block behaves like its own ODE solver, rather than the whole stage being a single ODE with smoothly changing weights.
They also explored what happens when weights are interpolated between blocks or when the integration horizon is changed. Both led to large accuracy drops, indicating that the network relies on discrete steps rather than a smooth continuous process. Looking deeper into ConvNeXt-T, the researchers found that the nine blocks in one stage modify features in directions that are almost orthogonal, meaning each block’s transformation is unique and not reversed later. This causes the feature path to sharply “turn” at each block boundary.
Interestingly, when the nine blocks share the same weights—a technique called weight tying—the stage’s feature transformation becomes a smoother, more continuous flow. This weight-tied version uses about 34% fewer parameters and experiences only a small drop in accuracy (around 1.4 percentage points). Moreover, intermediate feature states become more informative earlier in the network, suggesting a more gradual feature evolution.
The study’s approach requires no retraining and can be applied to probe existing trained models, making it a useful tool for understanding complex AI systems. While this work focused on vision models, the authors note that transformer-based language models, especially those with looped architectures, represent a natural next step for applying these insights.
By revealing how residual networks process information more like a sequence of discrete steps rather than a smooth continuous transformation, this research helps clarify the dynamics inside some of today’s most powerful AI models. Understanding these inner workings can guide the development of more efficient architectures and inspire new ways to control and interpret AI behavior in real-world applications.
Based on research published on arXiv by Jaume Ivars Grimalt.
