Introduction
Data analysis remains a cornerstone of modern decision-making, yet it is often hindered by significant technical barriers. Traditional workflows are characterized by high coupling, where users must navigate fragmented tools and languages like SQL, Python, or Tableau. Furthermore, the sheer variety of interactive interfaces can lead to "interface overload," and the process of exploratory analytics—finding insights in massive datasets without a specific starting point—is often a time-intensive "needle in a haystack" problem.
Navi addresses these frictions by providing an end-to-end data analysis system powered by natural language interaction. It aims to unify the pipeline from raw data to visualization, lowering the barrier to entry for non-experts while maintaining efficiency for power users.
System Architecture
Navi's architecture is modular, centered around a Task Scheduler that routes natural language queries to specialized functional modules.
Task Scheduler
The core of the system is a fine-tuned DistilBERT model acting as a router. It classifies user intent into one of three primary paths: Data Querying, Visualization Generation, or Visualization Exploration.
Functional Modules
- NL2SQL & NL2VIS: These modules utilize a Sequence-to-Sequence (Seq2Seq) Transformer architecture to translate natural language into executable SQL or Vega-Lite grammar. The models are trained to encode both the user query and the underlying database schema.
- Automated Exploration via MCTS: For ambiguous queries (e.g., "show me trends"), Navi employs Monte Carlo Tree Search (MCTS). This approach treats visualization discovery as a search problem, navigating the space of possible charts while pruning nonsensical options. The search is guided by a composite reward function that integrates data features (via LambdaMART), visualization best practices, and learned user preferences.
Experimental Evaluation
The system was validated using industry-standard benchmarks, including Spider for NL-to-SQL tasks and nvBench for NL-to-visualization tasks. Automated recommendations were evaluated against KG4VIS and VizML, while user preference models were trained on data from the Plotly Community Forum.
Key Results
Navi demonstrated state-of-the-art performance across its core components:
- Data Querying: Achieved 74.37% execution accuracy on the Spider benchmark, outperforming established models like RATSQL.
- Visualization Generation: Reached 76.78% accuracy on nvBench, a significant jump over previous models like SEQ2VIS (64.12%).
- Exploration Quality: Achieved an Axis Accuracy of 98.12%, surpassing existing tools like DeepEye in selecting appropriate variables for visualization axes.
- User Study: A study with 20 participants revealed that Navi effectively "levels the playing field," allowing non-experts to complete complex tasks in nearly the same time as expert users.
Discussion and Future Work
Navi represents a significant step toward making data science more accessible by using natural language as a "glue" for disparate analytical modules. By applying MCTS—an algorithm famously used in game-playing AI—to visualization, the system efficiently handles exponential search spaces.
However, limitations remain. Current performance on extremely complex multi-table schemas can be improved, and the system is primarily optimized for single-turn queries. Future work will focus on multi-turn dialogue for context-aware exploration and the potential integration of Large Language Models (LLMs) like GPT-4 to further enhance reasoning and natural language understanding.
Summary updated