[Paper Review] CoCoFL: Communication- and Computation-Aware Federated Learning via Partial NN Freezing and Quantization
CoCoFL proposes a communication- and computation-aware federated learning framework that maintains full neural network structure on all devices while selectively freezing and quantizing layers to reduce resource usage. By enabling constrained devices to train more blocks through quantization and fusion, CoCoFL achieves up to 14.9 p.p. higher accuracy than state-of-the-art methods, especially in non-IID settings, ensuring fairness and improved model performance.
Devices participating in federated learning (FL) typically have heterogeneous communication, computation, and memory resources. However, in synchronous FL, all devices need to finish training by the same deadline dictated by the server. Our results show that training a smaller subset of the neural network (NN) at constrained devices, i.e., dropping neurons/filters as proposed by state of the art, is inefficient, preventing these devices to make an effective contribution to the model. This causes unfairness w.r.t the achievable accuracies of constrained devices, especially in cases with a skewed distribution of class labels across devices. We present a novel FL technique, CoCoFL, which maintains the full NN structure on all devices. To adapt to the devices' heterogeneous resources, CoCoFL freezes and quantizes selected layers, reducing communication, computation, and memory requirements, whereas other layers are still trained in full precision, enabling to reach a high accuracy. Thereby, CoCoFL efficiently utilizes the available resources on devices and allows constrained devices to make a significant contribution to the FL system, increasing fairness among participants (accuracy parity) and significantly improving the final accuracy of the model.
Motivation & Objective
- To address fairness in federated learning by ensuring constrained devices with limited resources contribute meaningfully to model training.
- To overcome the limitations of existing subset-based methods that reduce model complexity on low-capability devices, leading to poor accuracy and unfairness.
- To enable high-accuracy training on devices with heterogeneous communication, computation, and memory constraints by preserving full model structure while optimizing resource usage.
- To improve final model accuracy in non-iid data settings, where skewed label distributions typically hurt performance of conventional approaches.
- To develop a server-independent, heuristic-based layer selection mechanism that adapts to local device constraints at runtime.
Proposed method
- CoCoFL maintains the full neural network architecture on all devices, avoiding model pruning or subset training.
- It selectively freezes layers on constrained devices to reduce gradient computation, activation storage, and parameter update size.
- Frozen layers are quantized (e.g., to 8-bit integers) to further reduce computation and memory usage.
- Trained layers remain in full precision to preserve learning capacity and model accuracy.
- A device-agnostic heuristic selects frozen and quantized layers at runtime based on pre-profiled performance data (computation, communication, memory) from design-time profiling.
- The framework supports both quantized frozen layers (QFF) and fused frozen layers (FF), with fusion reducing memory and computation further.
Experimental results
Research questions
- RQ1Can a federated learning system maintain high accuracy across devices with heterogeneous resources without reducing model complexity?
- RQ2Does quantizing and freezing selected layers improve the contribution of constrained devices in non-iid data settings?
- RQ3Can a server-independent, device-adaptive layer selection strategy effectively balance resource usage and model accuracy?
- RQ4How do quantization and layer fusion impact the trade-off between resource savings and accuracy degradation?
- RQ5To what extent does CoCoFL outperform state-of-the-art subset-based methods in terms of final model accuracy and fairness?
Key findings
- CoCoFL achieves up to 14.9 percentage points higher final accuracy than the baseline CoCoFL^F when the device constraint is l=0.4, demonstrating significant performance gains.
- With a constraint of l=0.25, CoCoFL^QFF achieves a 6.5 percentage point accuracy increase over CoCoFL^FF, showing the benefit of quantization and fusion.
- The error introduced by quantization and layer fusion is negligible, with a maximum error of 2.3 p.p. in accuracy when gains are not utilized.
- Quantization and fusion allow limited devices to train more trainable blocks under the same resource constraints, directly improving model accuracy.
- The accuracy gains from increased training capacity outweigh the small errors introduced by quantization, especially when device constraints are tight.
- When device constraints approach full resources (l≈1.0), the benefits of quantization and fusion diminish, and minor accuracy losses may occur due to quantization error.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.