Large Language Models as Delivery Rider: Generating Instant Food Delivery Riders' Routing Decision with LLM Agent Framework
This paper introduces LLM-DR, a novel agent framework that leverages empirically-grounded rider personas and Chain-of-Thought reasoning within Large Language Models to simulate heterogeneous, strategic routing decisions of delivery riders in dynamic, real-world instant delivery scenarios.
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 the mayor of a bustling city, and you want to understand how thousands of food delivery riders make their daily decisions. Do they rush for every order? Do they wait for big bundles? Do they work all day or just during lunch?
Usually, to study this, you'd need to spy on real riders, which is hard because their data is private and messy. Instead, the authors of this paper built a digital "simulator" using Artificial Intelligence (AI) to create a virtual city filled with fake riders who act exactly like real ones.
Here is the breakdown of their project, LLM-DR, explained in simple terms:
1. The Problem: Why Can't We Just Use Math?
Traditional computer models treat all riders like identical robots. They assume every rider follows the same simple rule: "Take the closest order."
But real humans aren't robots.
- Rider A might be a "Workhorse" who wants to work 12 hours straight to pay rent.
- Rider B might be a "Student" who only works during the lunch rush to make quick cash.
- Rider C might be a "Strategist" who ignores small orders and waits for a massive bundle of 5 orders to go to the same neighborhood, maximizing their profit per trip.
If your simulation treats them all the same, your results will be wrong. You need a way to simulate human personality.
2. The Solution: The "Digital Actor" Method
The authors created a system called LLM-DR. Think of it like casting a play. They didn't just write code; they wrote scripts for four different types of actors (riders) and gave them a super-smart AI brain (a Large Language Model) to improvise their lines and actions.
Step 1: Finding the "Characters" (Personas)
First, the researchers looked at real data from thousands of actual riders. They used a computer technique called "clustering" to group them into four distinct personality types:
- The Full-time Workhorse: The steady Eddie. Works all day, takes whatever comes, keeps moving.
- The Lunch-Peak Specialist: The part-timer. Only shows up between 11 AM and 2 PM, grabs quick short trips, and leaves.
- The Super Stacker: The gambler/strategist. Ignores small orders. Waits for a "wave" of orders going to the same area so they can deliver 4 meals in one trip.
- The Dinner-Peak Core: The evening rusher. Focuses on the dinner crowd, usually taking simple, single orders.
Step 2: Giving Them Brains (The AI Agent)
Once they defined these four characters, they gave each one a "brain" powered by a Large Language Model (like the AI you are talking to right now).
- The Prompt: The AI is told, "You are a Super Stacker. You hate small orders. You love big bundles. Here are 4 orders available right now. What do you do?"
- The Reasoning (Chain-of-Thought): The AI doesn't just guess. It thinks out loud (in the background):
- "Hmm, Order 1 is small. Order 2 is small. But Order 2 and 4 go to the same place! If I wait, I can grab both and make double money. I'll reject the small ones for now."
- The Decision: The AI makes a choice based on its "personality."
3. The Simulation: A Virtual City
They built a virtual city (based on Beijing) and dropped these four AI riders into it.
- The Game: Every 10 minutes, the system "broadcasts" new food orders.
- The Action: The riders look at the orders. The "Workhorse" grabs everything. The "Specialist" ignores anything outside lunch hours. The "Stacker" waits for the perfect bundle.
- The Result: The AI riders move around the city, picking up and dropping off food, just like real humans.
4. What Did They Learn?
When they ran the simulation, the results were fascinating because the riders acted differently based on their personalities:
- The Workhorse drove the most miles and made steady money, covering the whole city.
- The Lunch Specialist worked very efficiently but only for a few hours, staying in one busy district.
- The Super Stacker drove fewer miles but made good money by taking long, complex trips with many orders at once.
- The Dinner Core dominated the evening rush.
The Big Takeaway:
If you are a city planner or a delivery app boss, you can't just look at "average" riders. You need to understand that your workforce is a mix of these different "personalities."
- If you change the pay structure, the "Stacker" might quit, but the "Workhorse" stays.
- If there is a rainstorm, the "Risk-Averse" rider might stop working, while the "Workhorse" keeps going.
The "Magic" Metaphor
Imagine you are trying to predict traffic in a city.
- Old Way: You assume every driver is a robot that always takes the shortest path. Your traffic prediction is okay, but it misses the chaos of real life.
- This Paper's Way: You hire four different actors to play drivers. One is a reckless teenager, one is a cautious grandma, one is a taxi driver in a rush, and one is a tourist. You let them drive around a virtual city. Suddenly, your simulation captures the real chaos, the bottlenecks, and the weird detours that happen because humans are unpredictable.
Why Does This Matter?
This is a breakthrough because it moves AI from just "chatting" to simulating complex human behavior in real-time markets. It helps us understand how to design better delivery apps, plan better city traffic, and create fairer policies for the millions of gig workers around the world.
In short: They taught AI to "act" like a delivery rider, and by watching these digital actors, we learned how to understand the real ones.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.