Code Monkey home page Code Monkey logo

d-igpt's Introduction

D-iGPT

This repository is the official implementation of our Rejuvenating image-GPT as Strong Visual Representation Learners

Introduction

This paper enhances image-GPT (iGPT), one of the pioneering works that introduce autoregressive pretraining to predict next pixels for visual representation learning. Two simple yet essential changes are made. First, we shift the prediction target from raw pixels to semantic tokens, enabling a higher-level understanding of visual content. Second, we supplement the autoregressive modeling by instructing the model to predict not only the next tokens but also the visible tokens. This pipeline is particularly effective when semantic tokens are encoded by discriminatively trained models, such as CLIP. We introduce this novel approach as D-iGPT. Extensive experiments showcase that D-iGPT excels as a strong learner of visual representations: A notable achievement of D-iGPT is its compelling performance on the ImageNet-1K dataset --- by training on publicly available datasets, D-iGPT achieves 89.5% top-1 accuracy with a vanilla ViT-Large model. This model also shows strong generalization on the downstream task and robustness on out-of-distribution samples.

method

Model Training

We train our base size D-iGPT on torch+GPU and large size D-iGPT on torch_xla+TPU. Please refer D-iGPT and D-iGPT_torchxla (coming soon) resplectively.

Performance

Performance comparison on ImageNet-1K classification and ADE20K Semantic Segmentation.

Method Model Size Top-1 mIoU
MAE ViT-B 83.6 48.1
RandSac ViT-B 83.7 -
EVA ViT-B 85.5 53.3
D-iGPT ViT-B 86.2 53.8

The torch+GPU code produces better results. This is likely caused by the system difference between torch+GPU and torchxla+TPU.

ViT-Base
torch+GPU 86.2
torchxla+TPU 85.9

Performance comparison on ImageNet-1K classification with IN-21K as training data (if avaiable).

Method Model Size Top-1
MAE ViT-L 85.9
BEiT ViT-L 88.6
D-iGPT ViT-L 89.5

Checkpoint

The pretrained models are available at [Google Drive]

Acknowledgement

We are very grateful that this work is supported by TPU Research Cloud (TRC) program and Google Cloud Research Credits program.

โœ Citation

If you have any question, feel free to contact Sucheng Ren :)

d-igpt's People

Contributors

oliverrensu avatar cihangxie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.