Introduction
In high-stakes domains such as medicine, law, and finance, the "black-box" nature of Large Language Models (LLMs) presents a significant barrier to adoption. While LLMs excel at processing unstructured text, their reasoning processes are often opaque and difficult to audit. Conversely, classical decision trees, like CART, offer gold-standard interpretability through clear "if-then" logic but are traditionally limited to structured, tabular data.
ACT (Agentic Classification Tree) bridges this gap. Developed by researchers at AXA AI Research, Sorbonne, and Stanford, ACT extends the decision-tree methodology to unstructured data. It uses LLMs to construct verifiable, human-readable flowcharts for text classification, combining semantic reasoning with structural transparency.
Methodology: From Tabular to Semantic Splits
ACT operates on the principle of recursive partitioning, similar to traditional decision trees. However, instead of splitting data based on numerical thresholds or categorical subsets, ACT utilizes natural-language questions queried by an LLM. The construction of an ACT involves several key innovations:
- Recursive Prompt Refinement: Starting from a neutral initial question, the system iteratively refines node questions.
- Semantic Purity Feedback: The model identifies semantic characteristics that distinguish misclassified examples at each node.
- TextGrad Integration: ACT employs the TextGrad framework—a method for "differentiation-via-text"—to optimize questions for better class separation.
- Statistical Optimization: Like CART, ACT uses Gini impurity to evaluate potential splits, ensuring the resulting tree is statistically sound.
During inference, the LLM acts as a router, answering the sequence of generated questions to navigate from the root to a leaf node for final classification.
Experimental Evaluation
The researchers evaluated ACT across five binary classification tasks: DIAGNO (clinical descriptions), SPAM (email classification), JAILBREAK (safety policy detection), BANKCHURN (serialized tabular data), and IMDB (sentiment analysis).
Key Results and Insights
ACT demonstrates that decomposing complex reasoning tasks into simpler sub-questions improves LLM performance and provides a "contestable" logic path.
- Performance and Cost: On the DIAGNO dataset, a depth-4 ACT achieved 82.3% accuracy, significantly outperforming 0-shot Chain-of-Thought (61.2%) and DSPy (64.5%). As shown in the performance analysis, ACT provides a superior accuracy-to-cost trade-off compared to other optimization frameworks.
- Interpretability and Alignment: The trees remained shallow (averaging 2.3 to 3.1 steps). In the TB task, the autonomously discovered questions (e.g., regarding fever, weight loss, and coughing up blood) aligned closely with World Health Organization (WHO) symptom lists.
- Scaling: Unlike some agentic methods that show inconsistent gains, ACT's accuracy scales steadily with the power of the underlying LLM (from Nano to GPT-4 versions).
Conclusion
By transforming the "black box" of LLMs into a "glass box" flowchart, ACT provides a blueprint for deploying generative AI in regulated environments. While training costs remain high due to iterative LLM calls, the resulting models offer the auditability required by frameworks like the EU AI Act without sacrificing the performance of modern language models.
Summary updated