An interpretable neural network model through piecewise linear approximation

Mengzhuo Guo, Qingpeng Zhang, Xiuwu Liao, Daniel Dajun ZengarXiv 2020

In the landscape of modern machine learning, researchers often grapple with a fundamental trade-off: the high predictive accuracy of "black-box" deep neural networks versus the inherent transparency of simple linear models. While post-hoc explanation methods like SHAP or LIME attempt to bridge this gap, they frequently produce inconsistent results or fail to faithfully represent the model's internal logic.

A recent study by Guo et al. introduces PiLiD (Piecewise Linear and Deep), a hybrid architecture designed to embed interpretability directly into the model structure without compromising performance. By combining piecewise linear components with deep learning layers, PiLiD offers a "model-based" interpretation that is readable by design.

The PiLiD and PiLiB Architectures

PiLiD is built upon the Wide & Deep learning framework, bifurcating the data processing into two parallel paths.

  1. The Piecewise Linear Component: This "wide" part of the model avoids the rigidity of standard linear regression by dividing each feature's range into sub-intervals. Within each interval, the model fits a linear segment. This allows the network to capture complex "feature shapes"—non-linear relationships that can still be easily visualized and understood by humans.
  2. The Nonlinear Component: A standard Multi-Layer Perceptron (MLP) acts as the "deep" part, capturing high-order feature interactions that individual linear segments might miss.
The architectures of PiLiD (left) and its block-based variant PiLiB (right).

The authors also proposed PiLiB, which utilizes a block-based structure in the nonlinear component to explicitly isolate and interpret specific feature interactions. To ensure the model remains grounded in interpretable patterns, the authors employ a "smart initialization" strategy, nudging the piecewise component toward a linear baseline before training begins.

Experimental Evaluation

The researchers validated PiLiD across diverse datasets, including synthetic polynomial functions and real-world benchmarks such as bike-sharing demand, bank marketing, and professional gaming telemetry (SkillCraft).

In terms of raw performance, PiLiD consistently matched or exceeded the accuracy of standard MLPs, Random Forests, and Generalized Additive Models (GAMs). For instance, on the Bank Marketing classification task, PiLiD achieved an AUC of 0.938, outperforming a standard MLP (0.929). More importantly, the model proved robust; the learned feature shapes remained consistent even as the number of piecewise intervals was adjusted, indicating that the model captures genuine underlying data patterns rather than noise.

Visualizing Feature Shapes

The primary advantage of PiLiD is its ability to generate actionable insights through "feature shapes." Rather than providing a single importance score, the model produces graphs showing exactly how a variable (like age or skill level) influences the predicted outcome across its entire range.

Learned feature shapes from synthetic and real-world datasets, demonstrating the model's ability to recover complex non-linear relationships.

In the SkillCraft dataset, for example, PiLiD successfully visualized the "aging effect" in professional gaming, showing a clear performance peak followed by a decline—a result that mirrors established research in human-computer interaction. This level of transparency makes the model particularly valuable for high-stakes domains where understanding the why is as critical as the what.

Conclusion

PiLiD represents a significant step toward making deep learning more transparent. By finding the "sweet spot" between stiff linear models and opaque neural networks, it provides a framework where high-performance AI can be audited and understood by human experts. While challenges remain regarding computational costs and the visualization of very high-order interactions, PiLiD offers a robust path forward for interpretable-by-design machine learning.

Summary updated

BibTeX
@misc{guo2020interpretable,
  author = {Mengzhuo Guo and Qingpeng Zhang and Xiuwu Liao and Daniel Dajun Zeng},
  title = {{An interpretable neural network model through piecewise linear approximation}},
  year = {2020},
  eprint = {2001.07119},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.07119},
}
Figure