US patent US12775626
Node-level uncertainty estimation for machine learning model generated structured queries
Abstract
Aspects of the present disclosure relate to estimating uncertainty for machine learning model generated structured queries. Aspects include generating a structured query using a generative machine learning model based on an input request, obtaining a ground truth structured query corresponding to the input request, and parsing the generated structured query and the ground truth query into abstract syntax trees (ASTs). Aspects include aligning nodes between the ASTs to automatically generate labels for nodes in the AST for the generated structured query, generating features for each node in the generated ASTs, and training a machine learning model using the generated features and the generated labels to predict node-level error probabilities in generated structured queries.