RepositoryJupyter Notebook
hila-chefer

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.

134sao
14fork
0issue
1lượt xem

🔬 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.

RepositoryJupyter Notebook
Richarizardd/Self-Supervised-ViT-Path

Self-Supervised Vision Transformers Learn Visual Concepts in Histopathology (LMRL Workshop, NeurIPS 2021)

146
Jun 9, 2022
Dataset
Ujjwal-Tyagi/ai-ml-foundations-book-collection

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.

♥0
3.5k
Sep 10, 2026
RepositoryPython
egyptdj/stagin

STAGIN: Spatio-Temporal Attention Graph Isomorphism Network

114
Jul 16, 2023
RepositoryPython
Significant-Gravitas/AutoGPT

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.

188.2k
Nov 29, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

489.3k
Dec 4, 2026
RepositoryTypeScript
openclaw/openclaw

The AI that really does things. Any OS. Any Platform. The lobster way. 🦞

395.6k
Dec 2, 2026
Repository
jwasham/coding-interview-university

A complete computer science study plan to become a software engineer.

365.4k
Nov 7, 2026
RepositoryShell
obra/superpowers

An agentic skills framework & software development methodology that works.

332.7k
Nov 28, 2026
RepositoryJavaScript
affaan-m/ECC

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

316.4k
Dec 1, 2026