Skip to main content
QUICK REVIEW

[Paper Review] Computing AIC for black-box models using Generalised Degrees of Freedom: a comparison with cross-validation

Severin Hauenstein, Carsten F. Dormann|arXiv (Cornell University)|Mar 9, 2016
Explainable Artificial Intelligence (XAI)Computer Science26 references3 citations
TL;DR

This paper investigates using Generalised Degrees of Freedom (GDF) to compute AIC for black-box machine learning models, particularly for Bernoulli-distributed data. While GDF offers a theoretically sound measure of model complexity, the study finds it computationally intensive, unstable, and inconsistently sensitive to perturbations in binary data, leading to the conclusion that repeated 10-fold cross-validation is more robust, efficient, and practical for model complexity estimation in such contexts.

ABSTRACT

Generalised Degrees of Freedom (GDF), as defined by Ye (1998 JASA 93:120-131), represent the sensitivity of model fits to perturbations of the data. As such they can be computed for any statistical model, making it possible, in principle, to derive the number of parameters in machine-learning approaches. Defined originally for normally distributed data only, we here investigate the potential of this approach for Bernoulli-data. GDF-values for models of simulated and real data are compared to model complexity-estimates from cross-validation. Similarly, we computed GDF-based AICc for randomForest, neural networks and boosted regression trees and demonstrated its similarity to cross-validation. GDF-estimates for binary data were unstable and inconsistently sensitive to the number of data points perturbed simultaneously, while at the same time being extremely computer-intensive in their calculation. Repeated 10-fold cross-validation was more robust, based on fewer assumptions and faster to compute. Our findings suggest that the GDF-approach does not readily transfer to Bernoulli data and a wider range of regression approaches.

Motivation & Objective

  • To extend AIC to non-likelihood-based machine learning models by using Generalised Degrees of Freedom (GDF) as a proxy for model complexity.
  • To assess the stability, accuracy, and computational feasibility of GDF-based AIC for Bernoulli-distributed data, compared to cross-validation.
  • To determine whether GDF can serve as a viable alternative to cross-validation for model selection and averaging in black-box models.
  • To evaluate the practicality of GDF across diverse models, including random forests, neural networks, and boosted regression trees.
  • To compare GDF-based AIC with cross-validation-derived deviance and model complexity estimates in terms of robustness and computational cost.

Proposed method

  • Computing GDF via perturbation of individual data points by estimating the sensitivity of fitted values to changes in observed responses, using the formula GDF = trace(H) = Σ ∂ŷ_i / ∂y_i.
  • Adapting GDF for Bernoulli data by perturbing multiple observations simultaneously and assessing model response, despite known instability in such settings.
  • Comparing GDF-based AICc with AIC derived from repeated 10-fold cross-validation, using both simulated and real ecological datasets.
  • Using cross-validation to estimate model complexity via the difference in log-likelihood between full and hold-out sets (Δℓ^CV_m), serving as a benchmark.
  • Evaluating computational efficiency by counting the number of model fits required for GDF (tens of thousands) versus cross-validation (~1000).
  • Applying the approach to diverse models: random forests, neural networks, and boosted regression trees, to test generalizability across algorithm types.

Experimental results

Research questions

  • RQ1Can Generalised Degrees of Freedom (GDF) be reliably used to estimate model complexity in black-box models for Bernoulli-distributed data?
  • RQ2How does GDF-based AICc compare to cross-validation-based model complexity and deviance estimates in terms of stability and accuracy?
  • RQ3Is the GDF approach computationally feasible for practical model selection in machine learning, especially for large or complex models?
  • RQ4Does the GDF method yield consistent results across different machine learning algorithms, including random forests and boosted regression trees?
  • RQ5Can GDF-based AIC be used effectively in model averaging, or is cross-validation a more suitable alternative?

Key findings

  • GDF estimates for Bernoulli data were unstable and inconsistently sensitive to the number of simultaneously perturbed data points, undermining reliability.
  • The GDF approach was extremely computationally intensive, requiring tens of thousands of model fits, making it impractical for most real-world applications.
  • Repeated 10-fold cross-validation proved more robust, required fewer assumptions, and was significantly faster than GDF-based estimation.
  • GDF-based AICc showed similarity to cross-validation results in some cases, but the instability in GDF estimation limited its practical utility.
  • Cross-validation-based model complexity estimates (Δℓ^CV_m) were more directly interpretable and less dependent on arbitrary perturbation choices than GDF.
  • The study concludes that cross-validation is a more practical and reliable alternative to GDF for estimating model complexity in non-likelihood models, especially for binary outcomes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.