Skip to main content
QUICK REVIEW

[Paper Review] Explaining Genetic Programming Trees using Large Language Models

Paula Maddigan, Andrew Lensen|arXiv (Cornell University)|Mar 6, 2024
Evolutionary Algorithms and ApplicationsComputer Science6 citations
TL;DR

The paper presents GP4NLDR, a web-based dashboard that uses a ChatGPT-powered chatbot and retrieval augmented generation to explain GP-NLDR trees, demonstrating improved, user-centered explanations across case studies.

ABSTRACT

Genetic programming (GP) has the potential to generate explainable results, especially when used for dimensionality reduction. In this research, we investigate the potential of leveraging eXplainable AI (XAI) and large language models (LLMs) like ChatGPT to improve the interpretability of GP-based non-linear dimensionality reduction. Our study introduces a novel XAI dashboard named GP4NLDR, the first approach to combine state-of-the-art GP with an LLM-powered chatbot to provide comprehensive, user-centred explanations. We showcase the system's ability to provide intuitive and insightful narratives on high-dimensional data reduction processes through case studies. Our study highlights the importance of prompt engineering in eliciting accurate and pertinent responses from LLMs. We also address important considerations around data privacy, hallucinatory outputs, and the rapid advancements in generative AI. Our findings demonstrate its potential in advancing the explainability of GP algorithms. This opens the door for future research into explaining GP models with LLMs.

Motivation & Objective

  • Advance explainability of GP-based nonlinear dimensionality reduction (GP-NLDR).
  • Showcase a user-centered, conversational interface for interpreting GP trees.
  • Demonstrate integration of LLMs with GP-NLDR via a web dashboard to aid non-expert users.
  • Address prompt engineering, data privacy, and hallucination concerns in LLM-driven XAI.

Proposed method

  • Build GP4NLDR as a Streamlit-based web dashboard that runs GP-NLDR and displays GP trees for each embedding dimension.
  • Incorporate an LLM chatbot (GPT-3.5/4 via OpenAI API) with fixed word limits, prompt engineering, and retrieval augmented generation (RAG) using FAISS for contextual background.
  • Use LangChain to integrate LLMs, RAG, memory, and workflow components.
  • Pre-load examples and allow exploration of case studies (Wine, Dermatology, COIL-20) with different fitness functions and dimensionalities.
  • Provide visualizations of embeddings and fitness, plus a random forest classifier baseline to estimate embedding quality.

Experimental results

Research questions

  • RQ1Can an LLM-based chatbot provide meaningful, user-centered explanations of GP trees used in NLDR?
  • RQ2How does prompt engineering and RAG influence the accuracy and usefulness of LLM explanations in GP contexts?
  • RQ3What are the practical challenges (privacy, hallucinations) when applying LLMs to explain GP models?
  • RQ4Is GP-NLDR with LLM explanations effective across datasets of varying size and feature descriptiveness?

Key findings

  • GP4NLDR enables intuitive narratives about high-dimensional data reduction via GP trees and LLM dialogue.
  • Prompt engineering and retrieval augmentation reduce hallucinations and improve relevance of LLM explanations.
  • LLM explanations leverage dataset feature names to contextualize embeddings, enhancing interpretability for case studies.
  • Across Wine, Dermatology, and COIL-20, the system demonstrated meaningful 2D/3D embeddings with visual and conversational explanations.
  • There are observable trade-offs in embedding quality (e.g., COIL-20 embedding accuracy drop from 0.9868 to 0.6375) that are discussed in the context of explainability.
  • The platform is publicly available for exploration and reproducibility (GP4NLDR app).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.