Telling Place Ambiguity Apart from Prompt Brittleness in LLM Trajectory Labeling

Large language models are increasingly used to say why someone stopped somewhere. A GPS stay point is turned into text, such as nearby map features, a street address, or a time of day, and the model is asked what activity happened there: dining, healthcare, work, or visiting friends. These labels then feed downstream mobility models as if they were reliable evidence. The prompt-sensitivity literature shows that LLM answers can flip under changes that should not matter, like reordering a list or swapping a near-synonym. No one has checked whether this happens when a trajectory is written out as text. A flip could mean the model is brittle. It could also mean the place really is ambiguous: a house where someone might live, visit a friend, or pick up a child.

We propose to perturb the text rendering of a trajectory in two deliberately different ways. One family of edits should not change the answer: reordering the address hierarchy, renaming categories with synonyms, changing number formatting. The other family changes which physical evidence the model sees: alternative candidate places within the GPS error radius, or a nearby stay point included or dropped. Splitting the model's disagreement into these two sources gives two signals with two different uses. Brittleness can be averaged away by pooling the model's answers across renderings. Place ambiguity should widen the downstream probabilistic estimate, or make the system abstain.

Core Claim

Disagreement across text renderings of a stay point carries two separable pieces of information, and treating them separately beats treating them as one confidence score. Let $c$ index a physically plausible context: a candidate set of places consistent with the GPS reading and its noise radius. Let $s$ index a renderings of that context that preserves its meaning. Let $p_{c,s}$ be the model's probability vector over activity labels. The law of total variance splits the total spread of predictions into two terms:

$$ \mathrm{Var}_{c,s}[p_{c,s}] = \underbrace{\mathbb{E}_c\big[\mathrm{Var}_s[p_{c,s}]\big]}_{\text{serialization brittleness } B} + \underbrace{\mathrm{Var}_c\big[\mathbb{E}_s[p_{c,s}]\big]}_{\text{grounding ambiguity } A}. $$

We predict three things. High $A$ should concentrate on the activity types that existing pipelines already get wrong, the diffuse ones such as visiting friends or drop-off and pick-up. High $B$ should be spread across categories and should shrink with model scale or one-shot anchoring. Using $B$ to pool renderings and $A$ to set the width of the prior should improve calibrated activity inference more than a single combined score such as max softmax, entropy, or the total-variance score in the style of SENSEL.

Grounding in Prior Work

The application regime comes from Semantic Trajectory Data Mining with LLM-Informed POI Classification. That paper prompts GPT-4 and GPT-3.5 to map noisy OpenStreetMap place tags to top-3 activity distributions, then fuses them with GPS stay points by Bayesian inference. It stress-tests physical noise (20 meters) but never perturbs the prompt. It also feeds raw, uncalibrated LLM probabilities into the prior. It reports clear failures on diffuse activities, and that observation motivates our split between the two uncertainty sources.

The method for using instability as uncertainty comes from On the Relation between Sensitivity and Accuracy in In-Context Learning. That paper shows sensitivity to paraphrase and to demonstration order correlates negatively with correctness, and uses it for abstention (SENSEL). Its perturbations are generic text edits on NLP classification. We add perturbations that are physically meaningful, and we decompose the variance rather than pooling it. The same paper also constrains our design: label bias can mask true sensitivity, so we apply its calibration step before measuring anything.

ProSA supplies two pieces. First, its finding that sensitivity tracks flat output distributions motivates our hypothesis that $B$ will be confounded with low confidence, and we test that directly. Second, its instance-level PromptSensiScore is one of our diagnostics. Its finding that one-shot prompting is the largest single mitigation is a direct threat to the value of $B$, so we treat it as a baseline rather than ignore it.

On the trajectory side, three systems motivate the rendering families we perturb:

  • AgentMove writes each location as a fixed District → Block → Street → place hierarchy.
  • TrajCogn describes motion with fixed anchor words like "sluggish" and "zigzag".
  • Talking Trails writes rider states as fixed sentences.

All three use a single template and report no robustness to rewording. Prompt Mining for Language-based Human Mobility Forecasting is the closest prior link between the two directions. It shows template choice matters for mobility forecasting and searches for better templates. However, it targets aggregate foot-traffic counts, and it optimizes for a single best prompt rather than reading disagreement across prompts as information.

Research Program

We first build a rendering generator for stay points. The meaning-preserving family $s$ includes:

  • hierarchy order (coarse-to-fine versus fine-to-coarse);
  • the order in which candidate places are listed;
  • synonym swaps for place categories, drawn from OpenStreetMap tag variants;
  • number formatting for distances and times;
  • the instruction paraphrase families from ProSA.

The physical-context family $c$ includes:

  • resampling which candidate places fall inside the GPS error radius, with the radius fixed by the noise level studied in the LLM-informed classification paper;
  • including or omitting the neighboring stay points before and after;
  • coarsening the time of day.

We validate every $s$-edit by checking that a human annotator would assign the same label. Any edit that fails this check is dropped from the invariant family.

