Introduction
Deep learning models, particularly Large Language Models (LLMs), have set new benchmarks in Natural Language Processing. However, their "black-box" nature remains a significant barrier in high-stakes fields like healthcare, law, and education, where understanding the rationale behind a decision is as critical as the decision itself. Traditional Explainable AI (XAI) methods often rely on post-hoc interpretations that may not accurately reflect a model's internal logic.
This paper introduces Natural Language Learned Features (NLLF), a framework designed to create models that are interpretable by design. By decomposing complex classification tasks into human-readable binary questions, NLLF bridges the gap between the high performance of transformers and the transparency of decision trees.
Methodology: The NLLF Pipeline
The core innovation of NLLF lies in distilling the reasoning capabilities of an LLM into a set of discrete, verifiable features. The process follows a three-stage pipeline:
- Sub-task Generation and Labelling: A complex task is decomposed into multiple "Binary Subtask Questions" (BSQs) using an LLM (e.g., ChatGPT). For instance, a task to classify scientific abstracts is broken down into specific queries like "Does the article discuss methane emissions?" The LLM then provides "weak labels" (Yes/No) for these questions on a subset of the data.
- NLLF Generator (NLLFG) Training: A smaller transformer model (such as BERT) is trained in a Natural Language Inference (NLI) format. It treats the input text as a "premise" and the BSQ as a "hypothesis." This training allows the model to generalize across various questions, enabling zero-shot inference for new, expert-defined questions.
- Interpretable Prediction: The answers generated by the NLLFG form a feature vector. This vector, potentially augmented by expert-defined linguistic features, serves as the input for a "white-box" classifier, such as a Decision Tree.
Experimental Setup and Results
The NLLF approach was evaluated on two challenging tasks requiring high-level reasoning: Incoherent Answer Detection (IAD) in math word problems and Scientific Abstract Classification (SAC) for climate change literature.
Performance vs. Interpretability
The results demonstrate that interpretable models do not necessarily sacrifice performance. In the IAD task, the NLLF-boosted Decision Tree achieved an F1-score of 78.09, significantly outperforming ChatGPT's direct prompting (62.17). Furthermore, the NLLF models performed comparably to, or better than, vanilla "black-box" BERT models across both datasets.
Human-Readable Explanations
The primary advantage of this method is the literal transparency of the decision-making process. Because the features are answers to natural language questions, the path through the decision tree provides a clear, logical explanation for the final label. For example, in the SAC task, a model might include an abstract because it answered "Yes" to "Does the article address agroecological practices?" and "Yes" to "Does it analyze nitrogen dynamics?"
Key Insights
- Decomposition Improves Reliability: LLMs are often more reliable at answering simple, decomposed sub-questions than solving a complex task in a single step.
- NLI as a Bridge: Framing feature extraction as an NLI task allows small models to leverage semantic knowledge for zero-shot reasoning, making the system flexible to new requirements without retraining the entire pipeline.
- Compensating for LLM Errors: Interestingly, the NLLF generator (the small BERT model) sometimes compensated for errors in the LLM's weak labels, suggesting that the distillation process can actually "smooth out" some noise.
Conclusion and Future Work
NLLF offers a promising path toward high-performance, interpretable NLP systems. By using natural language as the intermediate feature representation, the model's logic becomes accessible to domain experts. Future research will focus on extending this binary classification framework to multi-class problems and exploring how these explanations impact human trust and decision-making in real-world professional environments.
Summary updated