Home

Awesome

Customize Your Visual Autoregressive Recipe with Set Autoregressive Modeling

<div align="center">

arXiv  project page 

</div> <p align="center"> <img src="assets/visualization.png" width="720"> </p>

This repository includes the official pytorch implementation of Set AutoRregressive Modeling (SAR), presented in our paper:

Customize Your Visual Autoregressive Recipe with Set Autoregressive Modeling

Wenze Liu, Le Zhuo, Yi Xin, Sheng Xia, Peng Gao, Xiangyu Yue

MMLab, CUHK & Shanghai AI Lab & Nanjing University

Currently we are working to organize the code.

Update

Introduction

Welcome to Set AutoRegressive Modeling (SAR)! SAR extends causal learning from next-token prediction to the next-set setting. We show that AR and MAR are unified under the SAR paradigm with special choices of sequence order and output intervals. Further, a seamless pathway between AR and MAR is built by manipulating the order and intervals, where models trained in the transition states enjoy both merits of AR and MAR, such as few-step inference, KV cache acceleration, image editing, etc.

Features

Getting Started

Prerequisites

We run the code on:

Acknowledgements

The code is built upon LlamaGen, MAR, VAR and MAE (PyTorch). Thank for their great work.

Citation

@article{liu2024customize,
  title={Customize Your Visual Autoregressive Recipe with Set Autoregressive Modeling},
  author={Liu, Wenze and Zhuo, Le and Xin, Yi and Xia, Sheng and Gao, Peng and Yue, Xiangyu},
  journal={arXiv preprint arXiv:2410.10511},
  year={2024}
}

You can contact me via email wzliu@link.cuhk.edu.hk if any questions.