Andy004 commited on
Commit
ab41ea6
·
verified ·
1 Parent(s): 59851f0

Fix teacher bitrate, SIGReg training note, citation

Browse files

- teacher config: bitrate 2.85 -> 4.8 kbps (128 dims x 3 bits x 12.5 Hz), quantizer is FSQ not Q2D2, PESQ 3.14 / ESTOI 0.874 on the 50-utterance set, note that only MRF kernels 3/7/11 are built
- sigreg config and model card: trained with a GAN discriminator; 50-utterance scores PESQ 2.33 / ESTOI 0.76
- main config: paper Table 1; no discriminator, no distillation loss
- model card: citation is @misc (APSIPA version was not accepted), multilingual SSL comparison stated correctly, unused EMA target and predictor weights noted

README.md CHANGED
@@ -14,10 +14,10 @@ language:
14
 
15
  # jepa-q2d2
16
 
17
- a 1.6 kbps neural speech codec. a jepa (joint-embedding predictive architecture) encoder feeds q2d2, a geometry-aware 2d rhombic-lattice quantizer, and a hifi-gan decoder. the codec objective is trained without any adversarial loss (a frozen wavlm perceptual loss is used while training the decoder).
18
 
19
  - code: https://github.com/anant-004/jepa-q2d2
20
- - paper: apsipa asc 2026
21
 
22
  ## models
23
 
@@ -26,16 +26,16 @@ each folder has `pytorch_model.pt`, `model.safetensors`, and `config.json`.
26
  | folder | operating point | quantizer | bitrate | quality |
27
  |--------|-----------------|-----------|---------|---------|
28
  | `jepa-q2d2-cd64-12.5hz` | 12.5 hz, code dim 64 (main) | q2d2 | 1.6 kbps (100 tok/s) | pesq 2.53, estoi 0.80 |
29
- | `jepa-q2d2-sigreg-cd32-25hz` | 25 hz, code dim 32, sigreg | q2d2 | 1.6 kbps (100 tok/s) | estoi 0.79 |
30
- | `teacher-cd128-fsq-12.5hz` | 12.5 hz, code dim 128 | fsq | ~2.85 kbps (237.5 tok/s) | pesq ~2.91 |
31
 
32
- quality is on a fixed 50-utterance librilight set. estoi is extended stoi, comparable only within this paper's pipeline. the main cd64 model is ahead of encodec at a comparable rate and ahead of mimi on pesq. the sigreg model is the co-design point: at the aggressive 25 hz / cd32 setting the codec collapses unless the encoder distribution is gaussianized with sigreg. the teacher is the higher-rate fsq codec used to distill the cd64 student.
33
 
34
  ## emergent properties
35
 
36
  the codec is trained on english read speech only and never sees language or emotion labels. the encoder features still pick up structure it was not supervised on.
37
 
38
- cross-lingual: a 5-nn probe on frozen pre-quantization features separates 6 fleurs languages at 0.85 (chance 0.167), ahead of mimi 0.63, encodec 0.61, dac 0.45, and close to multilingual ssl models. cluster nmi against language is higher too (0.26 vs encodec 0.10, dac 0.07). the utterance-disjoint number is the same (0.85).
39
 
40
  ![cross-lingual separability](assets/crosslingual_summary.png)
41
 
@@ -58,7 +58,7 @@ z_q = model.encode(x)[0] # discrete q2d2 tokens
58
  recon = model.decode(z_q) # 24 khz waveform
59
  ```
60
 
61
- model code lives in the github repo. the released checkpoints already include the fine-tuned encoder, so inference needs only these files plus the repo code.
62
 
63
  ## training data
64
 
@@ -67,11 +67,11 @@ librilight, english read speech, 24 khz. the cross-lingual structure above is ev
67
  ## citation
68
 
69
  ```bibtex
