# 定向学习（统计学）

定向学习是一个统计估计框架，它对某一特定目标参数（例如平均处理效应）的初始机器学习估计进行调整，使框架将数据中的全部信息集中到该参数上，并支持有效的置信区间。其核心算法——定向最大似然估计（TMLE）——是一种双重稳健的、基于最大似然的方法，其中定向步骤产生目标参数的最佳估计。<sup>[1](https://www.degruyterbrill.com/document/doi/10.2202/1557-4679.1043/html?lang=en)</sup><sup> • </sup><sup>[2](https://link.springer.com/article/10.1007/s10654-024-01173-x)</sup> 它广泛应用于因果推断和流行病学，并在标准统计软件中有相应实现。<sup>[3](https://researchonline.lshtm.ac.uk/id/eprint/4647544/1/Targeted-maximum-likelihood-estimation-for-a-binary-treatment-A-tutorial.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 估计对象 | 预先指定的目标参数（例如平均处理效应），而非整个数据分布<sup>[4](https://arxiv.org/pdf/2006.07333v1.pdf)</sup> |
| 核心机制 | 一个参数化波动子模型，其得分等于有效影响函数；其参数通过最大似然拟合<sup>[1](https://www.degruyterbrill.com/document/doi/10.2202/1557-4679.1043/html?lang=en)</sup> |
| 聪明协变量（ATE） | \( H_{n}(A,W) = A/g_{n}(W) - (1-A)/(1-g_{n}(W)) \)<sup>[5](https://tlverse.org/tlverse-handbook/tmle3.html)</sup> |
| 双重稳健性 | 只要结果回归 \( \bar{Q}_{0} \) 或处理机制 \( g_{0} \) 之一被一致估计，估计即一致<sup>[6](https://www.stat.cmu.edu/~ryantibs/journalclub/gruber_2009.pdf)</sup> |
| 效率 | 渐近正态，方差为 \( \sigma^{2}/n \)；当两个干扰参数均正确时达到半参数有效<sup>[6](https://www.stat.cmu.edu/~ryantibs/journalclub/gruber_2009.pdf)</sup><sup> • </sup><sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC2898626/)</sup> |
| 关键条件 | 二阶项以快于 \( n^{-1/2} \) 的速度收敛到零，并对初始估计量进行交叉拟合<sup>[8](https://biostats.bepress.com/cgi/viewcontent.cgi?article=1276&context=ucbbiostat)</sup> |
| 软件 | R包tmle、tmle3、ltmle、ctmle、tmle3shift、tmle3mopttx；Julia中的TMLE.jl<sup>[9](https://joss.theoj.org/papers/10.21105/joss.08446.pdf)</sup> |

## 运作原理

波动步骤修复全分布估计量在某一特定光滑泛函上的糟糕表现。通过初始密度估计构造一个参数化子模型，该子模型满足：(i) 在波动参数 \( \varepsilon = 0 \) 时等于当前估计；(ii) 在 \( \varepsilon = 0 \) 时的得分等于目标参数的有效影响函数；这是一个最不利子模型。<sup>[10](https://people.csail.mit.edu/mrosenblum/Teaching_files/tmle_overview.pdf)</sup> 波动参数通过最大似然估计，将初始拟合作为偏移量，迭代更新直至 \( \varepsilon \) 充分接近零，此时有效影响曲线的估计方程得到求解。<sup>[10](https://people.csail.mit.edu/mrosenblum/Teaching_files/tmle_overview.pdf)</sup><sup> • </sup><sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC2898626/)</sup>

对于二值处理下的平均处理效应，聪明协变量为

\[ H_{n}(A,W) = \frac{A}{g_{n}(W)} - \frac{1-A}{1-g_{n}(W)}, \]

其中 \( g_{n}(A,W) = P(A=1\mid W) \) 是估计的倾向性得分，TMLE更新形式为

\[ f(\bar{Q}^{*}_{n}(A,W)) = f(\bar{Q}_{n}(A,W)) + \varepsilon \cdot H_{n}(A,W), \]

其中 \( f \) 是适当的链接函数，如logit。<sup>[5](https://tlverse.org/tlverse-handbook/tmle3.html)</sup>

当 \( \bar{Q} \) 或 \( g \) 之一被正确指定时，TMLE具有一致性和渐近正态性；当两者均正确时达到半参数有效。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC2898626/)</sup> 一个一般性定理证明：当初始估计量一致且二阶项以快于 \( n^{-1/2} \) 的速度依概率收敛到零时，渐近效率（及正则性）成立，无需其他实质性条件。<sup>[8](https://biostats.bepress.com/cgi/viewcontent.cgi?article=1276&context=ucbbiostat)</sup>

## 实施方法

定向学习路线图包含五个步骤：指定观测数据和数据生成实验；指定一个基于现实假设的统计模型；定义目标待估参数；构造尊重该模型的最优代入估计量；从估计量的抽样分布构造置信区间。<sup>[4](https://arxiv.org/pdf/2006.07333v1.pdf)</sup> 波动参数 \( \varepsilon \) 通过在无截距逻辑回归中将 \( Y \) 对聪明协变量 \( H(1,W) \) 和 \( H(0,W) \) 进行回归来估计，以初始预测的logit作为偏移量。<sup>[3](https://researchonline.lshtm.ac.uk/id/eprint/4647544/1/Targeted-maximum-likelihood-estimation-for-a-binary-treatment-A-tutorial.pdf)</sup> 由于TMLE产生渐近线性估计量，Wald型推断可通过代入初始估计 \( \bar{Q}_{n} \) 和 \( g_{n} \) 并计算样本标准误，从估计的有效影响函数得出。<sup>[5](https://tlverse.org/tlverse-handbook/tmle3.html)</sup>

## 起源

基于波动的定向估计方法最初用于处理效应估计，后得到推广。<sup>[11](https://docs.iza.org/dp18438.pdf)</sup> 奠基性论文《定向最大似然学习》（Targeted Maximum Likelihood Learning），由Mark J. van der Laan和Daniel Rubin撰写，于2006年发表在《国际生物统计学杂志》（The International Journal of Biostatistics）上。<sup>[1](https://www.degruyterbrill.com/document/doi/10.2202/1557-4679.1043/html?lang=en)</sup> 2011年由van der Laan和Sherri Rose合著的Springer专著《定向学习：观察性与实验数据的因果推断》（*Targeted Learning: Causal Inference for Observational and Experimental Data*）将该方案系统化，强调充分利用交叉验证进行估计量选择，使主观选择由机器完成，并将拟合定向到感兴趣的参数。<sup>[12](https://link.springer.com/book/10.1007/978-1-4419-9782-1)</sup>

## 变体

**CV-TMLE** 增加一层交叉验证以避免过拟合偏差；在模拟文献中，它对初始估计量使用10折交叉验证，为使用自适应方法提供了更大余地，因为 \( \bar{Q} \) 的过拟合初始估计不会给定向步骤留下现实的残差变异。<sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC10362909/)</sup><sup> • </sup><sup>[5](https://tlverse.org/tlverse-handbook/tmle3.html)</sup>

**协作TMLE（C-TMLE）** 基于 \( Q \) 的初始估计，结合越来越非参数的 \( g \) 估计，创建一系列候选TMLE，使用针对 \( Q \) 的定向估计量的损失函数而非 \( g \) 本身的损失来选择干扰参数估计。<sup>[7](https://pmc.ncbi.nlm.nih.gov/articles/PMC2898626/)</sup> 当对 \( g_{0} \) 的完全调整可能不必要，或实验性处理分配假设存在疑问时，CTMLE更受青睐，因为它通过自适应处理机制拟合来降低方差。<sup>[6](https://www.stat.cmu.edu/~ryantibs/journalclub/gruber_2009.pdf)</sup>

**HAL-TMLE** 使用高度自适应lasso初始估计量，其在基于损失的二次相异度中以快于 \( n^{-1/2} \) 的速度收敛，对应于 \( Q_{0} \) 和 \( G_{0} \) 估计快于 \( n^{-1/4} \) 的速率。<sup>[14](https://ar5iv.labs.arxiv.org/html/1708.09502)</sup> 近期的理论表述从Riesz表示子推导TMLE更新，该表示子充当聪明协变量，统一了从纵向数据到中介分析的多种设定。<sup>[15](https://arxiv.org/pdf/2604.21721)</sup> 定向深度架构（TDA）通过冻结大部分权重并在参数的定向子集上定义小型波动子模型（通常在最后一层），将TMLE更新直接嵌入神经网络的参数空间；TDA可将多个定向梯度组合为针对整个参数向量（如整条生存曲线）的单一通用更新，作者证明其继承了经典TMLE的双重稳健性和半参数效率保证。<sup>[16](https://arxiv.org/html/2507.12435)</sup>

## 应用

TMLE适用于许多因果效应参数，包括点处理效应、生存分析、纵向数据分析以及基因组学数据。<sup>[6](https://www.stat.cmu.edu/~ryantibs/journalclub/gruber_2009.pdf)</sup> 在流行病学中，它通过定向步骤获得ATE等参数的最佳估计，2025年的指南整合了药物流行病学中估计暴露对事件发生时间结局因果效应的最佳实践。<sup>[2](https://link.springer.com/article/10.1007/s10654-024-01173-x)</sup><sup> • </sup><sup>[17](https://researchonline.lshtm.ac.uk/id/eprint/4677041/1/Talbot-etal-2025-Guidelines-and-best-practices.pdf)</sup>

R生态系统包括依赖SuperLearner的原始tmle包、tlverse生态系统中含CV-TMLE的tmle3包、用于最优处理规则的tmle3mopttx、用于随机干预的tmle3shift、用于纵向时变暴露的ltmle，以及用于协作TMLE的ctmle。<sup>[9](https://joss.theoj.org/papers/10.21105/joss.08446.pdf)</sup><sup> • </sup><sup>[3](https://researchonline.lshtm.ac.uk/id/eprint/4647544/1/Targeted-maximum-likelihood-estimation-for-a-binary-treatment-A-tutorial.pdf)</sup> TMLE.jl是首个原生Julia实现，支持包括反事实均值和平均处理效应在内的待估参数。<sup>[9](https://joss.theoj.org/papers/10.21105/joss.08446.pdf)</sup>

## 局限与替代方案

当初始估计量过于自适应时，TMLE的有限样本表现会变差：如果 \( Q \) 过拟合，更新无法减少残余偏差。<sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC10362909/)</sup> 当 \( g_{n}(W) \) 过于接近0或1时，即实际 positivity 违反，定向步骤会遭受不稳定的逆加权；常见修复方法是通过 \( g^{*}_{n} = \max(\min(1-\delta, g_{n}), \delta) \) 截断 \( g \)，典型值 \( \delta = 0.025 \)。<sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC10362909/)</sup>

TMLE和AIPTW（ATE的AIPW估计量）在其半参数估计量类中均具有相同最小渐近方差下的效率，但TMLE作为代入估计量在有限样本中尊重参数的可能范围，而AIPTW则不然。<sup>[3](https://researchonline.lshtm.ac.uk/id/eprint/4647544/1/Targeted-maximum-likelihood-estimation-for-a-binary-treatment-A-tutorial.pdf)</sup> 在近期替代方案中，核去偏代入估计（KDPE）通过在再生核希尔伯特空间中的正则化似然最大化来精炼初始估计，并同时对所有路径可微目标参数去偏，而无需影响函数。<sup>[18](https://proceedings.mlr.press/v235/cho24c.html)</sup>

## References

1. [Targeted Maximum Likelihood Learning (van der Laan & Rubin, International Journal of Biostatistics, 2006)](https://www.degruyterbrill.com/document/doi/10.2202/1557-4679.1043/html?lang=en)
2. [Machine learning in causal inference for epidemiology (European Journal of Epidemiology, 2024)](https://link.springer.com/article/10.1007/s10654-024-01173-x)
3. [Targeted maximum likelihood estimation for a binary treatment: A tutorial (LSHTM repository copy; publisher version PMC6032875)](https://researchonline.lshtm.ac.uk/id/eprint/4647544/1/Targeted-maximum-likelihood-estimation-for-a-binary-treatment-A-tutorial.pdf)
4. [Targeting Learning: Robust Statistics for (review, arXiv 2020)](https://arxiv.org/pdf/2006.07333v1.pdf)
5. [Chapter 7 The TMLE Framework | Targeted Learning in R (tlverse handbook)](https://tlverse.org/tlverse-handbook/tmle3.html)
6. [Targeted Maximum Likelihood Estimation: A Gentle Introduction (Gruber & van der Laan, 2009/2010)](https://www.stat.cmu.edu/~ryantibs/journalclub/gruber_2009.pdf)
7. [Collaborative Double Robust Targeted Maximum Likelihood Estimation](https://pmc.ncbi.nlm.nih.gov/articles/PMC2898626/)
8. [Asymptotic Theory for Cross-validated Targeted Maximum Likelihood Estimation (UCB Biostatistics)](https://biostats.bepress.com/cgi/viewcontent.cgi?article=1276&context=ucbbiostat)
9. [TMLE.jl: Targeted Minimum Loss-Based Estimation in Julia (JOSS, peer-reviewed)](https://joss.theoj.org/papers/10.21105/joss.08446.pdf)
10. [Estimating Causal Effects Using Targeted Maximum Likelihood Estimation (Rosenblum & van der Laan overview)](https://people.csail.mit.edu/mrosenblum/Teaching_files/tmle_overview.pdf)
11. [An Introduction to Double/Debiased Machine Learning (IZA DP 18438)](https://docs.iza.org/dp18438.pdf)
12. [Targeted Learning: Causal Inference for Observational and Experimental Data (van der Laan & Rose, Springer 2011)](https://link.springer.com/book/10.1007/978-1-4419-9782-1)
13. [Evaluating the robustness of targeted maximum likelihood estimators via realistic simulations in nutrition intervention trials](https://pmc.ncbi.nlm.nih.gov/articles/PMC10362909/)
14. [Finite Sample Inference for Targeted Learning (arXiv:1708.09502)](https://ar5iv.labs.arxiv.org/html/1708.09502)
15. [A Riesz Representer Perspective on Targeted Learning (Balkus, Testa & Hejazi; arXiv:2604.21721)](https://arxiv.org/pdf/2604.21721)
16. [Targeted Deep Architectures: A TMLE-Based Framework for Robust Causal Inference in Neural Networks (2025)](https://arxiv.org/html/2507.12435)
17. [Guidelines and Best Practices for the Use of Targeted Maximum Likelihood and Machine Learning When Estimating Causal Effects of Exposures on Time-To-Event Outcomes (Talbot et al., 2025)](https://researchonline.lshtm.ac.uk/id/eprint/4677041/1/Talbot-etal-2025-Guidelines-and-best-practices.pdf)
18. [Kernel Debiased Plug-in Estimation (KDPE) (ICML 2024, PMLR v235)](https://proceedings.mlr.press/v235/cho24c.html)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Estimation theory and estimator families › Estimation: overview

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/targeted-learning-statistics

English original: https://www.edgepedia.org/targeted-learning-statistics
