Manuscript Offprint
arXiv:2610.33957A Nonconvex Framework for Joint Sparse Sample Weighting and Parameter Estimation
Abstract
We propose a joint sparse sample weighting and parameter estimation (SWAPE) framework that jointly optimizes model parameters and sample weights to train a model while simultaneously assigning an individual weight to each training data point. Our framework accommodates several widely used loss functions for the model parameters, including convex, weakly convex, and difference-of-convex loss, and weakly convex sparsity functions to control the complexity of the sample weights. To solve the resulting bivariate problem, we propose an alternating minimization method in which the subproblems for updating the model parameters and weights are each approximated using majorize-minimize techniques. We provide several approximation methods for the loss functions considered in this paper, and show the overall algorithm's convergence. Numerical experiments on various learning tasks and data anomaly settings demonstrate the effectiveness of the proposed framework in minimizing the impact of undesirable data points compared to benchmark methods.
Keywords: difference-of-convex programs, alternate search method, directional stationary points, sparsity
1 Introduction
Judicious sample selection is an important task in machine learning. It is well accepted that the quality of the training data directly affects the predictive model; however, many standard algorithms assume a clean dataset, whereas in practice observations often contain noise, outliers, and other anomalies. Therefore, training predictive models using strategically selected samples has emerged as a critical methodology for building robust models.
Recent results have shown that selective use of data points can boost model performance and mitigate the unwanted effects of noisy data, supporting the development of reliable and efficient tools. A conventional data selection method is sampling, e.g., simple sampling, which randomly draws data points one at a time until a desired sample size, or a desired ratio among predetermined data groups is obtained, e.g., under-, over-, and stratified sampling. Alternatively, algorithm-based
*Emails: hnojavan@smu.edu, chulm@smu.edu and mijua@smu.edu approaches iteratively assign weights to data points [13, 14, 39], measure data values [16], or select a subset of data points so that the model emphasizes accuracy on the most significant samples [43]. Formulated as a mathematical program, sample selection has also been modeled as an optimization problem, for example, by introducing a binary variable [40], to indicate whether each data point should be included in the training criteria.
This paper proposes an optimization framework for sample selection that exploits mature variable selection methods [12, 48, 54]. Instead of driving the coefficients of insignificant variables to zero as in variable selection, our formulation employs sparsity regularizers in the training problem to control the complexity of the training data used by the model. We assign a weight variable to the loss incurred by each sample and solve for the weight, allowing the model to choose which data points to use during training. The resulting problem can be viewed as a widely studied weighted empirical risk minimization problem, except that our method simultaneously optimizes both the data weights and the model parameters. The introduction of weights as variables, in addition to the model coefficients, makes solving the resulting bivariate optimization problem significantly more challenging. For instance, our formulation can be nonconvex even with a convex loss term, limiting the availability of efficient numerical tools in convex programming. A major goal of our study is to address the computational challenges posed by the mathematical properties given by the choice of loss functions and to provide numerical results demonstrating the benefits of sample selection when dealing with potentially noisy and contaminated data.
Our algorithm is built upon existing numerical methods that alternately solve for one variable at a time. Such an iterative scheme for solving multi-block problems, known as the Gauss-Seidel method [8], has received considerable attention in the literature, especially with recent innovations in large-scale, data-driven methods. The convergence of the algorithm has been shown in early works in convex and continuously differentiable settings [5, 50, 52] and later extended to nonconvex and nonsmooth problems [9, 37, 38, 49]. A key component to tackling the computational challenge in the latter problems is to approximate each subproblem, e.g., by linearization or convex approximation, so that each iteration can be solved efficiently using readily available tools. In this work, we adopt the blockwise minimization methods to alternately minimize the weights of the data points and the model parameters. This work emphasizes nonconvex loss functions, including a difference-of-convex (DC) loss, that generalizes many existing loss functions used in practice, e.g., convex and weakly convex loss functions. We approximate each subproblem using majorization techniques [23] and analyze the algorithm's convergence. Our results extend the existing theory of the alternating minimization scheme for the two-block problem, in which each block, while fixing the other, can be written as a DC function.
Our work is motivated by the growing imperative in modern statistics and machine learning to learn with better utilization of training data. In robust regression, [15, 25] demonstrate that simultaneously training model parameters and optimizing data weights can significantly strengthen performance. However, many existing approaches are tailored to specific formulations, such as a convex loss paired with specialized sparsity functions, and often make restrictive assumptions about the underlying properties of the data. To address these limitations, we propose a generalized framework that accommodates a broad class of loss and sparsity functions and an algorithm that solves the resulting formulation efficiently, without requiring a priori knowledge of the data's underlying structure. We summarize the main contributions of this work as follows:
-
We propose a bivariate formulation that simultaneously minimizes the weight of data points and model parameters. Our method aims to promote selective utilization of training data points by applying sparsity regularizers to the weights, thereby performing data selection while training the model;
-
We employ an alternating minimization scheme to solve the proposed nonconvex problem, and discuss the majorization techniques used for each subproblem for DC loss and functions with a Lipschitz-continuous gradient. Our convergence analysis extends existing theory of the two-block alternating minimization scheme for the special case studied in this paper where the objective is a bi-DC function;
-
We conduct extensive computational experiments to demonstrate the efficacy of our method compared to suitable benchmark models. For this purpose, we test the proposed method in linear regression, binary classification via neural networks, and recommender systems under various data-anomaly settings: (i) when data points follow different underlying distributions, (ii) when the labels in the classification problems are contaminated, and (iii) when the data contains random noise and adversarial attacks.
This paper is organized as follows. In Section 2, we introduce our framework, including the nonconvex loss and penalty functions used in this work, and define the concept of stationarity for subsequent analysis. Section 3 presents our algorithm, subproblem approximations, and the convergence analysis, followed by three numerical study experiments in Section 4. This document presents theoretical results and omits proofs; the proofs are included in the Appendices. We close this section by defining notations used throughout the paper.
Notations: Let be a bivariate function in the variables and . We define a function of while fixing . The function is similarly defined. The directional derivative of a function at a point in the direction is defined as
For a vector , we define . For a nonnegative matrix , the notation is defined similarly, entrywise. For vectors , denotes the Hadamard product, . Likewise, the Hadamard product of two matrices of the same size is their elementwise product.
where is a compact convex set and is a box constraint set defined as for some .
We assume the model’s loss measured by is nonnegative. Therefore, we restrict the weights to take nonnegative values in the weighted loss, denoted as . Additionally, a penalty function, , captures the complexity of the weights of the data points used in the model. We employ and modify existing sparsity functions for this purpose. In (2), a convex and lower-bounded regularizer, , is included to accommodate existing regularized methods. The scalars , determine the weight of the regularizer and penalty, respectively. The computational challenges of solving (2) is associated with the choices of and . In Section 2.1, we discuss more details and list the requirements made on the loss and penalty functions.
2.1 Assumptions on the loss and penalty functions
This work focuses on two classes of loss functions for training the model coefficients . For a fixed arbitrary , we assume that loss function satisfies one of the following conditions:
(L1) The function is a difference-of-convex (DC) function, i.e., there exist two convex functions and such that for any ;
(L2) There exists Lip such that
The first class of loss functions, shown in (L1), includes convex loss functions, such as generalized linear models [24], and nonconvex loss functions with a DC representation, e.g., a shallow feedforward neural network [3].
The second class of loss functions, in (L2), includes functions with a Lipschitz-continuous gradient. The condition (3) is also closely related to weakly convex functions; a function is called weakly convex if there exists a weak convexity modulus such that is convex. With some algebraic work, one can show (3) is equivalent to being a weakly convex function. Additionally, it is not difficult to see that weakly convex functions form a subclass of DC functions since one can write a weakly convex function as , a difference of two convex functions and . However, the converse relationship does not hold in general. To complete the relationship between DC loss and weakly convex functions, Proposition 1 identifies a condition for a DC loss satisfying (L1) to achieve weakly convexity.
Proposition 1. Let hold for . If there exists such that
\mathcal{L}_{\mathbf{w}}^{\mathrm{c v e}}(\mathbf{y})-\mathcal{L}_{\mathbf{w}}^{\mathrm{c v e}}(\mathbf{x})-\mathcal{L}_{\mathbf{w}}^{\mathrm{c v e}}^{\prime}(\mathbf{x};\mathbf{y}-\mathbf{x})\leq\frac{\mathrm{L i p}_{\nabla\mathcal{L}_{\mathbf{w}}^{\mathrm{c v e}}}}{2}\|\mathbf{x}-\mathbf{y}\|_{2}^{2}\quad\forall\mathbf{x},\mathbf{y}\in\mathcal{X}, \tag{4}then is weakly convex with modulus .
We next discuss mathematical properties of the univariate sparsity regularizer . It is well known that most existing sparsity functions, e.g., the -norm used in LASSO [48], aim to promote sparsity in the model coefficients by setting the values to zero. However, directly substituting such a function into in (2) is not meaningful. For instance, with , we have a trivial solution for the problem by setting . Therefore, we consider a modified version of the sparsity functions that promote the weight variable to take the value 1 rather than 0. With this modification, the sparsity function gives the model the flexibility to use (or omit) the -th data point during training at a penalty. Below, we present assumptions made on the sparsity function in the scalar variable :
(P3) The function is a weakly convex function, i.e., there exists such that is convex;