70
- @inproceedings{shukla2026jepaq2d2,
71
- title = {JEPA-Q2D2: A Low-Bitrate Speech Codec with Emergent Cross-Lingual Structure},
72
- author = {Shukla, Anant and Anand, Aman and Shakya, Suryansh and Bharti, Vatsal},
73
- booktitle = {Proc. APSIPA ASC},
74
- year = {2026},
75
  }
76
  ```
77
 
 
14
 
15
  # jepa-q2d2
16
 
17
+ a 1.6 kbps neural speech codec. a jepa (joint-embedding predictive architecture) encoder feeds q2d2, a geometry-aware 2d rhombic-lattice quantizer, and a hifi-gan-style decoder. the main codec is trained without any adversarial loss (a frozen wavlm perceptual loss is used while training the decoder).
18
 
19
  - code: https://github.com/anant-004/jepa-q2d2
20
+ - paper: extended abstract in the github repo (`paper/sltc2026/main.pdf`)
21
 
22
  ## models
23
 
 
26
  | folder | operating point | quantizer | bitrate | quality |
27
  |--------|-----------------|-----------|---------|---------|
28
  | `jepa-q2d2-cd64-12.5hz` | 12.5 hz, code dim 64 (main) | q2d2 | 1.6 kbps (100 tok/s) | pesq 2.53, estoi 0.80 |
29
+ | `jepa-q2d2-sigreg-cd32-25hz` | 25 hz, code dim 32, sigreg | q2d2 | 1.6 kbps (100 tok/s) | pesq 2.33, estoi 0.76 |
30
+ | `teacher-cd128-fsq-12.5hz` | 12.5 hz, code dim 128 | fsq | 4.8 kbps (237.5 tok/s) | pesq 3.14, estoi 0.87 |
31
 
32
+ quality is on a fixed 50-utterance librilight set. estoi is extended stoi, comparable only within this paper's pipeline. the main cd64 model is ahead of encodec at a comparable rate and ahead of mimi on pesq, behind mimi on estoi. the sigreg model is the co-design point: in our runs, the codec at the aggressive 25 hz / cd32 setting collapsed unless the encoder distribution was gaussianized with sigreg. unlike the main model, it was trained with a gan discriminator. the teacher is the higher-rate fsq codec (128 dims with 8 levels each, so 4.8 kbps). a separate cd64 run was distilled from it; the released cd64 model was trained without the distillation loss.
33
 
34
  ## emergent properties
35
 
36
  the codec is trained on english read speech only and never sees language or emotion labels. the encoder features still pick up structure it was not supervised on.
37
 
38
+ cross-lingual: a 5-nn probe on frozen pre-quantization features separates 6 fleurs languages at 0.85 (chance 0.167), ahead of mimi 0.63, encodec 0.61, dac 0.45 and the multilingual ssl models we tried (xls-r 0.75, mhubert-147 0.61). only uncompressed english wav2vec 2.0 base is higher (0.93). cluster nmi against language is higher too (0.26 vs encodec 0.10, dac 0.07). the utterance-disjoint number is the same (0.85).
39
 
40
  ![cross-lingual separability](assets/crosslingual_summary.png)
41
 
 
58
  recon = model.decode(z_q) # 24 khz waveform
59
  ```
60
 
61
+ model code lives in the github repo. the released checkpoints already include the fine-tuned encoder, so inference needs only these files plus the repo code. the files also hold the stage 1 ema target encoder and predictor (about 121m parameters), which inference does not use.
62
 
63
  ## training data
64
 
 
67
  ## citation
68
 
69
  ```bibtex
70
+ @misc{shukla2026jepaq2d2,
71
+ title = {JEPA-Q2D2: A Low-Bitrate Speech Codec with Emergent Cross-Lingual Structure},
72
+ author = {Shukla, Anant and Anand, Aman and Shakya, Suryansh and Bharti, Vatsal},
73
+ year = {2026},
74
+ howpublished = {\url{https://github.com/anant-004/jepa-q2d2}},
75
  }
76
  ```
77
 
