CAIR: Counterfactual-based Agent Influence Ranker for Agentic AI Workflows
Amit Giloni, Chiara Picardi, Roy Betser, Shamik Bose, Aishvariya Priya Rathina Sabapathy, Roman Vainshtein
Abstract
An Agentic AI Workflow (AAW), also known as an LLM-based multi-agent system, is an autonomous system that assembles several LLMbased agents to work collaboratively towards a shared goal. The high autonomy, widespread adoption, and growing interest in such AAWs highlight the need for a deeper understanding of their operations, from both quality and security aspects. To this day, there are no existing methods to assess the influence of each agent on the AAW's final output. Adopting techniques from related fields is not feasible since existing methods perform only static structural analysis, which is unsuitable for inference time execution. We present Counterfactual-based Agent Influence Ranker (CAIR ) -the first method for assessing the influence level of each agent on the AAW's output and determining which agents are the most influential. By performing counterfactual analysis, CAIR provides a taskagnostic analysis that can be used both offline and at inference time. We evaluate CAIR using an AAWs dataset of our creation, containing 30 different use cases with 230 different functionalities. Our evaluation showed that CAIR produces consistent rankings, outperforms baseline methods, and can easily enhance the effectiveness and relevancy of downstream tasks. * Corresponding Author † equal contribution * ( Optional ) Example Past Messages from agent_name : json example_messages_str ``* ( Use examples for style / format plausibility .) * **2. System Context :** * ** Known Agents :** json known_agents_list_str * * Known Agents and Their Prompts :** ```json all_agent_prompts_str * ( This contains the prompts for all agents in the system . Use these to compare and mimic stylistic differences .) * 3. Original Output Dictionary from agent_name : * ( Key to primarily modify content for : ' target_key ') ** ```json original_output_dict_str `` 4. Modification Task & Guidelines : * Modify Message Content :** 1. Modify the message content
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Related papers
- Multi-View Encoders for Performance Prediction in LLM-Based Agentic WorkflowsPatara Trirat, Wonyong Jeong, Sung Ju HwangICLR 2026 · 3 citations
- Difficulty-Aware Agentic Orchestration for Query-Specific Multi-Agent WorkflowsJinwei Su, Qizhen Lan, Yinghui Xia, Lifan Sun et al.WWW 2026 · 8 citations
- Agentic Video Summarization via Self-Reflecting Multimodal UnderstandingMiaotian Guo, Shuguang Dou, Yin Li, Aidong Men et al.CVPR 2026
- Multi-agent Architecture Search via Agentic SupernetGuibin Zhang, Luyang Niu, Junfeng Fang, Kun Wang et al.ICML 2025
- AgenTracer: Who Is Inducing Failure in the LLM Agentic Systems?Guibin Zhang, Junhao Wang, Junjie Chen, Wangchunshu Zhou et al.ICLR 2026 · 107 citations
