Inferensys

Glossary

Vertical Inference Protocol

A vertical inference protocol is a secure, multi-party process for generating predictions using a model trained on vertically partitioned data, where each participant contributes features without exposing their raw data.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
VERTICAL FEDERATED LEARNING

What is a Vertical Inference Protocol?

A protocol governing the collaborative use of a trained, vertically split model for making predictions while preserving data privacy.

A Vertical Inference Protocol is the defined sequence of secure communication and computation steps that enables multiple parties to collaboratively generate predictions using a model trained on vertically partitioned data. After training, the protocol coordinates the feature owners—who hold different subsets of input features for the same entities—to compute partial results without exposing their raw data. These partial outputs are then securely combined, typically by a label owner or a neutral coordinator, to produce the final prediction. This process ensures that the confidential feature data held by each participant never leaves its local environment during the inference phase.

The protocol's architecture is dictated by the split neural network design established during training, particularly the location of the cut layer. During inference, each feature owner performs a local forward pass on its segment of the model and transmits the encrypted intermediate output to the next party. This requires cryptographic techniques like homomorphic encryption or secure multi-party computation (MPC) to prevent data leakage. The protocol must efficiently manage communication overhead, latency, and the orchestration of steps to provide a practical, privacy-preserving alternative to centralizing data for model deployment in regulated industries.

ARCHITECTURAL ELEMENTS

Key Components of the Protocol

A Vertical Inference Protocol defines the secure, multi-step process for generating predictions using a model whose components are split across different organizations. Each component below represents a critical technical function required for private, collaborative inference.

01

Coordinated Forward Pass

The core computational sequence where each feature owner executes their local model segment on their private features. They produce an encrypted intermediate output (or embedding) which is passed to the label owner or a computation server. The label owner then completes the forward pass using the aggregated intermediate results to produce the final prediction. This process ensures no single party reconstructs the complete input feature vector.

02

Secure Aggregation Layer

A cryptographic mechanism that combines the intermediate outputs from multiple feature owners without revealing any individual contribution. Common techniques include:

  • Homomorphic Encryption (HE): Allows computations on ciphertext.
  • Secure Multi-Party Computation (MPC): Distributes the computation so no party sees another's raw input.
  • Trusted Execution Environments (TEEs): Provide a hardware-isolated secure enclave for computation. This layer is the primary defense against data reconstruction attacks during inference.
03

Privacy-Preserving Activation

The protocol must handle non-linear activation functions (e.g., ReLU, Sigmoid) securely after the secure aggregation step. This is a significant challenge because most cryptographic schemes work natively only on linear operations. Solutions include:

  • Polynomial approximations of activation functions compatible with HE.
  • Garbled circuits within MPC protocols to evaluate the function.
  • Two-server protocols where non-linearities are computed in a decomposed, privacy-preserving manner.
04

Inference Orchestrator

The central service (often run by the label owner or a neutral third party) that manages the inference workflow. Its responsibilities include:

  • Request Routing: Directing prediction requests to the correct feature owners.
  • Sequence Enforcement: Ensuring the forward pass steps occur in the correct, synchronized order.
  • Result Composition: Collecting and securely aggregating outputs before applying the final model layers.
  • Audit Logging: Recording protocol execution for compliance and debugging, without logging sensitive data.
05

Post-Inference Privacy Guard

Mechanisms applied to the final prediction output to prevent model inversion or membership inference attacks. Even the prediction score can leak information about the training data. Guards include:

  • Output Perturbation: Adding calibrated noise to the prediction (Differential Privacy).
  • Prediction Discretization: Returning only a class label or a bounded score range instead of a precise probability.
  • Access Control: Enforcing policies on who can query the model and at what frequency.
06

Communication & State Channels

The network and messaging infrastructure that connects participants. Key requirements:

  • Low-Latency Links: To meet real-time inference SLAs (e.g., <100ms for fraud detection).
  • Authenticated Channels: All parties must cryptographically verify each other's identity.
  • State Management: The protocol must handle scenarios where a feature owner is temporarily offline, often using queuing mechanisms or fault-tolerant aggregation algorithms to proceed with available parties.
PROTOCOL COMPARISON

Inference vs. Training Protocols in VFL

A comparison of the core operational phases in Vertical Federated Learning, highlighting the distinct communication patterns, security requirements, and computational roles for feature and label owners.

Protocol FeatureVertical Training ProtocolVertical Inference Protocol

Primary Objective

Iteratively improve model parameters via gradient-based optimization on a training dataset.

Generate predictions (labels) for new, unseen data samples using the finalized, trained model.

Core Communication Flow

Bidirectional and iterative. Features → intermediate outputs → gradients → parameter updates.

Unidirectional. Features → intermediate output → final prediction (label).

Active Participant Roles

All parties (feature owners and label owner) are active; all compute and exchange data in each round.

Feature owners are active to compute inputs; label owner is active to compute the final output. No updates are exchanged.

Cryptographic Overhead

High. Often requires homomorphic encryption or secure multi-party computation for every gradient/update exchange to protect training data.

Lower. May rely on simpler encryption for intermediate outputs, but no sensitive gradients are shared. Inference can sometimes use plaintext with privacy checks.

Data Sensitivity