Figure 1: Penalty functions: LASSO ( ) on the left, and MCP ( , ) on the right.
(P4) The function is symmetric about , satisfies when , and is concave and non-decreasing on the interval .
The assumptions (P3) and (P4) include existing folded-concave sparsity functions, such as SCAD [12], MCP [54], and transformed penalty [32], with a mild modification of shifting the function horizontally by a constant. Figure 1 illustrates variants of LASSO and MCP that meet our requirements. Both functions have been horizontally shifted by one unit such that they are symmetric at t = 1.
2.2 Concept of stationarity
The problem (2) is nonconvex and nondifferentiable; therefore, one should carefully select the type of stationary solutions to analyze the problem. For this purpose, we first show that (2) is directionally differentiable under the assumptions made on the loss and the sparsity regularizer. Lemma 2 below shows this result.
Lemma 2. Let or hold. Under , the function in (2) is directionally differentiable, and its directional derivative at the point in the direction is written as
Note that a function that is not differentiable in the ordinary sense may be directionally differentiable. For example, it has been shown that the directional derivative of a convex function is well-defined at any point [4]. Lemma 2 shows that, under the stated assumptions, the problem (2) has a directionally differentiable objective subject to a convex constraint set. For such a structured problem, the directional stationary solution, used in nonconvex and nonsmooth optimization [11], is a suitable solution type for analyzing the problem. We formally define a directional stationary solution below.
Definition 1. Consider a closed convex set . A point is a directional stationary solution of the problem if for all .
We next propose an algorithm to solve (2) and then show the convergence analysis using the directional stationary solution.
3 Algorithm
Instead of a direct minimization of in (2), we iteratively solve for and while fixing the other variable. Employing the majorize-minimization (MM) framework [23, 31] for each subproblem, we propose iteratively minimizing a surrogate function, which is an upper-bound estimation given by the previous iterate. Our approach is a special case of the block successive upper-bound minimization algorithm [37] with a two-block structure.
3.1 Majorize-minimization framework
To introduce our framework, let us consider problem (2) in the variable x while fixing the variable . We define a resulting function only involving terms associated with :
For any given , the surrogate function denoted by , shall satisfy the following conditions:
Likewise, while fixing variable , define
and a function to satisfy
for any . In (7), the function serves as an upper bound of and, likewise, for in (9). Our method sequentially minimizes the discussed upper approximation problems of (2) in each variable to obtain the next iterate. The overall framework is presented below:
The x-problem. Next, we present for different cases of loss functions considered in this paper. First, for the case of DC loss, i.e., satisfies (L1), we apply the first-order approximation for the concave component and obtain
where and is a nonnegative scalar. Such an estimation is widely used to minimize a DC function, e.g., DC algorithm in [35]. We formally state the relationship between and in (11) in Lemma 3.
Lemma 3. Let hold. The functions and , defined in (6) and (11), satisfy the condition (7) for any .
For the case of the loss function satisfies (L2), we construct
for some , following the approximation techniques used in the literature [9, 38]. The relationship between (6) and (12) is shown in Lemma 4.
Lemma 4. Let hold. If , the functions and , defined in (6) and (12), satisfy the condition (7).
Lastly, if in (2) satisfies assumption (L1) with (4), i.e., is weakly convex, we construct
for some . We observe that the function in (13) can be convexified by choosing greater than the weakly convexity modulus of . Lemma 5 follows directly from Proposition 1 and states this property.
Lemma 5. The functions and , defined in (6) and (13) respectively, satisfy the condition (7). Moreover, if satisfies (L1) such that inequality (4) holds and , then in (13) is convex.
The w-problem. Recall our method in (10) alternately updates x and w by minimizing an approximation in each subproblem. Next, we present the surrogate function for updating the variable w:
for some . By adding a quadratic term, convexifies and serves as an upper bound for . This relationship between and is stated in Lemma 6.
Lemma 6. The functions and , defined in (8) and (14), satisfy condition (9). Moreover, if holds with , then is convex.
3.2 Convergence analysis
We show the convergence of our method in (10) for the x- and w-subproblem approximations given in Section 3.1. Theorem 7 below summarizes our results.
Theorem 7. Let assumptions (L1) - (L2) and (P3)-(P4) hold. Consider the sequences generated by (10) where one of the following holds for the x-subproblem:
(i) holds and is defined as (11) for some ;
(ii) holds and is defined as (12) for some ;
(iii) with (4) holds and is defined as (13) for some ,
and is defined in (14) for some . Then the sequence achieves the following properties:
(a) For every ,
for some nonnegative , and the sequence converges;
(b) We have
(c) The sequence has a convergent subsequence denoted by as . For the case (iii), the accumulation point is a directional stationary solution of problem (2).
Note that for cases (i) and (ii), is a directional stationary solution if and . The proof for case (iii) does not require the assumptions (L1) and (4), but these conditions ensure the -subproblem in (10) is convex.
4 Numerical Experiments
We conduct three experiments to evaluate the performance of our method in (2) under different data contamination scenarios. In Section 4.1 and Section 4.2, we investigate linear regression and binary classification using synthetic data that embed outliers following a different data distribution and contain mislabeled classes in the training set, respectively. Section 4.3 builds a recommender system on the Netflix Prize data [7] with random noise and under an adversarial attack. In all experiments, we compare our method, denoted as SWAPE, with suitable existing benchmark methods, selected for each experiment. Further details on data generation, subproblem derivations, comparison methods, hyperparameter selection, and implementation for each experiment are provided in Appendices B-D. All tables presented in this section report average values over replications, with their standard deviations shown in parentheses.
4.1 Linear regression with vertical and interior-clustered contaminations
In this section, we analyze the performance of (2) on linear regression with potentially contaminated data. Given a data matrix and the response vector , the problem (2) can be written as
with the least squares loss in the first term. We choose to be the minimax concave penalty (MCP) [54] function, which is horizontally shifted to promote taking a value of 1. Since our setting considers a lower-dimensional problem, i.e., , we set . We implement the (10) to solve (16) using surrogates (13) and (14) for and subproblems, respectively. We derive a closed-form solution for both and subproblems so that each iteration can be computed efficiently.
SWAPE is compared to ordinary least squares (OLS), least absolute deviation (LAD), and Huber loss [21] functions, as well as methods designed for training a model performing data selection, such as least trimmed squares (LTS) [42] and -IPOD [45]. The hyperparameters of our method and -IPOD are tuned using cross-validation, whereas LTS selects a fixed amount of samples at 75% to train the model.
4.1.1 Experiment setting
We test all models on three types of synthetic data: data without contamination, vertical contamination, and interior-clustered contamination. For the first case, we generate a matrix whose entries follow . For this setting, we use and . Using the ground-truth vector and Gaussian noise , the response vector is generated according to

