Systems and methods for perturbation-based zero-shot hallucination reasoning for large language model generated text
OwnerSeongmin LEE, Hsiang HSU +1inventors
InventorsSeongmin LEE, Hsiang HSU, Richard CHEN
Life of this patent
Estimating the term…
Loading patent…
OwnerSeongmin LEE, Hsiang HSU +1inventors
InventorsSeongmin LEE, Hsiang HSU, Richard CHEN
Estimating the term…
A method may include: receiving a prompt and generated text from the LLM; computing an original token probability distribution for each token in the prompt and in the generated text; receiving a token position probability distribution for each token position in the generated text from the LLM; identifying keywords in the prompt; perturbing embedding vectors for the keywords used by the LLM by adding noise to the embedding vectors; computing a perturbed probability distribution for the perturbed embedding vectors by providing the perturbed embedding vectors as an input to a neural network used by the LLM, wherein the neural network returns a perturbed token probability distribution; evaluating a divergence between the original token probability distribution and the perturbed token probability distribution; identifying semantically meaningful tokens in the generated text; calculating a mean of divergences for the semantically meaningful tokens; and classifying the LLM based on the mean of divergences.
A method, comprising:
A non-transitory computer readable storage medium, including instructions stored thereon, which when read and executed by one or more computer processors, cause the one or more computer processors to perform steps comprising:
Dependencies are inferred from the claim text.