#speecht5
GhostWord: A Fine-Grained Backdoor Attack on Automatic Speech Recognition

Mojtaba Nafez, Mobina Poulaei, Kiarash Kiani Feriz et al.

Action editor: Li Li

https://openreview.net/forum?id=vngoPfQCJf

#ghostword #backdoors #speecht5
October 22, 2026 at 12:21 PM
Inconsistent SpeechT5 Sinusoidal Positional Embedding weight tensor shape in fine-tuning run sessions
I know you’re facing with the `SpeechT5SinusoidalPositionalEmbedding` seems related to how positional embeddings are handled when using multiple GPUs during fine-tuning. I will give you some tips for your fine-tuning 1. **Multiple GPUs** : When using two GPUs, the model might split the data differently, which could lead to mismatched tensor sizes. Make sure the model and optimizer are properly synchronized across the GPUs. 2. **Saving and Loading State** : The problem could be from how the state is saved and loaded between sessions. Ensure the `state_dict` is being saved and loaded correctly with the right settings, and that the positional embedding layer isn’t changing unexpectedly. 3. **Positional Embedding Shape** : The shape of the positional embeddings might change depending on the input sequence length. In your longer fine-tuning session, if sequence lengths vary, this could explain the mismatch in shapes. 4. **Batch Size and DataLoader** : When fine-tuning with a full dataset, the batch size or sequence lengths might change, causing inconsistencies in the embeddings. Make sure the sequence lengths are consistent across epochs. 5. **Training Configuration** : If you’re using techniques like gradient accumulation or freezing layers, check that the embeddings are being updated consistently.
discuss.huggingface.co
December 15, 2024 at 4:01 PM