← Back to Classic ML Mind Map
📊 Classic MLID: resampling-methods

Resampling Methods: SMOTE/ADASYN/Tomek

重采样方法 SMOTE/ADASYN/Tomek
🎯Core Definition
Resampling rebalances class distributions with data-level methods. SMOTE (Synthetic Minority Over-sampling Technique): for a minority sample xix_i, randomly pick a k-nearest neighbor xzix_{z_i} and interpolate along the segment to create xnew=xi+λ(xzi−xi)x_{new} = x_i + \lambda(x_{z_i} - x_i) with λ∼U[0,1]\lambda \sim U[0,1]; synthesizing new points reduces the overfitting caused by plain duplication. ADASYN (Adaptive Synthetic): the number of generated samples per minority point is proportional to how “hard” it is — points surrounded by more majority neighbors (closer to the boundary) get more synthetic samples, shifting the synthesis focus to the hard region. Tomek Links (cleaning): if xx and yy are mutual nearest neighbors from different classes, the pair is a Tomek Link (boundary pair); removing the majority-side sample cleans the boundary, often combined with SMOTE as SMOTE-Tomek: first synthesize boundary samples, then clean the overlapping boundary zone.
💡Use Cases
class imbalance with few minority samples and continuous numeric features (interpolation-able); interviews ask about the SMOTE formula, why it fails on text/high-dimensional sparse features, and why random duplication is bad.
⚡Key Problems Solved
random oversampling duplicates samples, so the model overfits on small repeated regions and its decision region is too concentrated; SMOTE interpolates in local feature space to “create” new samples and enlarges the minority decision region; but SMOTE does not address majority noise and boundary overlap (it may worsen overlap), while Tomek Links pushes the boundary away from overlapping zones — the combination (SMOTE-Tomek) mitigates both overfitting and boundary confusion.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Resampling Methods: SMOTE/ADASYN/Tomek.
Use Cases
In production engineering, what are the primary use cases for Resampling Methods: SMOTE/ADASYN/Tomek and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Write the SMOTE formula xnew=xi+λ(xzi−xi)x_{new} = x_i + \lambda(x_{z_i} - x_i); why is λ∈[0,1]\lambda \in [0,1] and why does it reduce duplication overfitting?
2
SMOTE's limits: why is it unsafe for high-dimensional/text/sparse features? Is it sensitive to label noise?
3
ADASYN vs SMOTE? Where is the adaptivity (what drives the number of samples generated)?
4
What is a Tomek Link? Oversampling or cleaning? Why combine it with SMOTE?
5
Should SMOTE run before or after the train/validation split? What leakage occurs if it runs before?
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "Resampling Methods: SMOTE/ADASYN/Tomek"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardClass ImbalanceNext Card →Huber Loss & Focal Loss

🔗 More Classic ML Knowledge Cards

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

重采样方法 SMOTE/ADASYN/Tomek (Resampling Methods: SMOTE/ADASYN/Tomek)

定义: 重采样用数据手段平衡类别分布。SMOTE (合成少数类过采样): 对少数类样本 x_i, 在 k 近邻中随机选一个近邻 x_z_i, 沿连线插值生成合成样本 x_new = x_i + (x_z_i - x_i), 其中 U[0,1], 相比随机复制缓解过拟合。ADASYN (自适应合成): 按少数类样本“难学程度”决定生成量——周围多数类密度越高(越靠近决策边界)的样本生成越多, 把合成样本重心移到难分区域。Tomek Links (清洗): 若 x 与 y 互为最近邻且分属不同类别, 二者构成 Tomek Link(边界样本对), 删除其中多数类样本, 常用于与 SMOTE 组合 (SMOTE-Tomek): 先合成边界样本、再清洗边界重叠区。 使用场景: 类别不平衡且少数类样本量少、特征为连续数值(可插值)时; 面试常问 SMOTE 插值公式、为什么不能用于文本/高维稀疏特征、复制过采样为什么不行。 解决的问题: 随机过采样只是复制少数类, 模型在小范围重复样本上过拟合、决策区域过于集中; SMOTE 在局部特征空间插值“凭空生成”新样本, 扩大了少数类决策区域; 但 SMOTE 不处理多数类噪声与边界重叠, 反而可能加重重叠, Tomek Links 把决策面推离重叠边界, 二者组合(如 SMOTE-Tomek)同时缓解过拟合与边界混淆。

核心要点

  • 写出 SMOTE 插值公式 x_new = x_i + (x_z_i - x_i), 解释为什么 [0,1]、为什么能缓解复制过拟合?
  • SMOTE 的局限: 为什么对高维/文本/稀疏特征不安全? 对标签噪声敏感吗?
  • ADASYN 与 SMOTE 的区别? “自适应”体现在哪里(生成数量按什么决定)?
  • Tomek Links 是什么? 它属于过采样还是清洗? 为什么常与 SMOTE 组合使用?
  • SMOTE 应该在划分训练/验证集之前还是之后做? 放在划分前会带来什么泄漏?