Abstract
The extended Weber location problem involves finding a point that minimizes the sum of the $q$-th powers of Euclidean distances to a set of fixed data points. For $1 \le q < 2$, this problem presents a significant challenge due to singularities at the data points where the gradient is undefined. This paper introduces the $q$-th Power Weiszfeld Algorithm without Singularity (qPWAWS), which employs a novel de-singularity subgradient to escape these points. We provide a rigorous convergence analysis, proving that the algorithm achieves superlinear convergence when the optimal solution is a singular point for $1 < q < 2$. Empirical evaluations on online portfolio selection tasks demonstrate that the proposed approach is both robust and computationally efficient, significantly outperforming standard methods.
Introduction
The Weber location problem is a fundamental optimization task in spatial analysis and machine learning. In its generalized form, the goal is to minimize a cost function $C_q(y) = \sum_{i=1}^n \|y - x_i\|^q$, where $x_i$ are fixed data points and $y$ is the location to be determined. The choice of the exponent $q$ dictates the properties of the solution: $q=2$ corresponds to the geometric mean (least squares), while $q=1$ yields the geometric median.
The Singularity Challenge
A critical issue arises when $1 \le q < 2$. At any point $y$ that coincides with a data point $x_k$, the gradient $\nabla C_q(y)$ becomes undefined because the term $\|y - x_k\|^{q-2}$ involves a division by zero. Traditional iterative methods, such as the widely-used Weiszfeld algorithm, often fail or "get stuck" if an iteration lands on a data point. While some researchers have treated this as a rare occurrence, this paper demonstrates that such singular points can be dense in high-dimensional spaces, necessitating a robust algorithmic solution.
Proposed Methodology: qPWAWS
To address the singularity, we propose the $q$-th Power Weiszfeld Algorithm without Singularity (qPWAWS). The core of this algorithm is the "de-singularity subgradient." When the current iterate $y$ hits a data point $x_k$, the algorithm calculates a subgradient by essentially "ignoring" the singular term associated with $x_k$ itself and summing the gradients relative to all other points.
Specifically, the algorithm defines a direction based on the remaining data points that acts as a resultant force, pulling the iterate away from the singularity and toward a region with lower cost. This unified framework bridges the gap between the standard $L_1$ median ($q=1$) and the smooth $L_2$ mean ($q=2$).
Theoretical Contributions and Insights
The paper provides a unified mathematical framework for the range $1 \le q < 2$. A major theoretical breakthrough is the proof of superlinear convergence for $1 < q < 2$ when the global minimum is a singular point. This is a significant improvement over the linear convergence typically observed in such problems. Furthermore, the authors identify and fix several incomplete statements in previous convergence proofs for Weiszfeld-style algorithms, providing a more rigorous foundation for the field.
From a practical standpoint, the $q$-th power median (especially for $1 < q < 2$) acts as a "sweet spot" between the mean and the median. It is more robust to outliers than the mean ($q=2$) but smoother and more informative than the standard median ($q=1$).
Experimental Results
The robustness of qPWAWS was tested against the standard qPWA in a controlled environment. In a scenario with six data points, the standard algorithm became trapped at a sub-optimal singular point after just one iteration. In contrast, qPWAWS successfully utilized the de-singularity subgradient to escape and reached the true global minimum within 24 iterations.
The algorithm was further evaluated on an Online Portfolio Selection (OPS) task using the NYSE(N) and CSI300 datasets. The $q$-th power median proved to be a superior estimator for aggregating expert opinions and historical returns. On the NYSE(N) dataset, using $q=1.3$ resulted in a cumulative wealth of $1.1581 \times 10^9$, vastly exceeding the $3.3183 \times 10^8$ achieved by the standard $L_1$ median ($q=1$). Convergence was rapid across all tests, typically requiring fewer than 27 iterations on average.
Conclusion
The qPWAWS algorithm provides a robust and theoretically sound solution to the extended Weber location problem. By effectively handling singularities, it opens new possibilities for using $q$-th power medians in high-dimensional machine learning and financial optimization tasks. Future work will focus on optimizing the escape step size and extending the de-singularity logic to other non-smooth optimization problems that suffer from similar singular points.
Summary updated