Research map / Large language models / Reasoning and chain of thought
ShieldHead: Decoding-time Safeguard for Large Language Models
Zitao Xuan, Xiaofeng Mao, Da Chen, Xin Zhang, Yuhan Dong, Jun Zhou
Tsinghua University · Ant Group · University of Bath
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add sentence-level supervision alongside token loss (ablation) | ShieldHead (Llama3.1-8B) · Prompt avg | F1: 73.7 -> 78.1 | Improved |
| add sentence-level supervision alongside token loss (ablation) | ShieldHead (Llama3.1-8B) · Response avg | F1: 77.6 -> 81.7 | Improved |
| add token-level supervision to sentence-level supervision (ablation) | ShieldHead (Llama3.1-8B) · Prompt avg | F1: 76.7 -> 78.1 | Improved |
| add label disambiguation to token-level supervision (ablation) | ShieldHead (Llama3.1-8B) · Prompt avg | F1: 75.8 -> 78.1 | Improved |
| add label disambiguation to token-level supervision (ablation) | ShieldHead (Llama3.1-8B) · Response avg | F1: 79.7 -> 81.7 | Improved |
| token-level labels without disambiguation versus sentence-level only (ablation) | ShieldHead (Llama3.1-8B) · Prompt avg | F1: 76.7 -> 75.8 | Hurt |
| increase MLP head from 1 to 5 layers (ablation) | ShieldHead (Llama3.1-8B) · Prompt avg | F1: 76.5 -> 81.1 | Improved |
| increase MLP head from 1 to 5 layers (ablation) | ShieldHead (Llama3.1-8B) · Response avg | F1: 78.7 -> 83.7 | Improved |
| increase MLP head beyond 5 layers (6) (ablation) | ShieldHead (Llama3.1-8B) · Response avg | F1: 83.7 -> 83.5 | Hurt |
| moving-average prototype update (gamma 0.99->0.95) versus simple average (gamma=0) (ablation) | ShieldHead (Llama3.1-8B) · Prompt avg | F1: 76.8 -> 78.1 | Improved |
| decrease sigma from 0.98 to 0.5 during training versus fixed sigma (ablation) | ShieldHead (Llama3.1-8B) · Prompt avg | F1: 75.8 -> 78.1 | Improved |
| use Gemma2-9B instead of Llama3.1-8B as base model (ablation) | ShieldHead · Response avg | F1: 79.7 -> 84.3 | Improved |
Open problems in efficient LLM serving
Do efficient-serving and inference-saving methods hold up on larger models, other hardware and real workloads?
- Measured on one GPU type or one server only. · 21 papers state it
- Tested only on models of 12B parameters or fewer. · 13 papers state it
- Predictors and latency models need per-model profiling and lose accuracy off-distribution. · 13 papers state it
Closest papers by meaning
- A Statistical Framework for Ranking LLM-based Chatbots (ICLR 2025 · similarity 0.89)
- WildBench: Benchmarking LLMs with Challenging Tasks from Real Users in the Wild (ICLR 2025 · similarity 0.88)
- Safety Reconstructed: Generative Modeling via Masked Diffusion Builds Strong Safety Guardrails (NeurIPS 2026 · similarity 0.88)
- LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Dataset (ICLR 2024 · similarity 0.87)
- Safety Pretraining: Toward the Next Generation of Safe AI (NeurIPS 2025 · similarity 0.87)
- RigorLLM: Resilient Guardrails for Large Language Models against Undesired Content (ICML 2024 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.