PICO: Secure Transformers via Robust Prompt Isolation and Cybersecurity Oversight
Ben Goertzel, Paulos Yibelo
TL;DR
PICO addresses prompt injection in transformers by enforcing a principled invariant through dual-input channels: a frozen, immutable system-prompt stream and a trainable user-input stream. A gated fusion mechanism, enhanced by a Security Expert Agent and a Cybersecurity Knowledge Graph, dynamically biases toward the trusted system context to preserve safe, instruction-compliant outputs. The work provides formal guarantees on adversarial invariance and utility under benign inputs, and outlines concrete architectural realizations, training strategies, and case studies against policy-puppetry. While full training from scratch yields strongest security, the paper also presents an efficient fine-tuning pathway that leverages a pretrained model with dual streams and auxiliary security modules for practical deployment. Collectively, PICO integrates architectural isolation, multi-signal gating, and reinforcement learning to offer robust, end-to-end defenses with clear theoretical and practical benefits for secure LLM use in adversarial settings.
Abstract
We propose a robust transformer architecture designed to prevent prompt injection attacks and ensure secure, reliable response generation. Our PICO (Prompt Isolation and Cybersecurity Oversight) framework structurally separates trusted system instructions from untrusted user inputs through dual channels that are processed independently and merged only by a controlled, gated fusion mechanism. In addition, we integrate a specialized Security Expert Agent within a Mixture-of-Experts (MoE) framework and incorporate a Cybersecurity Knowledge Graph (CKG) to supply domain-specific reasoning. Our training design further ensures that the system prompt branch remains immutable while the rest of the network learns to handle adversarial inputs safely. This PICO framework is presented via a general mathematical formulation, then elaborated in terms of the specifics of transformer architecture, and fleshed out via hypothetical case studies including Policy Puppetry attacks. While the most effective implementation may involve training transformers in a PICO-based way from scratch, we also present a cost-effective fine-tuning approach.
