Introduction
Modern navigation systems aim to provide users with multiple high-quality route options. However, generating alternative routes that are both diverse and sensible remains a significant algorithmic challenge. Traditional "via-node" methods—where an intermediate point $v$ is selected to create a path $S \to v \to T$—frequently produce "cuspy" paths. These are routes that contain local subpaths significantly slower than the local optimum, such as exiting and immediately re-entering a highway. While the "uniform stretch" metric can identify and filter these undesirable routes, calculating it exactly is computationally prohibitive for real-time applications.
Methodology
Researchers at Google have proposed a novel approach that replaces slow geometric calculations with a fast deep-learning proxy. The system integrates classical graph partitioning with a transformer-based architecture to predict route quality.
Hierarchical Context via CRP
The method leverages Customizable Route Planning (CRP) to divide road networks into a multi-level hierarchy of partitions. By using the IDs of these partitions as input features, the model gains a "sense of geography" without needing to ingest the entire graph structure.
Transformer-Based Via-Node Prediction
The core of the system is a BERT-style transformer. The input sequence consists of embeddings for the source node, the target node, and their respective hierarchical partition IDs. For any candidate via-node $v$, the model predicts the probability that the resulting path $S \to v \to T$ will maintain a low uniform stretch (specifically $\le 2.0$). This allows the system to move the heavy lifting of uniform stretch calculation to an offline training phase, where the model learns from 10 million pre-calculated origin-destination pairs.
Performance and Diversity
The model was evaluated on real-world networks in Seattle, Paris, and Bangalore, each containing approximately 1.5 to 2 million nodes. The primary goal was to maximize "non-cuspy diversity"—providing multiple routes that are substantially different from one another while ensuring each is a high-quality path throughout its length.
As shown in the evaluation results, the model-based approach consistently outperforms standard heuristics like the "Plateau" method and the "T-test." It achieves higher diversity scores while keeping the number of "cuspy" paths significantly lower than traditional alternatives.
Real-Time Latency
For a navigation system to be viable in production, it must return results in milliseconds. While the Uniform Stretch Filter provides the highest quality, its computational cost is orders of magnitude too high for live queries.
The timing data reveals that the learned model serves as an incredibly efficient proxy. Scoring a candidate via-node takes approximately 6ms, and the total time to generate 30 alternatives is roughly 200ms. This performance is competitive with simple heuristics while providing route quality much closer to the expensive ground-truth filter.
Conclusion
By framing route quality prediction as a machine learning task, this research demonstrates that complex geometric constraints can be effectively approximated by neural networks. This hybrid approach—combining hierarchical graph partitioning with transformer models—enables the generation of high-quality, diverse alternative routes at production-scale latencies. Future work may involve reducing the model's memory footprint and incorporating real-time traffic data to further refine route suggestions.
Summary updated