hottub.patents
US 12,423,614 B2#3438716 Most CitedActiveUnited States (USPTO)Utility

Faithful and efficient sample-based model explanations

0Forward Citations (#3438716 Global)
0.0/yrCitation Velocity (#3438716 Global)
0.00Citation PageRank (#3438716 Global)
38Prior Art Cited
8Claims (2 Indep. · 6 Dep.)
0Drawings / Sheets

Abstract

Hessian matrix-free sample-based techniques for model explanations that are faithful to the model are provided. In one aspect, a method for explaining a machine learning model {circumflex over ( θ )} (e.g., for natural language processing) is provided. The method includes: training the machine learning model {circumflex over ( θ )} with training data D; obtaining a decision of the machine learning model {circumflex over ( θ )}; and explaining the decision of the machine learning model {circumflex over ( θ )} using training examples from the training data D.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 38 · Forward citations: 0.

Claims (8 — 2 Independent, 6 Dependent)

  1. Claim 1Independent Claim

    A method for explaining a machine learning model {circumflex over ( θ)}, the method comprising: training the machine learning model {circumflex over ( θ)} with training data D; obtaining a decision of the machine learning model {circumflex over ( θ)}; computing a set of faithful variants {{circumflex over ( θ)} i } of the machine learning model {circumflex over ( θ)} using the training data D by: randomly selecting batches B of the training data D; calculating, for each batch B i a gradient g (B i |{circumflex over ( θ)}); and computing the set of faithful variants {{circumflex over ( θ)} i } of the machine learning model {circumflex over ( θ)} using the gradient g(B i |{circumflex over ( θ)}) for each batch B i as {circumflex over ( θ)} i ={circumflex over ( θ)}+ η i g(B i |{circumflex over ( θ)}), wherein η i is an i-specific weighting parameter; and explaining the decision of the machine learning model {circumflex over ( θ)} using a set of training examples from the set of faithful

  2. Claim 2Depends on #1

    The method of claim 1, wherein the machine learning model {circumflex over ( θ)} is used for natural language processing.

  3. Claim 3Depends on #1

    The method of claim 1, wherein explaining the decision of the machine learning model {circumflex over ( θ)} comprises: explaining a test example z ′ with the training examples from the set of faithful variants {{circumflex over ( θ)} i }.

  4. Claim 4Depends on #3

    The method of claim 3, further comprising: calculating importance scores for the training examples from the set of faithful variants {{circumflex over ( θ)} i }; ranking the importance scores to create a ranked list of the training examples; and providing the ranked list of the training examples as an explanation of the test example z ′.

  5. Claim 5Depends on #4

    The method of claim 4, wherein calculating the importance scores for the training examples comprises: calculating an importance score TracInF (z,z ′) for a training example z; and repeating the calculating for all of the training examples.

  6. Claim 6Depends on #5

    The method of claim 5, wherein the importance score TracInF (z,z ′) is calculated as a sum of a product of two loss L functions, one for the training example z, and another for the test example z ′.

  7. Claim 7Depends on #5

    The method of claim 5, further comprising: calculating the importance score TracInF (z,z ′) as: TracInF ⁡ ( z, z ′) = ∑ i ∇ θ ^ + δ i L ( θ ^ + δ i, z) ⁢ ∇ θ ^ + δ i L ( θ ^ + δ i, z ′), wherein δ i = η i g(z i |{circumflex over ( θ)}) for loss function L, wherein z i is a given training example, and wherein η i is an i-specific weighting parameter.

  8. Claim 8Independent Claim

    A method for explaining a machine learning model {circumflex over ( θ)}, the method comprising: training the machine learning model {circumflex over ( θ)} with training data D; obtaining a decision of the machine learning model {circumflex over ( θ)} on a test example z ′; explaining the decision of the machine learning model {circumflex over ( θ)} using training examples from randomly selected batches of the training data D; calculating individual importance scores TracInF (z,z ′) for the training examples of the randomly selected batches, respectively, as: TracInF ⁡ ( z, z ′) = ∑ i ∇ θ ^ + δ i L ( θ ^ + δ i, z) ⁢ ∇ θ ^ + δ i L ( θ ^ + δ i, z ′), wherein δ i = η i g(z i |{circumflex over ( θ)}) for loss function L, wherein z i is a given training example, and wherein η i is an i-specific weighting parameter; ranking the individual importance scores of the training examples to create a ranked list of the training examples, the ranked list indicating a subset of training examples from t

Technical Overview & Description

FIELD OF THE INVENTION The present invention relates to explaining model behavior, and more particularly, to Hessian matrix-free sample-based techniques for model explanations that are faithful to the model. BACKGROUND OF THE INVENTION As complex natural language processing models become an indispensable tool in many applications, there are growing interests to explain the working mechanism of these models. However, in the recent advances of natural language processing, the scale of the state-of-the-art models and datasets is usually extensive, which challenges the application of sample-based model explanation methods in many aspects, such as explanation efficiency and faithfulness. The faithfulness of an explanation to a model refers to whether (or not) the explanation represents the true decision-making process of the model. Among the vast number of existing techniques for explaining machine learning models, Influence Functions (IF) that use training examples as explanations for model decisions (i.e., sample-based model explainability methods) have recently gained popularity in natural language processing. See, for example, Koh and Liang, “ Understanding Black-box Predictions via Influence Functions, ” Proceedings of the 34 th International Conference on Machine Learning, Sydney, Australia, (10 pages) (August 2017) (hereinafter “ Koh and Liang ” ). Influence Functions have been applied to explain Bidirectional Encoder Representations from Transformers (BERT)-based text classification and natural language inference models, as well as to aid text generation for data augmentation. See, for example, Devlin et al., “ BERT: Pretraining of Deep Bidirectional Transformers for Language Understanding, ” arXIV:1810.04805v2 (May 2019) (16 pages) (hereinafter “ Devlin ” ) and Radford et al., “ Language Models are Unsupervised Multitask Learners, ” 2019 (24 pages). However, while useful, Influence Functions may not be entirely sufficient for natural language processing applicat

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (38)

Non-Patent Literature (10)

  • S.T. Parker,
  • “
  • Estimating Nonfatal Gunshot Injury Locations With Natural Language Processing and Machine Learning Models,
  • ”
  • Jama Network Open, vol. 3, No. 10, Oct. 2020 (11 pages).
  • Koh and Liang,
  • “
  • Understanding Black-box Predictions via Influence Functions,
  • ”
  • Proceedings of the 34th International Conference on Machine Learning, Sydney, Australia, (10 pages) (Aug. 2017).