The Accuracy vs. Interpretability Dilemma
A fundamental tension exists in machine learning: the trade-off between predictive accuracy and model interpretability. Linear models are highly transparent—you can look at a feature's coefficient and immediately understand its global impact on the prediction. However, they lack the expressivity to capture complex, nonlinear relationships. Conversely, deep neural networks (NNs) easily capture these complexities but act as opaque "black boxes."
To understand NNs, practitioners often rely on post-hoc explainers like SHAP or LIME. Unfortunately, these are approximations that lack guaranteed fidelity to the model's actual inner workings and are highly sensitive to hyperparameter choices. Existing "hybrid" models (like Neural Additive Models or LassoNet) attempt to combine NNs with linear models, but they often sacrifice global, population-level interpretability to achieve local flexibility.
To address this dilemma, researchers introduce NIMO (Nonlinear Interpretable MOdel), a framework designed to create an inherently interpretable model that preserves the classic meaning of linear coefficients while leveraging neural networks to model complex feature interactions.
How NIMO Works: Architecture and Methods
NIMO bridges the gap by starting with a standard linear regression base and modulating it. For every feature $x_j$, its global linear coefficient $eta_j$ is multiplied by an instance-specific nonlinear correction term generated by a neural network.
The architecture relies on several clever mathematical and structural constraints to maintain strict interpretability:
- Feature Masking: The neural network calculating the correction for feature $x_j$ takes all features except $x_j$ as input (denoted as $x_{-j}$). This prevents the NN from absorbing the baseline effect of $x_j$, forcing the model to rely entirely on the global linear coefficient $eta_j$ for that feature's primary additive effect.
- Zero-Mean Constraint: The data is standardized, and the NN is constrained to output zero when evaluated at the mean of the features. This ensures that the Marginal Effect at the Mean (MEM) exactly equals the linear coefficient $eta_j$.
- Parameter Elimination: Jointly optimizing linear coefficients and NN weights via gradient descent is notoriously unstable. Instead, NIMO uses a mathematical trick: it solves for the linear coefficients $eta$ analytically (using adaptive ridge regression to induce Lasso-like sparsity) and substitutes this closed-form solution back into the loss function. The optimizer then only needs to update the NN parameters, avoiding a "tug-of-war" during training.
- Group Penalty: A group $\ell_2$ penalty is applied to the first fully connected layer of the NN to encourage feature-level sparsity, forcing the network to ignore uninformative features.
Key Insights and Results
NIMO was evaluated across synthetic datasets, real-world UCI datasets (Diabetes, Boston Housing, Superconductivity), and the PMLB benchmark. The results highlight its dual capability as both a powerful predictor and a transparent explainer.
- Perfect Ground-Truth Recovery: On synthetic datasets designed with specific ground-truth linear coefficients and sparsity patterns, NIMO perfectly recovered the exact underlying math. Vanilla NNs and standard Lasso failed to capture both the complex interactions and the sparsity simultaneously.
- Superior Predictive Performance: On the complex, high-dimensional Superconductivity dataset, NIMO achieved the lowest Test MSE (~0.10), outperforming standard NNs, Lasso, and state-of-the-art interpretable models like LassoNet and NAMs.
- Robustness in Low-Data Regimes: NIMO excels when data is scarce. In a synthetic setting with only 200 training samples, NIMO achieved an MSE of 0.024, vastly outperforming LassoNet (0.078), vanilla NNs (1.109), and Lasso (3.164).
- Intrinsic Feature Ranking: On the Boston Housing dataset, NIMO's intrinsic interpretability revealed that the controversial "B" feature was largely irrelevant to the prediction—a nuance that standard Lasso missed. Furthermore, NIMO's built-in local explanations aligned closely with computationally expensive SHAP values, providing them natively rather than post-hoc.
Limitations and Workarounds
The authors are highly transparent about a specific structural limitation: self-interactions. Because feature $x_j$ is explicitly masked out of its own correction network to preserve the integrity of the global coefficient, NIMO cannot natively learn self-nonlinearities (e.g., $x_j^2$ or $x_j \sin(x_j)$). If a dataset is heavily dominated by these types of relationships, NIMO's performance may degrade.
However, there is a straightforward workaround: explicit feature engineering. By applying a simple polynomial basis expansion (e.g., manually adding $x^2$ terms to the input data before training), NIMO can easily model these self-interactions while fully retaining its global interpretability and predictive power.
Summary updated