CANDICE: Agentic Causal Disentanglement with Class Conditional Knowledge Integration for Long Tailed Domain Generalization
Paper · 2026 · Midhat Urooj, Ayan Banerjee and Sandeep Gupta
Summary
Medical imaging classifiers must generalize across hospitals, scanners and patient groups (domain generalization, DG). They must also recognize rare pathologies (long-tailed recognition, LT). The authors argue these goals conflict: enforcing domain invariance tends to erase the fine-grained cues that rare classes need.
Their proposed framework, CANDICE, treats diagnosis as building an LLM-driven pipeline rather than training one monolithic predictor. Three agents divide the work:
- a Clinical/Conceptual Reasoning Agent (CRA) gathers diagnostic rules and biomarkers from sources such as PubMed;
- a Causal Disentanglement Agent (CDA) plans which factors and models are usable;
- a Code Generation Agent (CGA) writes and self-debugs executable extraction code.
A decision-level learner, CoCKTAIL, then combines knowledge-derived and deep-learning features class by class. Head classes rely mainly on data-driven signals, and tail classes rely on knowledge-driven ones.
Across 10 datasets in four modalities, CANDICE improves performance by about 10.3% on average. It also yields auditable reasoning traces. The work suggests that the robustness–rare-class tension can be handled by orchestrating decisions rather than redesigning representations.
Key points
- Three agents (CRA, CDA, CGA) feed the CoCKTAIL integrator, which uses Expected Information Gain and a Gini/purity index to guide tree-based, class-conditional partitioning.
- Four applications were tested: rs-fMRI seizure onset zone (SOZ) localization, fundus diabetic retinopathy grading, echocardiographic LVEF estimation (EchoNet-Dynamic), and exercise-stress ECG CAD detection (Mayo MISC data).
- For rare-class SOZ localization, accuracy rose by 38.5 points. Expert review effort fell by up to 84% for SOZ and by an estimated 70% for LVEF.
- For CAD detection (726 training subjects, 227 test subjects), CANDICE reached PPV/NPV/AUC of 91.2/93.0/92.2. The ViT baseline scored 79.0/81.8/82.0.
- On EchoNet-Dynamic, CANDICE fell slightly short of the optimized original pipeline (HF AUC 0.94 vs 0.97). The stated limitations are added inference latency, dependence on knowledge quality, and evaluation restricted to medical tasks.
Fields, topics and concepts
📚 Shelves 3The field of science this work belongs to (OpenAlex fields).Computer Science · 16,667 worksArtificial Intelligence · 16,194 worksComputer Vision and Pattern Recognition · 2,869 works
Cite
Cite as Midhat Urooj, Ayan Banerjee and Sandeep Gupta. 2026. CANDICE: Agentic Causal Disentanglement with Class Conditional Knowledge Integration for Long Tailed Domain Generalization. Findings of the Association for Computational Linguistics: ACL 2026.
@inproceedings{urooj2026candice,
title = {{CANDICE: Agentic Causal Disentanglement with Class Conditional Knowledge Integration for Long Tailed Domain Generalization}},
author = {Midhat Urooj, Ayan Banerjee and Sandeep Gupta},
booktitle = {Findings of the Association for Computational Linguistics: ACL 2026},
year = {2026},
doi = {10.18653/v1/2026.findings-acl.2018},
url = {https://doi.org/10.18653/v1/2026.findings-acl.2018}
}References
- Stanford AIMI. 2020. Echonet-dynamic dataset. https://stanfordaimi.azurewebsites.net/datasets/ 834e1cd1-92f7-4268-9daa-d359198b310a. Accessed: 2025-11-11. ↗
- Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. 2016. Neural module networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 39–48.
- Asia Pacific Tele-Ophthalmology Society. 2019. find
- AP-TOS 2019 blindness detection. Kaggle competition. find
- Shai Ben-David, John Blitzer, Koby Crammer, Alex Kulesza, Fernando Pereira, and Jennifer Wortman Vaughan. 2010. A theory of learning from different domains. Machine Learning, 79(1–2):151–175. find
- Carlo Biffi, Ozan Oktay, Giacomo Tarroni, Wenjia Bai, Antonio De Marvao, Georgia Doumou, Martin Rajchl, Reem Bedair, Sanjay Prasad, Stuart Cook, Declan O’Regan, and Daniel Rueckert. 2018. Learning interpretable anatomical features through deep generative models: Application to cardiac remodeling. In… find
- Leo Breiman, Jerome H. Friedman, Richard A. Olshen, and Charles J. Stone. 1984. Classification and Regression Trees. Wadsworth International Group, Belmont, CA. find
- Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, and 1 others. 2021. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374.
- Xinyun Chen, Maxwell Lin, Nathanael Schärli, and Denny Zhou. 2024. Teaching large language models to self-debug. In Proceedings of the International Conference on Learning Representations (ICLR). find
- Jorge Cuadros and George Bresnick. 2009. Eye-PACS: An adaptable telemedicine system for diabetic retinopathy screening. Journal of Diabetes Science and Technology, 3(3):509–516. find
- Etienne Decencière, Xiwei Zhang, Guy Cazuguel, Bruno Laÿ, Béatrice Cochener, Caroline Trone, Philippe Gain, John-Richard Ordóñez-Varela, Pascale Massin, Ali Erginay, Béatrice Charton, and Jean-Claude Klein. 2014. Feedback on a publicly distributed image database: The Messidor database. Image Analysi… find
- Early Treatment Diabetic Retinopathy Study Research Group. 1991. Grading diabetic retinopathy from stereoscopic color fundus photographs – an extension of the modified airlie house classification: ETDRS report number 10. Ophthalmology, 98(5 Suppl):786– 806. find
- American Association for Pediatric Ophthalmology and Strabismus. 2023. Proliferative diabetic retinopathy. https://aapos.org/glossary/ proliferative-diabetic-retinopathy. ↗
- Robert N. Frank. 2004. Diabetic retinopathy. New England Journal of Medicine, 350(1):48–58. find
- Corrado Gini. 1912. Variabilità e Mutabilità (Variability and Mutability). Tipografia di Paolo Cuppini, Bologna, Italy. find
- Xiao Gu, Yao Guo, Zeju Li, Jianing Qiu, Qi Dou, Yuxuan Liu, Benny Lo, and Guang-Zhong Yang. 2022. Tackling long-tailed category distribution under domain shifts. arXiv preprint arXiv:2207.10150. — [arXiv:2207.10150](https://arxiv.org/abs/2207.10150) find
- Rahul Gupta, Soham Pal, Aditya Kanade, and Shirish Shevade. 2017. DeepFix: Fixing common C language errors by deep learning. In Proceedings of the 31st AAAI Conference on Artificial Intelligence (AAAI), pages 1345–1351. find
- Ziwei Ji, Nayeon Lee, Rita Frieske, Tianyu Yu, and 1 others. 2023. Survey of hallucination in natural language generation. ACM Computing Surveys, 55(12):1–38.
- Payal Kamboj, Ankit Banerjee, Varina L. Boerwinkle, and S. K. S. Gupta. 2024. The expert’s knowledge combined with ai outperforms ai alone in seizure onset zone localization using resting-state fmri. Frontiers in Neurology, 14:1324461. find
- Nan Rosemary Ke, Anirudh Goyal, Stefan Bauer, Hugo Larochelle, and Yoshua Bengio. 2019. Learning neural causal models from unknown interventions. Advances in Neural Information Processing Systems. find
- Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C. Berg, Wan-Yen Lo, Piotr Dollár, and Ross Girshick. 2023. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 399…
- Tushar Khot. 2023. Adapt: As-needed decomposition and planning with language models. arXiv preprint arXiv:2311.05772.
- StatPearls Publishing. 2024. Diabetic retinopathy. https://www.ncbi.nlm.nih.gov/books/ NBK560805/. ↗
- Jing Lei, Yaping Huang, Jundong Gao, and Hao Chen. 2022. Cross-domain deep learning in medical imaging: A survey. IEEE Transactions on Medical Imaging, 41(10):2732–2749. find
- Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, Bill Qian, and 1 others. 2023. Toolllm: Facilitating large language models to master 16000+ real-world apis. arXiv preprint arXiv:2307.16789.
- Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, and 1 others. 2020. Retrieval-augmented generation for knowledge-intensive nlp tasks. In Advances in Neural Information Processing Systems (NeurIPS).
- J. Ross Quinlan. 1993. C4.5: Programs for Machine Learning. Morgan Kaufmann, San Mateo, CA.
- Lusi Li, Haibo He, and Jie Li. 2020. Entropy-based sampling approaches for multi-class imbalanced problems. IEEE Transactions on Knowledge and Data Engineering, 32(11):2159–2170. find
- Xiaoxiao Li, Nicha C. Dvornek, Juntang Zhuang, Pamela Ventola, and James S. Duncan. 2018. Brain biomarker interpretation in ASD using deep learning and fMRI. In MICCAI 2018, volume 11072 of LNCS, pages 206–214. find
- Mingquan Lin, Gregory Holste, Song Wang, Yiliang Zhou, Yishu Wei, Imon Banerjee, Pengyi Chen, Tianjie Dai, Yuexi Du, Nicha C. Dvornek, Yuyan Ge, Zuwei Guo, Shouhei Hanaoka, Dongkyun Kim, Pablo Messina, Yang Lu, Denis Parra, Donghyun Son, Álvaro Soto, and 14 others. 2025. find
- CXR-LT 2024: A MICCAI challenge on long-tailed, multi-label, and zero-shot disease classification from chest X-ray. Medical Image Analysis, 106:103739. find
- Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. 2016. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 779–788. find
- Adam Roberts, Colin Raffel, and Noam Shazeer. 2020. How much knowledge can you pack into the parameters of a language model? In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 5418–5426. find
- Olaf Ronneberger, Philipp Fischer, and Thomas Brox. 2015. U-net: Convolutional networks for biomedical image segmentation. Medical Image Computing and Computer-Assisted Intervention (MICCAI), 9351:234–241.
- Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. 2023. Toolformer: Language models can teach themselves to use tools. arXiv preprint arXiv:2302.04761.
- Wei-Yin Loh. 2011. Classification and regression trees. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 1(1):14–23. find
- Bernhard Schölkopf, Francesco Locatello, Stefan Bauer, Nan Rosemary Ke, Nal Kalchbrenner, Anirudh Goyal, and Yoshua Bengio. 2021. Toward causal representation learning. Proceedings of the IEEE. find
- American Academy of Ophthalmology. 2023. Diabetic retinopathy preferred practice pattern, 2023. https://www.aao.org/preferred-practice-pattern/ diabetic-retinopathy-ppp. ↗
- Claude Elwood Shannon. 1948. A mathematical theory of communication. Bell System Technical Journal, 27(3–4):379–423, 623–656. find
- Daniel Ouyang, Benjamin J He, Amirreza Ghorbani, Lan Xia, Hua Li, Muhammad Alfakir, Lisa Hou, Roy K Chen, Erqou Ding, Aaron D. Aguirre, and 1 others. 2020. Video-based AI for beat-to-beat assessment of cardiac function. Nature, 580(7802):252– 256. find
- Judea Pearl. 2009. Causality: Models, Reasoning, and Inference. Cambridge University Press. find
- Jonas Peters, Dominik Janzing, and Bernhard Schölkopf. 2017. Elements of Causal Inference: Foundations and Learning Algorithms. MIT Press. find
- Archiki Prasad, Alexander Koller, Mareike Hartmann, Peter Clark, Ashish Sabharwal, Mohit Bansal, and Noah Shinn, Federico Cassano, Beck Labash, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. 2023. Reflexion: Language agents with verbal reinforcement learning. arXiv preprint arXiv:2303.11366.
- Unnati V. Shukla and Koushik Tripathy. 2025. Diabetic retinopathy. Updated August 25, 2023, https://www.ncbi.nlm.nih.gov/books/NBK560805/. ↗
- Ishika Singh, Valts Blukis, Arsalan Mousavian, Ankit Goyal, Danfei Xu, Jonathan Tremblay, Dieter Fox, Jesse Thomason, and Animesh Garg. 2023. Progprompt: Generating situated robot task plans using large language models. In Proceedings of the IEEE International Conference on Robotics and Automation (…
- R. Singh, K. Ramasamy, C. Abraham, V. Gupta, and A. Gupta. 2008. Diabetic retinopathy: An update. Indian Journal of Ophthalmology, 56(3):179–188. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2636123/. ↗
- Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, and 1 others. 2023b. React: Synergizing reasoning and acting in language models. In Proceedings of the International Conference on Learning Representations (ICLR).
- Peter Spirtes, Clark Glymour, and Richard Scheines. 2000. Causation, Prediction, and Search. MIT Press. find
- Yifan Zhang, Bingyi Kang, Bryan Hooi, Shuicheng Yan, and Jiashi Feng. 2021. Deep long-tailed learning: A survey. arXiv preprint, 2110.04596. find
- Oyvind Tafjord and Peter Clark. 2021. Proofwriter: Generating implications, proofs, and abductive explanations. In Proceedings of the Association for Computational Linguistics (ACL), pages 3621–3637. find
- Xun Zheng, Bryon Aragam, Pradeep Ravikumar, and Eric Xing. 2018. Dags with no tears: Continuous optimization for structure learning. Advances in Neural Information Processing Systems. find
- Midhat Urooj, Ayan Banerjee, and Sandeep Gupta. 2026. Agentic causal disentanglement (ACD) framework: Reversing the generalization–tail trade-off via clinical knowledge integration in medical AI. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops. T… find
- Jindong Wang, Cuiling Lan, Chang Liu, Yidong Ouyang, Wenjun Zeng, and Tao Qin. 2021. Generalizing to unseen domains: A survey on domain generalization. arXiv preprint arXiv:2103.03097. — [arXiv:2103.03097](https://arxiv.org/abs/2103.03097) find
- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, and Denny Zhou. 2022. Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems.
- Charles P. Wilkinson, Frederick L. Ferris, Ronald E. Klein, Peter P. Lee, Carl-David Agardh, Mark Davis, and Hans-Peter Hammes. 2003. Proposed international clinical diabetic retinopathy and diabetic macular edema disease severity scales. Ophthalmology, 110(9):1677–1682. find
- Yuxin Wu, Alexander Kirillov, Francisco Massa, Wan-Yen Lo, and Ross Girshick. 2019. Detectron2. https://github.com/facebookresearch/ detectron2. ↗
- John Yang, Akshara Prabhakar, Karthik Narasimhan, and Shunyu Yao. 2023. Intercode: Standardizing and benchmarking interactive coding with execution feedback. In Advances in Neural Information Processing Systems.
- Yuzhe Yang, Hao Wang, and Dina Katabi. 2022. On multi-domain long-tailed recognition, imbalanced domain generalization and beyond. In Computer Vision – ECCV 2022, volume 13680 of Lecture Notes in Computer Science, pages 57–75, Cham. Springer. find
- Myron Yanoff and Jay S. Duker. 2019. Ophthalmology, 5th edition. Elsevier. find
- Shunyu Yao, Dian Yu, Jeffrey Zhao, Izhak Shafran, Thomas L Griffiths, Yuan Cao, and Karthik Narasimhan. 2023a. Tree of thoughts: Deliberate problem solving with large language models. arXiv preprint arXiv:2305.10601. find
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/urooj-2026-candice-agentic-causal-disentanglement-class/