NL2Dashboard: A Lightweight and Controllable Framework for Generating Dashboards with LLMs

Boshen Shi, Kexin Yang, Yuanbo Yang, Guanguang Chang, Ce Chi, Zhendong Wang, Xing Wang, Junlan FengarXiv 2026

TL;DR

Existing LLM-based dashboard generation methods waste massive token budgets on verbose rendering code (HTML/CSS/JS) and suffer from layout instability during edits. NL2Dashboard solves this by decoupling data analysis from presentation, using a structured Intermediate Representation (IR) that lets the LLM focus purely on reasoning while offloading visual rendering to a deterministic engine. This approach achieves a 100% success rate on complex dashboard modifications while drastically reducing token overhead.

What Problem Does This Paper Address?

While Large Language Models (LLMs) excel at generating standalone charts, synthesizing a cohesive, multi-view data dashboard remains a major challenge. Current end-to-end approaches treat dashboard generation as a direct text-to-HTML task. This introduces two major pain points:

  1. Representation Redundancy: A huge portion of the LLM's context window and token output is consumed by verbose styling code (HTML tags, CSS layouts, JavaScript configurations). This leaves fewer tokens for actual data analysis and logical reasoning, leading to low token efficiency.
  2. Low Controllability: Because data analysis is entangled with visual rendering, the generation process is highly stochastic. When a user wants to iteratively modify an existing dashboard (e.g., "swap these two charts" or "change the title"), the LLM often regenerates the entire HTML file, frequently introducing unintended changes or breaking the global layout structure.

Methods

The core philosophy of NL2Dashboard is Analysis-Presentation Decoupling, shifting the paradigm to a two-stage "Reason-then-Render" workflow.

Figure 1: NL2Dashboard Framework with IR

1. The Two-Stage Workflow

  • Prompt-to-IR: When a user provides a natural language prompt and data tables, the LLM acts purely as an analytical engine. It executes data analysis scripts in a secure sandbox and populates a lightweight, structured Intermediate Representation (IR) config file. This IR captures metadata, global layout coordinates, and references to analytical components (metrics, charts, tables), completely abstracting away the implementation details.
  • IR-to-Dashboard: A deterministic rendering engine takes the IR and maps it to a professional, interactive HTML dashboard using a slot-filling mechanism based on predefined base templates.

2. Edit-Intent Translation for Modifications

For editing tasks, NL2Dashboard introduces an edit-intent translation technique. Instead of rewriting the HTML, the LLM translates the user's request into a sequence of four atomic operations: change, swap, delete, and add. An update operator ($O^M$) modifies only the affected parts of the IR, ensuring localized edits never corrupt the rest of the dashboard.

Figure 4: Translate user prompt into modify script

3. Multi-Agent Orchestration

The framework is implemented via a specialized multi-agent system:

  • Planner: Detects user intent, expands prompts with domain-specific instructions, and schedules tasks.
  • Coder: Generates and runs Python scripts in a sandbox to produce analytical artifacts, featuring a self-debugging loop.
  • Critic: A Vision-Language Model (VLM) that reviews the visual quality of generated charts and provides iterative feedback to the Coder.
Figure 3: NL2Dashboard with a MultiAgent architecture

Datasets

The authors evaluated their framework using a newly constructed evaluation setup:

  • Generation Dataset: 10 tables collected from real-world scenarios spanning finance, education, and government domains.
  • Modification Benchmark: 7 distinct evaluation cases (M1 to M7) designed for each table, scaling from single-step edits (e.g., changing a title) to complex multi-step sequences (e.g., swapping charts and adding new analytical components sequentially). This resulted in a total of 210 modification tasks.

Key Insights and Ideas

  • LLMs are Thinkers, Not Renderers: Forcing an LLM to output precise pixel layouts and CSS properties is an inefficient use of its weights. By treating the LLM as an analytical engine that outputs structured data schemas (the IR), the system plays to the model's core strengths.
  • Zeroing Out Visual Entropy: Through an information-theoretic lens, the authors prove that end-to-end baselines suffer because their target sequence includes high uncertainty (entropy) from visual presentation tokens. NL2Dashboard reduces this visual entropy to near zero ($H_{vis} \approx 0$) by offloading it to a deterministic engine, mathematically guaranteeing a higher probability of generation success.
  • Stability via Isolation: Modifying dashboards through structured atomic operations prevents cascading layout failures. If an LLM miscalculates a single HTML tag in an end-to-end setup, the entire page breaks; in NL2Dashboard, an error in an edit script is isolated to that specific component slot.

Key Results

NL2Dashboard was tested against state-of-the-art LLM products including Doubao, Gemini 2.5 Pro, and GPT-5 (Agentic mode).

Qualitative & Visual Superiority

Using an LLM-as-a-Judge framework (evaluating Insightfulness, Visual Fidelity, and Information Richness), NL2Dashboard achieved the highest total scores in both generation and modification tasks, delivering cleaner layouts and better space utilization.

Figure 2: Example of a balanced sheet from NL2Dashboard (Dark-style Template)

Token Efficiency

The paper introduces the Generative Overhead Ratio (GOR), which measures the tokens generated by the LLM divided by the final dashboard file size. NL2Dashboard achieved a GOR significantly below 1 (averaging ~0.58 for generation and as low as 0.02 for simple edits), meaning it produces rich dashboards while consuming a fraction of the token budget used by end-to-end baselines.

Perfect Controllability

As modification tasks grew in complexity (from M1 to M7), baseline success rates plummeted due to spatial reasoning failures and instruction omission. NL2Dashboard maintained a 100% success rate across all 210 modification tasks.

Figure 5: Modification SR with difficulty changing

Limitations and Future Work

While the paper demonstrates massive improvements in efficiency and layout stability, a few limitations remain:

  • Template Dependency: The visual variety of the final dashboard relies on the diversity of the offline-generated base templates. If a user desires a highly non-standard or bespoke layout not covered by the template library, the deterministic engine's slot-filling mechanism might be too restrictive.
  • Future Directions: The authors note that this framework lays the groundwork for trustworthy data storytelling and plan to explore deeper integrations with multi-modal visual analytics in future iterations.

Summary updated

BibTeX
@misc{shi2026nl,
  author = {Boshen Shi and Kexin Yang and Yuanbo Yang and Guanguang Chang and Ce Chi and Zhendong Wang and Xing Wang and Junlan Feng},
  title = {{NL2Dashboard: A Lightweight and Controllable Framework for Generating Dashboards with LLMs}},
  year = {2026},
  eprint = {2601.06126},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.06126},
}
Figure