SlicerChat: Building a Local Chatbot for 3D Slicer
Not on the map. Why?
Abstract (arXiv)
3D Slicer is a powerful platform for 3D data visualization and analysis, but has a significant learning curve for new users. Generative AI applications, such as ChatGPT, have emerged as a potential method of bridging the gap between various sources of documentation using natural language. The limited exposure of LLM services to 3D Slicer documentation, however, means that ChatGPT and related services tend to suffer from significant hallucination. The objective of this project is to build a chatbot architecture, called SlicerChat, that is optimized to answer 3D Slicer related questions and able to run locally using an open-source model. The core research questions explored in this work revolve around the answer quality and speed differences due to fine-tuning, model size, and the type of domain knowledge included in the prompt. A prototype SlicerChat system was built as a custom extension in 3D Slicer based on the Code-Llama Instruct architecture. Models of size 1.1B, 7B and 13B were fine-tuned using Low rank Adaptation, and various sources of 3D Slicer documentation were compiled for use in a Retrieval Augmented Generation paradigm. Testing combinations of fine-tuning and model sizes on a benchmark dataset of five 3D Slicer questions revealed that fine-tuning had no impact on model performance or speed compared to the base architecture, and that larger models performed better with a significant speed decrease. Experiments with adding 3D Slicer documentation to the prompt showed that Python sample code and Markdown documentation were the most useful information to include, but that adding 3D Slicer scene data and questions taken from Discourse also improved model performance. In conclusion, this project shows the potential for integrating a high quality, local chatbot directly into 3D Slicer to help new users and experienced developers alike to more efficiently use the software.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 9 of its 12 references that are in the map. First posted on arXiv 5 Jun 2024.
Builds on
9 of 12 references.
References · 9
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Mistral 7Bcited by 3,164
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
- 2022TotalSegmentator: robust segmentation of 104 anatomical structures in CT imagescited by 613
- 2023SAMM (Segment Any Medical Model): A 3D Slicer Integration to SAMcited by 31
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025HybridRAG: A Practical LLM-based ChatBot Framework based on Pre-Generated Q&A over Raw Unstructured Documents
- 2025Chat3GPP: An Open-Source Retrieval-Augmented Generation Framework for 3GPP Documents
- 2023ChatGPT for Robotics: Design Principles and Model Abilities
- 20253D-MoRe: Unified Modal-Contextual Reasoning for Embodied Question Answering
- 2023Visual ChatGPT: Talking, Drawing and Editing with Visual Foundation Models
- 2023LLM-Grounder: Open-Vocabulary 3D Visual Grounding with Large Language Model as an Agent
- 2025DeepThink3D: Enhancing Large Language Models with Programmatic Reasoning in Complex 3D Situated Reasoning Tasks
- 2023ChatGPT is not all you need. A State of the Art Review of large Generative AI models