# 纵向联邦学习

纵向联邦学习（Vertical federated learning, VFL）是一种联邦学习设定，参与方针对相同样本持有不同的特征集，在不共享原始数据的前提下联合训练模型。它面向的是服务重叠人群但记录不同属性的机构：银行与电商公司可能服务同一批客户，但各自持有不同的特征空间，且通常其中一方还持有训练标签。这与横向联邦学习形成对比——在横向联邦学习中，参与方共享相同的特征但持有不同的样本。其目标是获得一个联合模型，使其质量接近集中式训练，同时在许多协议中原始特征数据始终留在本地；在实践中，对齐过程、交换的嵌入与梯度以及模型参数都可能根据协议的不同而泄露或暴露信息。<sup>[1](https://ieeexplore.ieee.org/document/10415268)</sup><sup> • </sup><sup>[2](https://doi.org/10.48550/arxiv.1902.04885)</sup><sup> • </sup><sup>[3](https://link.springer.com/article/10.1007/s10115-025-02356-y)</sup>

| 关键事实 | 详情 |
|---|---|
| 设定 | 参与方针对相同样本持有不同特征；通常一方持有标签<sup>[1](https://ieeexplore.ieee.org/document/10415268)</sup> |
| 样本对齐 | 隐私集合求交（PSI）是最常见的对齐方法<sup>[3](https://link.springer.com/article/10.1007/s10115-025-02356-y)</sup> |
| 交换内容 | 本地嵌入及其梯度，通常在加法同态加密下进行<sup>[4](https://doi.org/10.48550/arxiv.1711.10677)</sup> |
| 精度 | 在已发表的对比中报告为无损，与集中式训练相当<sup>[2](https://doi.org/10.48550/arxiv.1902.04885)</sup><sup> • </sup><sup>[4](https://doi.org/10.48550/arxiv.1711.10677)</sup> |
| 加密开销 | 1024位密钥的Paillier使训练时间变为原来的213倍；128位密钥使其变为原来的8.9倍<sup>[5](http://arxiv.org/pdf/2303.04574v2)</sup> |
| 通信 | 真实场景的VFL中，超过90%的总训练时间花在通信上<sup>[6](https://www.vldb.org/pvldb/vol15/p2111-fu.pdf)</sup> |
| 攻击面 | 在统一基准测试中，标签推断准确率超过60%，特征推断平均精度超过90%，后门攻击成功率超过90%<sup>[7](https://proceedings.neurips.cc/paper_files/paper/2025/file/ba4b5a1a98545548ff45143ade817e8e-Paper-Datasets_and_Benchmarks_Track.pdf)</sup> |

## 工作原理

VFL沿特征维度将模型拆分到各参与方。每个参与方 \( k \) 训练一个本地底层模型，将自身特征映射为中间表示 \( H_{k} = G_{k}(x_{k}, \theta_{k}) \)，并将其发送给主动方。主动方在顶层模型中将各嵌入组合起来，计算损失，并返回梯度 \( \partial \ell / \partial H_{k} \)，使各参与方能够执行本地反向传播。<sup>[1](https://ieeexplore.ieee.org/document/10415268)</sup> 主动方持有标签和顶层模型；被动方仅持有特征，协调方可以负责安全通信与对齐。<sup>[8](https://dl.acm.org/doi/10.1145/3720539)</sup>

安全模型与加密。大多数协议假设参与者是诚实但好奇的，可选地设有一个半诚实的第三方来生成密钥对并解密掩码后的梯度。<sup>[2](https://doi.org/10.48550/arxiv.1902.04885)</sup> 由于嵌入和梯度否则会暴露特征和标签，它们通常使用加法同态加密（如Paillier）加以保护，该方案允许在密文上进行计算。<sup>[4](https://doi.org/10.48550/arxiv.1711.10677)</sup> 已发表的设计目标是无损模型：每个参与方收到的损失和梯度，与数据在没有隐私约束的情况下集中在一处时所收到的相同。<sup>[2](https://doi.org/10.48550/arxiv.1902.04885)</sup>

## 实现方式

经典工作流包含七个步骤：隐私集合求交；底层模型前向传播；前向传输；顶层模型前向传播；顶层模型反向传播；反向传输；以及底层模型反向传播，其中主机作为标签拥有者，客机作为属性拥有者。<sup>[9](https://arxiv.org/html/2202.04309v2)</sup>

**对齐先行。** PSI让各参与方私下计算其标识符的哈希值并找到交集，而不暴露非交集记录；变体包括布隆过滤器和不经意哈希。<sup>[3](https://link.springer.com/article/10.1007/s10115-025-02356-y)</sup> PyVertical使用带布隆过滤器压缩的Diffie-Hellman密钥交换PSI，其中标签持有方分别与每个拥有方运行PSI，因此各拥有方永远不会获知彼此的身份。<sup>[10](https://arxiv.org/pdf/2104.00489v3.pdf)</sup> FLORIST用隐私集并集替代PSI，使参与方保持成员关系私密，在判定性Diffie-Hellman假设下除集合大小和交集大小外不泄露任何信息，代价是在更大的并集上使用合成特征进行训练。<sup>[11](https://ar5iv.labs.arxiv.org/html/2106.05508)</sup> 实体增强（Entity Augmentation）通过让标签方为所有已处理实体计算加权平均标签，在分类任务中完全消除了对齐步骤。<sup>[12](https://arxiv.org/pdf/2406.17899)</sup>

## 起源

早期的端到端VFL方案是Hardy及其同事2017年的论文《通过实体对齐和加法同态加密在纵向分区数据上进行隐私联邦学习》，该文描述了一个三方两阶段的方案：使用密码学长期密钥（个人标识符的[布隆过滤器](https://www.edgepedia.org/zh/bloom-filter)编码）进行隐私保护实体对齐，随后在加法同态加密的消息上进行联邦逻辑回归，对诚实但好奇的对手安全。<sup>[4](https://doi.org/10.48550/arxiv.1711.10677)</sup> 联邦学习分为横向、纵向和迁移设定的分类来自Yang及其同事的《联邦机器学习：概念与应用》（2019年，arXiv）。<sup>[2](https://doi.org/10.48550/arxiv.1902.04885)</sup> VFL的神经网络训练借鉴了[拆分学习](https://www.edgepedia.org/zh/split-learning)（split learning），这是一种更早的分布式方法，将网络在拆分层处切开，使原始数据永远不会离开其拥有者，由Vepakomma及其同事描述（2018年，arXiv）。<sup>[13](https://doi.org/10.48550/arxiv.1812.00564)</sup> 对于树模型，Cheng及其同事的SecureBoost论文（2021年，IEEE Intelligent Systems）记录了无损纵向联邦梯度提升。<sup>[14](https://doi.org/10.1109/mis.2021.3082561)</sup> FATE是一个整合了同态加密和[安全多方计算](https://www.edgepedia.org/zh/secure-multi-party-computation)的横向与纵向设定框架，是主要的开源生态系统。<sup>[3](https://link.springer.com/article/10.1007/s10115-025-02356-y)</sup>

## 变体

一篇统一综述将VFL架构分为splitVFL（带有可训练的全局模块，与纵向拆分神经网络一致）和aggVFL（带有不可训练的聚合，如Sigmoid或树分裂查找步骤）。<sup>[1](https://ieeexplore.ieee.org/document/10415268)</sup> 基于树的变体在表格类应用中占主导地位：SecureBoost+在相同精度下将SecureBoost加速6至35倍，可扩展到数千万样本。<sup>[15](https://arxiv.org/html/2110.10927v4)</sup> SecureGBM面向安全多方梯度提升。<sup>[16](https://doi.org/10.48550/arxiv.1911.11997)</sup> Vertical FederBoost通过利用GBDT训练仅依赖于样本排序这一性质完全避开了密码学，达到与集中式XGBoost相当的精度，同时运行速度比SecureBoost快4到5个数量级。<sup>[17](https://arxiv.org/pdf/2011.02796)</sup>

神经变体包括PyVertical，一个构建在PySyft上的Python框架，将拆分神经网络与PSI相结合。<sup>[10](https://arxiv.org/pdf/2104.00489v3.pdf)</sup> Mugunthan、Goyal和Kagal（2021年）的Multi-VFL将VFL扩展到多个数据拥有方和标签拥有方。<sup>[18](https://doi.org/10.48550/arxiv.2106.05468)</sup> Zhu及其同事（2021年）的PIVODL处理分布式标签下的GBDT训练。<sup>[19](https://doi.org/10.1109/tai.2021.3139055)</sup> Chen及其同事（2020年）的VAFL使训练异步化，仅交换嵌入及其梯度，并使用高斯差分隐私。<sup>[20](https://doi.org/10.48550/arxiv.2007.06081)</sup> FedBCD允许参与方每轮执行多次本地坐标下降步骤。<sup>[21](http://arxiv.org/pdf/1912.11187v1)</sup> Falcon将阈值部分同态加密与加法秘密共享相结合。<sup>[8](https://dl.acm.org/doi/10.1145/3720539)</sup>

## 应用

已发表的案例研究集中在金融和信贷领域。微众银行（WeBank）与一家发票机构合作使用VFL为企业客户构建金融风险模型。<sup>[1](https://ieeexplore.ieee.org/document/10415268)</sup> 一个异构安全提升树促成了电信公司与金融公司之间的协作，提高了某商业银行的营销成功率。<sup>[3](https://link.springer.com/article/10.1007/s10115-025-02356-y)</sup> 在广告技术领域，Wei及其同事（2023年）的FedAds基准从真实的阿里巴巴数据构建了一个双客户端VFL数据集，具有匿名化特征，用于转化率估计研究。<sup>[22](https://doi.org/10.48550/arxiv.2305.08328)</sup> 可用的平台包括FATE、<sup>[3](https://link.springer.com/article/10.1007/s10115-025-02356-y)</sup> 实现了多方线性模型的FedML、<sup>[10](https://arxiv.org/pdf/2104.00489v3.pdf)</sup> 以及PyVertical。<sup>[10](https://arxiv.org/pdf/2104.00489v3.pdf)</sup> 在实际应用中的部署仍然有限：一项对潜在VFL应用中真实数据分布的分析指出了研究与实际之间的差距，一些常见场景几乎没有或完全没有可行的解决方案。<sup>[23](https://arxiv.org/html/2502.08160)</sup>

## 局限与替代方案

**开销巨大。** Paillier加密在原始Hardy系统中造成了约两个数量级的估计减速。<sup>[4](https://doi.org/10.48550/arxiv.1711.10677)</sup> 直接测量表明，128位公钥使训练时间变为原来的8.9倍，1024位密钥使其变为原来的213倍，而推理在128位下增长不到1.4%。<sup>[5](http://arxiv.org/pdf/2303.04574v2)</sup> 通信占主导地位：超过90%的训练时间，因为地理分布的参与方通常共享带宽不足300 Mbps。<sup>[6](https://www.vldb.org/pvldb/vol15/p2111-fu.pdf)</sup> 缓解措施包括FedBCD在FATE上将通信轮次减少70%以上、<sup>[21](http://arxiv.org/pdf/1912.11187v1)</sup> C-VFL通过量化将通信减少90%以上、<sup>[24](https://arxiv.org/html/2206.08330v2)</sup> 以及CELU-VFL通过缓存陈旧激活值实现4.82倍至6.27倍的加速。<sup>[6](https://www.vldb.org/pvldb/vol15/p2111-fu.pdf)</sup>

**泄露攻击已有记录。** 恶意的被动参与方可以从底层模型和梯度符号中推断出私有标签，包括训练集之外的标签；梯度噪声、压缩和随机剪枝都无法阻止这一点。<sup>[25](https://www.usenix.org/system/files/sec22-fu-chong.pdf)</sup> 在纵向逻辑回归中，当被动方的批大小不超过其特征维度时，标签可以从梯度组合系数中恢复，而一种主动攻击可以削弱这一约束。<sup>[26](https://ar5iv.labs.arxiv.org/html/2207.09087)</sup> 特征重建对于诚实但好奇的主动方存在一个不可能性结果，然而一种指数时间攻击（运行时间与 \( n \) 几乎呈线性关系，与被动特征维度 \( d_{A} \) 呈指数关系）对于资源充足的攻击者来说在离线状态下仍然可行。<sup>[27](https://ar5iv.labs.arxiv.org/html/2210.06771)</sup> 在MARS-VFL基准中，标签推断准确率超过60%，特征推断平均精度超过90%，后门攻击成功率超过90%。<sup>[7](https://proceedings.neurips.cc/paper_files/paper/2025/file/ba4b5a1a98545548ff45143ade817e8e-Paper-Datasets_and_Benchmarks_Track.pdf)</sup> 防御措施包括分散训练（dispersed training），它使用秘密共享打破底层模型与数据之间的相关性，同时通过线性性保持精度，<sup>[28](https://doi.org/10.1007/s11280-023-01159-x)</sup> 以及针对数据重建攻击的HashVFL。<sup>[29](https://doi.org/10.1109/tifs.2024.3356164)</sup>

**比较。** 与横向FL相比，VFL可以在重叠样本的对齐小批量上进行训练，但批构建和同步可能增加开销，总工作量取决于每轮处理的样本数量。<sup>[9](https://arxiv.org/html/2202.04309v2)</sup> 拆分学习与之密切相关：标准拆分学习可以被视为两方VFL，<sup>[30](https://www.ijcai.org/proceedings/2024/0902.pdf)</sup> 而splitVFL与纵向拆分神经网络一致。<sup>[1](https://ieeexplore.ieee.org/document/10415268)</sup> 模糊关联数据上的一个相关进展是基于Transformer的模糊VFL，其中Wu及其同事（2024年）的FeT处理模糊关联的多方数据，在50个参与方时精度超过基线最多46%。<sup>[31](https://doi.org/10.48550/arxiv.2410.17986)</sup>

## References

1. [Vertical Federated Learning: Concepts, Advances, and Challenges (Liu et al., IEEE TKDE 36(7):3615–3634, 2024; arXiv 2211.12814 excerpts merged here)](https://ieeexplore.ieee.org/document/10415268)
2. [Yang, Qiang and colleagues (2019). Federated Machine Learning: Concept and Applications. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1902.04885)
3. [Vertical federated learning: a structured literature review (Knowledge and Information Systems, Springer, 2025; arXiv 2212.00622 excerpts merged here)](https://link.springer.com/article/10.1007/s10115-025-02356-y)
4. [Hardy, Stephen and colleagues (2017). Private federated learning on vertically partitioned data via entity resolution and additively homomorphic encryption. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1711.10677)
5. [DVFL: Distributed Vertical Federated Learning](http://arxiv.org/pdf/2303.04574v2)
6. [CELU-VFL: Efficient Communication for Vertical Federated Learning (Fu et al., PVLDB Vol. 15)](https://www.vldb.org/pvldb/vol15/p2111-fu.pdf)
7. [MARS-VFL: A Unified Benchmark for Vertical Federated Learning with Realistic Evaluation (NeurIPS 2025 Datasets and Benchmarks)](https://proceedings.neurips.cc/paper_files/paper/2025/file/ba4b5a1a98545548ff45143ade817e8e-Paper-Datasets_and_Benchmarks_Track.pdf)
8. [Vertical Federated Learning for Effectiveness, Security, Applicability: A Survey (ACM Computing Surveys, 2025; arXiv 2405.17495 excerpts merged here)](https://dl.acm.org/doi/10.1145/3720539)
9. [Vertical Federated Learning: Challenges, Methodologies and Experiments](https://arxiv.org/html/2202.04309v2)
10. [PyVertical: A Split Neural Network Approach for Vertical Federated Learning (Romanini et al.; DP-ML workshop excerpts merged here)](https://arxiv.org/pdf/2104.00489v3.pdf)
11. [Vertical Federated Learning without Revealing Intersection Membership (FLORIST)](https://ar5iv.labs.arxiv.org/html/2106.05508)
12. [Entity Augmentation: VFL without entity alignment (2024)](https://arxiv.org/pdf/2406.17899)
13. [Vepakomma, Praneeth and colleagues (2018). Split learning for health: Distributed deep learning without sharing raw patient data. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1812.00564)
14. [Kewei Cheng and colleagues (2021). SecureBoost: A Lossless Federated Learning Framework. IEEE Intelligent Systems.](https://doi.org/10.1109/mis.2021.3082561)
15. [SecureBoost+: Large Scale and High-Performance Vertical Federated Gradient Boosting Decision Tree](https://arxiv.org/html/2110.10927v4)
16. [Fengy, Zhi and colleagues (2019). SecureGBM: Secure Multi-Party Gradient Boosting. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1911.11997)
17. [FederBoost: Private Federated Learning for GBDT](https://arxiv.org/pdf/2011.02796)
18. [Mugunthan, Vaikkunth, Goyal, Pawan, Kagal, Lalana (2021). Multi-VFL: A Vertical Federated Learning System for Multiple Data and Label Owners. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2106.05468)
19. [Hangyu Zhu and colleagues (2021). PIVODL: Privacy-Preserving Vertical Federated Learning Over Distributed Labels. IEEE Transactions on Artificial Intelligence.](https://doi.org/10.1109/tai.2021.3139055)
20. [Chen, Tianyi and colleagues (2020). VAFL: a Method of Vertical Asynchronous Federated Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2007.06081)
21. [FedBCD: Federated Stochastic Block Coordinate Descent for Vertical Federated Learning (Liu et al., 2019)](http://arxiv.org/pdf/1912.11187v1)
22. [Wei, Penghui and colleagues (2023). FedAds: A Benchmark for Privacy-Preserving CVR Estimation with Vertical Federated Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2305.08328)
23. [Vertical Federated Learning in Practice: The Good, the Bad, and the Ugly (Feb 2025)](https://arxiv.org/html/2502.08160)
24. [Compressed-VFL: Communication-Efficient Learning with Vertically Partitioned Data](https://arxiv.org/html/2206.08330v2)
25. [Label Inference Attacks Against Vertical Federated Learning (Fu et al., USENIX Security 2022)](https://www.usenix.org/system/files/sec22-fu-chong.pdf)
26. [Is Vertical Logistic Regression Privacy-Preserving? A Comprehensive Privacy Analysis and Beyond](https://ar5iv.labs.arxiv.org/html/2207.09087)
27. [Feature Reconstruction Attacks and Countermeasures of DNN training in Vertical Federated Learning](https://ar5iv.labs.arxiv.org/html/2210.06771)
28. [Yilei Wang and colleagues (2023). Beyond model splitting: Preventing label inference attacks in vertical federated learning with dispersed training. World Wide Web.](https://doi.org/10.1007/s11280-023-01159-x)
29. [Pengyu Qiu and colleagues (2024). HashVFL: Defending Against Data Reconstruction Attacks in Vertical Federated Learning. IEEE Transactions on Information Forensics and Security.](https://doi.org/10.1109/tifs.2024.3356164)
30. [Label Leakage in Vertical Federated Learning: A Survey (IJCAI 2024)](https://www.ijcai.org/proceedings/2024/0902.pdf)
31. [Wu, Zhaomin and colleagues (2024). Federated Transformer: Multi-Party Vertical Federated Learning on Practical Fuzzily Linked Data. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2410.17986)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 25, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 机器学习与神经计算 › 机器学习方法

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/vertical-federated-learning

English original: https://www.edgepedia.org/vertical-federated-learning
