Why is finding the nearest airport using LLMs so complex?

John Mathew
Riafy Stories
Published in
3 min readMar 27, 2024

--

Identifying the nearest and most suitable airport for a given travel destination is a deceptively hard challenge, one that might initially seem straightforward but is laden with nuance and complexity.

When we tasked Luna to find the nearest airport!

Here are 3 major challenges —

1. Geographical vs. Practical Proximity

The nearest airport geographically may not be the most practical or preferred choice for travelers. An airport might be closer on the map but could require significantly longer travel times due to poor connectivity.

For Darjeeling, Bagdogra Airport is geographically closest but travelers also consider factors like connectivity and travel time to Darjeeling. Similarly, someone traveling to Monaco might find Nice Côte d’Azur Airport in France as the nearest practical airport, crossing international borders.

2. International Boundaries and Visa Requirements

In many cases, the geographically nearest airport could be in a different country, which introduces additional complexities such as visa requirements, international travel restrictions, and potentially higher travel costs. This factor is especially relevant in regions with small countries or in border areas.

For instance, those aiming to visit Niagara Falls from abroad might find airports in both Canada and the USA proximate but will need to consider visa implications.

Screengrab from a travel app — When searching for Darjeeling, the suggestion brings up another country based on proximity. This is not acceptable for an intelligent AI system. It needs to factor in context and narrow it to only the Bagdogra Airport.

3. Airline Serviceability — Connect with real-time systems like Navitaire

Not all airports are serviced by every airline, and the availability of flights can vary greatly. Some destinations might be served by regional airports with limited international flights, requiring travelers to use larger, farther airports for international travel. This variability can make it difficult for an LLM to determine the best airport without access to real-world systems like Navitaire to get detailed, up-to-date information on airline routes and service agreements.

Ensuring the accuracy and timeliness of this data can be a significant challenge, especially given the dynamic nature of air travel and the sheer volume of data to be processed.

Implications for LLMs

LLMs have a finite context window, which limits the amount of information they can consider in any single decision-making process. This constraint makes it challenging to process the extensive, real-world information required to accurately identify the nearest and most suitable airport, considering all relevant factors such as flight schedules, geographical data, and traveler preferences.

The model might need to prioritize certain types of information over others, potentially overlooking crucial details.

High Computational Cost

Processing a large amount of detailed and diverse data while evaluating multiple factors such as geographical proximity, flight availability, and cross-border travel considerations involves a lot of cost.

The computational cost escalates further when the model attempts to personalize recommendations based on user preferences and constraints, requiring the model to process and analyze additional layers of information.

Increased Processing Time

The time taken to process queries increases with the volume and complexity of the input data. This delay can impact the user experience, especially in applications where speed and real-time information are crucial.

Trade-off Between Accuracy and Efficiency

There’s an inherent trade-off between the accuracy of the model’s recommendations and the computational efficiency. To increase accuracy by considering a wider range of factors, the model requires more time and computational resources.

However, optimizing for speed and efficiency might mean relying on simplified models and datasets, potentially compromising the quality and personalization of the recommendations.

Long story short — LLMs must maintain a delicate balance between:

  1. Managing a vast and complex dataset
  2. Navigating the limitations of LLM design
  3. Meeting the practical needs of users seeking accurate, timely, and contextually relevant travel information.

--

--