Introduction
Deep learning models are continually improving in accuracy, but they are also growing heavier. For mobile and edge devices, we need models that are both highly accurate and incredibly fast. The Collaboration of Experts (CoE) framework achieves a major milestone in mobile computer vision by addressing this exact need: it reaches 80.0% Top-1 accuracy on ImageNet with only 100M FLOPs.
Existing solutions for lightweight or dynamic computation have significant drawbacks:
- Ensembles: Running multiple models and voting is accurate but slow because every model must be executed.
- Dynamic Convolutions: These adjust kernels on the fly, but they suffer from high Memory Access Cost (MAC) and low parallelism. They often run much slower on actual hardware than their low FLOP (Floating Point Operations) count suggests.
- Conditional Computation: Methods like Mixture of Experts often use "gate-value" optimization, which can be unstable or lead to "lazy" experts that fail to specialize effectively.
The CoE framework is designed to be "hardware-friendly"—minimizing memory overhead and maximizing parallelism—while pushing the boundaries of accuracy-per-FLOP. By using a lightweight "delegator" to route samples to specialized "expert" networks and enabling early termination for easy images, CoE delivers state-of-the-art performance and remains 3–6x faster than previous conditional computation methods on actual hardware.
The CoE Framework
The CoE framework consists of one Delegator and multiple specialized Experts.
The Inference Flow
During inference, the system is designed to minimize unnecessary computation while maximizing accuracy for difficult samples.
- Rough Prediction: The lightweight Delegator processes the input image first.
- Early Termination: If the Delegator is confident in its rough prediction (i.e., it has a high "Maximum Class Probability"), it returns the result immediately. This saves the computational cost of running an expert on an "easy" image.
- Expert Selection: If the Delegator is unsure, it selects exactly one specialized Expert to perform a "refined prediction."
The Training Secret Sauce
Training this system is tricky. The Delegator needs to know which Expert is best suited for which image, but this isn't known a priori. To solve this, the authors propose a novel training algorithm utilizing two key modules:
- Label Generation Module (LGM): This module determines which expert should have handled a sample by solving a Balanced Transportation Problem (BTP). This ensures that every expert is assigned an equal share of the training data, preventing a single "super-expert" from taking over and leaving the others undertrained.
- Weight Generation Module (WGM): To prevent the Delegator from overfitting to noisy labels early in training, the WGM reweights expert losses based on the Delegator’s current "belief." This creates a "co-adaptation" loop where experts specialize on the specific subsets of data the Delegator is likely to send them.
Key Insights
- FLOPs vs. Latency: The authors emphasize that low FLOPs do not always equate to high speed. By selecting a whole model (an Expert) rather than just dynamic layers, CoE keeps the ratio of Memory Access to FLOPs constant, which is much better for hardware caches.
- The "No Superiority" Assumption: The LGM assumes no expert is inherently better than another. By standardizing the "True Class Probability" (TCP) across experts, the framework forces specialization based on suitability rather than raw predictive power.
- Bridging the Gap with WGM: Direct partitioning of data based on expert performance often leads to poor generalization. Using the Delegator as a "bridge" via the WGM ensures the experts learn patterns that the Delegator can actually recognize and route during inference.
Key Results
- ImageNet Milestone: CoE reached 80.0% Top-1 accuracy at 100M FLOPs (when combined with the PWLU activation function and CondConv). For context, a standard MobileNetV3-Large achieves ~75.2% with over 200M FLOPs.
- Hardware Speedup: On a standard CPU, CoE is 3.1x faster than BasisNet (a state-of-the-art dynamic method) while maintaining similar accuracy.
- Translation Task: Demonstrating generalizability beyond vision, a "CoE-Transformer" applied to the WMT 2014 English-German dataset outperformed the standard Transformer-Base by a large margin and matched the performance of Transformer-Big, all while using significantly fewer parameters and MAC.
- Interpretability: Qualitative analysis showed the Delegator learned logical routing. For example, in a "meat market" category, it routed images containing humans to one specific expert and images of just meat to another.
Limitations and Future Work
While highly efficient at inference, CoE is more expensive to train than a single model. The authors note that applying CoE (with 4 experts) to an OFA-230 model improved accuracy but increased training cost by about 2.2x.
Looking forward, while the paper focuses on mobile-scale models, the authors suggest that CoE could eventually be scaled to "trillion-parameter" models. Furthermore, the modular nature of CoE makes it a strong candidate for lifelong learning, where new experts could theoretically be added to handle new types of data without retraining the entire system.
Summary updated