← Back to Data Scientist Mind Map
📈 Data ScientistID: ds-meta-learners-s-t-x-learner

Meta-Learners: S- vs T- vs X-Learner

元学习器 S/T/X-Learner 算法对比
🎯Core Definition
Meta-Learners for CATE Estimation (S-Learner, T-Learner, X-Learner & R-Learner, Künzel et al. & Nie et al.) formulate causal inference algorithms leveraging any standard regression model (LightGBM, XGBoost, Deep Nets) as base estimators; 1) S-Learner (Single Model): pooling treatment indicator TT as a standard feature into one model μ(X,T)\mu(X, T), estimating τ^=μ(X,1)−μ(X,0)\hat{\tau} = \mu(X, 1) - \mu(X, 0) (flaw: regularizers often shrink treatment effect coefficients to zero in high dimensions); 2) T-Learner (Two Models): fitting separate models μ1(X)\mu_1(X) on treatment data and μ0(X)\mu_0(X) on control data, τ^=μ1−μ0\hat{\tau} = \mu_1 - \mu_0 (flaw: fails under severe sample imbalance due to non-shared representations); 3) X-Learner: crossing imputed counterfactual residuals weighted by propensity score e(X)e(X), delivering state-of-the-art robustness under severe treatment-control sample imbalance (e.g. 1% treatment rates); 4) R-Learner: optimizing Robinson's orthogonalized residual loss.
💡Use Cases
Industrial uplift production pipelines, extreme sample imbalance marketing, and benchmarking CATE estimators.
⚡Key Problems Solved
Eliminates regularization shrinkage bias in S-Learner and sample inefficiency in T-Learner under heavily skewed real-world promotional datasets.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Meta-Learners: S- vs T- vs X-Learner.
Use Cases
In production engineering, what are the primary use cases for Meta-Learners: S- vs T- vs X-Learner and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Write the complete 4-step X-Learner algorithm detailing counterfactual residual imputation and propensity-weighted aggregation?
2
Why does X-Learner vastly outperform T-Learner under severe treatment-control sample imbalance (e.g. 1:100 ratio)?
3
Explain why GBDT greedy split selections and L1 regularization induce severe shrinkage bias on treatment effect predictions in S-Learner?
4
Derive R-Learner's objective via Robinson's transformation showing how residualizing outcomes and treatments yields Neyman Orthogonality?
5
How to deploy production-grade X-Learner and R-Learner pipelines using Microsoft EconML and Uber CausalML packages?
🔗Foundational Prerequisite Cards (Click to Review)
📖 In-depth Guide:📄 ds-core-cheatsheet →
Updated 2026-08-14
🎯
Verify Mastery: Practice Exam Questions for "Meta-Learners: S- vs T- vs X-Learner"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardQini Curve, AUUC & Uplift EvaluationNext Card →Precision Marketing & Uplift ROI Budget

🔗 More Data Scientist Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/DS/card/ds-meta-learners-s-t-x-learner
中文速览与面试要点

元学习器 S/T/X-Learner 算法对比 (Meta-Learners: S- vs T- vs X-Learner)

定义: 增益建模元学习器四大流派 (Meta-Learners: Single-Learner, Two-Learner, X-Learner & R-Learner / Künzel & Nie 提出) 是数据科学家利用任意标准机器学习算法(GBDT, LightGBM, 神经网络)作为底层 Base Regressor,无缝搭建因果效应预测器的核心架构;1) S-Learner (Single Model): 将处理标识 T 作为单个普通特征与协变量 X 一起训练单个模型 (X, T),预测增益 (X) = (X, 1) - (X, 0)(缺陷:高维下 T 容易被特征选择忽略导致增益被严重惩罚归零);2) T-Learner (Two Models): 独立训练两个模型 _1(X) (仅用处理组) 与 _0(X) (仅用对照组), (X) = _1(X) - _0(X)(缺陷:未共享表征,两组样本量极度不平衡时泛化差);3) X-Learner (Crossover Imputation): 交叉插补反事实残差,通过倾向得分 e(X) 加权两阶段倾向模型,在处理组与对照组样本量极度不平衡(如发券仅触达 1% 用户)时表现最强;4) R-Learner (Robinson Residualization): 基于 Robinson 变换直接最小化正交残差平方损失。 使用场景: 电商与金融增益预测模型开发、样本不平衡下的精准营销触达、CATE 预测算法选型。 解决的问题: 业务场景中实验组往往只有极小比例流量(如 99:1 的极度不平衡);X-Learner 与 R-Learner 解决了 S/T-Learner 在小样本与不平衡下的偏差和过拟合问题。

核心要点

  • 写出 X-Learner 的完整四步执行算法:1) 拟合 _0, _1;2) 交叉插补伪效应 D_1, D_0;3) 拟合残差模型 _1, _0;4) 用倾向得分 e(X) 加权组合?
  • 为什么在处理组样本量极少(如 N_T = 1,000 vs N_C = 100,000)的极端不平衡场景下,X-Learner 能够大幅战胜 T-Learner?
  • S-Learner 的“正则化偏置 (Regularization Bias)”:为什么使用 L1 正则化(Lasso)或 GBDT 贪心树分裂时,处理变量 T 很容易被完全忽略?
  • R-Learner 的 Robinson 变换推导:如何将 Neyman 正交性 (Neyman Orthogonality) 与残差化表达为加权平方损失 _ 1n ( Y_i - (X_i) T_i)^2?
  • 因果包选型实战:如何使用微软 EconML 与 Uber CausalML 工业级因果推断库快速落地 X-Learner 与 R-Learner?