jepa-q2d2-cd64-12.5hz/config.json CHANGED
@@ -18,6 +18,6 @@
18
  "pesq": 2.5503782987594605
19
  },
20
  "wandb_run_id": null,
21
- "note": "Main reconstruction codec, paper Table II: PESQ 2.53 / ESTOI 0.80 on the fixed 50-utt protocol.",
22
  "architecture": "JEPA encoder + Q2D2 lattice quantizer + HiFi-GAN decoder"
23
- }
 
18
  "pesq": 2.5503782987594605
19
  },
20
  "wandb_run_id": null,
21
+ "note": "Main reconstruction codec, paper Table 1: PESQ 2.53 / ESTOI 0.80 on the fixed 50-utterance LibriLight set. Trained without a discriminator and without the distillation loss.",
22
  "architecture": "JEPA encoder + Q2D2 lattice quantizer + HiFi-GAN decoder"
23
+ }
jepa-q2d2-sigreg-cd32-25hz/config.json CHANGED
@@ -18,6 +18,6 @@
18
  "pesq": 2.2584927916526794
19
  },
20
  "wandb_run_id": "r0mj5oy5",
21
- "note": "SIGReg co-design model (lambda_sigreg=0.05), 25Hz/cd32 aggressive regime, ESTOI 0.79 where the no-SIGReg control collapses.",
22
  "architecture": "JEPA encoder + Q2D2 lattice quantizer + HiFi-GAN decoder"
23
- }
 
18
  "pesq": 2.2584927916526794
19
  },
20
  "wandb_run_id": "r0mj5oy5",
21
+ "note": "SIGReg co-design model (lambda_sigreg=0.05), 25Hz/cd32 aggressive regime, trained with a GAN discriminator (unlike the main model). ESTOI 0.79 on the training-time eval (ESTOI 0.76 / PESQ 2.33 on the fixed 50-utterance set); the no-SIGReg control collapses.",
22
  "architecture": "JEPA encoder + Q2D2 lattice quantizer + HiFi-GAN decoder"
23
+ }
teacher-cd128-fsq-12.5hz/config.json CHANGED
@@ -34,13 +34,19 @@
34
  23,
35
  32
36
  ],
 
 
 
 
 
 
37
  "use_decoder_gaatn": false,
38
  "frame_rate_hz": 12.5,
39
- "bitrate_kbps": 2.85,
40
  "tokens_per_second": 237.5,
41
  "step": 400000,
42
  "metrics": null,
43
  "wandb_run_id": "fsm32yhe",
44
- "note": "OG cd128 FSQ codec at 12.5 Hz (237.5 tok/s, 19 groups). Higher-rate teacher used to distill the 1.6 kbps cd64 student; PESQ ~2.91 in paper records.",
45
- "architecture": "JEPA encoder + Q2D2 lattice quantizer + HiFi-GAN decoder"
46
- }
 
34
  23,
35
  32
36
  ],
37
+ "hifi_kernels_built": [
38
+ 3,
39
+ 7,
40
+ 11
41
+ ],
42
+ "hifi_kernels_note": "MRFBlock zips the kernel list with 3 dilation sets, so only the first 3 kernels are built.",
43
  "use_decoder_gaatn": false,
44
  "frame_rate_hz": 12.5,
45
+ "bitrate_kbps": 4.8,
46
  "tokens_per_second": 237.5,
47
  "step": 400000,
48
  "metrics": null,
49
  "wandb_run_id": "fsm32yhe",
50
+ "note": "OG cd128 FSQ codec at 12.5 Hz: 128 dims x 3 bits x 12.5 Hz = 4.8 kbps, packed as 19 tokens per frame (237.5 tok/s). PESQ 3.14 / ESTOI 0.874 on the fixed 50-utterance LibriLight set. A separate cd64 run (not released) was distilled from it.",
51
+ "architecture": "JEPA encoder + FSQ (8 levels on each of 128 dims) + HiFi-GAN-style decoder"
52
+ }