Second, we run a characterization study on two kinds of models: open instruction-tuned models of the type AgentMove reports on (Llama-3 family) and a closed model (GPT-4o-mini). For each model we measure the label flip rate, PromptSensiScore, $A$, and $B$, broken down by activity category. We do this zero-shot and one-shot, and with and without label-bias calibration.

Third, we build the decomposed estimator. The pooled distribution $\bar p = \mathbb{E}_{c,s}[p_{c,s}]$ becomes the prior in the existing Bayesian fusion. $A$ sets a tempering exponent on that prior, so that a more ambiguous place gets a flatter prior. $A$ and $B$ together drive abstention. This adds no trained component. It requires only a small held-out set to fit the tempering slope and the abstention threshold.

Baselines

The naive reference point is the original pipeline from Semantic Trajectory Data Mining with LLM-Informed POI Classification: one fixed prompt, raw top-3 probabilities, Bayesian fusion. It reports 91.7% accuracy and 92.3% F1 for activity inference, and above 84% top-3 accuracy under 20 meters of noise. We re-run it with the same LLMs as our method rather than rely on the published GPT-4 numbers, so that differences in model access do not confound the comparison. Beating it means higher accuracy and lower expected calibration error of the posterior. The gain is expected mainly on the diffuse categories.

The strongest existing uncertainty method is SENSEL from On the Relation between Sensitivity and Accuracy in In-Context Learning. It reports an average gain of +4.1 points in area under the F1–coverage curve over max-probability and entropy on GPT-J-6B. No reported result was found on Lacuna for SENSEL or any sensitivity-based selective prediction on trajectory or activity-inference data. We run SENSEL with its generic paraphrases and with our full perturbation pool collapsed into one variance score. Both versions get the same number of forward passes per stay point as our method, so the comparison isolates the decomposition rather than extra compute. Beating it means a higher F1–coverage area at equal passes, together with lower posterior calibration error.

We also run max softmax probability and entropy under the single fixed prompt. The key ablation keeps our pooled prior but drops the split: total variance, rather than $A$ alone, tempers the prior. If this ablation matches the full method, the decomposition earns nothing.

Why not just…?

Why not just calibrate the LLM's probabilities with temperature scaling on a labeled split? Temperature scaling rescales confidence by one global factor. It cannot tell a house that is truly ambiguous from a prompt that happens to be badly ordered. Under the brittleness hypothesis, those two cases need opposite treatment: averaging for the first source, widening for the second. We include temperature scaling, fitted on the same held-out set we use, as a baseline. If it matches our method on calibration error and selective-prediction area, the decomposition is unnecessary, and we will report that.

Why not just sample the same prompt several times at nonzero temperature (self-consistency) and use answer agreement? This is the most serious threat, because it is cheap and well known. Sampling variance comes from a single rendering, so it measures neither the grounding term $A$ nor variation across renderings. ProSA's observation that two templates can reach equal accuracy on disjoint instance sets suggests sampling within one template will miss much of the error. We test this directly. Self-consistency gets the same number of forward passes, and we compare its error-detection area per category. If it matches $A$ on the diffuse categories, the physical-context perturbations are not pulling their weight.

Why not just add a one-shot demonstration, which ProSA finds removes most sensitivity? This may well collapse $B$, and we expect it to. That outcome would be informative rather than fatal: if $B$ vanishes and $A$ survives, then the remaining disagreement is about the place, not the prompt. We run every condition both zero-shot and one-shot. Chen et al. report that sensitivity persists with demonstrations, which leaves room for $B$ to matter, but the experiment decides.

Why not just search for the best single template, as Prompt Mining does? A single best template optimizes average accuracy. It produces no per-instance uncertainty and therefore no abstention or prior widening. We include the best template from a search over our $s$-family as an additional baseline for raw accuracy.

Proposed Experiments and Decisive Checks

The primary data is the NHTS California 2017 add-on, which has ground-truth activity labels, combined with OpenStreetMap places for LA County and Egypt. The Egypt data has 89% missing tags. Both come from the LLM-informed classification paper. As a transfer check, we apply the same split to zero-shot next-location prediction on the Foursquare check-in data with AgentMove's hierarchical addresses. There we measure whether $A$ predicts AgentMove's errors and whether pooling across renderings changes its reported margin over deep baselines, which was 3.33% to 8.57% on 8 of 12 metrics.

The metrics are:

  • accuracy and F1 per activity category;
  • expected calibration error of the Bayesian posterior;
  • area under the F1–coverage curve;
  • flip rate and PromptSensiScore.

Three checks decide the claim:

  1. The source split shows up by category. $A$, but not $B$, should rank the diffuse categories (visiting friends, drop-off and pick-up) as most uncertain. $B$ should fall with one-shot anchoring while $A$ does not.
  2. The decomposition beats a pooled score. The full estimator should beat collapsed-variance SENSEL and self-consistency at matched forward passes.
  3. Pooling helps the diffuse categories. Rendering-pooled priors should raise accuracy on the diffuse categories over the single-prompt pipeline without hurting the categories that are already easy. The source paper reports 100% accuracy on healthcare and religious activities.

If check 1 fails, the two sources are not separable in practice. In that case the contribution reduces to a sensitivity audit of trajectory serialization, and we will report it as that.