Auditing and Adapting kNNGuard for Long-Context PromptsAuditing and Adapting kNNGuard for Long-Context Prompts
AI summary
The authors audit the training-free activation guardrail kNNGuard on long-context prompts and find that it degrades substantially on inputs longer than 1000 tokens: averaged over Qwen3.5-4B and Gemma-4-E4B-it, the AUROC of kNNGuard LE drops from 0.742 to 0.554 on Content Harm Moderation (Aegis-2.0) and from 0.994 to 0.556 on RAG Hallucination Detection (HaluBench). The authors attribute the degradation to hidden states drifting as sequences lengthen, MiniLM's hard 256-token truncation, and signal dilution caused by compressing long documents into a single last-token vector.