Inferensys

Glossary

Label Space

In Vertical Federated Learning (VFL), the label space is the set of target values or output variables, which are typically held exclusively by a single participant known as the label owner.
AI evaluator reviewing output quality on laptop, comparison metrics visible, casual evaluation session.
VERTICAL FEDERATED LEARNING

What is Label Space?

In Vertical Federated Learning (VFL), the label space is a core concept defining the target variable for a machine learning task, which is held exclusively by one participant.

Label space refers to the complete set of possible target values or output variables (e.g., 'fraud'/'not fraud', sales amounts, diagnostic categories) in a supervised learning problem. In Vertical Federated Learning (VFL), this space is uniquely owned by a single party, the label owner, while the corresponding input features are distributed across other feature owners. This separation creates the fundamental collaborative structure of VFL, where parties with different data attributes must work together without exposing their raw data.

The security and orchestration of the VFL process are heavily dictated by the label space's ownership. The label owner typically initiates training, computes the final loss, and coordinates the secure aggregation of gradients or intermediate outputs from feature owners. Protecting the privacy of both the label values and the distributed features during this exchange is paramount, often enforced via cryptographic protocols like homomorphic encryption or secure multi-party computation (MPC) to prevent data reconstruction.

DEFINITIONAL ATTRIBUTES

Key Characteristics of Label Space in VFL

In Vertical Federated Learning, the label space is the set of target values for prediction, uniquely held by a single coordinating party. Its characteristics define the system's architecture, security model, and training dynamics.

01

Centralized Ownership

The label space is exclusively held by a single party, known as the label owner or active party. This centralizes orchestration and loss calculation. All other participants are feature owners (passive parties) who hold subsets of the input features. This asymmetry creates a client-server-like topology where the label owner typically acts as the server, coordinating the training rounds and aggregating updates from feature owners.

02

Architectural Anchor for Model Splitting

The physical location of the label space determines the cut layer in a split neural network. The model is divided so that:

  • Feature owners compute the forward pass up to the cut layer on their local features, producing intermediate outputs (embeddings).
  • These outputs are sent to the label owner, which holds the latter layers of the model that consume the embeddings and compute the final prediction against the local labels. This split ensures raw features and raw labels are never exchanged, only mathematically transformed intermediate values.
03

Primary Source of Privacy Risk

The label space is a high-value target and a potential leakage point. Adversaries may attempt:

  • Label Inference Attacks: A malicious feature owner could use repeated intermediate outputs and the resulting gradient updates from the label owner to infer the private labels.
  • Property Inference Attacks: To deduce statistical properties of the label distribution. Defenses are architected around the label owner, employing homomorphic encryption for received embeddings or differential privacy by adding noise to its gradient broadcasts to protect the label space.
04

Orchestrator of the Training Protocol

The label owner executes the core vertical training protocol:

  1. Initiation: Broadcasts the initial model architecture and public keys (if using encryption).
  2. Coordination: Manages the synchronized forward and backward passes across parties.
  3. Loss & Gradient Calculation: Computes the loss function using its local labels and calculates gradients for its portion of the model.
  4. Aggregation & Update: Securely aggregates gradients from feature owners (e.g., via secure aggregation) and updates the global model. This central role is distinct from Horizontal FL, where the server typically holds no data.
05

Determinant of Problem Type

The nature of the label space defines the machine learning task for the entire VFL system:

  • Binary Classification: Label space is {0, 1}.
  • Multi-class Classification: Label space is a set of C discrete classes.
  • Regression: Label space is a continuous range R. The choice of final activation function (e.g., sigmoid, softmax, linear) and loss function (e.g., BCE, cross-entropy, MSE) is implemented by the label owner, directly impacting the gradients propagated back to feature owners.
06

Bottleneck for Entity Alignment

Before training begins, the aligned entity space must be established. The label owner's sample IDs (e.g., user IDs) form the basis for this alignment. Using protocols like Private Set Intersection (PSI), the label owner and each feature owner confidentially discover their common samples without revealing their full ID lists. Only data for these intersected entities participates in training. The size and quality of this intersection directly limit the effective training dataset size.

VERTICAL FEDERATED LEARNING

The Role of Label Space in VFL Training

In Vertical Federated Learning (VFL), the label space is a critical, centralized component that dictates the learning objective and orchestrates the collaborative training process across distributed feature owners.

The label space is the complete set of target values or output variables for the aligned entities in a VFL system. It is exclusively held by a single label owner, who uses it to calculate loss and initiate backpropagation. This centralizes the learning objective, as feature owners possess only input data and lack the labels needed for supervised training. The label owner's role is therefore pivotal, acting as the computational anchor that drives the global model's convergence by securely coordinating gradient flows.

During training, feature owners compute intermediate outputs from their local model segments and encrypted features. These are sent to the label owner, who combines them to complete the forward pass, computes the loss against its private labels, and calculates gradients. These gradients are then propagated back to the feature owners to update their respective model parts. This process ensures raw features and labels never leave their respective owners, enforcing a strict privacy-by-architecture separation between the distributed feature space and the centralized label space.

COMPARISON

Label Space: Vertical vs. Horizontal Federated Learning

A comparison of how the target variable (label space) is distributed across participants in the two primary federated learning paradigms.

FeatureVertical Federated Learning (VFL)Horizontal Federated Learning (HFL)

Label Space Distribution

Concentrated (Typically one label owner)

Distributed (Each client has a local label space)

Primary Data Partition

Features are partitioned by column across parties for the same entities.

Samples are partitioned by row across clients; each client has a full feature set.

Typical Use Case

Cross-silo collaboration between organizations with different data attributes on overlapping users (e.g., bank + e-commerce).

Cross-device training across a population of similar devices (e.g., smartphones, IoT sensors).

Label Owner Role

Central orchestrator; holds labels and typically the top model segment.

No central label owner; all participating clients are symmetric peers.

Model Architecture

Split neural network, divided between feature owners and label owner.

Typically, each client trains a full, identical model copy locally.

Privacy Focus

Preventing leakage of raw features and intermediate representations between parties.

Preventing leakage of individual client's local data samples and model updates.

Communication Overhead per Round

High (requires exchange of intermediate outputs/gradients for each aligned sample).

Lower (typically involves transmitting full model parameter updates).

Entity Alignment Required

Cryptographic Prerequisites

Private Set Intersection (PSI) for alignment; secure aggregation for gradients.

Secure aggregation for model updates; optional differential privacy.

LABEL SPACE

Frequently Asked Questions

In Vertical Federated Learning (VFL), the label space is a foundational concept defining the target variable for a machine learning task. These questions address its role, security, and practical implementation.

In machine learning, the label space is the complete set of all possible values for the target variable (the output) that a model is trained to predict. It defines the scope of the prediction task. For a classification problem, the label space is the set of classes (e.g., {"cat", "dog", "bird"}). For regression, it is the continuous range of possible numerical values (e.g., house prices from $100k to $1M). The structure of the label space directly determines the model's final output layer and loss function.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.