[Paper Review] Visualization in the Era of Artificial Intelligence: Experiments for Creating Structural Visualizations by Prompting Large Language Models
This paper explores using large language models (LLMs) like GPT-4 to generate structural 2D and 3D visualizations via natural language prompts, producing executable code in SVG, HTML/JS, and Python for Blender. It demonstrates that LLMs can generate accurate, tool-ready visualizations with minimal user expertise, enabling non-experts to create complex visualizations programmatically.
Large Language Models (LLMs) have revolutionized natural language processing by generating human-like text and images from textual input. However, their potential to generate complex 2D/3D visualizations has been largely unexplored. We report initial experiments showing that LLMs can generate 2D/3D visualizations that may be used for legal visualization. Further research is needed for complex 2D visualizations and 3D scenes. LLMs can become a powerful tool for many industries and applications, generating complex visualizations with minimal training.
Motivation & Objective
- To investigate whether large language models can generate structural visualizations using only natural language prompts.
- To evaluate the feasibility of using LLMs to produce machine-executable code for 2D and 3D visualization tools without manual coding.
- To explore the potential of LLMs in supporting structural legal visualizations, reducing reliance on specialized modeling expertise.
- To assess the quality and usability of LLM-generated visualizations in real-world tools like SVG viewers, web browsers, and Blender.
Proposed method
- Using GPT-4 to generate SVG code for 2D visualizations based on natural language prompts, such as 'two trees connected by a black line'.
- Generating HTML/JS code using the Three.js library to render 3D scenes in web browsers from textual descriptions.
- Producing Python scripts for Blender’s scripting interface to create and position 3D objects, including lights and cameras, based on prompts.
- Testing prompts with increasing complexity, from simple scenes to scenes with multiple objects like houses, trees, and cars.
- Evaluating output by executing the generated code in respective environments (SVG viewers, browsers, Blender) to verify correctness and visual fidelity.
- Using structured prompts that strictly request only code enclosed in triple backticks, without explanations, to ensure machine-readability.
Experimental results
Research questions
- RQ1Can large language models generate accurate and executable 2D visualizations using only natural language prompts?
- RQ2To what extent can LLMs produce functional 3D visualizations for web-based environments using libraries like Three.js?
- RQ3Can LLMs generate complex 3D scenes for dedicated 3D modeling tools like Blender using only textual descriptions?
- RQ4How does the quality and structural accuracy of LLM-generated visualizations compare to manually created versions?
- RQ5What are the limitations of current LLMs in generating complex, spatially coordinated visualizations involving multiple 3D objects?
Key findings
- GPT-4 successfully generated correct and executable SVG code for 2D visualizations, such as two connected trees, which rendered accurately in standard viewers.
- The model generated functional HTML/JS code using Three.js that correctly displayed a 3D house with lighting and camera positioning in a web browser.
- Python scripts for Blender were generated that correctly created 3D objects, lights, and cameras, and could be executed directly in Blender’s scripting environment.
- While basic 3D scenes were generated accurately, more complex scenes with multiple objects (e.g., a car and arrow) showed limitations, with abstract or unrecognizable representations.
- The quality of 2D visualizations was high and closely matched the prompt descriptions, indicating strong potential for structural legal visualizations.
- The experiments revealed that precise spatial relationships in 3D require extensive and detailed prompts, which remain challenging for current LLMs to handle consistently.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.