True fitted value
Figure 2: Residuals versus true fitted values from the first replication. From left to right: no contamination; interior-clustered contamination with two clouds for ; and vertical contamination with .
For the vertical and interior-clustered contamination cases, we follow the data generation process in [51] to include outlier points in the training set. In both settings, the training set contains proportion of observations generated by (17) for some and an proportion following a different generation procedure, thereby synthetically creating data contamination. Our experiments vary the contamination level as , from less contaminated to more contaminated cases. In addition, a parameter is used to vary the distance between the (former) uncontaminated and (latter) contaminated data points, measuring the severity of contamination. We include Figure 2 to illustrate the two types of contamination considered in our experiments. For each setting, we test on the severity levels . We denote as an index set that contains the described contaminated data points, i.e., .
For each ground truth , we generate a set of training instances following the described procedure, and solve the resulting training problem (16) to obtain a solution . On the other hand, the testing set is generated only using (17). We conduct 200 independent replications for each setting, and report the results as means with standard deviations. To report the results, we consider the following three metrics to quantitatively evaluate the performance of the solution of each method:
The mean squared error (MSE) and signal MSE capture the prediction error of measured by the response vector and ground truth, respectively. The estimation error computes the distance between the estimated solution and the ground truth.
In addition, we examine the effect of the weight, , in identifying and downweighting potentially contaminated data in the training set. Let denote the number of training data points. We compare the index set, , that includes the true contaminated data points, to the set of indices,
which indicates the data points with zero weights. Comparing the elements in the two sets allows us to compute
Precision is the fraction of observations identified as contaminated that are truly contaminated, while recall is the fraction of truly contaminated observations that are correctly identified. The F1-score measures the overall performance by combining precision and recall. Lastly, we report the percentage of data points utilized during our method's training, measured by
For LTS and -IPOD, the set includes the data points omitted by the corresponding method. For LTS, the trimmed observations are identified as contaminated, whereas for -IPOD, an observation is identified as contaminated when its estimated mean shift parameter is nonzero.
4.1.2 Results
We report results for the case of no contamination in Table 1. All methods exhibit similar estimation performance, with OLS and Huber performing slightly better overall. We observe that SWAPE remains competitive despite retaining roughly half of the observations, while LTS trained with of the data yields higher MSE, signal MSE, and estimation error. -IPOD achieves performance closer to OLS and Huber by using about of the data.
Table 1: Results for linear regression with uncontaminated data.
| Method | MSE | Signal MSE | Estimation Error | Retained |
|---|---|---|---|---|
| SWAPE | 1.020 (0.026) | 0.020 (0.014) | 0.030 (0.011) | 50.29 |
| Θ-IPOD | 1.014 (0.024) | 0.014 (0.011) | 0.025 (0.009) | 94.98 |
| OLS | 1.010 (0.022) | 0.010 (0.005) | 0.022 (0.006) | - |
| LAD | 1.016 (0.024) | 0.016 (0.009) | 0.028 (0.008) | - |
| Huber | 1.011 (0.023) | 0.011 (0.006) | 0.023 (0.007) | - |
| LTS | 1.030 (0.029) | 0.030 (0.018) | 0.037 (0.012) | 75.00 |
Table 2 reports the results for the vertical contamination setting. Our method exhibits stable prediction accuracy across all contamination and severity settings, with MSE remaining close to 1.03, while the benchmark methods' performance deteriorates sharply as the dataset embeds more vertical outliers. For instance, when , LTS and -IPOD obtain MSE values around 1.02 for . These values increase to 2.01 and 4.21, respectively, when the contamination level rises to . The different performance of our model and the two benchmark models can be attributed to the percentage of retained data. The three models use about of data and achieve high F1 scores between 0.86–0.95 when . As values increase to 0.3 and 0.4, our method adaptively uses and of the data points. On the other hand, while -IPOD adapts and utilizes of data for , but its retained value of significantly exceeds the nominal contamination rate when . Using a fixed of the data, LTS performs comparably only when the contamination level matches . Consequently, the recall values for -IPOD and LTS drop substantially for , resulting in F1 scores of 0.21 and 0.76, respectively. In contrast, our method achieves an F1 score of 0.93. OLS is highly sensitive to vertical contamination. LAD and Huber offer greater robustness than OLS but consistently produce larger prediction and estimation errors than the SWAPE. We observe a similar trend for when the severity of vertical contamination increases.
Lastly, Table 3 summarizes the performance under interior-clustered contamination. We first discuss the lower-severity case at . When , SWAPE, -IPOD, and LTS outperform
Table 2: Results for linear regression on data with vertical contamination. Parameters and , indicating the percentage and severity of contamination, are annotated for each scenario.
| Setting | Method | MSE | Signal MSE | Estimation Error | Retained | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|---|
| SWAPE | 1.033 (0.038) | 0.033 (0.032) | 0.034 (0.013) | 74.12 | 0.804 (0.189) | 0.964 (0.064) | 0.859 (0.111) | |
| Θ-IPOD | 1.024 (0.031) | 0.023 (0.023) | 0.030 (0.011) | 79.79 | 0.953 (0.060) | 0.957 (0.062) | 0.952 (0.036) | |
| OLS | 2.003 (0.105) | 1.001 (0.099) | 0.072 (0.010) | - | - | - | - | |
| LAD | 1.131 (0.050) | 0.130 (0.045) | 0.040 (0.011) | - | - | - | - | |
| Huber | 1.193 (0.049) | 0.192 (0.046) | 0.041 (0.009) | - | - | - | - | |
| LTS | 1.020 (0.023) | 0.020 (0.012) | 0.030 (0.010) | 75.00 | 0.799 (0.003) | 0.999 (0.003) | 0.888 (0.003) | |
| SWAPE | 1.035 (0.035) | 0.034 (0.027) | 0.037 (0.014) | 64.74 | 0.862 (0.139) | 0.980 (0.038) | 0.909 (0.078) | |
| Θ-IPOD | 1.021 (0.027) | 0.021 (0.016) | 0.030 (0.011) | 70.38 | 0.987 (0.011) | 0.974 (0.029) | 0.980 (0.014) | |
| OLS | 3.202 (0.155) | 2.201 (0.150) | 0.096 (0.010) | - | - | - | - | |
| LAD | 1.353 (0.085) | 0.352 (0.082) | 0.054 (0.012) | - | - | - | - | |
| Huber | 1.960 (0.153) | 0.959 (0.148) | 0.075 (0.014) | - | - | - | - | |
| LTS | 1.104 (0.043) | 0.103 (0.036) | 0.054 (0.016) | 75.00 | 0.999 (0.003) | 0.833 (0.003) | 0.908 (0.003) | |
| SWAPE | 1.033 (0.032) | 0.032 (0.023) | 0.037 (0.014) | 54.40 | 0.885 (0.105) | 0.992 (0.016) | 0.931 (0.059) | |
| Θ-IPOD | 4.208 (0.468) | 3.205 (0.468) | 0.131 (0.018) | 94.70 | 0.834 (0.306) | 0.125 (0.077) | 0.213 (0.122) | |
| OLS | 4.865 (0.213) | 3.862 (0.201) | 0.119 (0.010) | - | - | - | - | |
| LAD | 2.108 (0.235) | 1.106 (0.233) | 0.091 (0.021) | - | - | - | - | |
| Huber | 4.438 (0.222) | 3.435 (0.212) | 0.120 (0.012) | - | - | - | - | |
| LTS | 2.010 (0.221) | 1.008 (0.218) | 0.153 (0.035) | 75.00 | 0.987 (0.014) | 0.617 (0.009) | 0.759 (0.011) | |
| SWAPE | 1.033 (0.033) | 0.032 (0.027) | 0.035 (0.015) | 71.79 | 0.770 (0.210) | 0.991 (0.024) | 0.848 (0.139) | |
| Θ-IPOD | 1.015 (0.023) | 0.015 (0.009) | 0.027 (0.009) | 78.71 | 0.947 (0.062) | 1.000 (0.002) | 0.972 (0.034) | |
| OLS | 3.565 (0.184) | 2.564 (0.178) | 0.114 (0.017) | - | - | - | - | |
| LAD | 1.134 (0.045) | 0.133 (0.041) | 0.041 (0.011) | - | - | - | - | |
| Huber | 1.198 (0.050) | 0.197 (0.045) | 0.043 (0.010) | - | - | - | - | |
| LTS | 1.019 (0.024) | 0.019 (0.010) | 0.030 (0.009) | 75.00 | 0.800 (0.000) | 1.000 (0.000) | 0.889 (0.000) | |
| SWAPE | 1.031 (0.030) | 0.030 (0.023) | 0.035 (0.013) | 63.69 | 0.847 (0.134) | 0.996 (0.012) | 0.909 (0.081) | |
| Θ-IPOD | 1.016 (0.022) | 0.015 (0.009) | 0.026 (0.009) | 69.81 | 0.994 (0.009) | 1.000 (0.002) | 0.997 (0.005) | |
| OLS | 6.646 (0.282) | 5.643 (0.276) | 0.153 (0.018) | - | - | - | - | |
| LAD | 1.362 (0.084) | 0.361 (0.081) | 0.056 (0.013) | - | - | - | - | |
| Huber | 2.032 (0.173) | 1.030 (0.170) | 0.079 (0.017) | - | - | - | - | |
| LTS | 1.380 (0.111) | 0.377 (0.109) | 0.108 (0.027) | 75.00 | 1.000 (0.000) | 0.833 (0.000) | 0.909 (0.000) | |
| SWAPE | 1.032 (0.031) | 0.032 (0.022) | 0.038 (0.013) | 54.58 | 0.891 (0.098) | 0.999 (0.005) | 0.939 (0.056) | |
| Θ-IPOD | 4.725 (3.644) | 3.726 (3.642) | 0.171 (0.137) | 75.19 | 0.983 (0.074) | 0.618 (0.371) | 0.693 (0.306) | |
| OLS | 10.950 (0.413) | 9.947 (0.410) | 0.191 (0.014) | - | - | - | - | |
| LAD | 2.144 (0.272) | 1.143 (0.270) | 0.092 (0.024) | - | - | - | - | |
| Huber | 10.156 (0.422) | 9.152 (0.421) | 0.193 (0.019) | - | - | - | - | |
| LTS | 4.310 (0.438) | 3.309 (0.435) | 0.318 (0.040) | 75.00 | 0.997 (0.007) | 0.623 (0.004) | 0.767 (0.005) |
the other regression methods, with MSE values around 1.02 while retaining 71.7-78.5% of the data. As increases to 0.3 and 0.4, our model reduces the retained data to 63.0% and 56.6% while maintaining strong prediction performance across metrics. The LAD also shows robust performance across all levels of contamination that is comparable to the SWAPE. In contrast, the performance of Θ-IPOD and LTS declines as increases and eventually yields higher MSE, signal MSE, and estimation error than all regression benchmark methods at . We observe that our model's performance improves when , while the other methods seem to suffer in all prediction metrics.
4.2 Binary classification with flipped labels
This experiment examines binary classification on the synthetic two-moons dataset, available in the Scikit-learn library [34]. We use a fully connected, two-hidden-layer feed-forward neural network
Table 3: Results for linear regression on data with interior-clustered contamination. Parameters and , indicating the percentage and severity of contamination, are annotated for each scenario.
| Setting | Method | MSE | Signal MSE | Estimation Error | Retained | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|---|
| 1 cloud | SWAPE | 1.084 (0.307) | 0.084 (0.311) | 0.044 (0.050) | 70.86 | 0.732 (0.222) | 0.967 (0.121) | 0.814 (0.167) |
| Θ-IPOD | 1.127 (0.414) | 0.126 (0.413) | 0.045 (0.068) | 79.08 | 0.862 (0.185) | 0.928 (0.233) | 0.887 (0.216) | |
| OLS | 2.503 (0.180) | 1.500 (0.173) | 0.247 (0.040) | - | - | - | - | |
| LAD | 1.529 (0.360) | 0.527 (0.356) | 0.145 (0.060) | - | - | - | - | |
| Huber | 1.854 (0.421) | 0.852 (0.416) | 0.186 (0.064) | - | - | - | - | |
| LTS | 1.100 (0.414) | 0.100 (0.415) | 0.041 (0.061) | 75.00 | 0.774 (0.127) | 0.967 (0.159) | 0.860 (0.141) | |
| 1 cloud | SWAPE | 3.014 (2.611) | 2.013 (2.609) | 0.220 (0.230) | 61.94 | 0.520 (0.349) | 0.667 (0.421) | 0.578 (0.374) |
| Θ-IPOD | 4.262 (1.634) | 3.258 (1.633) | 0.358 (0.152) | 87.79 | 0.238 (0.351) | 0.162 (0.333) | 0.175 (0.332) | |
| OLS | 3.611 (0.276) | 2.605 (0.270) | 0.323 (0.042) | - | - | - | - | |
| LAD | 3.463 (1.137) | 2.458 (1.139) | 0.318 (0.105) | - | - | - | - | |
| Huber | 3.719 (0.504) | 2.713 (0.504) | 0.336 (0.061) | - | - | - | - | |
| LTS | 4.282 (2.889) | 3.279 (2.890) | 0.328 (0.233) | 75.00 | 0.452 (0.470) | 0.377 (0.392) | 0.411 (0.427) | |
| 1 cloud | SWAPE | 8.825 (3.813) | 7.825 (3.812) | 0.576 (0.173) | 60.54 | 0.175 (0.189) | 0.204 (0.238) | 0.186 (0.210) |
| Θ-IPOD | 7.979 (2.301) | 6.977 (2.299) | 0.558 (0.098) | 82.98 | 0.034 (0.060) | 0.011 (0.009) | 0.016 (0.013) | |
| OLS | 4.692 (0.494) | 3.690 (0.489) | 0.383 (0.041) | - | - | - | - | |
| LAD | 6.462 (1.251) | 5.462 (1.252) | 0.483 (0.058) | - | - | - | - | |
| Huber | 5.522 (0.662) | 4.521 (0.660) | 0.435 (0.046) | - | - | - | - | |
| LTS | 9.264 (3.291) | 8.262 (3.295) | 0.609 (0.112) | 75.00 | 0.052 (0.100) | 0.032 (0.062) | 0.040 (0.077) | |
| 1 cloud | SWAPE | 1.029 (0.031) | 0.029 (0.023) | 0.035 (0.014) | 70.94 | 0.740 (0.192) | 0.997 (0.015) | 0.835 (0.130) |
| Θ-IPOD | 1.367 (1.252) | 0.367 (1.253) | 0.062 (0.126) | 79.15 | 0.846 (0.238) | 0.927 (0.258) | 0.883 (0.246) | |
| OLS | 4.856 (0.436) | 3.855 (0.431) | 0.402 (0.059) | - | - | - | - | |
| LAD | 1.638 (0.659) | 0.638 (0.663) | 0.158 (0.076) | - | - | - | - | |
| Huber | 2.326 (1.108) | 1.326 (1.110) | 0.227 (0.110) | - | - | - | - | |
| LTS | 1.110 (0.740) | 0.109 (0.744) | 0.037 (0.065) | 75.00 | 0.788 (0.095) | 0.985 (0.119) | 0.876 (0.106) | |
| 1 cloud | SWAPE | 2.136 (3.274) | 1.135 (3.272) | 0.114 (0.217) | 58.10 | 0.691 (0.238) | 0.920 (0.249) | 0.782 (0.236) |
| Θ-IPOD | 10.359 (4.574) | 9.358 (4.567) | 0.614 (0.260) | 86.21 | 0.136 (0.328) | 0.127 (0.331) | 0.128 (0.329) | |
| OLS | 7.605 (0.626) | 6.603 (0.626) | 0.514 (0.067) | - | - | - | - | |
| LAD | 6.778 (4.137) | 5.777 (4.139) | 0.473 (0.232) | - | - | - | - | |
| Huber | 8.095 (1.584) | 7.093 (1.581) | 0.545 (0.112) | - | - | - | - | |
| LTS | 9.242 (7.275) | 8.243 (7.275) | 0.524 (0.372) | 75.00 | 0.437 (0.495) | 0.364 (0.413) | 0.397 (0.450) | |
| 1 cloud | SWAPE | 12.408 (9.314) | 11.416 (9.321) | 0.606 (0.432) | 55.17 | 0.364 (0.371) | 0.440 (0.433) | 0.396 (0.395) |
| Θ-IPOD | 21.286 (7.938) | 20.299 (7.933) | 0.956 (0.200) | 76.93 | 0.003 (0.005) | 0.002 (0.003) | 0.002 (0.004) | |
| OLS | 10.372 (1.316) | 9.380 (1.312) | 0.615 (0.065) | - | - | - | - | |
| LAD | 17.180 (5.163) | 16.191 (5.161) | 0.835 (0.137) | - | - | - | - | |
| Huber | 13.066 (1.908) | 12.076 (1.904) | 0.719 (0.076) | - | - | - | - | |
| LTS | 22.914 (8.380) | 21.928 (8.375) | 1.001 (0.164) | 75.00 | 0.003 (0.007) | 0.002 (0.004) | 0.003 (0.005) | |
| 2 clouds | SWAPE | 1.031 (0.034) | 0.031 (0.027) | 0.037 (0.017) | 71.75 | 0.757 (0.202) | 0.976 (0.057) | 0.833 (0.128) |
| Θ-IPOD | 1.018 (0.023) | 0.017 (0.010) | 0.029 (0.010) | 78.49 | 0.916 (0.081) | 0.976 (0.042) | 0.942 (0.038) | |
| OLS | 1.947 (0.383) | 0.948 (0.382) | 0.235 (0.053) | - | - | - | - | |
| LAD | 1.162 (0.127) | 0.161 (0.126) | 0.092 (0.036) | - | - | - | - | |
| Huber | 1.254 (0.215) | 0.254 (0.215) | 0.115 (0.048) | - | - | - | - | |
| LTS | 1.020 (0.023) | 0.019 (0.010) | 0.030 (0.009) | 75.00 | 0.799 (0.003) | 0.999 (0.003) | 0.888 (0.003) | |
| 2 clouds | SWAPE | 1.092 (0.491) | 0.092 (0.491) | 0.045 (0.058) | 63.01 | 0.820 (0.155) | 0.979 (0.090) | 0.885 (0.113) |
| Θ-IPOD | 1.557 (1.258) | 0.557 (1.260) | 0.100 (0.154) | 73.40 | 0.842 (0.308) | 0.835 (0.336) | 0.833 (0.323) | |
| OLS | 3.068 (0.593) | 2.065 (0.589) | 0.351 (0.056) | - | - | - | - | |
| LAD | 1.674 (0.678) | 0.673 (0.679) | 0.184 (0.088) | - | - | - | - | |
| Huber | 2.259 (0.864) | 1.258 (0.864) | 0.260 (0.100) | - | - | - | - | |
| LTS | 1.354 (1.159) | 0.353 (1.159) | 0.099 (0.103) | 75.00 | 0.961 (0.167) | 0.801 (0.139) | 0.874 (0.152) | |
| 2 clouds | SWAPE | 4.134 (5.712) | 3.132 (5.703) | 0.248 (0.361) | 56.58 | 0.664 (0.357) | 0.758 (0.400) | 0.704 (0.372) |
| Θ-IPOD | 6.657 (4.203) | 5.655 (4.197) | 0.533 (0.237) | 86.58 | 0.349 (0.433) | 0.171 (0.286) | 0.210 (0.322) | |
| OLS | 4.585 (0.756) | 3.584 (0.757) | 0.465 (0.056) | - | - | - | - | |
| LAD | 3.975 (2.532) | 2.974 (2.533) | 0.384 (0.190) | - | - | - | - | |
| Huber | 4.661 (1.436) | 3.660 (1.437) | 0.462 (0.107) | - | - | - | - | |
| LTS | 7.527 (6.219) | 6.524 (6.210) | 0.530 (0.311) | 75.00 | 0.559 (0.436) | 0.350 (0.272) | 0.430 (0.335) | |
| 2 clouds | SWAPE | 1.030 (0.032) | 0.029 (0.026) | 0.036 (0.016) | 72.39 | 0.778 (0.201) | 0.990 (0.027) | 0.855 (0.131) |
| Θ-IPOD | 1.016 (0.022) | 0.015 (0.009) | 0.027 (0.009) | 78.66 | 0.943 (0.073) | 1.000 (0.000) | 0.969 (0.040) | |
| OLS | 3.357 (0.954) | 2.359 (0.952) | 0.371 (0.084) | - | - | - | - | |
| LAD | 1.153 (0.120) | 0.153 (0.117) | 0.090 (0.035) | - | - | - | - | |
| Huber | 1.246 (0.246) | 0.246 (0.244) | 0.112 (0.050) | - | - | - | - | |
| LTS | 1.020 (0.024) | 0.019 (0.011) | 0.030 (0.010) | 75.00 | 0.800 (0.000) | 1.000 (0.000) | 0.889 (0.000) | |
| 2 clouds | SWAPE | 1.029 (0.033) | 0.028 (0.024) | 0.035 (0.016) | 63.59 | 0.846 (0.135) | 0.998 (0.009) | 0.909 (0.082) |
| Θ-IPOD | 3.297 (4.317) | 2.301 (4.324) | 0.206 (0.315) | 75.62 | 0.750 (0.400) | 0.754 (0.425) | 0.747 (0.416) | |
| OLS | 6.315 (1.464) | 5.315 (1.466) | 0.564 (0.086) | - | - | - | - | |
| LAD | 1.924 (1.518) | 0.923 (1.516) | 0.200 (0.131) | - | - | - | - | |
| Huber | 3.487 (2.661) | 2.489 (2.667) | 0.337 (0.201) | - | - | - | - | |
| LTS | 2.087 (2.828) | 1.086 (2.826) | 0.186 (0.160) | 75.00 | 0.962 (0.169) | 0.802 (0.140) | 0.875 (0.153) | |
| 2 clouds | SWAPE | 2.521 (5.909) | 1.518 (5.897) | 0.113 (0.281) | 54.31 | 0.826 (0.224) | 0.940 (0.226) | 0.876 (0.219) |
| Θ-IPOD | 18.433 (14.803) | 17.409 (14.776) | 0.910 (0.457) | 84.59 | 0.270 (0.432) | 0.152 (0.308) | 0.174 (0.333) | |
| OLS | 10.193 (2.077) | 9.177 (2.062) | 0.741 (0.092) | - | - | - | - | |
| LAD | 8.090 (8.375) | 7.075 (8.364) | 0.536 (0.385) | - | - | - | - | |
| Huber | 10.407 (4.471) | 9.390 (4.455) | 0.725 (0.221) | - | - | - | - | |
| LTS | 18.487 (16.341) | 17.465 (16.303) | 0.872 (0.492) | 75.00 | 0.549 (0.427) | 0.343 (0.267) | 0.422 (0.328) |
with softplus activation and sigmoid functions for the hidden and output neurons, respectively, to compute the probability that a data point belongs to one of two classes. We embed the parameters of the network, e.g., edge weights and bias terms, in the variable , and denote as the probability of an -th data point belonging to a class . Applying the cross-entropy loss, the resulting problem is written as
We choose a variant of LASSO [48] for and two types of regularizers for , which will be discussed shortly. Our experiment applies (10) to solve (21) using surrogates (13) and (14) for and subproblems, respectively. We note that the choices of differentiable activation functions used in our experiments result in a weakly convex -subproblem, provided that belongs to a compact constraint set, which in turn helps convexify the problem. However, we do not impose any restriction on in our implementation and rely on an existing solver, Adam [27], to find a stationary solution for the -subproblem. On the other hand, the -subproblem is updated using a closed-form solution.
We compare our method to a baseline neural network that solves (21) only for while fixing . For both the baseline and our models, we consider four training variants: no regularization where , regularization [29] which penalizes large network parameters by using , early stopping [6, 36] which terminates training when validation performance no longer improves, and dropout [46] which randomly deactivates hidden units during training. The SWAPE and baseline models use the same network architecture and training configuration within each variant.
4.2.1 Experiment setting
Following the two-moons model [34], we generate two featured data points, each belonging to class 0 or 1. We generate a training set and label , and a testing set and label . This experiment considers a setting in which a subset of training data points has flipped labels. If the -th data point belongs to a set of contaminated indices, e.g., , then we flip and reassign the label of the data point, e.g., from class 0 to 1 or vice versa, to introduce label contamination. The test labels remain unchanged. For each contamination proportion , we conduct 200 independent replications. Figure 3 illustrates the training and test data from a replication with .
Let us denote as the solution of (21) given by the training set. Using , we predict the -th testing data point to belong to class 1 if , and class 0 otherwise. The resulting predicted label is denoted as . To compare the model performance, we measure the prediction accuracy and the area under the receiver operating characteristic curve (AUC) defined as:
where and are the number of observations in in class 0 and 1, respectively. The indicator returns 1 if the condition in the parentheses holds. Our results also report the effects of in informing data points with flipped labels. Following the linear regression experiments, we report precision, recall, and F1 score, defined in (19), and the retained percentage of training data in (20).



