Abstract
Scaling deep learning models to handle trillions of parameters and massive auxiliary datasets, such as 10-billion-node graphs, presents significant computational bottlenecks. Traditional synchronous training frameworks struggle with the overhead of dynamic knowledge generation and memory constraints. We present CARLS (Cross-platform Asynchronous Representation Learning System), a distributed framework that decouples model training from knowledge-intensive tasks. By utilizing asynchronous execution across heterogeneous hardware, CARLS enables efficient training for complex multimodal and graph-based tasks without compromising training speed or model stability.
Introduction
As deep learning models continue to grow in scale, they encounter a "monolithic wall" where traditional frameworks fail to efficiently manage auxiliary, dynamic information. Paradigms like Graph Neural Networks (GNNs) or semi-supervised learning require frequent updates to neighborhood embeddings or pseudo-labels. In standard setups, the computational cost of these updates scales linearly with data size, often causing training throughput to plummet. Furthermore, hardware limitations prevent single devices from hosting both massive model parameters and the sprawling embedding tables required for large-scale knowledge representation.
System Architecture
CARLS addresses these challenges by introducing a modular, asynchronous architecture that separates the core training logic from knowledge generation and storage.
The system consists of three primary components:
- Model Trainer: The central engine that updates model parameters. It fetches augmented information from the Knowledge Bank as needed.
- Knowledge Maker: Independent workers that utilize model checkpoints to perform inference on auxiliary data or discover new relationships (e.g., nearest neighbor searches).
- Knowledge Bank: A distributed memory layer that stores and refreshes information generated by the makers, serving as a bridge between trainers and makers.
Technical Innovations
- Asynchronous Execution: Components operate independently. Knowledge Makers can update the Bank using slightly older checkpoints without blocking the Trainer, maintaining high hardware utilization.
- Lazy Updates: To mitigate the effects of stale data, CARLS employs a lazy update scheme that caches and averages gradients, stabilizing the learning process.
- Cross-Platform Flexibility: The framework supports heterogeneous hardware, allowing heavy tensor operations to run on TPUs while offloading sparse embedding lookups to CPU-based clusters.
Applications and Large-Scale Validation
CARLS has been validated across several computationally intensive scenarios, demonstrating its ability to handle "unlimited" sparse feature sets by moving them to dedicated Knowledge Banks.
Key application areas include:
- Graph-based Learning: The system scales to graphs exceeding 10 billion nodes, where each node is processed via complex kernels like BERT.
- Multimodal Learning: For image-text "two-tower" models, CARLS manages massive embedding lookups required for contrastive loss functions.
- Semi-Supervised Learning: It enables online label mining from unlabeled datasets to refine model predictions during the training process.
Key Results and Insights
CARLS achieves logic-level parallelism by separating "thinking" (training) from "remembering" (knowledge generation). Experimental results show that the system can train graph-regularized models with neighbor sizes ten times larger than previously reported in literature without a reduction in training speed. While the asynchronous nature introduces a trade-off regarding data freshness, the impact of slightly outdated knowledge was found to be controllable and did not significantly degrade modeling accuracy.
Conclusion and Future Work
By decoupling memory from model structure, CARLS allows representations to evolve dynamically during training. This ensures that the auxiliary knowledge the model relies on improves alongside the model itself. Future work will focus on expanding supported learning paradigms, streamlining APIs for distributed setup, and enhancing automated support for heterogeneous hardware to further optimize performance.
CARLS is currently integrated into the Neural Structured Learning framework within TensorFlow, providing a scalable solution for the next generation of massive-scale deep learning models.
Summary updated