arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.14141cs.CVcs.AI
收藏

TorchTraceAP: 一种新的基准数据集,用于检测计算机视觉模型中的性能反模式

TorchTraceAP: A New Benchmark Dataset for Detecting Performance Anti-Patterns in Computer Vision Models

University of California, Irvine(加州大学尔湾分校);Meta;University of California, Riverside(加州大学河滨分校)

Hanning Chen, Keyu Man, Kevin Zhu, Chenguang Zhu, Haonan Li, Tongbo Luo, Xizhou Feng, Wei Sun, Sreen Tallam, Mohsen Imani, Partha Kanuparthy

AI总结:

TorchTraceAP提出了一种新的基准数据集和迭代方法,用于提升ML模型检测计算机视觉模型轨迹中反模式的能力。

摘要:

识别和解决机器学习(ML)模型中的性能反模式对于高效训练和推理至关重要,但通常需要跨系统基础设施、ML模型和内核开发的深入专业知识。尽管大型科技公司依赖专门的ML基础设施工程师来分析torch轨迹和基准,但这种资源密集型的工作流程在一般计算机视觉研究者中难以获得。其中, pinpointing problematic trace segments within lengthy execution traces 剩余最耗时的任务,并且目前的ML模型,包括LLMs,难以自动化处理。在本工作中,我们提出了第一个专门设计用于评估和改进ML模型检测轨迹中反模式能力的基准数据集。我们的数据集包含超过600个PyTorch轨迹,来自多种计算机视觉模型的分类、检测、分割和生成,在多个硬件平台上收集。我们还提出了一种新的迭代方法:一个轻量级的ML模型首先检测具有反模式的轨迹段,随后由大型语言模型(LLM)进行细粒度分类和针对性反馈。实验结果表明,我们的方法在检测反模式区域方面显著优于无监督聚类和基于规则的统计技术。我们的方法也有效补偿了LLM的有限上下文长度和推理效率问题。

英文摘要:

Identifying and addressing performance anti-patterns in machine learning (ML) models is critical for efficient training and inference, but it typically demands deep expertise spanning system infrastructure, ML models and kernel development. While large tech companies rely on dedicated ML infrastructure engineers to analyze torch traces and benchmarks, such resource-intensive workflows are largely inaccessible to computer vision researchers in general. Among the challenges, pinpointing problematic trace segments within lengthy execution traces remains the most time-consuming task, and is difficult to automate with current ML models, including LLMs. In this work, we present the first benchmark dataset specifically designed to evaluate and improve ML models' ability to detect anti patterns in traces. Our dataset contains over 600 PyTorch traces from diverse computer vision models classification, detection, segmentation, and generation collected across multiple hardware platforms. We also propose a novel iterative approach: a lightweight ML model first detects trace segments with anti patterns, followed by a large language model (LLM) for fine grained classification and targeted feedback. Experimental results demonstrate that our method significantly outperforms unsupervised clustering and rule based statistical techniques for detecting anti pattern regions. Our method also effectively compensates LLM's limited context length and reasoning inefficiencies.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