Vertical gradient computation is the distributed, coordinated process of calculating the gradients (parameter updates) for a machine learning model whose architecture and data are split across multiple parties in a Vertical Federated Learning (VFL) system. Unlike standard backpropagation, this process involves secure exchanges of intermediate results and partial gradients between a label owner and multiple feature owners who hold different attributes about the same entities. The goal is to compute an accurate global gradient to update the model while preventing any participant from reconstructing another's raw private data from the exchanged mathematical values.
Glossary
Vertical Gradient Computation

What is Vertical Gradient Computation?
Vertical gradient computation is the core, privacy-preserving process for calculating parameter updates in a model trained via Vertical Federated Learning (VFL).
The computation follows a split neural network architecture, divided at a designated cut layer. During vertical backpropagation, the label owner calculates gradients for its portion of the model and sends encrypted gradient signals back to each feature owner. Each feature owner then uses these signals to compute gradients for its local model segment and features. This orchestrated flow, often secured with cryptographic protocols like homomorphic encryption or secure multi-party computation (MPC), defines the vertical training protocol and is fundamental to enabling collaborative learning on vertically partitioned data without centralization.
Key Components of the Process
Vertical gradient computation is the distributed, privacy-preserving process of calculating parameter updates for a model trained with Vertical Federated Learning. It involves secure and coordinated gradient calculation across the split parts of the model held by different data owners.
The Split Neural Network Architecture
The model is physically divided into segments, or sub-models, owned by different parties. A feature owner holds the bottom layers that process its local features. The label owner typically holds the top layers, culminating in the output and loss calculation. The cut layer is the designated boundary where intermediate outputs are exchanged. This architectural split is the foundation that enables distributed forward and backward passes without sharing raw data.
Distributed Forward Pass
Each feature owner performs a local forward propagation on its segment of the model using its private features. The output of this computation, known as the intermediate output or embeddings, is produced at the cut layer. This intermediate output is then securely transmitted (often in encrypted form) to the label owner. The label owner receives these embeddings from all feature owners, concatenates them, and completes the forward pass through its top model segment to compute the final prediction and loss.
Distributed Backward Pass (Gradient Flow)
This is the core of vertical gradient computation. The label owner calculates the initial gradients from the loss function. These gradients are then backpropagated through its top model segment. At the cut layer, the label owner computes the gradients with respect to the received intermediate outputs. These gradients are sent back to the corresponding feature owners. Each feature owner then uses these received gradients to perform local backpropagation through its own model segment, calculating the gradients for its private model parameters and features.
Secure Communication of Sensitive Tensors
The exchange of intermediate outputs and gradients constitutes the primary communication overhead and privacy risk. To prevent data reconstruction attacks, these values must be protected. Common techniques include:
- Homomorphic Encryption (HE): Allows computations (like the label owner's forward pass) to be performed directly on encrypted intermediate outputs.
- Secure Multi-Party Computation (MPC): Uses cryptographic protocols to jointly compute gradients without revealing private inputs.
- Differential Privacy (DP): Adds carefully calibrated noise to the communicated tensors to provide a mathematical privacy guarantee.
Local Parameter Update
After completing the distributed backward pass, each party holds the gradients for its own segment of the model. Each party then performs a local optimization step (e.g., Stochastic Gradient Descent) to update its private model parameters. Critically, the raw model parameters themselves are never shared or aggregated across parties, unlike in Horizontal Federated Learning. The global model is defined implicitly by the collective state of all the local model segments, which are updated in a coordinated fashion through the gradient flow.
The Training Protocol & Orchestration
Vertical gradient computation is governed by a strict training protocol that sequences all steps. A central coordinator (often the label owner) orchestrates the rounds:
- Initiation: Broadcasts the start of a new training round.
- Forward Coordination: Collects encrypted intermediate outputs from feature owners.
- Gradient Distribution: Computes and sends back the relevant gradients.
- Synchronization: Ensures all parties update their models in lockstep. Frameworks like FATE and PyVertical implement these protocols, handling communication, encryption, and fault tolerance.
Vertical vs. Horizontal Gradient Computation
A comparison of the core mechanisms for calculating parameter updates in the two primary federated learning paradigms, highlighting differences in data structure, communication patterns, and security requirements.
| Computation Feature | Vertical Gradient Computation | Horizontal Gradient Computation |
|---|---|---|
Data Partition Structure | Features (columns) are split across parties; samples (rows) are aligned. | Samples (rows) are split across parties; features (columns) are identical. |
Primary Communication | Intermediate outputs and gradients for aligned samples. | Complete model parameter updates (e.g., weights). |
Cryptographic Focus | Secure transmission of sample-level intermediate data; Private Set Intersection for alignment. | Secure aggregation of client-level model updates. |
Model Architecture | Split neural network with a cut layer. | Identical full model on each client. |
Gradient Calculation Path | Distributed backpropagation across the split model parts. | Local backpropagation on the client's full model. |
Label Ownership | Typically held by a single label-owning party. | Locally available to each participating client. |
Primary Privacy Risk | Leakage from intermediate outputs/gradients (feature inversion). | Leakage from model updates (membership inference). |
Typical Use Case | Cross-silo collaboration between organizations with different data attributes on the same entities (e.g., bank & retailer). | Cross-device training across a population of devices with similar data types (e.g., smartphones). |
Frequently Asked Questions
Vertical gradient computation is the core, privacy-preserving process for calculating model updates in Vertical Federated Learning. These FAQs address how gradients are calculated across distributed model parts without exposing raw data.
Vertical gradient computation is the distributed process of calculating parameter updates (gradients) for a machine learning model trained using Vertical Federated Learning (VFL), where the model is split across parties holding different features for the same entities.
In this setup, the label owner (who holds the target values) and multiple feature owners (who hold subsets of input features) collaboratively compute gradients for their respective portions of a split neural network. The process involves a secure exchange of intermediate outputs and gradient signals during vertical backpropagation, ensuring no party gains access to another's raw feature data or the complete model. The primary goal is to enable collaborative model improvement while adhering to strict data privacy constraints common in finance, healthcare, and cross-organizational partnerships.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Vertical Gradient Computation is a core process within Vertical Federated Learning (VFL). The following terms define the key components, protocols, and cryptographic techniques that enable this secure, distributed calculation.
Split Neural Network
A split neural network is the model architecture used in VFL where the network is divided into segments, each residing on a different party. The feature owners hold the initial layers that process their local features, while the label owner typically holds the later layers leading to the final output. The division point is defined by the cut layer.
Vertical Forward/Backpropagation
These are the two phases of distributed gradient computation in VFL.
- Vertical Forward Propagation: Each feature owner computes the forward pass on its local model segment and sends the encrypted intermediate output to the next party (e.g., the label owner) to complete the forward pass and calculate the loss.
- Vertical Backpropagation: The label owner computes the initial gradients and passes them back through the network. Each party receives gradients for its segment, computes local parameter updates, and may send gradients back to previous parties, all without exposing raw data.
Secure Aggregation Protocols
Secure aggregation is a cryptographic protocol for combining model updates from multiple parties without revealing any individual contribution. In VFL, this is often applied to gradients or intermediate outputs. Common techniques include:
- Masking with Secret Sharing: Clients add a random mask to their update; masks cancel out when aggregated by the server.
- Homomorphic Encryption: Allows the server to perform arithmetic on encrypted updates. This prevents a curious aggregator from inferring sensitive information from a single client's update.
Homomorphic Encryption (HE)
Homomorphic Encryption is a form of encryption that allows computations to be performed directly on ciphertext. In VFL, HE enables a party (often the label owner) to perform calculations on encrypted intermediate results received from feature owners. For example, the label owner can compute the loss and start backpropagation on encrypted data, preserving the confidentiality of the feature owner's intermediate outputs throughout the gradient computation process.
Multi-Party Computation (MPC)
Secure Multi-Party Computation is a cryptographic suite that enables multiple parties to jointly compute a function over their private inputs without revealing those inputs to each other. In Vertical MPC, this framework is used to implement the entire vertical gradient computation protocol. Parties collaboratively calculate forward passes, loss, and gradients using secret-shared values, providing strong privacy guarantees often at the cost of higher communication and computation overhead compared to simpler masking techniques.
Vertical Training Protocol
The vertical training protocol is the complete, step-by-step specification governing a single training round in a VFL system. It defines:
- The sequence of communication between feature and label owners.
- The exact format of exchanged messages (e.g., encrypted embeddings, gradients).
- The cryptographic operations required at each step.
- The aggregation and update rules. Protocols like SecureBoost for trees or those for split neural networks ensure that the vertical gradient computation is executed correctly, efficiently, and privately.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us