MTop-Div: Manifold Topology Divergence—a metric measuring the topological difference between two datasets (here, prompt and response tokens) by analyzing the connectivity of their union
Attention Graph: A complete weighted graph where nodes are tokens and edge weights are derived from attention scores (1 - attention weight), representing pseudo-distances
Vietoris-Rips complex: A sequence of simplicial complexes built from a metric space at increasing distance thresholds, used to compute topological features like connected components
MSF: Minimum Spanning Forest—a collection of Minimum Spanning Trees, here used to connect response tokens to the prompt set in the attention graph
Barcode: A graphical representation of topological features (like connected components) persisting across different scales; the sum of interval lengths serves as the divergence score
RAG: Retrieval-Augmented Generation—AI systems that answer questions by first searching for relevant documents
SelfCheckGPT: A consistency-based hallucination detection method that samples multiple responses to check for factual agreement
TDA: Topological Data Analysis—a field of data analysis using techniques from topology to study the shape and structure of data