Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Train speech task with IBQ, but the codebook may collapse to a few values(quant_loss -> 0) #51

Closed
yufan-aslp opened this issue Mar 11, 2025 · 1 comment

Comments

@yufan-aslp
Copy link

We introduced IBQ into speech-related tasks to model the intermediate hidden layer features of the speech encoder. However, during training, the quantization loss suddenly drops to zero at a certain stage, resulting in codebook collapse. Have you encountered a similar issue on your side?

@ShiFengyuan1999
Copy link
Collaborator

Hi @yufan-aslp,
We did not observe this phenomenon during training on images. The sudden drop in quantization loss to zero may indicate that the model is overfitting to a very small subset of codes. To investigate this, you can print the selected indices during training and monitor the codebook usage. If this is indeed the case, we recommend modifying training hyperparameters such as the learning rate and loss weights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants