Imposing the 'Right' Structural Constraints in High-Dimensional Regression

Hanghang Tong, Ming YuanHarvard Data Science Review 2025

Introduction

In modern data science, high-dimensional problems where the number of predictors ($p$) far exceeds the number of observations ($n$) are commonplace. While the Lasso has become a standard tool for these scenarios by using sparsity-inducing penalties, it often operates "blindly" regarding the underlying data structure. This can lead to uninterpretable or unstable models, such as including complex interaction terms while omitting their corresponding main effects. This paper argues that by imposing "right" structural constraints—specifically sign consistency and the heredity principle—researchers can achieve significantly more stable and interpretable models without sacrificing predictive accuracy.

Methodology: uniLasso and the Heredity Principle

The proposed approach builds upon uniLasso (Chatterjee et al., 2025), a method that enforces sign consistency. This ensures that a regression coefficient's sign matches its univariate association with the response, preventing "sign-flipping" where a variable with a strong positive correlation suddenly appears negative in a multivariate model.

The authors extend this framework to incorporate the Heredity Principle (specifically "strong heredity"). Under this principle, an interaction term (e.g., $X_i X_j$) can only be included in the model if both of its parent "main effects" ($X_i$ and $X_j$) are also present. This reflects common domain logic in fields like medicine or genetics, where interactions are rarely considered in isolation.

The three-step algorithm for fitting the heredity-constrained uniLasso model.

The algorithm involves three primary steps as shown above: calculating leave-one-out coefficients, fitting a Lasso model subject to linear inequality constraints, and reconstructing the final model. These constraints ensure that coefficients are non-negative (after sign adjustment) and respect the specified hierarchy.

Experimental Evaluation

The methods were evaluated using the classic prostate cancer dataset. To simulate a high-dimensional, structured environment, the original 8 variables were expanded to 44 predictors, including all main effects, quadratic terms, and two-way interactions. Performance was measured over 50 random 2/3–1/3 train-test splits.

Key Results and Discussion

The study compared three methods: Vanilla Lasso, uniLasso, and Heredity-constrained uniLasso. The results highlight a crucial finding: adding logical constraints does not necessarily degrade performance.

Performance comparison of Lasso, uniLasso, and Heredity-constrained models across Test Error, Support, and Stability.
  • Prediction Accuracy: As seen in the "Test error" plot, all three methods yielded nearly identical results. There is no "accuracy penalty" for enforcing structural logic.
  • Sparsity (Support): The "Support" plot shows that uniLasso produced the most parsimonious models. While the heredity-constrained version was slightly larger—due to the requirement of including parent variables—it remained comparable to the standard Lasso.
  • Stability: This was the most significant improvement. The "Stability" plot demonstrates that the heredity-augmented method achieved the highest selection stability. By shrinking the "feasible set" of models to those that make structural sense, the algorithm consistently selects the same variables even with slight variations in training data.

Conclusion

This work demonstrates that "plausibly right" constraints can effectively regularize high-dimensional models. By encoding credible prior structures like sign consistency and heredity, practitioners can produce models that are not only as accurate as the standard Lasso but also significantly more stable and scientifically interpretable. Future work may extend this framework to other forms of scientific logic and address the increased computational complexity inherent in constrained optimization.

Summary updated

BibTeX
@article{tong2025imposing,
  author = {Hanghang Tong and Ming Yuan},
  title = {{Imposing the 'Right' Structural Constraints in High-Dimensional Regression}},
  journal = {Harvard Data Science Review},
  year = {2025},
  doi = {10.1162/99608f92.5d45fb39},
}
Figure