Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

MOSAIC: Composable Safety Alignment with Modular Control Tokens

About

Safety alignment in large language models (LLMs) is commonly implemented as a single static policy embedded in model parameters. However, real-world deployments often require context-dependent safety rules that vary across users, regions, and applications. Existing approaches struggle to provide such conditional control: parameter-level alignment entangles safety behaviors with general capabilities, while prompt-based methods rely on natural language instructions that provide weak enforcement. We propose MOSAIC, a modular framework that enables compositional safety alignment through learnable control tokens optimized over a frozen backbone model. Each token represents a safety constraint and can be flexibly activated and composed at inference time. To train compositional tokens efficiently, we introduce order-based task sampling and a distribution-level alignment objective that mitigates over-refusal. Experiments show that MOSAIC achieves strong defense performance with substantially lower over-refusal while preserving model utility.

Jingyu Peng, Hongyu Chen, Jiancheng Dong, Maolin Wang, Wenxi Li, Yuchen Li, Kai Zhang, Xiangyu Zhao• 2026

Related benchmarks

TaskDatasetResultRank
Safety AlignmentSafety Alignment Dataset 1-order (test)
DSR100
10
Safety AlignmentSafety Alignment Dataset 2-order (test)
DSR99.8
10
Safety AlignmentSafety Alignment Dataset 3-order (test)
DSR100
10
Safety AlignmentSafety Alignment Dataset 4-order (test)
DSR100
10
Language UnderstandingMMLU 1-order
Accuracy55.1
10
Language UnderstandingMMLU 2-order
Accuracy55.2
10
Language UnderstandingMMLU 3-order
Accuracy55.1
10
Showing 7 of 7 rows

Other info

Follow for update