In traditional machine learning, a prediction is often either right or wrong. If a model classifies a cat as a dog, it fails. If a system predicts a user is in New York when they are actually in Los Angeles, it fails. However, in the physical world, "wrong" is not a binary state—it is a spectrum.
A geolocation model that misses a target by 500 meters is vastly more useful than one that misses by 500 kilometers. Yet, standard classification metrics like Top-1 Accuracy or Intersection-over-Union (IoU) often treat these two errors as identical failures. To bridge this gap, researchers are moving toward distance-aware evaluation, a paradigm that prioritizes the spatial proximity of a prediction over its exact coordinate match.
The Failure of Binary Metrics
The core problem with traditional metrics is their "spatial blindness." As Afshin Rahimi and colleagues noted in the Twitter Geolocation Prediction Shared Task, exact-match accuracy fails to account for the physical utility of a result. In many real-world applications—from autonomous driving to medical imaging—a "near-miss" is not just a better error; it is often a functional success.
Consider the task of detecting a pulmonary embolism in a CT scan. Daniel Jimenez-Carretero argues that a detection can be clinically valid even if it doesn't achieve perfect pixel-level overlap with an expert's annotation. By using a spatial tolerance margin, the evaluation rewards models that find the right general area, acknowledging that human-provided "ground truth" itself has inherent variability.
Continuous Error and Geodesic Precision
Rather than asking "Is this the correct city?", researchers like Jen-tse Huang use geodesic error to measure the continuous physical distance between a predicted location and the truth. This approach, used in the FAIRLOCATOR benchmark, allows for a granular assessment of model bias. It reveals, for instance, that models might not just be "wrong" in the developing world, but "more wrong" in terms of absolute distance compared to their errors in wealthy regions.
This shift from discrete categories to continuous distance is also vital in NLP. Milan Gritta suggests that geoparsing—extracting locations from text—should be measured by the Area Under the Curve (AUC) of logged errors. This metric captures the magnitude of spatial error, distinguishing between a system that places a landmark in the wrong neighborhood versus the wrong continent.
Prioritizing the Immediate Environment
In navigation and robotics, not all distances are created equal. An error 5 meters away from a self-driving car is a safety crisis; an error 500 meters away is a minor routing update.
Alexander Blumberg and Jonas Merkert addressed this by developing a distance-aware metric for HD maps that calculates the Chamfer Distance within concentric rings. By weighting the accuracy of nearby environmental features more heavily than distant ones, the metric aligns model evaluation with the practical requirements of vehicle safety. Similarly, in UAV positioning, Jiedong Zhuang and Yuanze Xu advocate for metrics like SDM@K, which measure retrieval success based on geographical proximity rather than pixel-perfect image matching.
Spatially Relaxed Inference
The need for spatial tolerance extends even into high-dimensional statistics and brain imaging. When mapping brain activity, traditional statistical tests are often too "stiff," rejecting valid signals because they are slightly offset from a predicted coordinate.
Joseph Salmon and Jérôme-Alexis Chevalier introduced $\delta$-FWER, a "spatially relaxed" inference framework. By allowing a discovery to be considered "true" if it falls within a distance $\delta$ of the source, they significantly boost the power of statistical models to find signals in noisy, highly correlated data like MEG/EEG scans. This acknowledges that in complex systems, the vicinity of a signal is often as scientifically relevant as its exact pixel.
Measuring the "Mental Maps" of AI
Finally, distance-based metrics are becoming the primary tool for probing the internal representations of Large Language Models (LLMs). To determine if an LLM actually understands space or is just reciting coordinates, Yutaro Yamada and Seungwoong Ha use geometric distance functions like Earth Mover’s Distance.
If a model’s incorrect answer is consistently "near" the truth in 2D space, it suggests the model has formed an approximate internal spatial representation. As Jihan Yang demonstrates in VSI-Bench, evaluating numerical estimations by their proximity to the ground truth—rather than exact integer matches—is the only way to fairly assess the "subhuman" but emerging spatial intelligence of modern multimodal models.