Fast and Exact Least Absolute Deviations Line Fitting via Piecewise Affine Lower-Bounding

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Volz, Stefan, Storath, Martin, Weinmann, Andreas
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912786496356352
author Volz, Stefan
Storath, Martin
Weinmann, Andreas
author_facet Volz, Stefan
Storath, Martin
Weinmann, Andreas
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2512_20682
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Fast and Exact Least Absolute Deviations Line Fitting via Piecewise Affine Lower-Bounding
Volz, Stefan
Storath, Martin
Weinmann, Andreas
Machine Learning
Optimization and Control
65D10 (Primary), 90C25, 62J99, 65K05 (Secondary)
G.1.6; F.2.1; G.3; G.4
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.
title Fast and Exact Least Absolute Deviations Line Fitting via Piecewise Affine Lower-Bounding
topic Machine Learning
Optimization and Control
65D10 (Primary), 90C25, 62J99, 65K05 (Secondary)
G.1.6; F.2.1; G.3; G.4
url https://arxiv.org/abs/2512.20682