TL;DR
This paper introduces a novel "prompt mining" framework that automatically generates and refines natural language prompts to improve human mobility forecasting with Large Language Models (LLMs). By moving beyond rigid, hand-crafted templates and incorporating information entropy and Chain-of-Thought reasoning, the authors significantly outperform traditional numerical forecasting methods and basic prompting strategies.
What Problem Does This Paper Address?
Predicting human mobility—how many people will visit a specific Point of Interest (POI) at a given time—is vital for urban planning, transportation management, and public health. Traditionally, this is handled by numerical time-series models (like ARIMA or Transformers). Recently, a new paradigm has emerged: language-based forecasting. This approach transforms raw numerical data into natural language prompts, allowing LLMs to "read" history and "write" the future.
However, LLMs are notoriously sensitive to how a prompt is phrased. Previous studies relied on fixed, manually designed templates (e.g., "There were [X] visitors yesterday..."). These rigid structures often fail to capture the complex, underlying patterns in mobility data. The authors address this gap by asking: Can we automatically "mine" and refine the best possible prompts for this task?
Methods
The authors propose a multi-stage Prompt Mining Framework consisting of three key phases:
- Prompt Initialization: They create a "Heuristic Template Pool" containing both simple and complex manual templates. These serve as initial supervision signals to kickstart the mining process.
- Prompt Generation: A language model ($\mathcal{G}$, specifically GPT-2) is trained to generate "better" prompts. To guide this, they introduce a Prompt Quality Evaluator ($\mathcal{F}$) that uses a binary classifier and a novel Prompt Entropy metric. They hypothesize that prompts with higher information entropy are more efficient at transmitting information, leading to more effective forecasting.
- Prompt Refinement: The generated prompts (V1) undergo further sophisticated enhancements:
- Noise Reduction (V2): Reorganizing data into diurnal (day/night) partitions to reduce textual noise.
- Chain-of-Thought (CoT) Integration (V3): Appending reasoning steps that explicitly sum up segmented mobility counts, helping the model "reason" through the arithmetic of forecasting.
- Information Gain-based Temporal Segmentation (V4): Using an unsupervised technique (IGTS) to find optimal time segments (e.g., lunch rushes) rather than arbitrary fixed splits.
Datasets
The study utilizes SafeGraph mobility pattern data (accessed via the Dewey platform).
- Scope: 562,151 rows of weekly data from 172 brand types across the US.
- Temporal Span: December 26, 2022, to January 2, 2023.
- Features: Hourly and daily visit counts, POI region, and business opening/closing hours.
Key Insights and Ideas
- Entropy as a Quality Signal: One of the most interesting ideas is using character-level information entropy to weight the training loss. Prompts that are more "informative" (higher entropy) receive lower weights in the loss function, encouraging the generator to prefer high-quality, dense descriptions.
- The Power of Arithmetic CoT: Simply adding a sentence that sums up the parts (e.g., "5 + 4 = 9") significantly boosts the LLM's ability to predict the next day's total. It bridges the gap between raw hourly observations and aggregate daily forecasts.
- Dynamic vs. Fixed Segmentation: While splitting a day at 12 PM (diurnal) is better than no split, using Information Gain to find natural "activity blocks" (V4) provides a more nuanced description of human behavior that LLMs can better exploit.
Key Results
The authors evaluated their framework using three LLMs (Bart, Bigbird, and Pegasus) and compared them against a suite of numerical baselines (ARIMA, Prophet, Autoformer, etc.).
- Superiority over Numerical Models: Mined prompts (V1) consistently outperformed traditional numerical methods. For instance, Pegasus with V1 prompts achieved a Daily Forecast RMSE of 8.26, compared to 10.76 for Prophet and 25.58 for ARIMA.
- Incremental Gains from Refinement: Each refinement stage generally improved performance. In the Bart model, moving from V1 to V3 reduced the Daily Forecast RMSE from 23.43 to 6.68.
- Segmentation Matters: Increasing the number of segments ($K$) in the V4 prompts generally led to lower errors for Bigbird and Pegasus, demonstrating the value of detailed temporal descriptions.
Limitations and Future Work
- Computational Overhead: LLM-based forecasting is significantly more resource-intensive than traditional numerical models, which might limit real-time deployment.
- Contextual Data: The current framework primarily uses historical visit counts. The authors suggest that integrating external data like weather, local events, or social media trends could further enhance accuracy.
- Human-in-the-loop: While the framework automates prompt mining, the authors note that incorporating feedback from domain experts (urban planners, etc.) into the refinement stage is a promising future direction.
- Mining Engine: The study used GPT-2 for prompt generation due to resource constraints; leveraging more powerful models like Llama 3 or GPT-4 for the mining phase could potentially yield even more effective prompts.
Summary updated