LLM as Dataset Analyst: Subpopulation Structure Discovery with Large Language Model
Yulin Luo, Ruichuan An, Bocheng Zou, Yiming Tang, Jiaming Liu, Shanghang Zhang
TL;DR
Subpopulation distributions hidden in datasets are crucial for robust ML but remain understudied. The paper introduces SSD-LLM, a pipeline that uses an MLLM to generate informative image captions and an LLM to autonomously discover and refine a four-layer subpopulation structure (class–dimension–attribute–subpopulation), enabling automated downstream tasks. The method proceeds through caption extraction, Criteria Initialization, Criteria Refinement, and Subpopulation Assignment, followed by Task-specific Tuning for Dataset Subpopulation Organization, Subpopulation Shift, and Slice Discovery. Empirical results show SSD-LLM achieving competitive or superior performance across these tasks, including improvements in worst-group accuracy and slice-topic consistency, with ablations highlighting the impact of refinement and prompt design. This work provides a principled, automated framework for interpretable, data-centric analysis of subpopulations and paves the way for fairer, more balanced dataset construction and evaluation in multimodal settings.
Abstract
The distribution of subpopulations is an important property hidden within a dataset. Uncovering and analyzing the subpopulation distribution within datasets provides a comprehensive understanding of the datasets, standing as a powerful tool beneficial to various downstream tasks, including Dataset Subpopulation Organization, Subpopulation Shift, and Slice Discovery. Despite its importance, there has been no work that systematically explores the subpopulation distribution of datasets to our knowledge. To address the limitation and solve all the mentioned tasks in a unified way, we introduce a novel concept of subpopulation structures to represent, analyze, and utilize subpopulation distributions within datasets. To characterize the structures in an interpretable manner, we propose the Subpopulation Structure Discovery with Large Language Models (SSD-LLM) framework, which employs world knowledge and instruction-following capabilities of Large Language Models (LLMs) to linguistically analyze informative image captions and summarize the structures. Furthermore, we propose complete workflows to address downstream tasks, named Task-specific Tuning, showcasing the application of the discovered structure to a spectrum of subpopulation-related tasks, including dataset subpopulation organization, subpopulation shift, and slice discovery. Furthermore, we propose complete workflows to address downstream tasks, named Task-specific Tuning, showcasing the application of the discovered structure to a spectrum of subpopulation-related tasks, including dataset subpopulation organization, subpopulation shift, and slice discovery.
