Also known as sample-partitioned federated learning, HFL applies when datasets across organizations have identical schemas but contain records for different entities. For example, two regional banks use the same transaction features but serve completely different customers. The architecture allows a central server to aggregate locally computed model updates—typically gradients or weights—without ever accessing the underlying sensitive data, making it ideal for cross-silo collaborations in regulated industries like finance and healthcare.
Glossary
Horizontal Federated Learning

What is Horizontal Federated Learning?
Horizontal Federated Learning (HFL) is a privacy-preserving machine learning paradigm where multiple participants share the same feature space but hold different sample populations, enabling collaborative model training on wider datasets without centralizing or exposing raw records.
The primary technical challenge in HFL is managing non-IID data distributions, where local client datasets are not statistically representative of the global population, causing client drift during optimization. Algorithms like FedAvg and FedProx mitigate this by introducing proximal terms or adaptive aggregation strategies. Unlike Vertical Federated Learning, which requires entity alignment across different feature spaces, HFL assumes feature homogeneity and focuses on scaling the sample size while preserving strict data locality.
Key Characteristics of HFL
Horizontal Federated Learning (HFL) is defined by a specific data partitioning topology and a set of distinct operational requirements. The following characteristics distinguish it from other federated paradigms.
Shared Feature Space
The defining architectural constraint of HFL is that all participating clients must share the same feature space (schema). This means every hospital, bank, or device holds data with identical column structures (e.g., age, blood pressure, glucose level) but for different patient populations. This alignment enables direct mathematical aggregation of local model parameters without requiring entity resolution or feature engineering across silos.
Sample-Partitioned Topology
Data is partitioned horizontally across nodes based on sample IDs, not features. This is often described as 'row-based' partitioning. In contrast to Vertical Federated Learning, no single party holds a complete feature vector for any given sample. The collaborative goal is to increase the effective training dataset size by pooling statistically diverse samples while keeping each institution's records local.
Non-IID Data Distribution
Unlike idealized distributed machine learning in data centers, HFL clients almost never hold Independent and Identically Distributed (IID) data. A hospital in a rural area will have a drastically different patient demographic distribution than an urban clinic. This statistical heterogeneity causes client drift, where local optima diverge from the global optimum, making naive averaging algorithms like FedAvg unstable or slow to converge.
Communication Bottleneck
The central server must orchestrate rounds of synchronized updates with potentially thousands of geographically dispersed clients. The uplink speed from edge devices or institutional firewalls is often the primary constraint, not local compute. This necessitates communication-efficient protocols that minimize payload size through techniques like gradient compression, quantization, and sparsification to make training feasible over wide-area networks.
Privacy-Preserving Aggregation
Because raw gradients can leak sensitive information through gradient leakage attacks, HFL systems must employ cryptographic defenses. The aggregation server must compute the weighted average of client updates without inspecting individual contributions. This is typically achieved using Secure Aggregation Protocols based on Secure Multi-Party Computation (SMPC) or Homomorphic Encryption, ensuring the server only sees the final aggregated model delta.
Client Selection & Straggler Management
Not all clients are eligible to participate in every round. A client selection scheduler must balance statistical diversity against system constraints like battery life, connectivity, and compute availability. Furthermore, synchronous rounds are gated by the slowest participant. Straggler mitigation techniques—such as setting hard timeout deadlines, using asynchronous updates, or dropping late responders—are critical to prevent a single slow device from stalling the entire global training process.
Frequently Asked Questions
Clear, technical answers to the most common questions about sample-partitioned collaborative training architectures.
Horizontal Federated Learning (HFL) is a decentralized machine learning paradigm where multiple participants share the same feature space but hold different sample populations, enabling collaborative model training without centralizing raw data. The process operates in iterative rounds: a central server initializes a global model and distributes it to participating clients. Each client performs local training on its private dataset using stochastic gradient descent (SGD), computes model updates (gradients or weights), and transmits only these abstracted updates back to the server. The server aggregates the updates—typically using the Federated Averaging (FedAvg) algorithm—to produce an improved global model. Crucially, raw data never leaves the client devices or institutional silos. This architecture is mathematically equivalent to centralized training on pooled data under IID assumptions, though real-world non-IID distributions introduce significant optimization challenges. HFL is widely deployed in Google's Gboard for next-word prediction and in healthcare consortia training diagnostic models across hospitals.
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
Horizontal Federated Learning relies on a specific ecosystem of algorithms, topologies, and optimization techniques. Understanding these related concepts is critical for diagnosing convergence issues and designing robust systems.
Non-IID Data Distribution
The primary statistical challenge in Horizontal FL. Unlike centralized training where data is shuffled, local client datasets are not independently and identically distributed.
- Label Skew: One client may have mostly 'cat' images, another mostly 'dog' images.
- Feature Skew: Handwriting samples from different users have distinct stroke patterns.
- Quantity Skew: Massive variance in the volume of local data.
- Impact: Causes local models to diverge from the global optimum, slowing convergence or preventing it entirely.
Client Drift
The phenomenon where local model updates diverge from the global optimum due to heterogeneous Non-IID data. Each client's model overfits to its local distribution, pulling the aggregated global model in conflicting directions.
- FedProx Mitigation: Adds a proximal term to the local objective, penalizing large deviations from the global model.
- SCAFFOLD Mitigation: Uses control variates to correct for client drift during local updates.
- Symptom: High variance in validation accuracy across clients after aggregation.
Cross-Device vs. Cross-Silo
Horizontal FL is deployed in two distinct topological contexts that dictate system design.
- Cross-Device: Massive scale (10^6+ clients), unreliable connectivity, limited compute. Used in Gboard and on-device personalization.
- Cross-Silo: Small number of institutional clients (2-100), reliable infrastructure, high compute. Used in hospital consortiums or bank collaborations.
- Key Difference: Cross-silo assumes stateful, available clients; cross-device must handle stragglers and intermittent participation.

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