Beyond Aggregate Risk: Role-Stratified Conformal Risk Control for LLM Tool Calls
Md Ashikur Rahman, Md Arifur Rahman, Niamul Hassan Samin, Khandaker Rifah Tasnia, Md Hasibul Amin, Sifat Rahman Ahona, Juena Ahmed Noshin
Abstract
Language-model agents act through structured tool calls whose arguments carry very different risks: untrusted content may legitimately shape an email body but should never set a recipient, account, command, or credential. Existing conformal risk control methods certify a tool call as a whole, so a failure in one rare high-risk field can be averaged away by the many benign arguments around it, leaving the argument that causes harm uncertified. We introduce role-stratified per-field conformal risk control, a calibration layer that wraps any per-field detector and assigns a separate threshold and risk budget to each semantic argument role. We show that aggregate certification pays a price of coarseness, tightening a rare role's effective budget in proportion to how often that role appears, whereas role-stratified calibration certifies each sufficiently sampled role directly with a finite-sample guarantee and pools the rarest roles. Across AgentDojo and InjecAgent with six language models, our method achieves the most consistent role-specific budget compliance among the methods we evaluate under model and attack transfer, detector noise, gradual drift, unseen tool suites, and adaptive attacks, providing formal per-role guarantees under exchangeability or after recalibration. These results suggest that structured tool calls should be certified at the semantic-role level, not the whole action.
Create a lesson
Related papers
Leak It: Per-Document Extraction Beyond Aggregate Membership Inference
Shared title terminology · Victor Maricato
Beyond Sample Hardness: Adaptive Data Selection through Learning Dynamics
Shared title terminology · Hai Gan, Suorong Yang, Guang Li et al.
Learned Network Dynamics for Model Predictive Traffic Signal Control under Incidents
Shared title terminology · Dang Viet Anh Nguyen, Carlos Lima Azevedo, Tomer Toledo et al.
Degradation of Language Models under Controlled Load: Synchronization, Rule Execution and Misfires on the Background
Shared title terminology · Hennadii Kutomanov
Reliable Behavior Discovery via False Discovery Rate Control
Shared title terminology · David Madras, Zi Wang, Marco Andreetto et al.
JevRisk: Zero-Shot Financial Risk Assessment with a Language Decision Model
Shared title terminology · Yaodong Yang, Li Huang, Junpeng Liang et al.