paper-with-me

홈 › Papers

HiRoute: Hierarchical Routed Prompt Tuning for Safety Alignment of Large Language Models

2026-08-13 · Fangzhou Chen, Shiji Zhao, Mengyang Wang, Qihui Zhu, Ranjie Duan, Maoxun Yuan, Xingxing Wei arxiv

Large language models (LLMs) remain vulnerable to harmful requests and jailbreak attacks. Parameter-efficient safety alignment methods based on prompt tuning typically rely on a single global prompt or externally selected prompt modules. Such static designs struggle to maintain a cross-category safety boundary while generating constructive responses tailored to specific risks and avoiding over-refusal of benign inputs. To address these limitations, we propose HiRoute, an input-adaptive hierarchical prompt-tuning framework that separates category-agnostic safety control from category-specific response guidance. HiRoute first trains a lightweight hierarchical router on representations extracted from a frozen LLM to jointly detect harmful intent and predict multi-label risk scores. It then freezes both the backbone model and the router and uses preference optimization with alternating gradient updates to learn a shared coarse-grained prompt and a set of fine-grained prompt experts as continuous embeddings. At inference time, benign inputs bypass the safety branch, whereas risky inputs are processed using the shared prompt together with a router-weighted mixture of risk-specific prompt experts. Experiments across three instruction-tuned models show that HiRoute achieves high safety rates across multiple safety benchmarks while preserving safe-response helpfulness, reducing over-refusal, and maintaining competitive performance on general-purpose tasks.

📄 PDF Abstract BibTeX arXiv:2608.12821

Code (1)

arxivsub/arXivSub_daily_arxiv ★ 4

Similar Papers 제목 키워드 기반

When the Model Said 'No Comment', We Knew Helpfulness Was Dead, Honesty Was Alive, and Safety Was Terrified

2026-02-07 · Gautam Siddharth Kashyap, Mark Dras, Usman Naseem arxiv

Large Language Models (LLMs) need to be in accordance with human values-being helpful, harmless, and honest (HHH)-is important for safe deployment. Existing works use Supervised Fine-Tuning (SFT) and Mixture-of-Experts (…

Defending MoE LLMs against Harmful Fine-Tuning via Safety Routing Alignment

2025-09-26 · Jaehan Kim, Minkyoo Song, Seungwon Shin, Sooel Son arxiv

Recent large language models (LLMs) have increasingly adopted the Mixture-of-Experts (MoE) architecture for efficiency. MoE-based LLMs heavily depend on a superficial safety mechanism in which harmful inputs are routed s…

Hierarchical Prompt Learning for Image- and Text-Based Person Re-Identification

2025-11-17 · Linhan Zhou, Shuang Li, Neng Dong, Yonghang Tai 외 arxiv

Person re-identification (ReID) aims to retrieve target pedestrian images given either visual queries (image-to-image, I2I) or textual descriptions (text-to-image, T2I). Although both tasks share a common retrieval objec…

Person Re-Identification

T2I-RiskyPrompt: A Benchmark for Safety Evaluation, Attack, and Defense on Text-to-Image Model

2025-10-25 · Chenyu Zhang, Tairen Zhang, Lanjun Wang, Ruidong Chen 외 arxiv

Using risky text prompts, such as pornography and violent prompts, to test the safety of text-to-image (T2I) models is a critical task. However, existing risky prompt datasets are limited in three key areas: 1) limited r…

Understanding Safety-Sensitive Expert Behavior in Mixture-of-Experts LLMs

2026-05-28 · Zhibo Zhang, Yuxi Li, Zhen Ouyang, Ling Shi 외 arxiv

Mixture-of-Experts (MoE) LLMs rely on sparse, router-driven expert activation, yet how safety alignment interacts with routed expert specialization remains underexplored. A common intuition is that safety behavior may be…