识别和解决机器学习(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.
Computer vision-based model for detecting turning lane features on Florida's public roadways
Florida A&M University–Florida State University College of Engineering(佛罗里达农工大学-佛罗里达州立大学工程学院);Florida State University(佛罗里达州立大学);University of North Florida(北佛罗里达大学);Iteris, Inc.(Iteris公司)
A Computer-aided Framework for Detecting Osteosarcoma in Computed Tomography Scans
Universidad Carlos III de Madrid, Departamento de Informática, ARCOS, Avenida de la Universidad, 30 (edificio Sabatini), 28911 Leganés (Madrid), España(卡洛斯三世大学马德里分校,信息学院,ARCOS,大学大道30号(萨巴蒂尼大楼),28911 Leganés(马德里),西班牙);Cinvestav Tamaulipas, Cd. Victoria, Tamaulipas, México(塔毛利帕斯大学,维克多城,塔毛利帕斯,墨西哥)