StruQ and SecAlign: Two Defenses Against Prompt Injection in LLMs
Prompt injection is the number one threat for LLM-based applications. A team from Berkeley has developed StruQ and SecAlign, two fine-tuning-based defenses that separate instructions from data and optimize preferences, reducing optimized attacks to less than 15% success.






