The DOI matches its Crossref record; 2 of the 2 references it cites were found in a registry or an index.
Identifying Multi-parameter Constraint Errors in Python Data Science Library API Documentation
Abstract
Modern AI- and Data-intensive software systems rely heavily on data science and machine learning libraries that provide essential algorithmic implementations and computational frameworks. These libraries expose complex APIs whose correct usage has to follow constraints among multiple interdependent parameters. Developers using these APIs are expected to learn about the constraints through the provided documentation and any discrepancy may lead to unexpected behaviors. However, maintaining correct and consistent multiparameter constraints in API documentation remains a significant challenge for API compatibility and reliability. To address this challenge, we propose MP Checker for detecting inconsistencies between code and documentation, specifically focusing on multi-parameter constraints. MP Checker identifies these constraints at the code level by exploring execution paths through symbolic execution and further extracts corresponding constraints from documentation using large language models (LLMs). We propose a customized fuzzy constraint logic to reconcile the unpredictability of LLM outputs and detect logical inconsistencies between the code and documentation constraints. We collected and constructed two datasets from four popular data science libraries and evaluated MP Checker on them. Our tool identified 117 of 126 inconsistent constraints, achieving a recall of 92.8% and demonstrating its effectiveness at detecting inconsistency issues. We further reported 14 detected inconsistency issues to the library developers, who have confirmed 11 issues at the time of writing.
Overview
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?
Min, S., Lyu, X., Holtzman, A., Artetxe, M., Lewis, M., Hajishirzi, H., & Zettlemoyer, L. (2022) · arXiv · doi:10.48550/arxiv.2202.12837 · Cited by 752
Learning To Retrieve Prompts for In-Context Learning
Rubin, O., Herzig, J., & Berant, J. (2022) · Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · doi:10.18653/v1/2022.naacl-main.191 · Cited by 374
Research works printed but not linked: 55
- Emad Aghajani, Csaba Nagy, Gabriele Bavota, and Michele Lanza. 2018. A large-scale empirical study on linguistic antipatterns affecting apis. In 2018 IEEE International conference on software maintenance and evolution (ICSME). IEEE, 25–35.
- Emad Aghajani, Csaba Nagy, Mario Linares-Vásquez, Laura Moreno, Gabriele Bavota, Michele Lanza, and David C Shepherd 2020. Software documentation: the practitioners’ perspective. In Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering (ICSE). 590–601. · DOI
- Emad Aghajani, Csaba Nagy, Olga Lucero Vega-Márquez, Mario Linares-Vásquez, Laura Moreno, Gabriele Bavota, and Michele Lanza. 2019. Software documentation issues unveiled. In 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE). IEEE, 1199–1210.
- 10.1007/s10664-014-9350-8 · DOI
- Thomas Ball and Jakub Daniel. 2015. Deconstructing dynamic symbolic execution. In Dependable Software Systems Engineering. IOS Press, 26–41.
- Arianna Blasi and Alessandra Gorla. 2018. Replicomment: identifying clones in code comments. In Proceedings of the 26th Conference on Program Comprehension. 320–323. · DOI
- 10.1016/S0377-2217(98)00364-6 · DOI
- Barthélémy Dagenais and Martin P Robillard. 2010. Creating and evolving developer documentation: understanding the decisions of open source contributors. In Proceedings of the eighteenth ACM SIGSOFT International Symposium on Foundations of Software Engineering (FSE). 127–136. · DOI · Paper page
- Shubhang Shekhar Dvivedi Vyshnav Vijay Sai Leela Rahul Pujari Shoumik Lodh and Dhruv Kumar. 2024. A comparative analysis of large language models for code documentation generation. In Proceedings of the 1st ACM International Conference on AI-Powered Software.
- Andrew Habib and Michael Pradel. 2018. Is this class thread-safe? inferring documentation using graph-based learning. In Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering (ASE). 41–52. · DOI
- Chi Han Qifan Wang Hao Peng Wenhan Xiong Yu Chen Heng Ji and Sinong Wang. 2024. LM-Infinite: Zero-Shot Extreme Length Generalization forLarge Language Models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. 3991–4008. · DOI · Paper page
- 10.1145/174662.174663 · DOI
- Andrew Head Caitlin Sadowski Emerson Murphy-Hill and Andrea Knight. 2018. When not to comment: Questions and tradeoffs with API documentation for C++ projects. In Proceedings of the 40th International Conference on Software Engineering (ICSE). 643–653. · DOI
- Hongye Jin Xiaotian Han Jingfeng Yang Zhimeng Jiang Zirui Liu Chia-Yuan Chang Huiyuan Chen and Xia Hu. 2024. Llm maybe longlm: Self-extend llm context window without tuning. arXiv preprint arXiv:2401.01325 (2024). · arXiv
- Matthew Jin, Syed Shahriar, Michele Tufano, Xin Shi, Shuai Lu, Neel Sundaresan, and Alexey Svyatkovskiy. 2023. InferFix: End-to-End Program Repair with LLMs (ESEC/FSE). Association for Computing Machinery.
- 10.1109/TSE.2021.3069978 · DOI
- 10.1016/0096-0551(78)90009-7 · DOI
- 10.1038/scientificamerican0793-76 · DOI
- 10.1109/TSE.2019.2901459 · DOI
- Bo Lin, Shangwen Wang, Kui Liu, Xiaoguang Mao, and Tegawendé F Bissyandé. 2021. Automated comment update: How far are we?. In 2021 IEEE/ACM 29th International Conference on Program Comprehension (ICPC). IEEE, 36–46. · DOI
- Shuang Liu Jun Sun Yang Liu Yue Zhang Bimlesh Wadhwa Jin Song Dong and Xinyu Wang. 2014. Automatic early defects detection in use case documents. In Proceedings of the 29th ACM/IEEE International Conference on Automated Software Engineering (ASE). 785–790. · DOI
- Yang Liu Mingwei Liu Xin Peng Christoph Treude Zhenchang Xing and Xiaoxin Zhang. 2020. Generating concept based API element comparison using a knowledge graph. In Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering (ASE). 834–845. · DOI
- 10.1109/TSE.2021.3138909 · DOI
- Zhongxin Liu Xin Xia Meng Yan and Shanping Li. 2020. Automating just-in-time comment updating. In Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering (ASE). 585–597. · DOI · Paper page
- Lezhi Ma Shangqing Liu Yi Li Xiaofei Xie and Lei Bu. 2025. SpecGen: Automated Generation of Formal Program Specifications via Large Language Models. In Proceedings of the 47th International Conference on Software Engineering (ICSE).
- Pedro Meseguer, Francesca Rossi, and Thomas Schiex. 2006. Soft constraints. In Foundations of Artificial Intelligence. Vol. 2. Elsevier, 281–328.
- 10.1007/s10664-011-9186-4 · DOI
- Daye Nam, Andrew Macvean, Vincent Hellendoorn, Bogdan Vasilescu, and Brad Myers. 2024. Using an LLM to Help With Code Understanding. In Proceedings of the IEEE/ACM 46th International Conference on Software Engineering (ICSE). Association for Computing Machinery, 13 pages.
- Pengyu Nie Rishabh Rai Junyi Jessy Li Sarfraz Khurshid Raymond J Mooney and Milos Gligoric. 2019. A framework for writing trigger-action todo comments in executable format. In Proceedings of the 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE). 385–396. · DOI
- Sheena Panthaplackel, Junyi Jessy Li, Milos Gligoric, and Raymond J Mooney. 2021. Deep just-in-time inconsistency detection between comments and source code. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 35. 427–435. · DOI · Paper page
- 10.1145/3519312 · DOI
- Pooja Rani Suada Abukar Nataliia Stulova Alexandre Bergel and Oscar Nierstrasz. 2021. Do comments follow commenting conventions? a case study in java and python. In 2021 IEEE 21st International Working Conference on Source Code Analysis and Manipulation (SCAM). IEEE 165–169. · DOI
- 10.1109/ASE.2017.8115624 · DOI
- Guoping Rong, Yongda Yu, Song Liu, Xin Tan, Tianyi Zhang, Haifeng Shen, and Jidong Hu. 2024. Code Comment Inconsistency Detection and Rectification Using a Large Language Model. In 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE). IEEE Computer Society, 432–443.
- Zsofi Ruttkay. 1994. Fuzzy constraint satisfaction. In Proceedings of 1994 IEEE 3rd International Fuzzy Systems Conference. IEEE, 1263–1268. · DOI
- Mohamed Aymen Saied, Houari Sahraoui, and Bruno Dufour. 2015. An observational study on API usage constraints and their documentation. In 2015 IEEE 22nd International conference on software analysis, evolution, and reengineering (SANER). IEEE, 33–42. · DOI
- Thomas Schiex. 1992. Possibilistic constraint satisfaction problems or “How to handle soft constraints?”. In Uncertainty in Artificial Intelligence. Elsevier, 268–275. · DOI
- Lin Shi, Hao Zhong, Tao Xie, and Mingshu Li. 2011. An empirical study on evolution of API documentation. In 14th International Conference on Fundamental Approaches to Software Engineering (FASE), Held as Part of the Joint European Conferences on Theory and Practice of Software (ETAPS), Saarbrücken, Germany, March 26–April 3, 2011. Proceedings 14. Springer, 416–431.
- 10.1109/ICPC.2013.6613836 · DOI
- 10.1109/MS.2014.80 · DOI
- Nalin Wadhwa Jui Pradhan Atharv Sonwane Surya Prakash Sahu Nagarajan Natarajan Aditya Kanade Suresh Parthasarathy and Sriram Rajamani. 2024. CORE: Resolving Code Quality Issues using LLMs. Proc. ACM Softw. Eng. FSE Article 36 (2024) 23 pages. · DOI
- Jason Wei Xuezhi Wang Dale Schuurmans Maarten Bosma Brian Ichter Fei Xia Ed H. Chi Quoc V. Le and Denny Zhou. 2024. Chain-of-thought prompting elicits reasoning in large language models. In Proceedings of the Thirty-Sixth Annual Conference on Neural Information Processing Systems (NeurIPS). 14 pages.
- 10.52202/068431-1800 · DOI · Paper page
- 10.1109/ICPC.2019.00019 · DOI · Paper page
- 10.1145/3650212.3680323 · DOI
- 10.1145/3650212.3680328 · DOI · Paper page
- Lotfi A Zadeh. 1965. Fuzzy sets. Information and Control (1965). · DOI · Paper page
- Juan Zhai Xiangzhe Xu Yu Shi Guanhong Tao Minxue Pan Shiqing Ma Lei Xu Weifeng Zhang Lin Tan and Xiangyu Zhang. 2020. CPC: Automatically classifying and propagating natural language comments via program analysis. In Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering (ICSE). 1359–1371. · DOI
- Yichi Zhang. 2024. Detecting Code Comment Inconsistencies using LLM and Program Analysis. In Companion Proceedings of the 32nd ACM International Conference on the Foundations of Software Engineering (FSE). Association for Computing Machinery, 683–685.
- Yichi Zhang. 2024. Detecting Code Comment Inconsistencies using LLM and Program Analysis. In Companion Proceedings of the 32nd ACM International Conference on the Foundations of Software Engineering (FSE). Association for Computing Machinery, 683–685.
- 10.1145/3691620.3695010 · DOI · Paper page
- Hao Zhong Na Meng Zexuan Li and Li Jia. 2020. An empirical study on API parameter rules. In Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering (ICSE). 899–911. · DOI
- Hao Zhong and Zhendong Su. 2013. Detecting API documentation errors. In Proceedings of the 2013 ACM SIGPLAN international conference on Object oriented programming systems languages & applications. 803–816. · DOI
- 10.1109/ICSE.2017.11 · DOI
- Chenguang Zhu Ye Liu Xiuheng Wu and Yi Li. 2022. Identifying solidity smart contract api documentation errors. In Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering (ASE). 1–13. · DOI
Metadata
- Authors
- Xu, X., Xie, F., Zhu, C., Bai, G., Khurshid, S., & Li, Y.
- Venue
- Proceedings of the ACM on Software Engineering
- Published
- 2025-06-22
- Volume
- 2
- Issue
- ISSTA
- Pages
- 1536-1558
- ISSN
- 2994-970X
- Cited by
- 1
- References
- 2
- Language
- en
- Funders
- RIE2025 Industry Alignment Fund ? Industry Collaboration Projects (I2301E0026)
- Singapore Ministry of Education Academic Research Fund Tier 1 (RG12/23)
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Identifying Multi-parameter Constraint Errors in Python Data Science Library API Documentation. https://app.cochat.ai/papers/10.1145/3728945
- The paper
- Xu, X., Xie, F., Zhu, C., Bai, G., Khurshid, S., & Li, Y. (2025). Identifying Multi-parameter Constraint Errors in Python Data Science Library API Documentation. Proceedings of the ACM on Software Engineering. https://doi.org/10.1145/3728945