Skip to main content
QUICK REVIEW

[Paper Review] ChatGPT as your Personal Data Scientist

Md. Mahadi Hassan, Alex Knipper|arXiv (Cornell University)|May 23, 2023
Topic ModelingComputer Science6 citations
TL;DR

This paper introduces VIDS, a ChatGPT-powered conversational framework that acts as a personal data scientist by guiding non-experts through end-to-end machine learning workflows via natural language. It structures interactions into four dialogue states—Data Visualization, Task Formulation, Prediction Engineering, and Result Summary—using specialized LLM micro-agents to automate model selection, hyperparameter tuning, and result interpretation, demonstrating the feasibility of LLMs in democratizing data science while exposing critical limitations in current LLM reasoning and hallucination.

ABSTRACT

The rise of big data has amplified the need for efficient, user-friendly automated machine learning (AutoML) tools. However, the intricacy of understanding domain-specific data and defining prediction tasks necessitates human intervention making the process time-consuming while preventing full automation. Instead, envision an intelligent agent capable of assisting users in conducting AutoML tasks through intuitive, natural conversations without requiring in-depth knowledge of the underlying machine learning (ML) processes. This agent's key challenge is to accurately comprehend the user's prediction goals and, consequently, formulate precise ML tasks, adjust data sets and model parameters accordingly, and articulate results effectively. In this paper, we take a pioneering step towards this ambitious goal by introducing a ChatGPT-based conversational data-science framework to act as a "personal data scientist". Precisely, we utilize Large Language Models (ChatGPT) to build a natural interface between the users and the ML models (Scikit-Learn), which in turn, allows us to approach this ambitious problem with a realistic solution. Our model pivots around four dialogue states: Data Visualization, Task Formulation, Prediction Engineering, and Result Summary and Recommendation. Each state marks a unique conversation phase, impacting the overall user-system interaction. Multiple LLM instances, serving as "micro-agents", ensure a cohesive conversation flow, granting us granular control over the conversation's progression. In summary, we developed an end-to-end system that not only proves the viability of the novel concept of conversational data science but also underscores the potency of LLMs in solving complex tasks. Interestingly, its development spotlighted several critical weaknesses in the current LLMs (ChatGPT) and highlighted substantial opportunities for improvement.

Motivation & Objective

  • To reduce the communication bottleneck between domain experts and data scientists by automating the machine learning pipeline through conversational AI.
  • To enable non-experts to define and execute machine learning tasks without deep knowledge of ML or AutoML processes.
  • To develop a scalable, end-to-end conversational system that translates natural language into structured ML workflows using LLMs.
  • To evaluate the feasibility and limitations of using large language models like ChatGPT as intelligent agents in data science workflows.

Proposed method

  • The system is structured around four core dialogue states: Data Visualization, Task Formulation, Prediction Engineering, and Result Summary and Recommendation.
  • Each dialogue state is managed by a dedicated LLM micro-agent, with global micro-agents maintaining context and conversation flow across states.
  • The framework integrates GPT-3.5-turbo with Scikit-Learn to execute ML tasks, translating natural language into code and model parameters.
  • Intent and state detection micro-agents use few-shot prompting with constrained output formats to improve accuracy in identifying user goals and dialogue progression.
  • A dialog summarization micro-agent generates concise summaries of interactions, using few-shot examples to guide summarization style.
  • The system employs iterative prompt engineering and state-specific constraints to mitigate hallucination and improve reliability in task formulation and result interpretation.

Experimental results

Research questions

  • RQ1Can a large language model like ChatGPT effectively interpret user intent in natural language and map it to a well-defined machine learning task?
  • RQ2How can a multi-state conversational framework maintain coherence and context across complex, multi-turn data science dialogues?
  • RQ3To what extent can LLM-based micro-agents automate model selection, hyperparameter tuning, and result interpretation without human intervention?
  • RQ4What are the key failure modes of current LLMs when applied to structured, technical data science workflows?

Key findings

  • The VIDS framework successfully automates the end-to-end machine learning pipeline through natural language interaction, demonstrating the viability of LLMs as personal data science assistants.
  • The system achieved high accuracy in intent and state detection when prompts were constrained with explicit next-state options, reducing misclassification from 30% to under 10% in tested cases.
  • The dialog summarization micro-agent frequently hallucinated content when given few-shot examples, indicating a critical limitation in LLMs’ ability to distinguish between input context and task instructions.
  • Despite improvements through prompt engineering, the model consistently failed to correctly identify task states in complex or ambiguous user utterances, especially when intent was implied rather than explicit.
  • The framework revealed that current LLMs lack robustness in technical reasoning and context retention, particularly in multi-step, structured dialogues involving data science workflows.
  • The study highlights that while LLMs can significantly reduce the burden on data scientists, they remain prone to hallucination and misclassification, necessitating further research into reliable, constrained LLM agents.

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.