Abstract
We perform a massive evaluation of neural networks with architectures corresponding to random graphs of various types. We investigate various structural and numerical properties of the graphs in relation to neural network test accuracy. We find that none of the classical numerical graph invariants by itself allows to single out the best networks. Consequently, we introduce a new numerical graph characteristic that selects a set of quasi-1-dimensional (Q1D) graphs, which are a majority among the best performing networks. We also find that networks with primarily short-range connections perform better than networks which allow for many long-range connections. Moreover, many resolution reducing pathways are beneficial. We provide a dataset of 1020 graphs and the test accuracies of their corresponding neural networks.
Introduction
Modern deep learning architectures like ResNet or EfficientNet are typically the product of manual design or automated Neural Architecture Search (NAS). While these methods are effective at finding high-performing models, they often fail to provide a theoretical understanding of why specific wiring patterns succeed. This research explores the relationship between graph-theoretical properties and neural network performance by evaluating over 1,000 architectures derived from diverse random graph families, bridging the gap between rigid artificial designs and the semi-random structures found in biological brains.
Methodology: Mapping Graphs to Networks
To systematically study architecture, we map directed acyclic graphs (DAGs) to functional neural networks. Each node in the graph represents a specific sequence of operations: a ReLU activation, followed by a 3x3 convolution, and finally batch normalization.
Edges in the graph represent the flow of data. When multiple edges enter a node, the incoming feature maps are aggregated via a weighted sum. To ensure a logical flow of information, undirected random graphs are converted into DAGs using a 2D spring-layout embedding (Kamada-Kawai), which establishes a natural geometric ordering for the nodes. The study utilizes a wide range of graph families, including classical models (Erdős-Rényi, Barabási-Albert, Watts-Strogatz), biological data from human fMRI matrices, and novel random DAG generators.
Key Insights: The Failure of Classical Metrics
A primary finding is that standard graph-theoretical invariants—such as the Wiener index, minimum path length, or closeness centrality—are insufficient for identifying high-performing architectures. While these metrics can often identify the worst-performing networks, they lack the resolution to distinguish the "best" from the "average."
As shown in the figure above, the top-performing networks (indicated by red dots) do not cluster at the extremes of these classical metrics, suggesting that more nuanced structural properties are at play.
The Quasi-1-Dimensional (Q1D) Signature
The researchers identified a specific structural property shared by the majority of top-performing networks: Quasi-1-Dimensionality (Q1D). Q1D graphs are characterized by a globally elongated structure (high PCA elongation) combined with a lack of "bottleneck" edges.
Key observations regarding Q1D architectures include:
- Dominance: 68% of the top 50 performing networks met the Q1D criteria, whereas none of the bottom 50 did.
- Short-Range Connectivity: Contrary to the intuition that long-range "skip connections" are always beneficial, the best networks favored short-range connections. Long-range edges in these random topologies often appeared to interfere with the hierarchical processing of visual information.
- Parallel Pathways: Architectures that avoid narrow bottlenecks by providing multiple parallel pathways between resolution stages consistently outperformed those with single "gateway" connections.
Conclusion
This large-scale study demonstrates that the internal "tangle" of a network's connections is a more powerful predictor of performance than simple depth and width. The emergence of Q1D structures as a winning pattern suggests that optimal neural architectures should balance global order with local complexity, avoiding restrictive bottlenecks while maintaining a clear hierarchical flow. The released dataset of 1,020 graphs serves as a benchmark for further exploration into the graph theory of deep learning.
Summary updated