Inferensys

Glossary

Intermediate Output

In Vertical Federated Learning (VFL), an intermediate output is the result of a forward pass up to a designated cut layer, computed locally by a feature owner and securely transmitted to enable collaborative training without sharing raw data.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
VERTICAL FEDERATED LEARNING

What is Intermediate Output?

In Vertical Federated Learning (VFL), an intermediate output is the result of a partial forward pass through a split neural network, computed locally by a feature owner and transmitted to enable collaborative training without sharing raw data.

An intermediate output is the activation tensor produced at the cut layer of a split neural network. In VFL, where features are partitioned across parties, a feature owner performs a forward pass on its local model segment using its private features. The resulting intermediate output is the only data shared—typically via a secure channel or in encrypted form—to the label owner or the next computational party. This mechanism allows the complete forward propagation to continue across the distributed model while keeping the raw input features confidential.

The security and dimensionality of the intermediate output are critical design considerations. It must contain sufficient information for downstream gradient calculation but be minimized to reduce vertical communication overhead. Techniques like homomorphic encryption or secure multi-party computation (MPC) are often applied to these outputs during transmission to prevent model inversion attacks that could reconstruct private features. The choice of cut layer directly determines the size and information content of this output, balancing privacy, bandwidth, and model performance in the vertical training protocol.

VERTICAL FEDERATED LEARNING

Key Characteristics of Intermediate Outputs

In Vertical Federated Learning (VFL), the intermediate output is the critical data artifact that enables collaborative training across partitioned feature sets. Its properties define the system's privacy, efficiency, and feasibility.

01

Definition & Core Function

An intermediate output is the result of the forward pass computation up to the cut layer in a split neural network. It is generated by a feature owner using their local features and must be transmitted to the next party (typically the label owner) to continue the forward propagation. This mechanism allows the complete model to be computed without any party exposing their raw input data.

  • Primary Role: Acts as the privacy-preserving substitute for raw feature data during collaborative computation.
  • Analogy: Similar to a partially solved equation where one contributor passes their result to another to complete the calculation, without sharing the original numbers.
02

Privacy-Preserving Nature

The intermediate output is designed to contain minimal information about the raw input data, forming the first line of defense in privacy-preserving machine learning. However, it is not inherently secure; its privacy characteristics depend on the model architecture and cryptographic safeguards.

  • Information Leakage Risk: A deep or wide cut layer can allow for model inversion attacks or membership inference attacks, where an adversary attempts to reconstruct training samples.
  • Mitigation Strategies: Techniques like homomorphic encryption (computing on encrypted outputs), secure multi-party computation (MPC), or adding differential privacy noise are used to protect the intermediate outputs during transmission and computation.
03

Determinant of System Architecture

The properties of the intermediate output directly dictate the vertical training protocol and overall system design. Its size and computation location are key architectural decisions.

  • Cut Layer Selection: Choosing where to split the model is a trade-off. An early cut (shallow layer) produces a small, low-dimensional output, reducing communication overhead but potentially harming model accuracy. A late cut (deep layer) may improve accuracy but increases communication cost and privacy risk.
  • Computation/Communication Trade-off: The volume of data in the intermediate output is the primary driver of vertical communication overhead. Optimizing this is crucial for practical deployment.
04

Gradient Computation Anchor

During vertical backpropagation, the intermediate output serves as the anchor point for calculating gradients across the distributed model parts. The label owner computes gradients with respect to the received intermediate outputs and sends these gradients back to the feature owners.

  • Backward Pass Flow: The gradient of the loss relative to the intermediate output is propagated backwards to each feature owner's local model segment.
  • Update Isolation: Each party uses these gradients to update only their portion of the split neural network, ensuring raw data never leaves its owner's device during the optimization process.
05

Contrast with Horizontal FL

This concept is unique to the vertical data partition setting. It highlights a fundamental difference between Vertical (VFL) and Horizontal Federated Learning (HFL).

  • VFL (This Context): Parties share different features on the same entities. They exchange intermediate outputs (activations) to complete a single forward/backward pass.
  • HFL: Parties share the same feature space on different entities. They exchange model parameters (weights) or gradients after completing entire local forward/backward passes on their own data.
06

Inference Protocol Dependency

The role of the intermediate output extends beyond training into the vertical inference protocol for making predictions on new data. The production inference workflow mirrors the training forward pass.

  • Prediction Flow: At inference time, a feature owner computes the intermediate output from a new sample and sends it to the label owner (or inference server).
  • Result Generation: The label owner completes the forward pass through the remainder of the model to generate the final prediction (e.g., classification score). This enables collaborative prediction without exposing the query's raw features.
CORE CONCEPT

Role in the VFL Training Protocol

The intermediate output is the critical data payload exchanged between parties during the forward pass of a vertically split neural network.

In Vertical Federated Learning (VFL), an intermediate output is the result of the forward pass computation up to the cut layer, generated by a feature owner using its local data. This tensor, which contains no raw features, is securely transmitted to the label owner (or the next party in the chain) to continue the forward propagation and compute the final prediction or loss. Its creation and exchange form the essential computational step that enables collaborative training without data pooling.

The security and efficiency of transmitting the intermediate output directly define the privacy-preserving and performance characteristics of the VFL system. To prevent data reconstruction attacks, these outputs are often protected via homomorphic encryption or secure multi-party computation (MPC) protocols. Optimizing the size and frequency of these exchanges is a primary focus for reducing vertical communication overhead and enabling practical deployment.

VERTICAL FEDERATED LEARNING

Frequently Asked Questions

These questions address the core mechanics and practical considerations of the intermediate output, a critical data structure in Vertical Federated Learning (VFL) that enables collaborative training without sharing raw features.

An intermediate output is the result of the forward pass up to the cut layer in a split neural network, computed locally by a feature owner using their private features. This tensor, not the raw data, is what is securely transmitted to the label owner (or the next party in the chain) to continue the forward propagation and complete the training or inference step. It is the fundamental mechanism that allows model computation across distributed, vertically partitioned data.

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.