Inferensys

Glossary

Linear Proxy Model

A simple linear model, such as LASSO or logistic regression, trained to mimic a complex model's predictions locally or globally to provide feature-level importance scores.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
INTERPRETABILITY SURROGATE

What is a Linear Proxy Model?

A linear proxy model is a simple, inherently interpretable model trained to approximate the predictions of a complex black-box model to provide feature-level importance scores.

A linear proxy model is a transparent surrogate—such as LASSO or logistic regression—trained on the input-output pairs of an opaque teacher model. By fitting a weighted linear equation to mimic the teacher's decision boundary, it directly exposes the magnitude and direction of each feature's influence, converting the teacher's 'dark knowledge' into explicit, auditable coefficients.

This technique navigates the interpretability-accuracy tradeoff by sacrificing some fidelity for total transparency. The resulting proxy serves as a global surrogate for understanding overall model behavior or a local surrogate for explaining a single prediction. Its coefficients provide a straightforward, human-readable measure of feature importance, making it a cornerstone of post-hoc distillation for regulated industries.

LINEAR PROXY MODEL

Key Characteristics

A linear proxy model translates the opaque decision logic of a complex black-box model into a transparent, weighted sum of input features. It serves as a high-fidelity, globally or locally interpretable surrogate for auditing and explanation.

01

Inherently Interpretable Structure

The model's prediction is a direct linear combination of input features, making the contribution of each feature immediately visible through its learned coefficient.

  • Coefficient as Importance: The magnitude and sign of each weight directly quantify the feature's impact on the prediction.
  • No Interaction Terms: Standard linear proxies assume feature independence, providing a clear, additive explanation without complex interactions.
  • Auditability: A human can trace the exact arithmetic path from input to output, satisfying regulatory requirements for transparent decision-making.
02

LASSO for Sparse Feature Selection

The Least Absolute Shrinkage and Selection Operator (LASSO) is a preferred linear proxy when only a few features truly drive the complex model's decision.

  • L1 Regularization: LASSO adds a penalty equal to the absolute value of the coefficients, driving irrelevant feature weights to exactly zero.
  • Automatic Pruning: This produces a sparse model that highlights only the most critical factors, reducing cognitive load for human reviewers.
  • Example: In a credit risk black-box, a LASSO proxy might retain only 'debt-to-income ratio' and 'delinquency count' while zeroing out dozens of other variables.
03

Local vs. Global Approximation

A linear proxy can be trained to explain the entire model behavior or just a specific prediction, depending on the audit scope.

  • Global Surrogate: Trained on a large sample of the black-box's input-output pairs to approximate its overall decision boundary. Useful for high-level model validation.
  • Local Surrogate: Trained on perturbed samples around a single instance to explain that specific prediction. This is the core mechanism behind LIME.
  • Fidelity Metric: The R-squared value between the proxy's predictions and the black-box's outputs measures how faithfully the linear model captures the original logic.
04

Distillation from Soft Targets

Linear proxies are often trained using knowledge distillation, where they learn from the teacher model's probability distribution rather than hard labels.

  • Soft Targets: The complex model outputs a probability for each class (e.g., [0.1, 0.8, 0.1]). These contain 'dark knowledge' about class similarities.
  • Rich Supervision: A logistic regression student trained on these probabilities learns a more nuanced decision boundary than one trained on binary 0/1 labels.
  • Calibration: The resulting linear model often produces better-calibrated probability estimates, as it inherits the teacher's uncertainty quantification.
05

Coefficient Stability and Significance

For a linear proxy to be trustworthy, its coefficients must be stable and statistically significant, not artifacts of noise.

  • Confidence Intervals: Standard linear model theory allows calculation of p-values and confidence intervals for each weight, quantifying uncertainty in the explanation.
  • Multicollinearity Check: High correlation between input features can cause coefficient instability. Variance Inflation Factor (VIF) analysis is used to diagnose this.
  • Regularization Path: By varying the LASSO penalty, one can observe the order in which features enter the model, indicating their relative importance to the black-box.
06

Limitations of Linear Proxies

A linear model cannot capture non-linear interactions or heterogeneous effects present in the original black-box, leading to fidelity gaps.

  • Interaction Blindness: If the true model relies on an XOR-like relationship (e.g., 'high income AND low debt'), a purely additive linear proxy will misrepresent this logic.
  • Low Fidelity Warning: A low R-squared value signals that the black-box's decision surface is too complex for a linear approximation, and a more expressive surrogate like an Explainable Boosting Machine (EBM) should be considered.
  • Extrapolation Risk: The proxy's coefficients are valid only within the data distribution it was trained on; predictions on outliers may be meaningless.
LINEAR PROXY MODELS

Frequently Asked Questions

Clear answers to common questions about using simple, transparent linear models to explain and mimic complex black-box predictions.

A linear proxy model is a simple, inherently interpretable model—such as LASSO or logistic regression—trained to mimic the predictions of a complex black-box model. It works by using the original model's inputs and outputs as a new supervised training dataset. The proxy learns a weighted linear combination of input features to approximate the black-box's decision boundary. Because the proxy's structure is transparent, the learned coefficients directly quantify each feature's global or local importance, providing a human-readable explanation of the complex model's behavior. This technique is a core component of post-hoc distillation for interpretability, trading a small amount of predictive fidelity for complete transparency.

SURROGATE MODEL COMPARISON

Linear Proxy vs. Other Surrogate Models

Comparing the structural properties and use cases of linear proxy models against other common surrogate architectures for black-box explanation.

FeatureLinear ProxyDecision Tree SurrogateExplainable Boosting Machine

Model Form

Weighted linear combination of features

Hierarchical if-then rules

Additive feature functions with interactions

Global Fidelity

Low to moderate

Moderate

High

Local Fidelity

Moderate

Low

Moderate to high

Inherent Interpretability

Very high

High

High

Captures Feature Interactions

Handles Categorical Features

Training Cost

Low

Low

Moderate

Typical Use Case

Local explanation via LIME; global linear baseline

Global rule extraction; compliance auditing

High-fidelity glass-box replacement

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.