Introduction
Genetic Programming (GP) is a symbolic AI technique frequently lauded for its inherent "glass-box" nature. Unlike deep learning models characterized by opaque weight matrices, GP produces mathematical trees that explicitly define relationships between variables. However, in complex tasks such as Non-Linear Dimensionality Reduction (NLDR), these trees often suffer from "bloat," becoming too intricate for human interpretation. Furthermore, explainability is subjective; a researcher requires a different narrative than a domain expert or a layperson.
To bridge this gap, this research introduces GP4NLDR, a novel Explainable AI (XAI) dashboard. By pairing GP-based dimensionality reduction with Large Language Models (LLMs) like GPT-4, the system transforms complex symbolic expressions into intuitive, user-centered natural language narratives.
The GP4NLDR Framework
The GP4NLDR system utilizes a multi-stage pipeline to facilitate interactive model interpretation. The process begins with the GP-NLDR Engine, which employs genetic algorithms to reduce high-dimensional data into 2D or 3D embeddings. Each resulting dimension is represented by a symbolic GP tree.
To ensure these trees are explained accurately, the system integrates LLMs via the LangChain framework. A critical component is the use of Retrieval Augmented Generation (RAG). By utilizing a FAISS vector store populated with relevant academic literature, the system provides the LLM with "ground truth" context regarding niche GP terminology and specific fitness functions like GP-MaL. This significantly reduces the risk of hallucinations and ensures technical accuracy.
Experimental Evaluation
The framework was evaluated across three distinct datasets from the UCI Machine Learning Repository:
- Wine Dataset (13 features): Tested the system's ability to interpret meaningful chemical feature names like Alcohol and Proline.
- Dermatology Dataset (34 features): Evaluated the chatbot's handling of specialized clinical and histopathological terms.
- COIL-20 (1024 features): Challenged the system with high-dimensional image data and generic feature labels (f0 to f1023).
Conversational Explainability and Key Insights
A primary contribution of this work is the shift toward "social" XAI. Rather than providing a static report, GP4NLDR allows users to engage in a dialogue with the model. For instance, in the Wine dataset evaluation, the GP reduced 13 features to 2 dimensions with high accuracy (0.93). The LLM successfully identified "Flavanoids" as the primary feature for the first dimension and provided detailed reasoning for the second dimension's composition.
The system also demonstrated a sophisticated ability to map natural language queries to specific features. In the Dermatology study, when a user asked, "What if I am old and itchy?", the LLM correctly identified the "age" and "itching" features within the dataset to determine their relevance to the GP's classification logic. Additionally, the framework inherently supports multilingual explanations, as demonstrated by the chatbot's ability to explain dimensionality reduction in French.
Conclusion and Future Work
While GP4NLDR represents a significant step toward accessible symbolic AI, several challenges remain. Data privacy concerns regarding external LLM APIs may limit adoption in sensitive sectors. Furthermore, extremely high-dimensional datasets can challenge LLM token limits, necessitating feature truncation strategies. Future research will focus on human-in-the-loop evaluations to quantify how these natural language narratives impact user trust and decision-making across broader applications like symbolic regression and classification.
Summary updated