文本引导图像分类器的硬件弹性特性
Hardware Resilience Properties of Text-Guided Image Classifiers
AI总结:
提出利用 GPT-3 类别提示文本嵌入与 CLIP 文本编码器初始化分类层,在多种架构上以平均 0.3% 精度损失换取最高 14 倍硬件可靠性提升。
摘要:
本文提出了一种在瞬态硬件错误面前提高部署阶段图像分类模型可靠性的新方法。通过利用源自 GPT-3 的丰富文本嵌入(为每个类别提供问题提示)以及 CLIP 预训练文本编码器,我们研究了它们作为分类层初始化的影响。在最关键的层中,我们的方法在多种架构上实现了显著的 5.5 倍平均硬件可靠性提升(最高可达 14 倍),同时与 PyTorch 基线模型相比精度下降极小(平均 0.3%)。此外,我们的方法可与任意图像分类骨干网络无缝集成,在多种网络架构上展示了结果,降低了参数和 FLOPs 开销,并遵循一致的训练方案。本研究为增强图像分类模型抵御硬件故障的鲁棒性提供了一种实用且高效的解决方案,并对该领域的未来研究具有潜在启示。代码和模型已发布于 https://github.com/TalalWasim/TextGuidedResilience。
英文摘要:
This paper presents a novel method to enhance the reliability of image classification models during deployment in the face of transient hardware errors. By utilizing enriched text embeddings derived from GPT-3 with question prompts per class and CLIP pretrained text encoder, we investigate their impact as an initialization for the classification layer. Our approach achieves a remarkable $5.5\times$ average increase in hardware reliability (and up to $14\times$) across various architectures in the most critical layer, with minimal accuracy drop ($0.3\%$ on average) compared to baseline PyTorch models. Furthermore, our method seamlessly integrates with any image classification backbone, showcases results across various network architectures, decreases parameter and FLOPs overhead, and follows a consistent training recipe. This research offers a practical and efficient solution to bolster the robustness of image classification models against hardware failures, with potential implications for future studies in this domain. Our code and models are released at https://github.com/TalalWasim/TextGuidedResilience.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。