Permissive Information-Flow Analysis for Large Language Models

Shoaib Ahmed Siddiqui, Radhika Gaonkar, Boris Köpf, David Krueger, Andrew Paverd, Ahmed Salem, Shruti Tople, Lukas Wutschitz, Menglin Xia, Santiago Zanella-Béguelin · DOI

Introduction: The Challenge of Label Creep

As Large Language Models (LLMs) become central to modern software ecosystems, they increasingly handle data from a wide array of sources, including private emails, public web content, and internal databases. In security contexts, "taint tracking" is used to prevent sensitive data leaks and ensure that low-integrity ("poisoned") data does not corrupt high-integrity processes.

However, traditional information-flow analysis is often too conservative. This leads to "label creep": if a model processes even one untrusted document among dozens of trusted ones, the entire output is typically labeled as untrusted. This conservative approach can render systems unusable; for instance, a downstream bank-transfer tool might reject an LLM's output simply because an irrelevant search result was present in the context window, even if that result had no impact on the generated response.

Influence-Based Label Propagation

To address this, the authors propose an influence-based label propagator (LP). Unlike naive systems that assume every input affects the output, this method measures the actual influence of each input on the model's generation.

Overview of the influence-based label propagation compared to a naive approach.

The core idea relies on $\lambda$-similar labels. Influence is defined through model utility, specifically negative perplexity. If the LLM can generate the same output using only a subset of documents without a significant drop in utility (defined by a threshold $\lambda$), the excluded documents are considered non-influential. To ensure absolute security, the system performs a "regeneration" step: once a permissive label is determined, the LLM is rerun using only the documents associated with that label, guaranteeing the output is mathematically independent of any untrusted data.

Security labels are rarely binary; they are often organized into a "lattice"—a hierarchy of levels such as Secret > Public or Trusted > Untrusted. The proposed algorithm performs a depth-first search through this lattice to identify the most permissive (lowest) label that still maintains output quality.

An example of a security lattice used to organize information-flow labels across multiple dimensions like integrity and time.

This lattice-based approach allows the system to handle complex scenarios. For example, it can enable "information endorsement": if an untrusted source makes a claim that is subsequently confirmed by a trusted document, the propagator can recognize that the trusted source is sufficient, effectively "upgrading" the security label of the resulting information.

Experimental Evaluation

The researchers evaluated their method across three benchmarks: a synthetic key-value dataset, a news article dataset, and an LLM agent dataset mimicking real-world tool-use scenarios.

The results were significant. In the LLM Agent setting, the permissive propagator improved the output label—making it more useful for downstream tools—in over 85% of cases compared to the naive baseline. On the synthetic dataset, it achieved over 85% exact match accuracy in identifying influential documents. Crucially, the influence-based approach remained effective across different model sizes (7B to 70B), whereas simpler "introspection" methods (asking the model which sources it used) failed frequently, especially with smaller models.

Conclusion and Future Work

While the influence-based LP introduces some computational overhead due to multiple LLM calls, optimizations like KV caching make it viable for many security-critical applications. Future work aims to explore more efficient influence metrics, such as Shapley values or attention weights, and to harden the system against adversarial "distraction" attacks designed to force conservative labeling. By moving toward permissive analysis, LLM-integrated systems can maintain high security standards without sacrificing practical utility.

Summary updated

BibTeX
@article{siddiqui2025permissive,
  author = {Shoaib Ahmed Siddiqui and Radhika Gaonkar and Boris Köpf and David Krueger and Andrew Paverd and Ahmed Salem and Shruti Tople and Lukas Wutschitz and Menglin Xia and Santiago Zanella-Béguelin},
  title = {{Permissive Information-Flow Analysis for Large Language Models}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=ufYRO8y3mr},
}
Figure