Cross-Taxonomy Label Alignment in Transportation Networks With Prompt-Driven Large Language Models
Framework overview: semantic features (LLM-generated pseudo-labels plus source-taxonomy label embeddings) and structural features (DeepWalk embeddings from the road network) are concatenated and passed through a two-stage pretrain-then-fine-tune procedure with semantic masking.Transportation datasets rarely speak the same language. A city’s OpenStreetMap extract might tag a road as “primary” or “secondary,” while a government inventory such as the U.S. Federal Highway Administration’s (FHWA) Functional Classification sorts the same roads into categories like “Interstate,” “Principal Arterial,” or “Minor Collector.” Point-of-interest catalogs and land-use datasets run into the same mismatch in their own vocabularies. Merging sources like these for infrastructure planning or traffic analysis means mapping one taxonomy onto another, and today that mostly still means manually built lookup tables or brittle keyword-matching rules — approaches that don’t scale and break down as soon as a new dataset phrases things slightly differently.
This paper proposes a framework that automates that mapping using two complementary signals instead:
- Prompt-driven pseudo-labeling. For each source-taxonomy label, a large language model is queried with several different prompt variants asking which target-taxonomy label it corresponds to; the candidate answers are combined by majority vote into one pseudo-label. This gives the model a starting signal without any hand-built mapping table.
- Structural embeddings. In parallel, a DeepWalk embedding is trained directly on the road network graph, so every road segment also carries information about where it sits and how it connects in the network, independent of what it happens to be called.
The two views — an entity’s LLM-derived semantic signal (pseudo-label plus its encoded source-taxonomy label) and its structural embedding — are concatenated into one multi-view input and fed to a two-layer classifier.
Training happens in two stages. The model first pretrains on the LLM-generated pseudo-labels, using a technique the authors call semantic masking: in every batch, a random subset of nodes has its semantic input zeroed out, which forces the model to also lean on the structural embedding rather than just memorizing the pseudo-label mapping. It’s then fine-tuned on a small set of human-verified labels to correct whatever noise the pseudo-labels introduced. Tested on mapping real OSM ‘highway’ tags to FHWA functional classes, the fine-tuned model reached 79.1% accuracy and 81.0% macro-F1, well ahead of plain string-matching (29.5%/20.9%) and of using the LLM’s pseudo-labels directly with no learned model at all (54.3%/51.8%). An ablation confirmed both views pull their weight: a model trained on structural embeddings alone already reached 68.5% accuracy, versus 54.8% for a model with no structural information at all — a sizeable share of the framework’s benefit comes from network topology, not just the LLM’s semantic guesses.
The more telling result is what happens as human-verified labels become scarce, which is the realistic case for most cross-dataset integration projects. The paper compares the full framework (pseudo-label pretraining + fine-tuning) against a model trained the conventional way — directly and only on whatever labeled data happens to be available.

With abundant labels the two approaches land close together (both around 79-81%), but as the labeled fraction shrinks, the directly-supervised model’s performance collapses — down to 40.0% accuracy / 33.4% macro-F1 at just 1% of the labels, and below 30% accuracy at 0.1%. The pseudo-label-pretrained model degrades far more gently: still 51.3% accuracy / 50.4% macro-F1 at 1% of the labels, and 47.0% accuracy even at 0.1%. That gap is the practical payoff — real cross-taxonomy alignment problems rarely come with abundant hand-labeled data across every source, and this is exactly where the prompt-driven pretraining earns its keep, giving the model a useful starting point before it ever sees a human annotation.
