SAPO: Secure Automated Prompt Optimization via Multi-Agent Collaboration
summary
Framework builds a multi-agent optimizer that coordinates four specialized agents (generation, security check, performance evaluation, critic) under an orchestrator to search prompts for GPT-4o, scoring with a GPT-4o judge and HarmBench adversarial tests. Evaluated on six tasks, SAPO achieves perfect security scores and yields a 2.6%+ task accuracy improvement over three single-objective baselines, at the cost of higher latency from the multi-agent loop.
AI-written summary · about
