Vision-language models can recognize a stop sign. They are much worse at saying what a driver in Japan versus Germany is legally required to do next. They are also easily thrown off by visual changes that should not matter, such as rain or a different camera. We propose to teach a frozen vision-language model to separate three things. The first is the scene content, which should drive the answer. The second is the jurisdiction, meaning whose traffic law applies, which should change the answer exactly when the laws differ. The third is the visual style, meaning weather, lighting and sensor, which should never change the answer. The tool is continuous prompt tuning, which learns a small set of trainable vectors that are prepended to the model's input while all of the model's own weights stay fixed. We learn one shared vector set plus one swappable set per country. We train them with a paired objective: answers must stay the same when only the style changes, and must flip when only the country changes and its rules conflict with another country's.
Why this is worth testing: the multi-country driving benchmark IDKB, from Can LVLMs Obtain a Driver's License?, shows that models score much higher on recognizing road signs than on reasoning about right-of-way and traffic statutes. Its fix is full fine-tuning, which raised MiniCPM-V2.5's overall IDKB score from 0.41 to 0.62. Elsewhere, domain fine-tuning is known to impose a "tax" on general ability. LawBench reports higher abstention and weaker instruction-following in specialized legal models. STSBench finds that driving-specific models (DriveMM 39.51%) fall below the generalist InternVL 2.5 8B (46.07%). Plot Twist shows that adding grid lines alone drops PaLI-3 from 29.5% to 21.3% on chart questions. No existing method on this benchmark tests whether a model's answer depends on the right variables.
Core Claim
The claim is that the training signal matters more than the adapter type. A model trained only on IDKB question-answer pairs can score well while still taking shortcuts: it may answer from the country name in the text, or from weather cues correlated with country. We claim that pairing two consistency constraints, style invariance and jurisdiction sensitivity, inside a parameter-efficient adapter that is factorized by country will improve two things. It should improve accuracy on combinations of country and visual condition not seen together in training. It should also lower the rate at which answers flip under style changes, while keeping the frozen model's general multimodal ability. The country-specific prompts, being small and swappable, also make it possible to build a prompt for a held-out country and test it directly.
Relation to Prior Work
Three lines of work supply pieces, and none combines them.
PAPT learns continuous "domain prompts" in a text-to-image diffusion model to generate new visual styles for single-domain image classification. It reports a 17.40% gain on PACS sketch-to-all. We borrow the idea that styles can be explored adversarially. We apply it to a reasoning model's answers rather than to a classifier, and we add a second axis, jurisdiction, that must not be made invariant.
ProMALex organizes jurisdiction-specific low-rank adapters (LoRA, small trainable weight-update matrices) along a similarity tree of legal systems. Its hierarchical sharing gives an average perplexity of 5.468, against 7.104 for a shared adapter and 8.338 for a mixture-of-adapters design. That result shapes our design: we share lower-level structure and specialize per country. ProMALex measures only text perplexity, however, and never tests whether outputs change correctly when the jurisdiction changes.
Parameter-Efficient Legal Domain Adaptation and Prompt Tuning for Unified Multimodal Pretrained Models supply the method and two cautions. Prefix-style soft prompts updating under 1% of parameters match full fine-tuning on OFA-Large, at 90.05% on RefCOCO for both. They resist adversarial input noise better. They lag on smaller backbones (~180M) and are sensitive to learning rate. Those cautions dictate our choice of backbone and our tuning protocol.
Law-Match motivates the idea of separating law-related from fact-related representations, but it works on text-only Chinese case matching.
The perception-versus-reasoning debate also constrains us. MATH-Vision and GeoSQA argue that failures occur after perception. STSBench and Plot Twist argue that perception itself is brittle. Our three-way probe (style, jurisdiction, content) is designed to show which failure dominates for a given model and country.
Research Program
Backbone. We freeze MiniCPM-V2.5. It is large enough to avoid the small-model gap in soft prompting, and IDKB reports both its zero-shot and its fully fine-tuned scores.
Prompts. We learn deep soft prompts inserted at every layer:
- a shared prompt $p_0$, standing for general driving and legal knowledge;
- one country prompt $p_j$ per jurisdiction $j$.
Following ProMALex, we initialize the country prompts by first training family-level prompts (for example, left-hand-traffic countries) and then specializing them.
Data. We construct two kinds of training pairs from IDKB.
Style pairs take the same image under a different visual style. For CARLA simulator frames, we re-render the same scene under different weather and lighting. For real road images, we use the amplitude-spectrum mixing of Qi et al., which changes color and lighting statistics while keeping edges and structure. As a stronger perturbation, we use PAPT-style adversarial domain prompts.
Conflict pairs take the same scene and question with a different country, chosen where the countries' manuals give different correct answers. Examples are which side to drive on, turning on red, and roundabout priority. Building this conflict subset is a curation contribution in its own right. We will mine rule disagreements from IDKB's 206 manuals and have annotators verify each one, because the file does not show that IDKB already contains such pairs.
Objective. Writing $f(x, p)$ for the model's answer distribution on image-question $x$ under prompt $p = (p_0, p_j)$, the training loss is
$$ \mathcal{L} = \mathrm{CE}\big(f(x,p_j), y_j\big) + \lambda_s\, \mathrm{KL}\big(f(x,p_j)\,\|\,f(s(x),p_j)\big) + \lambda_r \max\big(0,\; m - \log f(x,p_j)[y_j] + \log f(x,p_j)[y_k]\big). $$
Here $y_j$ is the correct answer under country $j$, $s(x)$ is a style-perturbed copy of $x$, and $y_k$ is the conflicting answer correct under another country $k$. The first term is ordinary cross-entropy. The second term, a KL divergence, penalizes any change in the answer distribution under a style change. The third is a margin term with margin $m$: it requires the country-$j$ prompt to prefer its own law's answer over the conflicting answer, by at least $m$ in log-probability. The margin term is what stops the style term from collapsing the model into ignoring everything except text.
Diagnostic probe. We add a third kind of pair at evaluation only: content flips. These are CARLA scenes edited so that the legally relevant object changes, such as a removed sign or a changed signal state. A correct model must change its answer under a content flip. This catches models that answer from the country text alone, the analogue of Plot Twist's title shortcut.
Baselines
Zero-shot reference. The naive reference point is frozen MiniCPM-V2.5 prompted zero-shot with the country named in the question. IDKB reports its overall score as 0.41. We will rerun it on our splits so all numbers share one evaluation.
Full fine-tuning. The strongest existing method is full fine-tuning on IDKB as in Can LVLMs Obtain a Driver's License?. It reports an overall IDKB score of 0.62 for MiniCPM-V2.5 and 0.64 for XComposer2, the latter matching GPT-4o's 0.64. It is the strongest competitor because it is the only published adaptation on this benchmark and it reaches proprietary-model parity. We rerun it on the same training data, including the style-augmented images, with the same number of tuning trials over learning rate and epochs as our method. For the soft-prompt runs, training is allowed to run longer but is capped at equal total training compute (GPU-hours), given their known slower convergence.
What counts as beating it differs by metric. On the standard IDKB test split, we need to match it within noise. On three other measures we need to exceed it: the held-out combination split, the style-flip rate, and retention of general ability.
Text-rule baseline. This baseline retrieves the relevant manual passages for the stated country and places them in the prompt. It isolates whether learned parameters are needed at all.
Modular-adapter baselines. We train per-country LoRA adapters arranged as in ProMALex. We train them twice: once with plain cross-entropy, and once with exactly our loss.
Key ablations. We remove the style term, remove the conflict term, and replace the factorized country prompts with a single shared prompt. Removing the conflict term is the ablation that isolates the key ingredient. It tests whether the paired sensitivity constraint, not merely augmentation, drives the gains on unseen combinations.
Why not just…?
Why not just put the country's rules in the prompt as text? This is the most serious threat. Driving law is largely writable in words, so the "ineffability gap" PAPT raises for visual style does not obviously apply to statutes. Against it, DCoT notes that images consume much of a limited context window, which caps how much manual text fits. Plot Twist shows that models drift toward text heuristics and away from the image. Neither result settles the matter here. The retrieval baseline will. If it matches our method on conflict-pair accuracy and on content-flip sensitivity, then the country prompts are unnecessary. We would then keep only the style-consistency training on top of retrieved text, and report that outcome.
Why not just fully fine-tune, since it already reaches 0.64? Full fine-tuning may well win on in-distribution IDKB score. Our bet is on the failures that score hides. The first is general-ability loss, the tax reported in LawBench and STSBench. The second is answer flips under weather changes. The third is the inability to add a country without retraining everything. We measure general retention on MM-Vet and ScienceQA, as the change from the backbone's own score, since the file reports no MiniCPM-V2.5 numbers on either. If full fine-tuning with the same augmented data shows no retention loss and no style flips, our case rests only on storage and modularity, and we will say so.
Why not just use per-country LoRA with standard augmentation? We expect the adapter type to matter less than the loss, so we test exactly this. The LoRA-with-our-loss run sets the soft prompts against adapters on equal footing. If LoRA matches them, the contribution becomes the paired objective and the conflict data, independent of prompt tuning. The augmentation-only ablation tests whether style invariance comes from augmentation alone. Plot Twist's results suggest that models trained without an explicit consistency term stay brittle.
Decisive Experiments
Held-out combinations. We train on countries whose images come mainly from one set of rendering conditions, then test on countries paired with conditions they never appeared with. We report IDKB score together with three rates: style-flip rate (lower is better), conflict-pair accuracy, and content-flip sensitivity (higher is better).
Leave-one-country-out. We build the held-out country's prompt from its legal-family prompt plus a few hundred examples, and compare against few-shot full fine-tuning on the same examples.
Perception versus reasoning. We use the three-way probe to attribute each model's errors. Errors that occur under style or content flips point to perception. Errors on conflict pairs with clean images point to legal reasoning. This places the IDKB gap on one side of the MATH-Vision versus STSBench disagreement.
Abandonment criterion. The proposal is wrong in its central claim under one condition. That condition is if removing the conflict term leaves held-out-combination accuracy and content-flip sensitivity unchanged.
References
- Can LVLMs Obtain a Driver's License? A Benchmark Towards Reliable AGI for Autonomous Driving
- LawBench: Benchmarking Legal Knowledge of Large Language Models
- STSBench: A Spatio-temporal Scenario Benchmark for Multi-modal Large Language Models in Autonomous Driving
- Plot Twist: Multimodal Models Don't Comprehend Simple Chart Details
- Adversarial Domain Prompt Tuning and Generation for Single Domain Generalization
- ProMALex: Progressive Modular Adapters for Multi-Jurisdictional Legal Language Modeling
- Parameter-Efficient Legal Domain Adaptation
- Prompt Tuning for Unified Multimodal Pretrained Models
- Law Article-Enhanced Legal Case Matching: A Causal Learning Approach
- Measuring Multimodal Mathematical Reasoning with MATH-Vision Dataset
- GeoSQA: A Benchmark for Scenario-based Question Answering in the Geography Domain at High School Level
- Generalizable Medical Image Segmentation via Random Amplitude Mixup and Domain-Specific Image Restoration
- DCoT: Dual Chain-of-Thought Prompting for Large Multimodal Models