When Prompts Interact: Assessing Prompt Arithmetic for Deconfounding under Distribution Shift

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Sheng, Zhecheng, Tan, Yongsen, Ding, Xiruo, Cohen, Trevor, Pakhomov, Serguei
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866918482389499904
author Sheng, Zhecheng
Tan, Yongsen
Ding, Xiruo
Cohen, Trevor
Pakhomov, Serguei
author_facet Sheng, Zhecheng
Tan, Yongsen
Ding, Xiruo
Cohen, Trevor
Pakhomov, Serguei
contents In classification tasks, models may rely on confounding variables to achieve strong in-distribution performance, capturing spurious features that fail under distribution shift. This shortcut behavior leads to substantial degradation in out-of-distribution settings. Task arithmetic offers a potential solution by removing unwanted signals via subtraction of secondary model updates, but it typically requires full fine-tuning, which is computationally expensive. Prompt tuning provides a parameter-efficient alternative by adapting models through a small set of trainable virtual tokens. Task arithmetic on the resulting prompts presents an appealing alternative to operations on entire models, but the extent to which this approach can limit reliance on spurious features remains to be established. In this work, we study whether composing soft prompts through task arithmetic improves robustness to confounding shifts. We propose Hybrid Prompt Arithmetic (HyPA), which combines task prompts with linearized confounder prompts to counteract spurious correlations. Across multiple benchmarks, HyPA consistently improves the robustness-performance trade-off relative to prompt-arithmetic baselines under distribution shift. We further analyze how HyPA affects hidden representations and find evidence consistent with it mitigating confounding either by reducing the influence of confounder signals on predictions or by suppressing them in the representation. These results establish HyPA as a parameter-efficient and promising approach for improving robustness under confounding shifts in the evaluated setting.
format Preprint
id arxiv_https___arxiv_org_abs_2605_03096
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle When Prompts Interact: Assessing Prompt Arithmetic for Deconfounding under Distribution Shift
Sheng, Zhecheng
Tan, Yongsen
Ding, Xiruo
Cohen, Trevor
Pakhomov, Serguei
Machine Learning
Computation and Language
In classification tasks, models may rely on confounding variables to achieve strong in-distribution performance, capturing spurious features that fail under distribution shift. This shortcut behavior leads to substantial degradation in out-of-distribution settings. Task arithmetic offers a potential solution by removing unwanted signals via subtraction of secondary model updates, but it typically requires full fine-tuning, which is computationally expensive. Prompt tuning provides a parameter-efficient alternative by adapting models through a small set of trainable virtual tokens. Task arithmetic on the resulting prompts presents an appealing alternative to operations on entire models, but the extent to which this approach can limit reliance on spurious features remains to be established. In this work, we study whether composing soft prompts through task arithmetic improves robustness to confounding shifts. We propose Hybrid Prompt Arithmetic (HyPA), which combines task prompts with linearized confounder prompts to counteract spurious correlations. Across multiple benchmarks, HyPA consistently improves the robustness-performance trade-off relative to prompt-arithmetic baselines under distribution shift. We further analyze how HyPA affects hidden representations and find evidence consistent with it mitigating confounding either by reducing the influence of confounder signals on predictions or by suppressing them in the representation. These results establish HyPA as a parameter-efficient and promising approach for improving robustness under confounding shifts in the evaluated setting.
title When Prompts Interact: Assessing Prompt Arithmetic for Deconfounding under Distribution Shift
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2605.03096