Recent years have witnessed the immense success of applying sequence-to-sequence (seq2seq) models to graph parsing tasks, where natural language is translated into compositionally structured outputs like graphs or trees. However, while these models achieve high accuracy, they often act as "black boxes" regarding their own mistakes. This paper tackles a critical but overlooked problem in Natural Language Processing (NLP): how to accurately measure a model's "confidence" in the complex graph structures it generates.
The Probability Gap in Graph Parsing
The core challenge in quantifying uncertainty for these tasks is the probability gap. A standard seq2seq model (like T5) calculates the probability of the next token in a linearized string. However, in a parsed graph, a node’s validity depends on its parent in the hierarchy, not necessarily the token that immediately preceded it in the string format.
Because of this mismatch, standard uncertainty metrics—such as sequence-level Expected Calibration Error (ECE)—fail to capture whether a model is actually "sure" about specific structural connections. A model might appear perfectly calibrated on the string level while being wildly overconfident about the actual graph topology.
Bridging the Gap: GAP and CECE
To resolve this, the authors introduce a novel, probabilistically interpretable framework with two major contributions:
- Graph Autoregressive Process (GAP): GAP acts as a probabilistic bridge. It takes the "beam search" outputs (the top-K sequences the model considers) and translates them into a "Meta Graph." This allows researchers to calculate the marginal probability of a specific node or the conditional probability of an edge given its parent. Essentially, GAP re-interprets sequence probabilities through the lens of graph topology.
- Compositional Expected Calibration Error (CECE): Traditional calibration metrics evaluate the whole sequence. CECE breaks this down, measuring how well the model’s predicted confidence for individual nodes (CECE$_N$) and edges (CECE$_E$) matches its actual accuracy.
Application: Uncertainty-Guided Collaboration
To demonstrate the practical utility of compositional uncertainty, the authors designed a collaborative semantic parsing system. Instead of asking a human to review an entire, potentially massive graph when the model is unsure, the system uses GAP to identify the specific subgraphs (nodes or edges) that have low confidence. It then sends only those isolated pieces to a human for review.
This targeted approach proved highly effective. In collaborative parsing tasks, selecting subgraphs based on GAP uncertainty reduced errors by 30% on average compared to random selection. Furthermore, it performed remarkably close to an "Oracle" (a theoretical selector that knows exactly where the errors are), with only a 0.33 difference in average prediction error.
Key Insights and Experimental Results
The framework was rigorously evaluated across three diverse tasks and ten domains, including Redwoods (a grammar-based treebank), SMCalFlow (task-oriented dialogues), and SNIPS (intent-and-slot-filling). Key findings include:
- Sequence ECE is Misleading: The study confirmed that sequence-level accuracy does not reliably correlate with graph-level correctness (SMATCH score).
- CECE as a Canary for Distributional Shift: CECE proved to be much more sensitive to Out-of-Distribution (OOD) shifts than vanilla metrics. When models moved from familiar training data to unfamiliar domains, CECE rose sharply, providing a clear, reliable signal that the model was struggling.
- The "Edge" Problem: While advanced uncertainty methods (like Deep Ensembles or SNGP) improved node-level calibration, they provided surprisingly little benefit for edge-level calibration. This suggests that predicting relationships between concepts poses a fundamentally different uncertainty challenge than predicting the concepts themselves.
Limitations and Future Work
While GAP represents a significant step forward, the authors note a few limitations. The study focused entirely on English-based datasets, making cross-linguistic testing (e.g., using Uniform Meaning Representation) a necessary next step. Additionally, GAP currently assumes a local Markov property (a node only depends on its parent), whereas seq2seq models can capture longer-range dependencies. Future iterations could explore more sophisticated graphical models to account for these higher-order relationships. Finally, achieving the best-calibrated uncertainty often required computationally expensive methods like Deep Ensembles, which may be prohibitive for large-scale deployments.
Summary updated