Large language model explainability via counterfactuals
AssigneeIntuit Inc.
InventorsYair HORESH, Aleksandr KIM, Meghan Rose Khemaissa Mergui LAHMI, Jonathan RABIN
Life of this patent
Estimating the term…
Loading patent…
AssigneeIntuit Inc.
InventorsYair HORESH, Aleksandr KIM, Meghan Rose Khemaissa Mergui LAHMI, Jonathan RABIN
Estimating the term…
A method includes obtaining a prompt to a field large language model (LLM) and a corresponding original response generated by the field LLM. A first phrase is selected from the prompt. A syntactic phrase set, and a semantic phrase set are obtained for the first phrase from a domain corpus. A counterfactual set is selected, including phrases co-occurring in the syntactic phrase set and the semantic phrase set. A counterfactual score is assigned for each counterfactual of the counterfactual set. A first counterfactual is selected from a counterfactual subset of the counterfactual set having highest counterfactual scores. The first phrase in the prompt is replaced with the first counterfactual to obtain a modified prompt. The modified prompt is processed by the field LLM to obtain a modified response. The first phrase and first counterfactual identified from the counterfactual subset are stored as a first phrase pair in a data repository.
A method comprising:
A system comprising:
A method comprising:
Dependencies are inferred from the claim text.