Figure 3: Representative training and test datasets for in a replication. Left: the contaminated training set, where circles and triangles denote the observed class labels. Center: the label contamination in the training set, with flipped-label observations highlighted in red and the remaining observations shown in gray. Right: the uncontaminated test set with the true class labels.
4.2.2 Results
Table 4 reports the classification performance on the test set. SWAPE outperforms the baseline neural network under most variants and contamination levels. Both accuracy and AUC improve significantly under no additional regularization, regularization, and dropout, while the two models perform similarly under early stopping. The gains are largest without regularization and under regularization, whereas in dropout, the improvement is smaller but remains consistent across contamination levels. For the above three variants, our method's performance is achieved by retaining 73.34–76.19% of training data when . When the contamination level increases to , the percentage of retained data decreases to 61.78–65.28%, reducing the influence of mislabeled training observations. The precision, recall, and F1 score show that the downweighted observations align reasonably well with the mislabeled samples, with the highest F1 score of 0.828 obtained by the no-regularization method when . As increases, the F1 scores decrease, indicating the difficulty of identifying flipped labels in the case of a high level of contamination.
In contrast, although early stopping improves the baseline method’s accuracy and AUC, this variant limits learning of the network parameters and observation weights in our method. As a result, the trained weights remain close to their initialization, , making early stopping less suitable for SWAPE. For all values of , early stopping uses the entire dataset, i.e., retaining 100% of the training data.
Figure 4 illustrates an example decision boundary of SWAPE and baseline models. In no regularization, regularization, and dropout, our method recovers decision boundaries that align with the two-moons structure, whereas the corresponding baseline boundaries are more irregular. This suggests that the learned weights reduce the influence of mislabeled observations on the decision boundary, allowing the network to better recover the underlying class structure.
4.3 Recommender System
This experiment examines the performance of (2) in building a recommender system using the Netflix Prize dataset [7]. We employ a regression-based loss used in the Sparse Linear Method (SLIM) [33] and test the recommendation performance on data without contamination, with random noise, and Bandwagon attack [20, 26, 30] scenarios; we refer to [55] for a comprehensive review of recommender system methods and data contamination settings. Our experiment considers top-K recommendation [1], where performance is evaluated only on the model's top-recommended items.

Figure 4: Estimated decision boundaries for in the same replication as Figure 3.
The Netflix dataset contains over 100 million ratings, from 480,189 users on 17,770 movies, where each user gives a rating between 1 and 5 for a movie they watched. We apply k-core pruning [2] and stratified random sampling [1] to obtain a representable subset containing 1,622 users, 747 movies, and 136,579 ratings, which results in a data matrix with a density of 11.27%, i.e., about eleven percent of entries are filled with nonzero ratings.
Let be the user-item interaction matrix, where is the number of users and is the number of items. Each entry has a nonzero value (rating) if a user rated an item , and otherwise has a zero. The aim of SLIM is to construct the item-item interaction matrix by minimizing the loss . Employing the loss function and assigning a weight to each entry, we obtain the formulation,
where the constraints are inherited from the SLIM method. The problem (22) can be solved by minimizing column-wise problems defined by the -th column of , and , denoted , and respectively, for all :
We propose to solve problem (23) by alternately updating using the approximation in (12) and using (14). Note that the former approximation differs from the linear regression experiment, which employs (13). This modification lets us solve a large-scale problem by deriving an efficient one-step update using the gradient of the current iterate, i.e., , while avoiding an expensive inverse-matrix computation.
We compare the SWAPE with widely practiced methods including the singular value decomposition (SVD) [28], User-based k-nearest neighbors (UserKNN), and Item-based k-nearest neighbors (ItemKNN) [44]. We also implement SLIM [33] and a modification of SLIM, where the LTS scheme is applied to the users of the data matrix, called SLIM-LTS, for comparison.
Table 4: Results for binary classification on data with flipped label contamination
| Regularization | Accuracy | AUC | Weight Trained by SWAPE | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Baseline | SWAPE | Baseline | SWAPE | Retained | Precision | Recall | F1 | ||
| 0.25 | None | 0.815 (0.025) | 0.908 (0.026) | 0.864 (0.023) | 0.962 (0.016) | 74.05 | 0.822 (0.046) | 0.849 (0.119) | 0.828 (0.086) |
| Early stopping | 0.892 (0.033) | 0.892 (0.032) | 0.960 (0.013) | 0.959 (0.015) | 100.00 | 0.000 (0.000) | 0.000 (0.000) | 0.000 (0.000) | |
| 0.849 (0.024) | 0.910 (0.027) | 0.903 (0.022) | 0.966 (0.017) | 73.34 | 0.809 (0.070) | 0.850 (0.160) | 0.813 (0.122) | ||
| Dropout | 0.895 (0.017) | 0.902 (0.025) | 0.939 (0.014) | 0.957 (0.018) | 76.19 | 0.831 (0.071) | 0.777 (0.224) | 0.772 (0.184) | |
| 0.30 | None | 0.771 (0.032) | 0.881 (0.044) | 0.820 (0.031) | 0.943 (0.036) | 70.92 | 0.819 (0.060) | 0.786 (0.194) | 0.780 (0.159) |
| Early stopping | 0.869 (0.044) | 0.865 (0.043) | 0.943 (0.035) | 0.941 (0.030) | 100.00 | 0.000 (0.000) | 0.000 (0.000) | 0.000 (0.000) | |
| 0.808 (0.033) | 0.879 (0.039) | 0.865 (0.030) | 0.946 (0.032) | 70.36 | 0.804 (0.104) | 0.777 (0.223) | 0.758 (0.188) | ||
| Dropout | 0.863 (0.026) | 0.879 (0.033) | 0.913 (0.021) | 0.941 (0.026) | 72.59 | 0.816 (0.108) | 0.740 (0.249) | 0.739 (0.225) | |
| 0.35 | None | 0.718 (0.038) | 0.835 (0.062) | 0.762 (0.035) | 0.906 (0.065) | 68.24 | 0.794 (0.098) | 0.718 (0.211) | 0.730 (0.186) |
| Early stopping | 0.827 (0.057) | 0.829 (0.057) | 0.911 (0.046) | 0.913 (0.047) | 100.00 | 0.000 (0.000) | 0.000 (0.000) | 0.000 (0.000) | |
| 0.752 (0.038) | 0.835 (0.058) | 0.806 (0.036) | 0.914 (0.054) | 66.33 | 0.777 (0.114) | 0.728 (0.251) | 0.710 (0.215) | ||
| Dropout | 0.817 (0.036) | 0.844 (0.041) | 0.873 (0.029) | 0.916 (0.038) | 68.19 | 0.787 (0.137) | 0.713 (0.255) | 0.709 (0.233) | |
| 0.40 | None | 0.658 (0.040) | 0.764 (0.079) | 0.691 (0.039) | 0.850 (0.087) | 64.83 | 0.742 (0.107) | 0.645 (0.214) | 0.661 (0.194) |
| Early stopping | 0.761 (0.087) | 0.755 (0.095) | 0.846 (0.091) | 0.841 (0.104) | 100.00 | 0.000 (0.000) | 0.000 (0.000) | 0.000 (0.000) | |
| 0.690 (0.041) | 0.773 (0.068) | 0.734 (0.044) | 0.865 (0.076) | 61.82 | 0.716 (0.134) | 0.674 (0.248) | 0.657 (0.207) | ||
| Dropout | 0.748 (0.047) | 0.783 (0.067) | 0.801 (0.044) | 0.868 (0.073) | 66.67 | 0.748 (0.158) | 0.624 (0.280) | 0.631 (0.264) | |
| 0.45 | None | 0.577 (0.041) | 0.638 (0.100) | 0.596 (0.043) | 0.701 (0.142) | 65.28 | 0.639 (0.151) | 0.483 (0.230) | 0.510 (0.222) |
| Early stopping | 0.632 (0.117) | 0.625 (0.120) | 0.689 (0.147) | 0.681 (0.154) | 100.00 | 0.005 (0.071) | 0.000 (0.002) | 0.000 (0.003) | |
| 0.597 (0.045) | 0.651 (0.093) | 0.624 (0.048) | 0.728 (0.138) | 61.78 | 0.637 (0.161) | 0.522 (0.273) | 0.515 (0.239) | ||
| Dropout | 0.635 (0.053) | 0.670 (0.094) | 0.670 (0.053) | 0.757 (0.122) | 63.96 | 0.616 (0.212) | 0.524 (0.257) | 0.538 (0.240) | |
4.3.1 Experiment setting
We compare the performance of all models on three data settings: Netflix data without any contamination, random noise, and bandwagon attack [20, 26, 30]. Following the data model in [53], the random noise uses a training set in which some ratings are arbitrarily swapped to a different value. We control the proportion of the flipped ratings by a parameter , where an increased results in more noise in the data. The bandwagon attack injects artificially created, or fake, users to promote a predetermined set of target items. These users give the maximum rating to the target items, as well as items that are genuinely popular in the dataset. In our setting, each user rates 5 for 20 target items and the 20 most popular items, and assigns a uniformly drawn random rating between 3 and 5 to 60 arbitrarily chosen items. We use to control the proportion of artificial users in the training set.
Given the data matrix , define a set of index pairs that captures rated elements:
We perform 80/20 split at the user-level to construct the training matrix such that contains approximately 80% of the observations in , 108,628 ratings, while the rest of the elements are set to zero. The remaining 27,951 index pairs form the testing set , resulting . Problem (22) formulated with is solved to obtain , which then makes the prediction,
Each element can be interpreted as a score to recommend item to the user . Using the scores, we describe the recommendation-making process at the user level.
For each user , we identify items, e.g., , with the highest scores among items outside the training set. The resulting set, denoted by , contains the indices of the top movies the model recommends to each user. On the other hand, using , we identify items that actually received a sufficiently high rating from the user; e.g., a movie rated by user with a rating for some threshold . We call the latter a relevant itemset for user , denoted by . Observe that a recommendation can be considered successful if an item in is contained in . This is captured by , which has a value of 1 if the top item in belongs to , or if the -th item appears in the latter set. Consequently, the system's recommendation for each user can have a rank between 1 and if the recommendation is successful, or otherwise. With the above discussion, we present the evaluation metrics:
The mean absolute error (MAE) reports the average difference between the true ratings in and scores given by . The hit rate reports the percentage of users with a successful recommendation. The mean reciprocal rank (MRR) further evaluates whether the order of recommendations is correct, with the highest value in the summand achieving 1 if the top item recommendation is successful.
We conduct 30 replications by performing independent train–test splits, and report the average values and standard deviations in the results. For each replication, our experiment evaluates the performance using different numbers of recommended items, . To analyze , we report only the percentage of retained data, omitting precision, recall, and F1 score as we assign entry-level weights in this experiment. Therefore, our model measures the proportion of entries in used in training, whereas SLIM-LTS reports the percentage of users kept during training for each columnwise problem.
4.3.2 Results
We first compare all models' performance on the dataset without any contamination. In Table 5, when , we observe that our model achieves the highest hit rate and MRR of 0.481 and 0.302, respectively. Recall that our model solves SLIM while optimizing the weights on each entry in . Using 79.1% of the data entries, our model improves baseline SLIM performance, e.g., from a hit rate of 0.402. On the other hand, UserKNN and ItemKNN both show significantly lower hit rates around the value 0.015, but outperform our model and SLIM in terms of MAE values.
Table 5: Performance comparison on the Netflix dataset
| Method | MAE | HitRate | MRR | Retained | ||||
|---|---|---|---|---|---|---|---|---|
| K=5 | K=10 | K=15 | K=5 | K=10 | K=15 | |||
| SWAPE | 2.985 (0.007) | 0.481 (0.019) | 0.696 (0.011) | 0.785 (0.011) | 0.302 (0.018) | 0.332 (0.018) | 0.339 (0.018) | 79.13 |
| SLIM | 2.221 (0.007) | 0.402 (0.010) | 0.627 (0.012) | 0.760 (0.010) | 0.205 (0.006) | 0.235 (0.005) | 0.246 (0.005) | - |
| SLIM-LTS | 1.249 (0.008) | 0.196 (0.012) | 0.365 (0.016) | 0.491 (0.015) | 0.089 (0.006) | 0.111 (0.006) | 0.121 (0.006) | 80.00 |
| SVD | 3.476 (0.005) | 0.243 (0.009) | 0.419 (0.012) | 0.541 (0.013) | 0.117 (0.006) | 0.140 (0.006) | 0.150 (0.006) | - |
| UserKNN | 0.745 (0.003) | 0.012 (0.003) | 0.036 (0.005) | 0.071 (0.008) | 0.005 (0.001) | 0.008 (0.001) | 0.011 (0.001) | - |
| ItemKNN | 0.729 (0.003) | 0.017 (0.003) | 0.049 (0.006) | 0.095 (0.008) | 0.007 (0.001) | 0.011 (0.002) | 0.014 (0.002) | - |
The difference in performance can be analyzed by examining the magnitude of predicted scores, i.e., entries in , produced by the models. We report that SLIM's predicted scores are generally lower than the true ratings given by users. This is attributed to a sparsity regularizer that drives the solution of the SLIM formulation toward zero, resulting in lower values in . We observe similar behavior in other SLIM-based models and SVD, which achieve higher hit rates while mostly
Table 6: Performance of different models on the Netflix dataset with random noise.
| Method | MAE | HitRate | MRR | Retained | |||||
|---|---|---|---|---|---|---|---|---|---|
| K=5 | K=10 | K=15 | K=5 | K=10 | K=15 | ||||
| 0.1 | SWAPE | 3.027 (0.007) | 0.481 (0.019) | 0.695 (0.011) | 0.785 (0.010) | 0.293 (0.020) | 0.322 (0.020) | 0.329 (0.020) | 79.96 |
| SLIM | 2.254 (0.007) | 0.389 (0.010) | 0.614 (0.013) | 0.750 (0.010) | 0.197 (0.006) | 0.226 (0.006) | 0.237 (0.005) | - | |
| SLIM-LTS | 1.293 (0.010) | 0.177 (0.012) | 0.333 (0.012) | 0.458 (0.012) | 0.080 (0.007) | 0.100 (0.006) | 0.110 (0.006) | 80.00 | |
| SVD | 3.481 (0.005) | 0.222 (0.011) | 0.383 (0.014) | 0.500 (0.013) | 0.106 (0.006) | 0.128 (0.006) | 0.137 (0.006) | - | |
| UserKNN | 0.779 (0.003) | 0.006 (0.002) | 0.018 (0.004) | 0.041 (0.007) | 0.003 (0.001) | 0.004 (0.001) | 0.006 (0.001) | - | |
| ItemKNN | 0.762 (0.003) | 0.008 (0.002) | 0.028 (0.005) | 0.062 (0.009) | 0.003 (0.001) | 0.006 (0.001) | 0.009 (0.001) | - | |
| 0.3 | SWAPE | 3.109 (0.006) | 0.478 (0.019) | 0.691 (0.012) | 0.782 (0.010) | 0.289 (0.021) | 0.319 (0.020) | 0.326 (0.020) | 81.58 |
| SLIM | 2.318 (0.006) | 0.370 (0.009) | 0.592 (0.008) | 0.727 (0.008) | 0.184 (0.005) | 0.214 (0.004) | 0.224 (0.004) | - | |
| SLIM-LTS | 1.392 (0.009) | 0.141 (0.011) | 0.275 (0.012) | 0.392 (0.011) | 0.063 (0.006) | 0.080 (0.005) | 0.089 (0.005) | 80.00 | |
| SVD | 3.487 (0.007) | 0.183 (0.008) | 0.323 (0.011) | 0.433 (0.012) | 0.090 (0.006) | 0.109 (0.007) | 0.117 (0.006) | - | |
| UserKNN | 0.851 (0.003) | 0.001 (0.001) | 0.004 (0.002) | 0.010 (0.004) | 0.000 (0.000) | 0.001 (0.000) | 0.001 (0.000) | - | |
| ItemKNN | 0.836 (0.003) | 0.002 (0.001) | 0.007 (0.003) | 0.023 (0.007) | 0.001 (0.000) | 0.001 (0.001) | 0.003 (0.001) | - | |
underpredicting the scores. As values increase to 10 and 15, all models improve their hit rates and MRR, with SWAPE achieving the strongest overall recommendation performance. SLIM-LTS improves SLIM's MAE by removing 20% of users at the column level. However, it resulted in decreased hit rate and MRR. SVD achieves a lower hit rate than our model, while also having a higher MAE.
In the random-noise setting, we observe a similar trend. In Table 6, our method remains the strongest, with the highest hit rate and MRR, but with higher MAE values. Overall, all methods' evaluation metrics worsen slightly with the introduction of random noise, and performance worsens further as the contamination level increases; for example, our model's hit rate decreases from 0.481 to 0.478 when increases from 0.1 to 0.3 for .
Finally, we analyze the performance of all models under the bandwagon attack. We consider and 0.10, where the dataset includes 5% and 10% of artificially created users who try to promote target items as well as genuinely popular items, respectively. We first evaluate the models using the same metrics as before, then examine whether the bandwagon attack influences the models to recommend target items. Table 7 shows that all models' hit rates and MRR increase as the dataset contains a higher percentage of bandwagon attackers. This indicates that the models can better identify genuinely popular items when more users (including attackers) give those items the highest rating. MAE values change only marginally across all models.
Table 7: Performance of different models on the Netflix dataset under a bandwagon attack.
| Method | MAE | HitRate | MRR | Retained | |||||
|---|---|---|---|---|---|---|---|---|---|
| K=5 | K=10 | K=15 | K=5 | K=10 | K=15 | ||||
| 0.05 | SWAPE | 2.944 (0.007) | 0.492 (0.021) | 0.702 (0.011) | 0.788 (0.011) | 0.314 (0.017) | 0.343 (0.016) | 0.350 (0.016) | 77.66 |
| SLIM | 2.212 (0.007) | 0.432 (0.009) | 0.668 (0.012) | 0.798 (0.010) | 0.222 (0.005) | 0.254 (0.005) | 0.264 (0.005) | - | |
| SLIM-LTS | 1.234 (0.009) | 0.206 (0.012) | 0.375 (0.015) | 0.503 (0.017) | 0.093 (0.007) | 0.115 (0.007) | 0.125 (0.007) | 80.00 | |
| SVD | 3.534 (0.006) | 0.244 (0.011) | 0.423 (0.013) | 0.543 (0.012) | 0.119 (0.007) | 0.142 (0.007) | 0.152 (0.007) | - | |
| UserKNN | 0.746 (0.003) | 0.018 (0.005) | 0.052 (0.008) | 0.102 (0.010) | 0.007 (0.002) | 0.011 (0.002) | 0.015 (0.002) | - | |
| ItemKNN | 0.747 (0.003) | 0.012 (0.003) | 0.037 (0.005) | 0.074 (0.007) | 0.004 (0.001) | 0.008 (0.001) | 0.010 (0.001) | - | |
| 0.10 | SWAPE | 2.901 (0.007) | 0.506 (0.023) | 0.709 (0.010) | 0.788 (0.011) | 0.330 (0.018) | 0.358 (0.017) | 0.364 (0.017) | 75.18 |
| SLIM | 2.214 (0.006) | 0.445 (0.011) | 0.682 (0.011) | 0.810 (0.008) | 0.231 (0.006) | 0.263 (0.005) | 0.273 (0.005) | - | |
| SLIM-LTS | 1.230 (0.009) | 0.215 (0.010) | 0.384 (0.014) | 0.513 (0.013) | 0.098 (0.007) | 0.120 (0.007) | 0.130 (0.007) | 80.00 | |
| SVD | 3.581 (0.006) | 0.246 (0.011) | 0.416 (0.010) | 0.533 (0.011) | 0.118 (0.005) | 0.140 (0.005) | 0.149 (0.005) | - | |
| UserKNN | 0.748 (0.003) | 0.020 (0.005) | 0.061 (0.008) | 0.118 (0.010) | 0.008 (0.002) | 0.013 (0.002) | 0.017 (0.002) | - | |
| ItemKNN | 0.760 (0.003) | 0.010 (0.002) | 0.032 (0.005) | 0.064 (0.007) | 0.004 (0.001) | 0.007 (0.001) | 0.009 (0.001) | - | |
For the same bandwagon attack settings, we report all models' target hit rate and target MRR
Table 8: Robustness to target promotion under bandwagon attacks. Lower Target HitRate and Target MRR indicate better robustness.
| Method | Target HitRate | Target MRR | |||||
|---|---|---|---|---|---|---|---|
| 0.05 | SWAPE | 0.0000 (0.0000) | 0.0000 (0.0000) | 0.0000 (0.0000) | 0.0000 (0.0000) | 0.0000 (0.0000) | 0.0000 (0.0000) |
| SLIM | 0.0366 (0.0029) | 0.0496 (0.0029) | 0.0530 (0.0045) | 0.0165 (0.0021) | 0.0183 (0.0021) | 0.0185 (0.0022) | |
| SLIM-LTS | 0.0004 (0.0005) | 0.0016 (0.0009) | 0.0032 (0.0016) | 0.0002 (0.0003) | 0.0003 (0.0003) | 0.0004 (0.0003) | |
| SVD | 0.0574 (0.0031) | 0.0806 (0.0039) | 0.0996 (0.0053) | 0.0284 (0.0022) | 0.0315 (0.0020) | 0.0330 (0.0021) | |
| UserKNN | 0.0515 (0.0014) | 0.0598 (0.0022) | 0.0677 (0.0032) | 0.0265 (0.0028) | 0.0276 (0.0027) | 0.0282 (0.0027) | |
| ItemKNN | 0.1161 (0.0166) | 0.2603 (0.0360) | 0.3955 (0.0473) | 0.0457 (0.0083) | 0.0643 (0.0099) | 0.0749 (0.0104) | |
| 0.10 | SWAPE | 0.0000 (0.0000) | 0.0000 (0.0000) | 0.0000 (0.0000) | 0.0000 (0.0000) | 0.0000 (0.0000) | 0.0000 (0.0000) |
| SLIM | 0.0665 (0.0038) | 0.0915 (0.0026) | 0.0954 (0.0039) | 0.0296 (0.0028) | 0.0331 (0.0027) | 0.0334 (0.0027) | |
| SLIM-LTS | 0.0001 (0.0004) | 0.0007 (0.0009) | 0.0017 (0.0017) | 0.0000 (0.0001) | 0.0001 (0.0002) | 0.0002 (0.0002) | |
| SVD | 0.0934 (0.0038) | 0.1245 (0.0041) | 0.1425 (0.0058) | 0.0460 (0.0027) | 0.0502 (0.0026) | 0.0516 (0.0027) | |
| UserKNN | 0.0971 (0.0013) | 0.1074 (0.0023) | 0.1181 (0.0033) | 0.0561 (0.0025) | 0.0575 (0.0025) | 0.0583 (0.0025) | |
| ItemKNN | 0.2525 (0.0145) | 0.4410 (0.0270) | 0.5685 (0.0314) | 0.1150 (0.0062) | 0.1397 (0.0073) | 0.1497 (0.0077) | |
in Table 8. In this table, the target hit rate is measured by (24) where the relevant set of the -th user, , is replaced by the set of target items. Therefore, a higher target hit rate (or MRR) indicates that the model was more influenced by the bandwagon attack. SWAPE achieves a target hit rate and target MRR of zero across all values of for both attack strengths, indicating that injected profiles fail to place any target item into the top- recommendations.
5 Conclusion
In this paper, we proposed a joint sparse sample weighting and parameter estimation framework that computes model parameters and observation weights simultaneously. The resulting bivariate formulation allows the training process to adaptively reduce the influence of unreliable observations while preserving informative data points. To solve the problem, we developed an alternating majorization-minimization algorithm and showed that, under the stated assumptions, the generated sequence satisfies non-increasing objective values and subsequence convergence, with its accumulation point being a directional stationary solution in the weakly convex case. The numerical results demonstrate the effectiveness of the SWAPE in regression, classification, and recommender system settings. In both regression and classification, the proposed methods remain competitive under overall contaminated settings. In recommender systems, the SWAPE achieves strong ranking performance under the no-contamination setting, random noise, and bandwagon attacks, while the target-specific results show that it limits the effects of adversarial attacks. Overall, these results suggest that our method adaptively reduces the impact of undesirable samples and achieves robust performance when observation reliability is uncertain.
Acknowledgments
The third author's work was partially supported by the National Science Foundation under grant CCF-2423246.
Data Availability Statement
We provide a Python implementation of the SWAPE at https://github.com/hassan-nojavan/SWAPE. The repository includes separate implementations for the regression, recommender system, and neural network settings considered in this work. For the neural-network experiments, we additionally provide implementations incorporating regularization, dropout, and early stopping.
References
[1] Xavier Amatriain, Alejandro Jaimes, Nuria Oliver, and Josep M Pujol. Data mining methods for recommender systems. In Recommender systems handbook, pages 39–71. Springer, 2010.
[2] Vito Walter Anelli, Alejandro Bellogin, Antonio Ferrara, Daniele Malitesta, Felice Antonio Merra, Claudio Pomo, Francesco Maria Donini, and Tommaso Di Noia. Elliot: A comprehensive and rigorous framework for reproducible recommender systems evaluation. In Proceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 2405–2414. Association for Computing Machinery, 2021.
[3] Pranjal Awasthi, Anqi Mao, Mehryar Mohri, and Yutao Zhong. DC-programming for neural network optimizations. Journal of Global Optimization, 95(1):5–21, 2026.
[4] Mokhtar S. Bazaraa, Hanif D. Sherali, and C. M. Shetty. Nonlinear Programming: Theory and Algorithms. Wiley, 2006.
[5] Amir Beck and Luba Tetruashvili. On the convergence of block coordinate descent type methods. SIAM Journal on Optimization, 23(4):2037–2060, 2013.
[6] Yoshua Bengio. Practical recommendations for gradient-based training of deep architectures. In Neural networks: Tricks of the trade: Second edition, pages 437–478. Springer, 2012.
[7] James Bennett and Stan Lanning. The Netflix prize. In Proceedings of KDD Cup and Workshop, 2007.
[8] Dimitri P. Bertsekas and John N. Tsitsiklis. Parallel and Distributed Computation: Numerical Methods. Prentice Hall, Englewood Cliffs, NJ, 1989.
[9] Jérôme Bolte, Shoham Sabach, and Marc Teboulle. Proximal alternating linearized minimization for nonconvex and nonsmooth problems. Mathematical Programming, 146(1):459–494, 2014.
[10] Pavel Čišek and Jan Ámos Višek. Least trimmed squares. In XploRe®—Application Guide, pages 49–63. Springer, 2000.
[11] Ying Cui and Jong-Shi Pang. Modern Nonconvex Nondifferentiable Optimization. Society for Industrial and Applied Mathematics, January 2021.
[12] Jianqing Fan and Runze Li. Variable selection via nonconcave penalized likelihood and its oracle properties. Journal of the American Statistical Association, 96(456):1348–1360, 2001.
[13] Jerome H. Friedman. Greedy function approximation: A gradient boosting machine. The Annals of Statistics, 29(5):1189–1232, 2001.
[14] Jerome H. Friedman, Trevor Hastie, and Robert Tibshirani. Additive logistic regression: a statistical view of boosting. The Annals of Statistics, 28(2):337–407, 2000.
[15] Xiaoli Gao and Yang Feng. Penalized weighted least absolute deviation regression. Statistics and Its Interface, 11(1):79–89, 2018.
[16] Amirata Ghorbani and James Zou. Data shapley: Equitable valuation of data for machine learning. In Kamalika Chaudhuri and Ruslan Salakhutdinov, editors, Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 2242–2251. PMLR, 2019.
[17] Gurobi Optimization, LLC. Gurobi Optimizer Reference Manual, 2026.
[18] Charles R Harris, K Jarrod Millman, Stéfan J Van Der Walt, Ralf Gommers, Pauli Virtanen, David Cournapeau, Eric Wieser, Julian Taylor, Sebastian Berg, Nathaniel J Smith, et al. Array programming with NumPy. Nature, 585(7825):357–362, 2020.
[19] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pages 1026–1034, 2015.
[20] Hai Huang, Jiaming Mu, Neil Zhenqiang Gong, Qi Li, Bin Liu, and Mingwei Xu. Data Poisoning Attacks to Deep Learning Based Recommender Systems. In Network and Distributed System Security Symposium (NDSS). Internet Society, 2021.
[21] Peter J. Huber. Robust estimation of a location parameter. The Annals of Mathematical Statistics, 35(1):73–101, 1964.
[22] Nicolas Hug. Surprise: A python library for recommender systems. Journal of Open Source Software, 5(52):2174, 2020.
[23] David R Hunter and Kenneth Lange. A tutorial on MM algorithms. The American Statistician, 58(1):30–37, 2004.
[24] Gareth James, Daniela Witten, Trevor Hastie, and Robert Tibshirani. An Introduction to Statistical Learning: with Applications in R. Springer US, 2021.
[25] Yunlu Jiang, Yan Wang, Jiantao Zhang, Baojian Xie, Jibiao Liao, and Wenhui Liao. Outlier detection and robust variable selection via the penalized weighted LAD-LASSO method. Journal of Applied Statistics, 48(2):234–246, 2021.
[26] Saakshi Kapoor, Vishal Gupta, and Rohit Kumar. A review of attacks and its detection attributes on collaborative recommender systems. International Journal of Advanced Research in Computer Science, 8(7), 2017.
[27] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations (ICLR), 2015.
[28] Yehuda Koren, Robert Bell, and Chris Volinsky. Matrix factorization techniques for recommender systems. Computer, 42(8):30–37, 2009.
[29] Anders Krogh and John A. Hertz. A simple weight decay can improve generalization. Advances in Neural Information Processing Systems, 4, 1991.
[30] Shyong K. Lam and John Riedl. Shilling recommender systems for fun and profit. In Proceedings of the 13th International Conference on World Wide Web, WWW '04, pages 393–402, New York, NY, USA, 2004. Association for Computing Machinery.
[31] Kenneth Lange. MM optimization algorithms, volume 147 of Other Titles in Applied Mathematics. SIAM, 2016.
[32] M. Nikolova. Local strong homogeneity of a regularized estimator. SIAM Journal on Applied Mathematics, 61(2):633–658, 2000.
[33] Xia Ning and George Karypis. SLIM: Sparse linear methods for top-N recommender systems. In Proceedings of the 2011 IEEE 11th International Conference on Data Mining, pages 497–506. IEEE, 2011.
[34] F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011.
[35] Tao Pham Dinh and Hoai An Le Thi. Convex analysis approach to DC programming: theory, algorithms and applications. Acta Mathematica Vietnamica, 22(1):289–355, 1997.
[36] Lutz Prechelt. Early stopping — but when? In Grégoire Montavon, Geneviève B. Orr, and Klaus-Robert Müller, editors, Neural Networks: Tricks of the Trade: Second Edition, pages 53–67. Springer Berlin Heidelberg, 2012.
[37] Meisam Razaviyayn, Mingyi Hong, and Zhi-Quan Luo. A unified convergence analysis of block successive minimization methods for nonsmooth optimization. SIAM Journal on Optimization, 23(2):1126–1153, 2013.
[38] Meisam Razaviyayn, Mingyi Hong, Zhi-Quan Luo, and Jong-Shi Pang. Parallel successive convex approximation for nonsmooth nonconvex optimization. Advances in Neural Information Processing Systems, 27, 2014.
[39] Mengye Ren, Wenyuan Zeng, Bin Yang, and Raquel Urtasun. Learning to reweight examples for robust deep learning. In Proceedings of the 35th International Conference on Machine Learning, pages 4334–4343. PMLR, 2018.
[40] Yuji Roh, Kangwook Lee, Steven Whang, and Changho Suh. Sample selection for fair and robust training. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan, editors, Advances in Neural Information Processing Systems, volume 34, pages 815–827. Curran Associates, Inc., 2021.
[41] Peter J. Rousseeuw. Least median of squares regression. Journal of the American Statistical Association, 79(388):871–880, 1984.
[42] Peter J. Rousseeuw and Annick M. Leroy. Robust Regression and Outlier Detection. John Wiley & Sons, 1987.
[43] Peter J Rousseeuw and Katrien Van Driessen. Computing LTS regression for large data sets. Data mining and knowledge discovery, 12(1):29–45, 2006.
[44] Badrul Sarwar, George Karypis, Joseph Konstan, and John Riedl. Item-based collaborative filtering recommendation algorithms. In Proceedings of the 10th international conference on World Wide Web, pages 285–295, 2001.
[45] Yiyuan She and Art B. Owen. Outlier detection using nonconvex penalized regression. Journal of the American Statistical Association, 106(494):626–639, 2011.
[46] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15(1):1929–1958, 2014.
[47] J Kenneth Tay, Balasubramanian Narasimhan, and Trevor Hastie. Elastic net regularization paths for all generalized linear models. Journal of Statistical Software, 106:1–31, 2023.
[48] R. Tibshirani. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society: Series B (Methodological), 58(1):267–288, 1996.
[49] Paul Tseng. Convergence of a block coordinate descent method for nondifferentiable minimization. Journal of Optimization Theory and Applications, 109(3):475–494, 2001.
[50] J. Warga. Minimizing certain convex functions. Journal of the Society for Industrial and Applied Mathematics, 11(3):588–593, 1963.
[51] James W Wisnowski, Douglas C Montgomery, and James R Simpson. A comparative analysis of multiple outlier detection procedures in the linear regression model. Computational Statistics & Data Analysis, 36(3):351–382, 2001.
[52] Stephen J. Wright. Coordinate descent algorithms. Mathematical Programming, 151(1):3–34, 2015.
[53] Shanshan Ye and Jie Lu. Robust recommender systems with rating flip noise. ACM Transactions on Intelligent Systems and Technology, 16(1):1–19, 2024.
[54] Cun-Hui Zhang. Nearly unbiased variable selection under minimax concave penalty. The Annals of Statistics, 38(2):894–942, 2010.
[55] Kaike Zhang, Qi Cao, Fei Sun, Yunfan Wu, Shuchang Tao, Huawei Shen, and Xueqi Cheng. Robust recommender system: a survey and future directions. ACM Computing Surveys, 58(1):1–38, 2025.
Appendices
Appendix A provides proofs of the theoretical results, and Appendices B–D present additional details on the three experiments described in Sections 4.1–4.3. We note that all experiments were executed on Southern Methodist University's HPC cluster, featuring 128 cores powered by AMD EPYC 7763 processors. When using Gurobi, we used the default parameters unless otherwise specified.
A Proofs of Results
A.1 Proof of Proposition 1
Proof. Combining (4) and the first order condition of the convex function yields
which is equivalent to
A.2 Proof of Lemma 2
Proof. Under (L2), the loss term is differentiable, so showing the case of (L1) is sufficient. The assumption (L1) implies that is DC and so is by (P3); therefore, their directional derivatives are well-defined [4, Lemma 3.1.5]. Applying the definition of the directional derivative yields
A.3 Proof of Lemma 3
Proof. By convexity of , we obtain
(25)
for all . The conditions in (7) follow from the above.
A.4 Proof of Lemma 4
Proof. By (L2), we have
(26)
for any . Applying the condition of the lemma proves the statement.
A.5 Proof of Lemma 6
Proof. The first statement holds by definition. To show the second part, first note that (P3), is weakly convex with modulus by (P3). Since is linear and we have . Combining this equality with the weakly convexity of , we have
(27)
for any since . Choosing , (27) yields the first-order inequality of a convex function. This shows that is convex.
A.6 Proof of Theorem 7
Proof. (a) We will first prove for the case (i). By Lemma 3 and the optimality of , we have
where is defined in (6). Applying (25) to the above yields
Furthermore, by Lemma 6 and the optimality of , we obtain
which is equivalent to
Combining (28) and (29) shows inequality (15) where . The convergence of is given by the lower-boundedness of . The proof for case (ii) can be shown similarly by applying (26) and Lemma 4. In this case, . The case (iii) can be shown by using Lemma 5, resulting .
(b) By summing (15), we have
Since , we have and .
(c) By Bolzano-Weierstrass theorem, has a convergent subsequence. Next, we prove convergence to a directional stationary point for the case of (c). For any , we have
(31)
for any by the optimality of . Likewise, the optimality of yields
(32)
for any . To combine (31) and (32), we add to both sides of (31), and add to both sides and choose in (32). This results in
By taking the limit and applying parts (a) and (b) of the theorem, we have
indicating that is the optimal solution of the problem . Therefore, we have
where the inequality is given by the optimality of and the equality holds by the definition of . The same argument holds for , and we have
where . Combining (33) and (34) yields
By Lemma 2, the above shows that is a directional stationary solution of (2).
26
☐
B Regression
We report the details of the linear regression experiment shown in Section 4.1. Section B.1 discusses the data generation, including the vertical and interior clustered contamination cases. Our algorithm and subproblem details are in Section B.2, while the comparison methods, hyperparameter tuning process for each model, computation environment and time are reported in Section B.3.
B.1 Data Generation
Recall that denotes the set of contaminated indices. Without contamination, the data matrix and response are generated following (17), which is
We describe the data-generation process for interior clustered and vertical contamination below.
(a) Vertical contamination: The response vector b is generated using
where . The design matrix remains unchanged.
(b) Interior clustered contamination: Let denote the componentwise medians of the first and the last three observations, respectively,
For the two cloud setting, we partition into two equally sized disjoint subsets and . The entries of are generated as
with corresponding noise
in the response. The single-cloud setting is obtained by setting and .
B.2 Details of the Algorithm
We use a modified version of the minimax concave penalty (MCP) introduced in [54], which is defined in a scalar variable as
The MCP has two parameters and . Choosing the MCP as in (16), the proposed formulation is written as
To solve (36), we apply our algorithm (10) while using surrogates (13) and (14) for and subproblems. The algorithm is summarized in Algorithm 1.
Algorithm 1 Proposed Method for Solving (36)
Require: , , , , , ,
1: Initialize ,
2: ,
3: while and do
4: Solve the following subproblems:
5:
6:
7: end while
8: return
B.2.1 Closed-Form Solution for x-subproblem (37a)
The and subproblems of Algorithm 1 admit closed-form solutions. We first derive a closed-form solution for the -subproblem given in (37a). For fixed observation weights , the regression -subproblem in (37a) reduces to a proximal weighted least-squares problem. Let denote the diagonal matrix whose diagonal entries are given by . The objective in (37a) is a convex quadratic function of . Hence, its minimizer is obtained by the first-order optimality condition
therefore, the -update admits the closed-form representation,
B.2.2 Closed-Form Solution for w-subproblem (37b)
Here, we derive a closed-form update for the w-subproblem in (37b). Observe that (37b) can be decomposed into univariate problems for each element of . For an arbitrary coordinate , define
By substituting the above and removing constant terms, we obtain the following problem for the i-th update of w in (37b):
where the notation replaces . We verify that the defined in (35) is -weakly convex. Consequently, when
the problem (38) is strongly convex.
Under condition (39), the unique minimizer of (38) can be characterized by partitioning the feasible set according to the breakpoints of . From (35), the transition between the quadratic and constant branches occurs when , giving the breakpoints and . In addition, is a point of nondifferentiability due to the term . Hence, the relevant breakpoints are , 1, and . If , all three breakpoints lie in the feasible region . If , then , and the lower constant branch does not occur in the interior of the feasible set. Accordingly, the minimizer is obtained by examining the first-order conditions on each smooth region together with the boundary and nondifferentiable points and .
Zone (0): .
Since is strongly convex under (39), the boundary point is optimal whenever . Indeed, in this case the objective cannot decrease as moves from the boundary into the feasible region . At the applicable branch of depends on the value of .
• If , then lies in the quadratic branch. Hence, . Therefore, if , then , and consequently .
• If , then lies in the constant branch, and . Thus, if , then , and consequently .
Zone (I): .
This zone exists only when . On this interval, is constant. Therefore, , and the stationary point is . If , then this stationary point lies in Zone (I), and strong convexity of implies that . If , then the stationary point lies outside the feasible set and, as shown in Zone (0), , so the minimizer is . If , then for all , so is decreasing throughout Zone (I). Hence, the minimizer cannot occur in Zone (I), and we proceed to Zone (II).
Zone (II): .
On this interval, the first-order condition is , which yields the stationary point
• If , Zone (II) is bounded below by . The condition is equivalent to . Hence, for in this interval, the stationary point lies in Zone (II) and, by strong convexity, is the unique minimizer.
• If , the lower breakpoint satisfies , so the feasible portion of Zone (II) is . In this case, the condition is equivalent to . At the upper endpoint, , the stationary point reaches , which is considered in Zone (III).
Zone (III): w = 1.
The point is nondifferentiable because of the term . Therefore, optimality is characterized by , or, equivalently, . The one-sided derivatives are
Hence, is optimal when . If , then , so the objective continues to decrease to the right of , and we proceed to Zone (IV).
Zone (IV): .
On this interval, the first-order condition becomes , which yields . For this stationary point to lie in Zone (IV), it must satisfy . Since under (39), these inequalities are equivalent to .
If , the stationary point is at or beyond the upper breakpoint , hence the minimizer cannot lie in the interior of Zone (IV), and we proceed to Zone (V). . On this interval, . Thus, the stationary point is , which lies in Zone (V) when .
Combining the above cases, under condition (39), the unique minimizer of (38) is
B.3 Computational Details
B.3.1 Comparison Methods
We consider five benchmark methods in Section 4.1: least squares, least absolute deviation (LAD), Huber regression [21], least trimmed squares (LTS) [41, 42], and -IPOD [45]. Given a data matrix and response vector ,
• Least squares solves the problem
• LAD solves
• Given parameters , the Huber regression solves
and denotes the residual of the -th observation. We note that the above methods use all observations in and . The LTS and -IPOD are designed to handle outliers in the data. We summarize the two methods below.
- LTS sorts the residuals given by a model such that . For a given positive scalar , LTS solves the problem
We compute the solution of LTS using the FAST-LTS algorithm [43], which iteratively chooses subsets of h observations.
• Finally, the hard-thresholding version of -IPOD, which introduces an observation-specific mean-shift parameter to model vertical outliers, solves
In our experiments, observation is classified as an outlier whenever , and as a non outlier otherwise. This rule is used to compute the corresponding detection precision, recall, and F1-score. Accordingly, we define the set of detected outliers as . The proportion of observations retained is Retained .
B.3.2 Hyperparameter Selection
All tuning parameters are selected independently for each replication, using the leave-one-out cross validation (LOOCV) method. For our method, LOOCV selects the regularization parameter that yields the minimum median MSE, while the MCP parameters are fixed at and . Following [47], we generate candidate values for using a logarithmic scale,
where and are prespecified bounds.
The benchmark methods least squares and LAD do not require tuning. We use the library scikit-learn's default parameters and for Huber regression. Following the suggestion in [10], we use for LTS. For -IPOD, we tune the threshold parameter over the fixed grid using the LOOCV median MSE criterion.
B.3.3 Implementation
Experiments were implemented in Python using NumPy [18] and scikit-learn. Table 9 reports the training wall-clock time for a representative vertical-contamination setting in Section 4.1.2, with and .
Table 9: Training wall-clock time (seconds) for the vertical-contamination setting with and . Reported values are the mean (and standard deviation) over 200 independent replications.
| Method | Training Time (s) |
|---|---|
| SWAPE | 0.0025 (0.0009) |
| Θ-IPOD | 0.0045 (0.0049) |
| Least Squares | 0.0002 (0.0001) |
| LAD | 0.7347 (0.0144) |
| Huber | 0.0116 (0.0012) |
| LTS | 0.0069 (0.0011) |
C Binary Classification
We report the details of the binary classification experiment in Section 4.2. Following the neural network structure and resulting formulation in Section C.1, our algorithm and its subproblem derivations are presented in Section C.2. The details of comparison methods, hyperparameter tuning process, computation environment and time are reported in Section C.3.
C.1 Details of the Neural Network in the Binary Classification Formulation
We derive the problem (21) using a fully-connected feed-forward neural network. Let denote the feature matrix, with representing the feature vector of observation , and let the vector of observed binary labels, and the observation weight vector. We consider a neural network with two hidden layers of widths and . Let collect all network parameters, where , , and , are the network weights, while , , , are the corresponding bias parameters, and . For observation , the hidden-layer representations are
where is the softplus activation function, applied componentwise to vector inputs. We consider the weighted binary cross-entropy loss
where is the fitted class-one probability, and is the logistic function. By applying loss (41) to our main problem (2), we obtain the training problem (21), which is
Here, we use a horizontally shifted LASSO penalty defined in a scalar variable as
We implement the problem (42) without regularization on , i.e., , and with -regularization on the network's edge weights, .
C.2 Details of the Algorithm
We apply the proposed method (10) to solve (42) using surrogates (13) and (14) for and subproblems, respectively. The resulting algorithm is summarized in Algorithm 2. In this experiment, we use Adam [27] to solve the -subproblem (44a), therefore, we only present the closed-form solution derivation for the -subproblem.
Algorithm 2 Proposed Method for Solving (42)
Require:
1: Initialize and
2:
3: while and do
4: Solve the following subproblems:
5:
6:
7: end while
8: return
C.2.1 Closed-Form Solution for w-subproblem (44b)
Here, we derive a closed-form solution for the -subproblem. For fixed , define the loss associated with observation by . The -subproblem in (44b) is separable across observations. For each , the update of reduces to a univariate problem
where the LASSO penalty in (43) is used. Defining and completing the square, problem (45) reduces to solving a univariate problem
The above problem is strongly convex and has a unique global minimizer. To derive a closed-form solution of (46), we consider several intervals of the variable consisting of the end point and the nondifferentiable point .
. At the boundary , the right derivative is . The boundary point is optimal whenever , which is equivalent to .
Zone (I): . On this interval, , and hence . The first-order condition gives . For this stationary point to lie in , we require .
Zone (II): . The point is nondifferentiable because of the term . Optimality is characterized by , The one-sided derivatives are , and . Thus, is optimal if and only if .
Zone (III): .
On this interval, , so . The first-order condition gives . For this stationary point to satisfy , we require .
Combining the above cases, the unique minimizer of (46) is
C.3 Computational Details
C.3.1 Comparison Methods
Our experiment compares the proposed formulation (21) to a baseline method which solves the same problem only for while fixing all weights to 1, i.e., . For both models, we implement four variants: no regularization, -regularization, dropout, and early stopping. The regularization-based variants are discussed in C.1. We describe dropout and early stopping methods below.
- Dropout is applied independently to the two hidden layers during training. Let denote the dropout mask for layer , whose components satisfy , . The hidden-layer representations become
The corresponding class-one probability is .
- Early stopping does not modify the training objective. Instead, a portion of the training data is held out as a validation set, and the validation loss is monitored during training. Training is terminated when the validation loss fails to decrease by at least a prescribed minimum improvement for a specified number of consecutive epochs, referred to as the patience. The validation split, patience, and minimum improvement values are specified in Appendix C.3.2.
C.3.2 Hyperparameter Selection
For each proposed network variant, the parameter is selected separately within each replication using 10-fold cross validation over the grid
Table 10: Wall-clock training time (seconds) for the neural network experiment at . Entries report the mean and standard deviation over 200 replications.
| Regularization | Baseline | SWAPE |
|---|---|---|
| None | 20.82 (0.21) | 285.12 (82.02) |
| Early stopping | 1.04 (0.46) | 1.13 (0.52) |
| 20.79 (0.25) | 277.23 (81.64) | |
| Dropout | 22.97 (1.56) | 391.26 (129.18) |
For each candidate , the model is fitted on nine folds and evaluated on the remaining fold. We compute the median validation accuracy across the ten folds for each candidate value of , and select the value with the highest median accuracy. We then refit the proposed model on the full training set using the selected value of .
We fix the remaining hyperparameters across replications. For the proposed model, we set , and . For the -regularized variant, . The dropout probability is 0.20, while early stopping uses a validation split, a patience of 30 epochs, and a minimum improvement of .
C.3.3 Implementation
Both proposed and baseline models use a fully connected neural network. In our experiments, we use . The two hidden layers use the Softplus activation with , and the output layer uses the logistic function. Network parameters , , and are initialized identically across the proposed and baseline models within each replication using He-normal initialization [19]. The intercept parameters , , and are initialized to zero.
The x-subproblem in Algorithm 2 is solved using Adam with learning rate , mini-batch size 64, and at most 1,000 epochs. For the proposed model, the observation weights are initialized at . The wall-clock training times at are reported in Table 10.
D Recommender System
We report the details of the recommender system experiment shown in Section 4.3. Section D.1 discusses the data pre-processing we applied to the Netflix Prize data and the random noise generation. Our algorithm and subproblem details are in Section D.2, while benchmark methods, hyperparameter selection process, and other implementation details are shown in Section D.3.
D.1 Data Processing
D.1.1 Pre-processing Netflix Prize Data
The Netflix dataset contains over 100 million ratings, from 480, 189 users on 17, 770 movies, where each user gives a rating between 1 and 5 for a movie they watched. To obtain a subset, we first removed movies with fewer than 192 ratings and users with fewer than 39 ratings. The pruning process eliminates users and movies with few ratings so that each retained user and movie has enough observed ratings to support train–test splitting and model evaluation. The remaining movies were partitioned into low-, medium-, and high-popularity strata containing 4,341, 4,395, and 4,406 movies, respectively. Likewise, users were divided into low-, medium-, and high-activity strata containing 53,744, 10,550, and 182 users. To preserve the original data structure while shrinking the data, we sampled 2%, 5%, and 10% of each stratum, respectively. Intersecting the sampled sets of users and movies yields a final matrix containing 1,622 users, 747 movies, and 136,579 ratings, with a density of 11.27%.
D.1.2 Generating Random Noise
Let denote the training matrix. For each observed entry , we either keep the value with probability or assign a random rating from such that the new value differs from the original value with probability . We use and in our experiment.
D.2 Details of the Algorithm
This section details the algorithm for solving the columnwise problem (23). For simplicity of notation, we use , , and to represent columns of , , and matrices, without the column index (a superscript used in the manuscript). Applying and defined in (35), the problem (23) is equivalent to
Algorithm 3 presents our method for solving the columnwise problem (48). Note that the w-subproblem (49b) has an identical structure to one used in the linear regression experiment, shown in (37b), hence omitted here.
Algorithm 3 Proposed Framework for Solving (48)
Require: , , , ,
1: Initialize with , and
2: ,
3: while and do
4: Solve the following subproblems:
5:
6:
7: end while
8: return
D.2.1 Closed-Form Solution for x-subproblem (49a)
Next, we derive a closed-form solution for the x-subproblem. Defining , the -th column problem in (49a) is equivalent to
Because , the -norm reduces to , and (50) separates componentwise. For each , where , we solve
whose unconstrained first-order condition gives . Hence, , if this value is nonnegative, it is feasible and, by convexity of the subproblem, is the minimizer. Otherwise, the unconstrained minimizer lies below the feasible set . In this case, the derivative of the scalar objective at is nonnegative, since the derivative of a convex function is nondecreasing, the objective is nondecreasing for all . Therefore, the minimum is attained at the boundary . Consequently,
for all where is the index of the column that minimizes the current objective function. Otherwise, .
D.3 Computational Details
D.3.1 Comparison Methods
We present five benchmark methods: singular value decomposition (SVD), User-based k-nearest neighbors (UserKNN), Item-based k-nearest neighbors (ItemKNN), SLIM, and SLIM-LTS, which is a method that applies the LTS in Section B.3.1 to the users of the data matrix.
Sparse Linear Methods for Recommendation (SLIM) Given the user-item interaction matrix , the sparse linear method (SLIM) [33] learns an item-item similarity matrix by solving
The zero-diagonal constraint prevents trivial self-reconstruction, while the nonnegativity constraint promotes additive item-item relations. Since the objective separates across columns, (52) decomposes into independent subproblems. For each item , the -th column is obtained from
Robust SLIM via Least Trimmed Squares (SLIM-LTS) To improve robustness against corrupted or adversarial ratings, we also consider an LTS-based variant of SLIM (53). Let denote the set of observed entries in column , and define the residual . Let denote the trimming parameter, and let denote the index set corresponding to the smallest fraction of squared residuals. Then SLIM-LTS solves
Only the h smallest squared residuals are retained in the objective, thereby limiting the influence of extreme outliers. The optimization is performed by a FAST-LTS style alternating scheme [43].
Matrix Factorization (SVD) We also compare against a classical latent-factor model based on singular value decomposition [28]. This approach learns user and item latent factors by solving
Here, and denote the user and item latent factor matrices, respectively, and is the latent dimension. The predicted preference score for user and item is given by , and these scores are used to rank unseen items.
User k-Nearest Neighbors (UserKNN) and Item k-Nearest Neighbors (ItemKNN) Finally, we consider both user-based and item-based K-nearest neighbor methods. These methods predict preferences using local similarity structure in the user-item interaction matrix [44].
In UserKNN, similarity between users i and u is measured by the Pearson correlation computed over their co-rated items:
where denotes the set of items rated by user , and is the mean rating of user over . Let denote the set of the most similar users to . The predicted rating for user on item is
ItemKNN is defined analogously, except that similarities are computed between items rather than users. Let denote the set of the nearest neighbors of item . Then the predicted score for user on item is
where is the mean rating of item j.
D.3.2 Hyperparameter Selection
For model selection, we used one randomly selected replication and applied five-fold cross-validation to its training portion using the same per-user item-holdout strategy. For Algorithm 3, we set the parameters as follows: , , , , , and . The remaining hyperparameters and are chosen by cross-validation. The candidates are
yielding 49 parameter combinations. For SLIM, we tune the regularization parameters over the grids
For SLIM-LTS, we use the same values selected for SLIM, while fixing the trimming parameter . For SVD, we tune the regularization parameter over the grid . For neighborhood-based methods (UserKNN and ItemKNN), we tune the number of neighbors as . For each parameter pair, the mean and standard deviation of HitRate@5 across folds were recorded, and the pair with the highest mean was selected for final training on the complete dataset. This process selected for SVD. For both UserKNN and ItemKNN, was selected. Table 11 summarizes the final hyperparameter settings used for the remaining method. Bold entries correspond to values selected through cross-validation, whereas all other parameters were fixed across experiments.
Table 11: Hyperparameter settings for each recommendation method
| Method | λ | θ | γ | η | β | h | K | ||
|---|---|---|---|---|---|---|---|---|---|
| SWAPE | 0.05 | 0.5 | 0.1 | 2.0 | 600000 | 0.1 | - | - | - |
| SLIM | 0.5 | - | - | - | - | - | 1.0 | - | - |
| SLIM-LTS | 0.5 | - | - | - | - | - | 1.0 | 0.8 | - |
D.3.3 Implementation
SLIM and SLIM-LTS were solved using Gurobi Optimizer 12.0 through its Python interface [17]. SVD, UserKNN, and ItemKNN were implemented using the Surprise library [22].
All runtimes are reported as wall-clock time and averaged over 30 replications under the first setting discussed in the Results section. For fairness, SLIM, SLIM-LTS, and the proposed method were executed using 128 CPU cores, while SVD and KNN relied on their internal optimized implementations. The proposed method leverages column-wise parallelization across cores. Table 12 reports the corresponding wall-clock training times. UserKNN and ItemKNN require substantially more time, due to the cost of computing and applying similarity measures across users or items. Runtime for the SLIM-based methods depends on the solver and implementation.
Table 12: Training wall-clock time (seconds) for the first setting. Reported values are the mean (standard deviation) over 30 independent replications.
| Method | Training Time |
|---|---|
| SWAPE | 1.47 (0.07) |
| SLIM | 1512.63 (45.27) |
| SLIM-LTS | 2277.18 (67.54) |
| SVD | 0.66 (0.02) |
| UserKNN | 44.37 (0.88) |
| ItemKNN | 29.23 (0.57) |
D.4 Additional Results and Analysis
Figure 5 provides additional insight into the predicted scores from the first recommender system experiment. These results illustrate that strong ranking performance does not necessarily imply close agreement between predicted-score magnitudes and observed ratings.

Figure 5: Distribution of the predicted scores for a replication of the first recommender system experiment. SLIM generally produces scores below the corresponding true ratings , which is consistent with the sparsity-inducing regularization in its formulation that shrinks the estimated coefficients toward zero. SVD exhibits a similarly compressed score distribution. These results show that methods achieving relatively strong hit rate performance may still produce predicted scores whose magnitudes differ substantially from the observed ratings. For each true rating , each box summarizes the predicted scores for all observed test user-item pairs having that rating.