Companion model release for the paper
"AG-REPA: Causal Layer Selection for Representation Alignment in Audio Flow Matching"Pengfei Zhang, Tianxin Xie, Minghao Yang, Li Liu — ICML 2026.
This repository hosts the final AG-REPA checkpoints for the unified TTS+TTA
Flow-Matching framework described in the paper — everything you need to run inference. The
training/inference source code lives on GitHub:
zpforlove/AG-REPA.
This is a slim, inference-ready release: only the best/final (epoch-3) checkpoints
of the AG-REPA models are included. The no-alignment baselines, intermediate epochs,
and the FoG-A / LASP diagnostic artifacts are not bundled here — they can be
reproduced from the code (the attribution figures
are shown in the code README and the paper).
⚠️ Third-party base models are NOT included. The frozen BEATs and
CosyVoice-300M / ttsfrd models must be downloaded from their original sources — see
§3.
Total size: ~15 GB.
1. The system in brief
A two-stage cascade (see the code repository for
full detail):
Stage 1 — Autoregressive LLM (Qwen3-0.6B-Base, fine-tuned) predicts discrete
acoustic tokens (S³ for speech, AudioSet for audio) from text + reference style.
Stage 2 — Flow-Matching DiT transforms noise into a mel-spectrogram conditioned on
those tokens; Vocos decodes the mel to a 24 kHz waveform.
AG-REPA aligns the causally dominant DiT layers (found by the FoG-A probe:
speech L1/L9/L5, audio L1/L21/L9) to the Whisper (speech) / BEATs (audio) teachers, with
attribution-proportional weights — yielding the quality gains in §5.
single vs dual codebook — Config A (S³ + AudioSet tokens) vs Config B
(Config A + interleaved BEATs tokens). Pick whichever matches your use case.
Checkpoint filenames encode the training epoch, the Flow-Matching validation
loss, and the optimizer step, e.g. best_ep3_val_loss_0.2161_step869394.pt.
val_loss is the FM regression loss used for checkpoint selection — not the FAD
reported in the paper (FAD is computed post-hoc on VGGish embeddings at 16 kHz).
3. What each component is
Component
In this repo?
Source / architecture
Used by
audioset_tokenizer/*.pth
✅
RepCodec VQ-VAE (vocab 4096), trained on BEATs features
Discretises general audio into AudioSet tokens
llm/*
✅
Qwen3-0.6B-Base, fine-tuned on LibriSpeech + AudioSet
The Whisper semantic teacher is loaded directly from the openai-whisper package
(large-v3) at training time and is not needed for inference.
After downloading, place the base models under a local pretrained_base_models/ folder
(or directly into the code variant's pretrained_models/, see §4).
4. Using the weights with the code
Clone the code repository, download this model repo,
and download the base models from their upstream sources. The code (per variant directory)
expects a pretrained_models/ folder and a checkpoints/{ast,llm,flow}/ tree.
Pairings published here (the AG-REPA models — use the code's REPA_* variants):
Code variant
Stage-1 LLM
Stage-2 Flow-Matching
REPA_single_codebook
llm/single_codebook
flow_matching/agrepa_single_codebook
REPA_dual_codebook
llm/dual_codebook
flow_matching/agrepa_dual_codebook
bash
1# 1) download this model repo2hf download AustinZhang/AG-REPA --local-dir AG-REPA-Model
34# 2) wire it into the AG-REPA single-codebook code variant5cd AG-REPA/REPA_single_codebook
6ln -s /path/to/pretrained_base_models pretrained_models # BEATs / CosyVoice (see §3)7mkdir -p checkpoints
8ln -s /path/to/AG-REPA-Model/audioset_tokenizer checkpoints/ast
9ln -s /path/to/AG-REPA-Model/llm/single_codebook checkpoints/llm
10ln -s /path/to/AG-REPA-Model/flow_matching/agrepa_single_codebook checkpoints/flow
Then run inference as described in the
code README.
Want the no-alignment baselines, all training epochs, or the FoG-A/LASP diagnostics?
They are not in this slim release — train them from the code
(the Fusion_* variants produce the baselines and the diagnostic artifacts).
5. Headline results (from the paper)
AG-REPA vs. the best fixed-layer REPA baseline on the unified DiT, Config B (Table 2):
Method
Speech WER ↓
Speech FAD ↓
Audio FAD ↓
Speech MOS ↑
Audio MOS ↑
Baseline (None)
5.82
1.84
3.45
3.62
3.45
REPA @ L4,8,12 (best fixed)
4.93
1.45
2.88
3.92
3.77
AG-REPA (Top-3)
3.45
1.29
2.56
4.12
3.94
The method targets the Store–Contribute Dissociation: the deep layers that store the
most information (Cos-SEM top-3 = L24/L18/L17) are not the shallow layers that causally
contribute to the velocity field (FoG-A top-3 = L1/L9/L5 for speech, L1/L21/L9 for audio).
AG-REPA aligns the latter. AG-REPA also transfers across architectures (Voicebox, CosyVoice,
F5-TTS). See the paper and the code README for
the full attribution figures (Figure 1 / Table 1).
6. Licensing & responsible use
The trained AG-REPA checkpoints in this repository are released under the MIT License.
Note that the Stage-1 LLM checkpoints (llm/*) are fine-tuned from Qwen3-0.6B-Base
(Apache-2.0); downstream use should also respect that upstream license. The third-party
BEATs and CosyVoice-300M / ttsfrd base models are not redistributed here and
retain their own original licenses — obtain them from the sources in §3.
As noted in the paper's Impact Statement, high-fidelity audio generation and voice cloning
carry risks (deepfakes, impersonation, voice spoofing). Responsible deployment should
incorporate audio watermarking, spoofing detection, and restricted access to voice-cloning
capabilities.
7. Citation
bibtex
1@inproceedings{zhang2026agrepa,
2 title = {AG-REPA: Causal Layer Selection for Representation Alignment in Audio Flow Matching},
3 author = {Zhang, Pengfei and Xie, Tianxin and Yang, Minghao and Liu, Li},
4 booktitle = {Proceedings of the International Conference on Machine Learning (ICML)},
5 year = {2026}
6}