Permissive Information-Flow Analysis for Large Language Models
<|reference_start|>Permissive Information-Flow Analysis for Large Language Models: Large Language Models (LLMs) are rapidly becoming commodity components of larger software systems. This poses natural security and privacy problems: poisoned data retrieved from one component can change the model's behavior and compromise the entire system, including coercing the model to spread confidential data to untrusted components. One promising approach is to tackle this problem at the system level via dynamic information flow (aka taint) tracking. Unfortunately, the traditional approach of propagating the most restrictive input label to the output is too conservative for applications where LLMs operate on inputs retrieved from diverse sources. In this paper, we propose a novel, more permissive approach to propagate information flow labels through LLM queries. The key idea behind our approach is to propagate only the labels of the samples that were influential in generating the model output and to eliminate the labels of unnecessary input. We implement and investigate the effectiveness of two variations of this approach, based on (i) prompt-based retrieval augmentation, and (ii) a $k$-nearest-neighbors language model. We compare these with the baseline of an introspection-based influence estimator that directly asks the language model to predict the output label. The results obtained highlight the superiority of our prompt-based label propagator, which improves the label in more than 85% of the cases in an LLM agent setting. These findings underscore the practicality of permissive label propagation for retrieval augmentation.<|reference_end|>
@article{siddiqui2024permissive,
    title={Permissive Information-Flow Analysis for Large Language Models},
    author={Shoaib Ahmed Siddiqui, Radhika Gaonkar, Boris K"opf, David Krueger,
  Andrew Paverd, Ahmed Salem, Shruti Tople, Lukas Wutschitz, Menglin Xia,
  Santiago Zanella-B'eguelin},
    journal={arXiv preprint arXiv:2410.03055},
    year={2024},
    archivePrefix={arXiv},
    eprint={2410.03055},
    primaryClass={cs.LG cs.AI}
}