HiAR

Hierarchical Autoregressive Video Generation with Pipelined Parallel Inference

arXiv | Website | Code | Model


HiAR proposes hierarchical denoising for autoregressive video diffusion models, a paradigm shift from conventional block-first to step-first denoising order. By conditioning each block on context at a matched noise level, HiAR maximally attenuates error propagation while preserving temporal causality, achieving state-of-the-art long video generation (20s+) with significantly reduced quality drift.

Installation

Create a conda environment and install dependencies:

conda create -n hiar python=3.10 -y
conda activate hiar
pip install -r requirements.txt
pip install flash-attn --no-build-isolation

Quick Start

1. Download checkpoints

# Download Wan2.1 base model
huggingface-cli download Wan-AI/Wan2.1-T2V-1.3B --local-dir-use-symlinks False --local-dir wan_models/Wan2.1-T2V-1.3B

# Download HiAR checkpoint
mkdir -p ckpts
wget -O ckpts/hiar.pt https://huggingface.co/jackyhate/HiAR/resolve/main/hiar.pt

2. Inference

Generate short videos (~5 seconds, 21 latent frames):

python inference.py \
    --config_path configs/hiar.yaml \
    --checkpoint_path ckpts/hiar.pt \
    --data_path data/prompts.txt \
    --output_folder outputs/ \
    --num_output_frames 21 \
    --use_ema \
    --inference_method timestep_first

Generate long videos (~20 seconds, 81 latent frames):

python inference.py \
    --config_path configs/hiar.yaml \
    --checkpoint_path ckpts/hiar.pt \
    --data_path data/prompts.txt \
    --output_folder outputs/ \
    --num_output_frames 81 \
    --use_ema \
    --inference_method timestep_first

Pipelined Parallel Inference

HiAR's hierarchical denoising structure naturally admits pipelined parallel inference: each GPU handles one denoising stage, and blocks flow through a diagonal pipeline schedule.

# Requires exactly N GPUs for N denoising steps (default: 4)
torchrun --nproc_per_node=4 \
    scripts/pipeline_parallel_inference.py \
    --config_path configs/hiar.yaml \
    --checkpoint_path ckpts/hiar.pt \
    --prompt "A cat sitting on a windowsill watching the rain fall outside" \
    --output_path outputs/pipeline_output.mp4 \
    --num_output_frames 81

Discussion & Limitations

In essence, this method allows autoregressive video generation to mimic a bidirectional attention video denoising paradigm. For instance, the high-noise denoising stages only require coarse-grained context information. This design maximally reduces error accumulation while theoretically retaining sufficient information to maintain continuity. By scaling the training budget under the constraint of the Forward KL loss, we can achieve near-zero degradation in most scenarios, even enabling infinite generation (e.g., over 200 minutes). However, in some dynamic scenes, inter-frame jumping may still occur. We believe this is not an inherent limitation of the hierarchical denoising paradigm itself, but rather an issue of insufficient capacity in the 1.3B base model, as this denoising paradigm is considerably more challenging. We plan to further validate this paradigm on more powerful base models in the future.

Citation

@misc{zou2026hiarefficientautoregressivelong,
      title={HiAR: Efficient Autoregressive Long Video Generation via Hierarchical Denoising}, 
      author={Kai Zou and Dian Zheng and Hongbo Liu and Tiankai Hang and Bin Liu and Nenghai Yu},
      year={2026},
      eprint={2603.08703},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2603.08703}, 
}
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for jackyhate/HiAR

Finetuned
(32)
this model

Paper for jackyhate/HiAR