Extremely high. Raw feature data and label data are indirectly exposed via repeated gradient sharing, requiring strong protection.

High. New input features are exposed via their intermediate representations, but the risk profile differs as the model is static.

Orchestration Complexity

High. Requires robust synchronization, failure recovery, and secure aggregation across many iterative rounds.

Moderate. A single forward pass per prediction. Requires coordination but no multi-round state management.

Typical Latency per Round/Query

Seconds to minutes per training round, depending on model size and crypto operations.

< 1 second to a few seconds per prediction, dominated by network latency and single forward pass computation.

Output

Updated model parameters (weights) distributed to all parties holding parts of the split neural network.

A prediction or classification label, returned to the initiating party (often a feature owner or an end-user).

PRIVACY-PRESERVING PREDICTION

Common Use Cases for Vertical Inference

The Vertical Inference Protocol enables collaborative predictions using a model split across organizations. After training, feature owners provide inputs without exposing their raw data, allowing the label owner to generate a final prediction. This is critical for scenarios where post-training data privacy is as important as training privacy.

01

Cross-Bank Credit Scoring

A bank (label owner) holds loan repayment histories. A fintech (feature owner) holds alternative transaction data for the same customers. Using a pre-trained vertical model, the fintech can securely provide transaction-derived features for a loan application, enabling the bank to generate a more accurate risk score without either party seeing the other's proprietary data.

  • Key Mechanism: The fintech computes the intermediate output from its local model segment and sends it to the bank.
  • Privacy Guarantee: Raw transaction data never leaves the fintech's secure environment.
02

Healthcare Diagnostics with Multi-Institutional Data

A hospital's diagnostic AI model is trained using its patient labels and features from a medical research institute (e.g., genomic markers). During inference, for a new patient, the institute provides the genomic features via the secure protocol. The hospital combines this with its clinical data to produce a diagnosis, preserving patient confidentiality across both entities.

  • Compliance: Aligns with regulations like HIPAA and GDPR by avoiding centralization of sensitive health data.
  • Use Case: Enables rare disease diagnosis by leveraging specialized, distributed data sources.
03

Personalized Advertising without PII Leakage

An e-commerce platform (label owner, with purchase history) wants to predict user purchase intent. A social media platform (feature owner, with engagement data) can participate in inference. The social platform computes an embedding from user activity and sends it to the e-commerce platform's model, generating a personalized ad score without sharing browsing history or identifying individual users.

  • Data Minimization: Only non-identifiable model intermediates are exchanged.
  • Industry Application: Facilitates cooperative marketing while respecting user privacy norms and regulations.
04

Fraud Detection in Financial Consortia

Multiple banks form a consortium to improve fraud detection. Each bank holds different features (e.g., domestic transactions, international wire patterns) for shared corporate clients. A central fraud model is trained vertically. For a new transaction, each bank provides its local inference output. These are aggregated to produce a consortium-wide fraud probability, protecting each bank's proprietary transaction patterns.

  • Security Benefit: Prevents a single bank from reverse-engineering another's fraud detection rules or customer behavior.
  • Operational Model: Enables collective defense without a centralized, vulnerable data lake.
05

Smart Grid Load Forecasting

A utility company (label owner) needs to forecast electricity demand. A smart meter manufacturer (feature owner #1) holds real-time consumption patterns, and a weather data provider (feature owner #2) holds hyper-local forecasts. During inference, both feature owners compute their respective model outputs. The utility securely aggregates these to predict grid load, optimizing generation without accessing granular household or proprietary weather data.

  • System Efficiency: Enables precise, real-time forecasting critical for balancing renewable energy sources.
  • Data Sovereignty: Meter and weather data remain under the control of their respective owners.
06

Manufacturing Predictive Maintenance

An OEM (label owner) holds failure data for industrial machines. A component supplier (feature owner) holds detailed sensor telemetry from its parts. Using a vertically trained model, the supplier can provide a real-time health signature derived from its sensors. The OEM combines this with its own operational data to predict failures, enabling proactive maintenance without either party exposing core intellectual property (sensor algorithms or failure root causes).

  • Supply Chain Collaboration: Creates a closed-loop quality system across organizational boundaries.
  • Value Preservation: Protects the supplier's sensor analytics and the OEM's maintenance know-how.
VERTICAL INFERENCE PROTOCOL

Frequently Asked Questions

A vertical inference protocol defines the secure, collaborative process for making predictions using a vertically split model after training, where feature owners provide inputs without revealing them.

A Vertical Inference Protocol is a defined sequence of secure communication and computation steps that enables multiple parties to collaboratively generate predictions using a vertically split model, where each party holds a different subset of features for the same entity. Unlike training, the protocol is executed after model convergence to perform privacy-preserving prediction on new data samples. Its core function is to orchestrate the flow of encrypted or masked intermediate outputs from feature owners to the label owner, who computes the final prediction, ensuring no raw feature data is exposed.

Key Mechanism: The protocol reactivates the same split neural network architecture used during training. Each feature owner computes a forward pass on their local feature subset up to the pre-defined cut layer. They then apply a privacy technique (e.g., homomorphic encryption, secret sharing) to the resulting intermediate output before sending it to the label owner. The label owner aggregates these contributions, completes the forward pass through its portion of the model, and produces the final prediction, which may be returned to a requesting party.

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.