Toward Auditable Neuro-Symbolic Reasoning in Pathology: SQL as an Explicit Trace of Evidence
Kewen Cao, Jianxu Chen, Yongbing Zhang, Ye Zhang, Hongxiao Wang
TL;DR
The paper tackles the opacity of AI in pathology by introducing an auditable, SQL-centered reasoning framework that converts visual features into structured, executable queries. It decouples reasoning from end-to-end classification, with Global/Local Feature Reasoning Agents generating SQL, a Knowledge Comparison Agent validating against diagnostic knowledge, and a Report Agent fusing results with CNN evidence. Experiments on mu-bench and GADVR show the approach yields competitive accuracy and significantly improved interpretability via auditable SQL traces linking cellular measurements to diagnoses. This work demonstrates the practicality of SQL as a symbolic interface for trustworthy AI in pathology and suggests paths for integrating external medical knowledge.
Abstract
Automated pathology image analysis is central to clinical diagnosis, but clinicians still ask which slide features drive a model's decision and why. Vision-language models can produce natural language explanations, but these are often correlational and lack verifiable evidence. In this paper, we introduce an SQL-centered agentic framework that enables both feature measurement and reasoning to be auditable. Specifically, after extracting human-interpretable cellular features, Feature Reasoning Agents compose and execute SQL queries over feature tables to aggregate visual evidence into quantitative findings. A Knowledge Comparison Agent then evaluates these findings against established pathological knowledge, mirroring how pathologists justify diagnoses from measurable observations. Extensive experiments evaluated on two pathology visual question answering datasets demonstrate our method improves interpretability and decision traceability while producing executable SQL traces that link cellular measurements to diagnostic conclusions.
