spot_img
HomeResearch & DevelopmentPubSub-VFL: Enhancing Collaborative AI Training Efficiency with a Publisher/Subscriber...

PubSub-VFL: Enhancing Collaborative AI Training Efficiency with a Publisher/Subscriber Architecture

TLDR: PubSub-VFL is a new framework for Vertical Federated Learning (VFL) that addresses inefficiencies in two-party collaborative AI training. It uses a Publisher/Subscriber architecture and a hierarchical asynchronous mechanism to decouple training tasks and reduce latency. An optimization model helps balance computational load in heterogeneous environments. Experiments show PubSub-VFL accelerates training by 2-7x, achieves up to 91.07% CPU utilization, and maintains accuracy and privacy compared to existing methods.

In today’s fast-paced digital economy, organizations are increasingly looking to collaborate on data to train powerful Machine Learning (ML) models. This collaboration drives innovation across various sectors, from autonomous driving to healthcare and e-commerce. However, the sensitive nature of data and strict privacy regulations like GDPR make direct data sharing a significant challenge. This is where Vertical Federated Learning (VFL), also known as Two-Party Split Learning, steps in as a promising solution.

VFL allows multiple parties to collaboratively train an ML model without ever directly sharing their raw data. Imagine a bank and an insurance company wanting to predict a customer’s credit score. The bank has financial records, and the insurance company has car accident reports – both for the same individuals but in different feature spaces. VFL enables them to combine their insights securely, exchanging only intermediate results rather than sensitive raw data.

Despite its advantages, traditional VFL architectures have faced hurdles. They often suffer from low computational resource utilization and inefficient training. A major bottleneck is their synchronous design, where parties often have to wait for each other, leading to increased training latency. Furthermore, differences in computing resources and data characteristics among participants, known as heterogeneity, can further slow down the process and underutilize overall computational power.

Introducing PubSub-VFL: A New Approach to Efficient Collaborative Learning

To tackle these challenges, researchers from City University of Hong Kong and ByteDance Inc. have proposed a novel VFL framework called PubSub-VFL. This innovative system leverages a Publisher/Subscriber (Pub/Sub) architecture, combined with a hierarchical asynchronous mechanism, to significantly boost computational efficiency in two-party collaborative learning environments. The core idea behind PubSub-VFL is to decouple the data ID alignment task from the actual training process, allowing different parts of the system to operate more independently and asynchronously.

How PubSub-VFL Works

At its heart, PubSub-VFL employs a Pub/Sub architecture, a common design pattern in software systems that separates message senders (publishers) from message receivers (subscribers). In this context, it means that the parties involved in training can send and receive intermediate results (like data embeddings and gradients) without needing to be tightly synchronized. This is facilitated by dedicated “embedding channels” and “gradient channels,” each labeled with a unique batch ID to ensure that the correct data is matched across parties.

To prevent congestion and ensure smooth operation, PubSub-VFL includes smart mechanisms:

  • Buffer Mechanism: Each channel has a buffer that can store a limited number of embeddings or gradients. If the buffer fills up, the oldest data is discarded, preventing stale information from affecting training.
  • Waiting Deadline Mechanism: If a party doesn’t receive the expected data within a set time, it discards the current batch and notifies the other party to move on, reassigning the batch for retraining later.

Beyond inter-party asynchronous communication, PubSub-VFL also introduces an “intra-party semi-asynchronous mechanism.” This means that even within a single organization, the communication between its central parameter server and its individual workers is adaptively synchronized. The synchronization interval adjusts as the model trains, allowing for faster initial learning and then more precise fine-tuning as accuracy improves.

Privacy is paramount in VFL, and PubSub-VFL integrates the Gaussian Differential Privacy (GDP) protocol. This protocol adds carefully calibrated noise to the exchanged embeddings, protecting sensitive information from potential inference attacks without significantly compromising model utility. The paper also provides a theoretical analysis demonstrating that PubSub-VFL achieves stable convergence even with these privacy safeguards.

Optimizing for Performance in Diverse Environments

One of PubSub-VFL’s key strengths is its ability to handle resource and data heterogeneity. Since parties often have different computing power and varying data dimensions, simply increasing parallel processing isn’t enough. PubSub-VFL addresses this through a “system profiling” phase, where it gathers information about each party’s model characteristics and hardware capabilities. This data is then fed into an optimization model that uses a dynamic programming algorithm to determine the ideal hyperparameters, such as the number of workers and batch size, for each party. This intelligent allocation ensures a balanced workload, minimizes latency, and maximizes overall efficiency while respecting privacy constraints.

Also Read:

Impressive Results

Extensive experiments on five benchmark datasets, including both regression and classification tasks, have validated PubSub-VFL’s effectiveness. Compared to state-of-the-art baselines, PubSub-VFL:

  • Accelerates training by 2 to 7 times without sacrificing accuracy.
  • Achieves a computational resource utilization rate of up to 91.07%.
  • Demonstrates superior performance in scenarios with heterogeneous resources and data distributions, effectively balancing computational loads.
  • Maintains strong performance and effectively defends against embedding inversion attacks even with differential privacy protocols enabled.

These results highlight PubSub-VFL as a significant advancement in secure and efficient collaborative learning. While currently designed for two-party learning, the architectural principles suggest potential for future expansion to multi-party scenarios. For more in-depth technical details, you can refer to the full research paper here.

Karthik Mehta
Karthik Mehtahttps://blogs.edgentiq.com
Karthik Mehta is a data journalist known for his data-rich, insightful coverage of AI news and developments. Armed with a degree in Data Science from IIT Bombay and years of newsroom experience, Karthik merges storytelling with metrics to surface deeper narratives in AI-related events. His writing cuts through hype, revealing the real-world impact of Generative AI on industries, policy, and society. You can reach him out at: [email protected]

- Advertisement -

spot_img

Gen AI News and Updates

spot_img

- Advertisement -