In decentralized learning, devices train a shared task by talking only to their neighbors in a communication graph. There is no central server. How fast they learn depends on the shape of that graph. When all devices run the same neural network, a neighbor's weights can simply be averaged in. When devices run different networks, which happens as soon as a phone, a hospital server and a microcontroller take part, many edges can no longer carry weight averages. Those edges can only carry distillation: one model learns to imitate another's predictions on some data. That is a weaker and costlier channel. The graph the devices are wired into is therefore not the graph along which knowledge actually flows.
This note proposes to measure and design that second graph directly. Each edge is discounted by how much learning it actually transfers: full weight for exact averaging, partial weight for averaging over a shared sub-network, and a measured, smaller weight for distillation. The discounted graph gets its own "effective number of neighbors," a local measure of how much collaborating reduces a device's gradient noise. The claim is that this quantity predicts training speed in mixed-architecture networks, where the classical global connectivity measures do not. A second claim is that a topology chosen to maximize it under a latency and message budget beats existing designs. To make that choice feasible on thousands of devices, we use scalable graph coarsening.
Core Claim
Two strands of prior work motivate the claim.
The first is about which topology measure matters. Classical analyses such as Distributed Dual Averaging In Networks and A Unified and Refined Convergence Analysis for Non-Convex Decentralized Learning tie convergence to the spectral gap, a single number describing how fast information mixes across the whole graph. Beyond spectral gap showed empirically that this number barely predicts deep-learning training loss. Its replacement, the effective number of neighbors $n_W$, measures how a random walk over the graph averages away local gradient noise, and it does predict. That analysis assumes identical models and IID data.
The second strand is about how heterogeneous-model decentralized systems handle topology. DFML pairs peers at random and distills on the receiver's private data. ProxyFL gossips an identical proxy model over a fixed exponential graph. Multi-Headed Distillation propagates knowledge hop by hop, using public data and one auxiliary head per hop. None of the three asks which edges should exist or what kind of exchange each edge should carry.
The contribution is to extend $n_W$ to graphs with typed edges. Let $W$ be the mixing weights of the physical communication graph, and let $a(i)$ be the architecture of device $i$. We define a discounted mixing matrix
$$\tilde W_{ij} = \kappa_{a(i),a(j)}\, W_{ij} \quad (i \neq j), \qquad \tilde W_{ii} = 1 - \sum_{j \neq i} \tilde W_{ij},$$
The transfer coefficient $\kappa$ is set as follows. It equals 1 for identical architectures. It equals the shared-parameter fraction for width-nested pairs averaged HeteroFL-style on their common core. For pairs that can only distill, it is an empirically estimated value in $(0,1)$. Vogels et al.'s $n_W$ computed on $\tilde W$ is the quantity we call mixed $n_W$.
We make two predictions. First, mixed $n_W$ ranks topologies by time-to-accuracy far better than either the spectral gap of $W$ or the $n_W$ of the averaging-only subgraph. Second, maximizing mixed $n_W$ under a wall-clock budget produces a specific structure. It forms dense averaging communities of compatible architectures that are also label-representative, and links them by a small number of distillation bridges. It does not spread distillation uniformly. The fact that we use a measured discount per edge type, rather than treating every edge as equal, separates this from D-Cliques and from DFML.
Research Program
Estimating the transfer coefficients. The first piece of work estimates $\kappa$. For each architecture pair, a small pilot runs one node alongside a single neighbor under three conditions: averaging (where possible), core-only averaging, and DFML-style mutual distillation on private batches. We record the reduction in steps to a target loss relative to isolated training. We convert this to an equivalent fraction of an averaging neighbor, following the logic Vogels et al. use on random quadratics, where a neighbor's value is its contribution to variance reduction.
This step is a hypothesis, not a given. If $\kappa$ turns out to vary strongly with training phase or data skew, a single scalar per pair is too crude. We would then report a phase-dependent $\kappa$ or abandon the scalar form.
Choosing the topology. The second piece is the topology construction. We start from a physical latency graph among $N$ devices, since real links have unequal delays, as Bottleneck Communication Delay Minimization emphasizes. We then choose a set of edges and their types to maximize mixed $n_W$ subject to two constraints. The per-round wall-clock time is set by the slowest link used. Each community's pooled label distribution must stay close to the global one; this is D-Cliques' representativeness objective, which covers non-IID data, the case Vogels et al.'s theory leaves open.
Solving this directly on 10^4 nodes is combinatorial. D-Cliques' greedy swap is centralized and does not scale in this form. We therefore use PASCO, which coarsens a graph several times at random, clusters each small graph, lifts the partitions back and fuses them with optimal transport. We apply it to a node-attributed latency graph and solve the placement on the coarse super-nodes. Community detection is the tool here, not the object of study. PASCO has only ever been evaluated as static graph clustering, and we test whether its speed survives the added label and architecture constraints.
Theory. The third piece is limited theory. For smooth convex objectives with IID data, we will try to show that D-SGD run over typed edges, with distillation modeled as a noisy, attenuated averaging step, obeys a Vogels-style rate with $n_W$ replaced by mixed $n_W$. We do not promise a non-convex result.
Baselines
The naive reference point is isolated local training under the same data split. Every collaborative method must beat it, and a mixed-architecture scheme that does not beat it by much is not worth deploying.
The first strong baseline is lowest-common-denominator D-Cliques: D-Cliques with every device forced onto the smallest architecture. This is the best existing topology design for skewed data. Under one-class-per-node skew on CIFAR-10 it reports reaching about 70% accuracy, while ring and grid topologies struggle to exceed 50% in the same time. It also reports using 98% fewer edges than a fully connected graph at 1000 nodes. We run it with the same message budget and the same tuning budget per method. Beating it means higher final accuracy on large-capacity devices at equal wall-clock time, without losing accuracy on the smallest devices.
The strongest heterogeneous competitor is DFML with random pairing. It reports +19.95% global accuracy over decentralized FedAvg on non-IID CIFAR-100 with 50 clients. We run it on identical splits and architecture mixes, with the per-round distillation compute capped to match ours. Beating it means reaching its final accuracy in fewer rounds, or exceeding it at equal messages.
We also include ProxyFL, which reports 0.808 accuracy against 0.734 for local training on Camelyon-17. We give its proxy model the smallest architecture in the mix and charge its memory overhead in the system cost.
The key ablations isolate each ingredient. The first keeps our communities but sets $\kappa = 1$ for every edge, which tests whether the discount matters. The second keeps typed edges but uses random communities, which tests whether PASCO-based placement matters. The third maximizes the spectral gap of the physical graph instead of mixed $n_W$, which tests the classical design rule.
A centralized reference, HeteroFL, reports 61.64% global accuracy against FedAvg's 58.99% on non-IID CIFAR-10. It is reported as an upper-bound comparison for width-nested mixes, not as a decentralized competitor.
Why not just…?
Why not just group devices by architecture label and run D-Cliques inside each group, with random distillation bridges between groups? This is the most serious threat. When latencies are uniform it is roughly what our objective should produce anyway. Our proposal differs in two places. It sets the number and placement of bridges by their measured $\kappa$, not at random. And it trades architecture purity against link latency when the two conflict: compatible devices may be far apart, and grouping them may make the slowest link much slower. We run this heuristic as a named baseline under both uniform and geographically skewed latency. If it matches us under skewed latency too, the coarsening component adds nothing, and we will say so. The measurement claim, that mixed $n_W$ predicts speed, would stand on its own.
Why not just force everyone onto the smallest model? HeteroFL's own numbers show the cost. Its smallest sub-network reached 77% accuracy standalone but over 90% when trained within the heterogeneous scheme. DFML's ablations found that larger models enrich the shared knowledge. Our lowest-common-denominator D-Cliques baseline measures this cost directly in the decentralized setting.
Why not just maximize the spectral gap, the standard design target? Vogels et al. found that the spectral gap has almost no predictive correlation with training loss, and that a ring outperforms a star despite the star's better gap. Unified Analyses for Hierarchical FL finds a similar ordering: about 91.5% for Ring-Ring against about 88.5% for Star-Star on CIFAR-10. The spectral-gap ablation tests whether this failure carries over to mixed-architecture graphs.
Why not just use a shared proxy model like ProxyFL? The proxy doubles on-device memory and compute. It also limits how much large models can pass to each other, because everything they share must squeeze through the smallest network. We charge the proxy's memory cost in the comparison. If ProxyFL still wins at equal compute, that result weakens the case for typed edges.
Proposed Experiments
Correlation test. This is the decisive experiment. On CIFAR-10 and CIFAR-100 with Dirichlet and one-class-per-node splits, we generate a few dozen topologies over 32 to 256 simulated devices. The architecture mixes are width-nested PreResNet18 slices plus a CNN and ViT mix. For each topology we compute three quantities: mixed $n_W$, the spectral gap of the physical graph, and averaging-only $n_W$. We then correlate each with time-to-target accuracy. The claim fails if mixed $n_W$ does not beat the other two in rank correlation.
Transfer to deployment. We compare the placement rule against all baselines at 1000 devices, matching D-Cliques' scale. We report final accuracy per architecture tier, accuracy at fixed wall-clock under a synthetic geographic latency graph, messages sent and on-device compute. We add Camelyon-17 as a realistic hospital-network case in which data cannot be made public.
Scaling test. We run the placement step with PASCO on latency graphs of 10^3 to 10^5 nodes. We also run it on OGB arxiv and products treated as physical graphs, where PASCO with spectral clustering reports up to 70x speedups. We measure placement time and how much mixed $n_W$ is lost relative to D-Cliques' greedy swap on sizes where the swap is still tractable.
Two outcomes would each be informative. A strong correlation combined with no advantage over the architecture-label heuristic would mean the insight is right but coarsening is unnecessary. A weak correlation would mean that distillation edges do not behave like attenuated averaging edges at all, and that decentralized distillation needs its own theory.
References
- Distributed Dual Averaging In Networks
- A Unified and Refined Convergence Analysis for Non-Convex Decentralized Learning
- Beyond spectral gap: the role of the topology in decentralized learning
- DFML: Decentralized Federated Mutual Learning
- Decentralized federated learning through proxy model sharing
- Decentralized Learning with Multi-Headed Distillation
- Bottleneck Communication Delay Minimization for Communication-Efficient Decentralized Learning
- PASCO (PArallel Structured COarsening): an overlay to speed up graph clustering algorithms
- D-Cliques: Compensating for Data Heterogeneity with Topology in Decentralized Federated Learning
- HeteroFL: Computation and Communication Efficient Federated Learning for Heterogeneous Clients
- Unified Analyses for Hierarchical Federated Learning: Topology Selection under Data Heterogeneity