hila-chefer/RobustViT
[NeurIPS 2022] Official PyTorch implementation of Optimizing Relevance Maps of Vision Transformers Improves Robustness. This code allows to finetune the explainability maps of Vision Transformers to enhance robustness.
🔬 RobustViT – Tinh chỉnh bản đồ giải thích để làm Vision Transformer vững vàng hơn
Tinh chỉnh ngắn bằng 3 mẫu dữ liệu, cải thiện đáng kể robustness của ViT.
Đây là bản cài đặt PyTorch chính thức của nghiên cứu Optimizing Relevance Maps of Vision Transformers Improves Robustness trình bày tại NeurIPS 2022. Thay vì huấn luyện lại toàn bộ mô hình, RobustViT tập trung tinh chỉnh các bản đồ relevance (attention maps) để mô hình tập trung vào nền (foreground) thay vì nền (background), từ đó cải thiện khả năng phân loại ổn định trước nhiễu.
✨ Điểm nổi bật
- Fintune relevance maps: Tinh chỉnh trực tiếp bản đồ giải thích thay vì trọng số toàn mô hình.
- Sử dụng rất ít dữ liệu: Chỉ cần 3 mẫu dữ liệu được gán nhãn từ 500 lớp.
- Cải thiện robustness: Áp dụng hiệu quả trên nhiều kích thước mô hình và kỹ thuật huấn luyện khác nhau.
- Hỗ trợ nhiều kiến trúc: Bao gồm ViT AugReg, ViT vanilla và DeiT.
- Đánh giá đa dạng: Kiểm tra trên các bộ dữ liệu khó như ImageNet-A, ImageNet-R, ObjectNet, SI-Score.
- Cung cấp mô hình đã tinh chỉnh: Tải về và chạy thử ngay qua Colab hoặc HuggingFace Spaces.
- So sánh với baseline: Hỗ trợ tái tạo kết quả của GradMask và RRR.
💡 Vì sao đáng chú ý
RobustViT khác với cách tiếp cận thông thường là tăng cường dữ liệu hoặc điều chỉnh trọng số mô hình, mà trực tiếp tối ưu bản đồ attention để mô hình tập trung vào vùng quan trọng. Phương pháp này hiệu quả ngay cả khi mô hình đã được huấn luyện với data augmentation và regularization mạnh, làm nó trở thành một hướng tiếp cận nhẹ nhàng nhưng mạnh mẽ cho việc cải thiện tính ổn định của Vision Transformer.
#AI #VisionTransformer #Explainability #Robustness #NeurIPS2022 #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Self-Supervised Vision Transformers Learn Visual Concepts in Histopathology (LMRL Workshop, NeurIPS 2021)
Introduction I put this collection together after spending a lot of time reading what I think are some of the best books on AI, machine learning, deep learning, probabilistic modeling, optimization, reinforcement learning, transformers, LLMs, validation, and fairness. I want to share this with the community for one simple reason: I want to give people a structured path through the books that actually help them understand things deeply, instead of sending them through random… See the full description on the dataset page: https://huggingface.co/datasets/Ujjwal-Tyagi/ai-ml-foundations-book-collection.
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Reverse engineer anything with agents, from app behavior down to native binaries.
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
A complete computer science study plan to become a software engineer.
An agentic skills framework & software development methodology that works.
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.