← Latest papers
💬 NLP

Coordinates from Context: Using LLMs to Ground Complex Location References

This paper proposes and evaluates an LLM-based strategy for geocoding complex, compositional location references, demonstrating that a relatively small fine-tuned model can achieve performance comparable to much larger off-the-shelf models by effectively leveraging geospatial reasoning.

Original authors: Tessa Masis, Brendan O'Connor

Published 2026-01-27
📖 5 min read🧠 Deep dive

Original authors: Tessa Masis, Brendan O'Connor

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are reading a travel diary that says, "The campsite is about halfway between the old oak tree and the red barn."

If you tried to find this spot on a standard GPS or Google Maps, you'd be stuck. Those tools are great at finding named places like "Central Park" or "Eiffel Tower," but they don't have a database entry for "the spot between the oak and the barn." This is the problem the paper tackles: Geocoding compositional locations. It's the art of turning a description of a relationship between places into actual coordinates on a map.

The authors, Tessa Masis and Brendan O'Connor, wanted to see if modern Large Language Models (LLMs)—the AI brains behind chatbots—could solve this puzzle. They discovered something surprising about how these AIs think, and they built a new system to fix the AI's weaknesses.

Here is the breakdown of their journey, using some everyday analogies:

1. The Two Skills: The Encyclopedia vs. The Detective

The researchers realized that solving this puzzle requires two different skills, and they tested the AI on them separately:

  • Skill A: The Encyclopedia (Geospatial Knowledge)
    • The Test: "What are the coordinates of Paris, France?"
    • The Result: The AI is okay at this, but not perfect. It's like a student who has read a lot of books but sometimes forgets the exact page number. When asked to guess the size of a city (a "bounding box") just from its name, the AI often guessed wildly off, sometimes by hundreds of kilometers.
  • Skill B: The Detective (Geospatial Reasoning)
    • The Test: "Here are the coordinates for the Oak Tree and the Barn. The campsite is halfway between them. Where is it?"
    • The Result: The AI is actually a great detective. When given the facts (the coordinates of the reference points), it can do the math and logic to figure out the new location very accurately.

The Big Insight: The AI is better at reasoning with facts provided to it than it is at recalling facts from its own memory.

2. The Solution: The "Tool-Augmented" Team

Since the AI is a great detective but a forgetful encyclopedia, the authors decided to give it a helper. They created a two-step team:

  1. The Librarian (The Geoparser): This is a traditional, reliable tool (like a standard GPS API) that knows exactly where named places are. It looks up "Oak Tree" and "Red Barn" and hands the AI their exact coordinates.
  2. The Detective (The LLM): The AI takes those coordinates and the description ("halfway between") and calculates the final location.

The Analogy: Imagine you are trying to find a hidden treasure.

  • The "Direct" approach is asking the AI to guess the location based only on a vague story. It often fails.
  • The "Geoparser-augmented" approach is giving the AI a map with the starting points marked, then asking it to draw the path to the treasure. This works much better.

3. The Secret Weapon: Bounding Boxes

Most GPS systems use a single dot (a center point) to mark a location. But what if the location is a whole field or a vague area like "the middle of the forest"? A single dot is too precise and often wrong.

The authors used Bounding Boxes instead. Think of this as drawing a rectangle around the area on a map.

  • Instead of saying "The treasure is at exactly 40.7° N," they say "The treasure is somewhere inside this rectangle."
  • This is a much more honest and accurate way to describe places that don't have a specific address.

4. The Results: Small AI vs. Big AI

The paper tested huge, expensive AI models against smaller, cheaper ones.

  • The Surprise: A relatively small, fine-tuned AI (trained specifically on this task) performed just as well as the massive, billion-dollar models.
  • The Takeaway: You don't need the biggest, most powerful computer to solve this. You just need the right strategy (the Librarian + Detective team) and a model that has been taught how to use it.

5. A Quirk in the System

The researchers noticed something funny: When they gave the AI the exact coordinates from the Librarian, the AI sometimes got too lazy. Instead of doing the math to find the "halfway" point, it would just grab the coordinates of the two reference points and draw a giant box around them.

  • Analogy: It's like asking a student, "What is 5 plus 5?" and the student just writes down "5 and 5" instead of "10."
  • They found that training the AI (fine-tuning) helped it stop doing this and actually start doing the math.

Summary

The paper argues that to find locations described in text (like "between X and Y"), we shouldn't just ask an AI to "know" the answer. Instead, we should:

  1. Use a reliable tool to find the known places.
  2. Let the AI use its reasoning skills to figure out the unknown place based on those known spots.
  3. Represent the answer as a "box" on a map rather than a single dot.

This approach allows us to map places that have never been named before, using a mix of traditional tools and smart, reasoning AI.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →