Summary
This paper introduces an inference-time defense mechanism against backdoor attacks targeting LLM agents. The key insight behind the approach is the observation that backdoored agents often exhibit two types of inconsistencies: (1) a mismatch between their intended "thought" process and their actual actions, and (2) a discrepancy between reconstructed instructions and the original user's input. To measure the discrepancy, they leverage a separate LLM or directly use the backend LLM of the agent to evaluate consistency. Experiments across three tasks and two types of backdoor attacks show that the proposed defense effectively reduces the attack success rate.
Strengths
+ The proposed defense is lightweight, easy to integrate, and leverages a straightforward inconsistency-based approach.
+ Experimental results demonstrate that the defense significantly reduces ASR across various backdoor attacks.
Weaknesses
- The paper mentions the use of the agent’s backend LLM to evaluate textual similarity without specifying a threshold for similarity scores. However, it remains unclear how accurately this LLM-based evaluator assesses the similarity between textual inputs. Further, it would be valuable to know whether the LLM evaluator’s judgment remains consistent across a range of semantic complexities, or if there are cases where it might fail. An analysis of the evaluator's reliability would provide a more comprehensive understanding of its effectiveness in this setting.
- The defense mechanism applies consistency checks at both the planning and execution levels. If the defender has no prior knowledge of the specific type of backdoor injected, it may be difficult to determine which level(s) should be checked for each instance. This could impact efficiency if the inconsistency is not detected correctly.
- Although the defense is demonstrated on a range of tasks and attacks, there is limited testing on more advanced LLMs, such as those with more robust generative capabilities (e.g., GPT-4o or o1-preview).
Questions
1. Given the advancements in newer models, especially those with improved instruction-following and interpretive abilities, it would be insightful to see how this defense performs on these LLMs. How robust is the defense when applied to state-of-the-art models, such as GPT-4o or o1-preview, which may display fewer inconsistencies due to improved coherence and contextual understanding? Including results on such models would provide a better understanding of the defense’s adaptability.
2. LLM Evaluator Accuracy and Evaluation Metrics: The use of an LLM-based evaluator avoids the need for a fixed similarity threshold. However, LLMs are not always consistent in evaluating semantic similarity, and their interpretations can vary with context. What metrics were used to assess the accuracy of this LLM evaluator in identifying semantic consistency? Specific data on the evaluator's false positive rate (FPR) and false negative rate (FNR) would be valuable to understand potential pitfalls, especially as they may impact the defense’s ability to distinguish between benign and backdoor-influenced behavior.