Decoder-Only Sequence Classification Explanations via Intermediate Predictions

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for generating input attributions in decoder-only sequence models are either expensive or yield low-quality explanations that do not accurately reflect the model's behavior.

Innovation Solution

A method and system for computing input attributions using intermediate predictions by evaluating decoder-only sequence models at different points in the input sequence, employing techniques like Kernel SHapley Additive exPlanations (SHAP) and progressive inference to generate high-quality explanations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If previous methods (input perturbations, relevance propagation, attention scores, or gradients) are used to generate input attributions, then the process is simpler to implement, but the quality of attributions is low and does not accurately reflect model behavior

Engineering Contradiction:
Improveattribution qualityVSAvoidmethod complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent introduces intermediate predictions as a mediator between the original input and final model prediction. By evaluating the model at multiple intermediate points during the decoding process and aggregating these predictions, the method obtains more accurate attributions that reflect the model's actual reasoning trajectory, rather than relying on post-hoc approximation methods

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent segments the model's prediction process into multiple intermediate steps during the decoding phase. Instead of treating the model as a black box that maps input to output, the method divides the transformation into discrete intermediate predictions that can be individually analyzed and aggregated to reveal the model's decision-making process

Inventive Principle:
Principle #1Segmentation

2Reliability

If accurate input attributions are obtained through intermediate predictions, then model trustworthiness and explanation quality improve, but computational cost increases

Engineering Contradiction:
Improvemodel trustworthinessVSAvoidcomputational cost
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent performs the computationally intensive intermediate prediction evaluations during the model's forward pass as a preliminary action, rather than requiring separate expensive perturbation analyses afterward. By integrating attribution computation into the existing decoding process, the method obtains reliable explanations without multiplying the computational cost

Inventive Principle:
Principle #10Preliminary action

3Measurement precision

If intermediate predictions are used to compute attributions, then attribution accuracy improves, but the time required for explanation generation increases

Engineering Contradiction:
Improveattribution accuracyVSAvoidexplanation generation time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent merges the attribution computation process with the model's existing inference pipeline by integrating intermediate prediction collection into the decoding loop. This combination allows the system to generate accurate attributions without requiring separate explanation generation steps, thereby reducing the time overhead compared to traditional post-hoc explanation methods

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS20250342366A1Method and system for explaining decoder-only sequence classification models using intermediate predictions
Publication Date: 2025.11.06 JPMORGAN CHASE BANK NA
  • US20250342366A1 patent drawing
  • US20250342366A1 patent drawing
  • US20250342366A1 patent drawing

AI summary

Methods and systems for computing input attributions to accurately explain predictions of decoder-only sequence classification models are provided. The method includes: receiving a set of inputs to the decoder-only sequence classification model; generating, based on the first set of inputs, a perturbed version of the set of inputs; sampling a binary mask from a predetermined masking distribution; generating a group of masked versions of the perturbed set of inputs by applying the binary mask to the perturbed set of inputs; generating, based on the group of masked versions of the perturbed set of inputs, corresponding sets of intermediate predictions that correspond to the decoder-only sequence classification model; computing, based on the sets of intermediate predictions, a set of input attributions; and determining, based on the set of input attributions, an explanation that relates to a prediction of the decoder-only sequence classification model.