Abstract
The General Transit Feed Specification (GTFS) standard for publishing transit data is ubiquitous. With the advent of LLMs being used widely, this research explores the possibility of extracting transit information from GTFS through natural language instructions. To evaluate the capabilities and limitations of LLMs, we introduce two benchmarks, namely “GTFS Semantics” and “GTFS Retrieval” that test how well LLMs can “understand” GTFS standards and retrieve relevant transit information. We benchmark OpenAI’s GPT-3.5 Turbo and GPT-4 LLMs, which are backends for the ChatGPT interface. In particular, we use zero-shot, one-shot, chain of thought, and program synthesis techniques with prompt engineering. For our multiple questions, GPT-3.5 Turbo answers 59.7% correctly and GPT-4 answers 73.3% correctly, but they do worse when one of the multiple choice options is replaced by “None of these”. Furthermore, we evaluate how well the LLMs can extract information from a filtered GTFS feed containing four bus routes from the Chicago Transit Authority. Program synthesis techniques outperformed zero-shot approaches, achieving up to 93% (90%) accuracy for simple queries and 61% (41%) for complex ones using GPT-4 (GPT-3.5 Turbo).
Original language | English (US) |
---|---|
Pages (from-to) | 333-357 |
Number of pages | 25 |
Journal | Public Transport |
Volume | 16 |
Issue number | 2 |
DOIs | |
State | Published - Jun 2024 |
Externally published | Yes |
Keywords
- ChatGPT
- GPT-3.5 Turbo
- GPT-4
- GTFS
- Generative AI
- Large language models
ASJC Scopus subject areas
- Information Systems
- Transportation
- Mechanical Engineering
- Management Science and Operations Research