A comparison of knot point screening algorithms for highly adaptive lasso

Yadi Weng, Sky QiuarXiv 2026

Imagine you have a high-dimensional map of a rugged mountain range, and you’re trying to find a smooth mathematical function that describes every peak and valley. In the world of statistics, the Highly Adaptive Lasso (HAL) is one of our most powerful tools for this job. It’s a "nonparametric" estimator, meaning it doesn’t make rigid assumptions about the shape of the data.

Even better, HAL is "essentially dimension-free"—it doesn't crumble under the weight of many variables like most other methods do. But there’s a catch: HAL is a memory glutton. To achieve its mathematical magic, it creates a massive internal representation of your data that can easily crash a standard computer.

This paper by Weng and Qiu explores a clever way to put HAL on a diet without losing its strength, using the same logic we use to group stars into constellations: clustering.

TL;DR

The Highly Adaptive Lasso (HAL) is a brilliant but computationally "heavy" algorithm that struggles with memory limits. This paper demonstrates that by using clustering algorithms ($k$-means and PAM) to pick the most representative "knot points" for the model, we can make HAL significantly more accurate and efficient, especially when dealing with messy, skewed data.

What Problem Does This Paper Address?

To understand the problem, we have to look at how HAL works. It takes your original data and performs a "basis expansion." It creates thousands (or millions) of new features based on "knot points"—thresholds derived from your data. If you have $n$ observations and $d$ variables, the resulting matrix can explode to a size of $n \times n(2^d - 1)$.

As you can see in Figure 1, as the number of features or the sample size grows, the memory requirement doesn't just increase; it skyrockets.

Figure 1: Memory usage of the sparse HAL design matrix constructed by hal9001 as a function of sample size n and covariate dimension d.

To make HAL practical, we need to "screen" these knots—essentially picking a few good representatives instead of using every single data point. The standard approach uses quantiles (e.g., picking every 10th percentile). However, quantiles only look at one variable at a time and can be "blind" to the actual spatial geometry of the data.

Methods

The authors propose moving away from simple quantiles toward center-based clustering:

  1. $k$-means clustering: This algorithm finds "centroids" that minimize the distance to all points in a group. It’s fast and efficient.
  2. Partitioning Around Medoids (PAM): Similar to $k$-means, but it insists that the center of a cluster must be an actual data point (a "medoid"). This makes it more robust to outliers.

By using these cluster centers as the "knots" for HAL, the model places its attention where the data actually lives in multi-dimensional space, rather than just spreading knots evenly across a probability distribution.

Datasets

The researchers put their theory to the test across a massive range of scenarios:

  • 153 Simulation Settings: They tested 17 different data-generating designs (including correlated and highly skewed data) paired with 9 different types of regression functions (smooth curves, sudden jumps, and wavy sinusoids).
  • 9 Real-World Benchmarks: These included classic datasets like cpu (predicting processor performance), automobile (insurance risk), and bike sharing (rental counts). The cpu dataset was particularly notable for having extremely skewed predictors.

Key Insights and Ideas

  • The "Tail" Problem: This is the paper's "aha!" moment. Quantile-based screening allocates knots evenly by probability mass. If you have a skewed distribution (a few very large values), quantiles will bunch all the knots in the dense area and leave the "long tail" empty. If your function changes rapidly in that tail, the model fails.
  • Clustering is "Tail-Aware": Clustering algorithms naturally minimize spatial distortion. They will "follow" the data into those sparse tails, placing knots where they are needed most to capture the function's behavior.
  • Work Smarter, Not Harder: In many cases, the clustering approach produced smaller design matrices than the quantile approach but achieved higher accuracy. It’s a rare "win-win" in computational efficiency.

Key Results

The results were striking, particularly when the data was "messy":

  • Simulations: $k$-means and PAM outperformed the standard quantile method in 97 and 111 out of 153 settings, respectively.
  • Skewness Wins: The more skewed the data, the bigger the advantage for clustering. In the most skewed real-world dataset (cpu), the clustering methods reduced the Mean Squared Error (MSE) by a whopping 35–36%.
  • Consistency: Even in "regular" settings where the data was well-behaved, clustering performed comparably to or slightly better than the old standard (see Table 1).
Table 1: Simulation results under the regular design. Bold indicates the highest mean test R2; superscripts + (−) denote significantly higher (lower) test R2 than Quantile.

Limitations and Future Work

While the results are promising, the authors note a few areas for further exploration:

  • Basis Complexity: This study focused on "zero-order" basis functions (simple step functions). Future work could look at higher-order splines (smooth curves).
  • The Clock is Ticking: While clustering reduces memory usage and improves accuracy, the clustering step itself takes time. The authors suggest that for truly massive datasets, the computational cost of $k$-means vs. the gain in lasso speed needs a closer look.
  • Causal Inference: The ultimate goal for HAL is often in causal inference (like estimating the effect of a new drug). The next step is to see how these "slimmer" HAL models perform when plugged into complex causal frameworks like TMLE.

Summary updated

BibTeX
@misc{weng2026comparison,
  author = {Yadi Weng and Sky Qiu},
  title = {{A comparison of knot point screening algorithms for highly adaptive lasso}},
  year = {2026},
  eprint = {2611.29270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29270},
}
Figure