Adaptive Content Restriction for Large Language Models via Suffix Optimization
Li, Yige, Jiang, Peihai, Sun, Jun, Shu, Peng, Liu, Tianming, Xiang, Zhen
–arXiv.org Artificial Intelligence
Large Language Models (LLMs) have demonstrated significant success across diverse applications. However, enforcing content restrictions remains a significant challenge due to their expansive output space. One aspect of content restriction is preventing LLMs from generating harmful content via model alignment approaches such as supervised fine-tuning (SFT). Yet, the need for content restriction may vary significantly across user groups, change rapidly over time, and not always align with general definitions of harmfulness. Applying SFT to each of these specific use cases is impractical due to the high computational, data, and storage demands. Motivated by this need, we propose a new task called \textit{Adaptive Content Restriction} (AdaCoRe), which focuses on lightweight strategies -- methods without model fine-tuning -- to prevent deployed LLMs from generating restricted terms for specific use cases. We propose the first method for AdaCoRe, named \textit{Suffix Optimization (SOP)}, which appends a short, optimized suffix to any prompt to a) prevent a target LLM from generating a set of restricted terms, while b) preserving the output quality. To evaluate AdaCoRe approaches, including our SOP, we create a new \textit{Content Restriction Benchmark} (CoReBench), which contains 400 prompts for 80 restricted terms across 8 carefully selected categories. We demonstrate the effectiveness of SOP on CoReBench, which outperforms the system-level baselines such as system suffix by 15\%, 17\%, 10\%, 9\%, and 6\% on average restriction rates for Gemma2-2B, Mistral-7B, Vicuna-7B, Llama3-8B, and Llama3.1-8B, respectively. We also demonstrate that SOP is effective on POE, an online platform hosting various commercial LLMs, highlighting its practicality in real-world scenarios.
arXiv.org Artificial Intelligence
Aug-5-2025
- Country:
- Asia
- China > Sichuan Province (0.14)
- Middle East > Jordan (0.04)
- Singapore (0.04)
- North America
- Mexico (0.04)
- United States > California
- Santa Clara County > Cupertino (0.04)
- Pacific Ocean > North Pacific Ocean
- Gulf of California (0.04)
- Asia
- Genre:
- Research Report > New Finding (0.46)
- Industry:
- Automobiles & Trucks (1.00)
- Energy (0.67)
- Health & Medicine (1.00)
- Leisure & Entertainment (0.68)
- Transportation
- Electric Vehicle (0.46)
- Ground > Road (0.67)
- Technology: