基于分段仿射下界的快速精确最小绝对偏差直线拟合 Fast and Exact Least Absolute Deviations Line Fitting via Piecewise Affine Lower-Bounding 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2025-12-22
👁️ 预览文献
💡 AI 中文简介
最小绝对偏差(LAD)直线拟合对异常值稳健,但计算比最小二乘复杂。现有线性时间算法难以实现且缺乏公开代码,实践中常用线性规划或迭代重加权最小二乘(IRLS),后者不保证精确解。为此,我们提出分段仿射下界(PALB)方法,利用次梯度构造分段仿射下界,并通过细分方案精确求解。在合成数据和NOAA真实数据上,PALB呈现对数线性复杂度,比公开的LP和IRLS求解器更快。我们提供了Rust实现及Python接口。
领域机器学习/统计计算/鲁棒回归
适合谁读需要一定专业背景(熟悉回归分析、凸优化基础)
核心贡献提出PALB精确算法,利用次梯度构造分段仿射下界并设计细分方案,证明正确性并给出迭代次数上界;提供高效Rust实现和Python接口,填补了LAD拟合缺乏易用精确求解器的空白。
关键数据在合成数据集(含重尾异常值)和NOAA真实数据集上,PALB呈现经验对数线性缩放,且始终快于公开的LP和IRLS求解器。
推荐理由如果你需要处理含异常值的数据拟合,又不想在精度和速度间妥协,这篇论文给出了一个既快又准的解决方案,还附带了现成的代码。
关键词["最小绝对偏差", "直线拟合", "分段仿射下界", "精确算法", "鲁棒回归", "凸优化"]

原文摘要

查看英文原文摘要

Least-absolute-deviations (LAD) line fitting is robust to outliers but computationally more involved than least squares regression. Although the literature includes linear and near-linear time algorithms for the LAD line fitting problem, these methods are difficult to implement and, to our knowledge, lack maintained public implementations. As a result, practitioners often resort to linear programming (LP) based methods such as the simplex-based Barrodale-Roberts method and interior-point methods, or on iteratively reweighted least squares (IRLS) approximation which does not guarantee exact solutions. To close this gap, we propose the Piecewise Affine Lower-Bounding (PALB) method, an exact algorithm for LAD line fitting. PALB uses supporting lines derived from subgradients to build piecewise-affine lower bounds, and employs a subdivision scheme involving minima of these lower bounds. We prove correctness and provide bounds on the number of iterations. On synthetic datasets with varied signal types and noise including heavy-tailed outliers as well as a real dataset from the NOAA's Integrated Surface Database, PALB exhibits empirical log-linear scaling. It is consistently faster than publicly available implementations of LP based and IRLS based solvers. We provide a reference implementation written in Rust with a Python API.