Skip to main content




ASR-LAS Initial Runs
Initial results from training the LAS model on Librispeech dataset,
and what to do from here
Last updated: October 6, 2026
Task
convert mfcc(mel spectrum) for English speech into alphabets! The model is based on the paper Listen, Attend and Spell published in 2015 by William Chen, with modifications here and there, especially in the convolutional embedding layers of the encoder, and the loss function.

Model Architecture
Here's a good Korean summary https://ratsgo.github.io/speechbook/docs/neuralam/las by ratsgo. Still I'll try to explain the architecture in my words: (though the pictures are taken from the internet)
LAS consists of a Listener (encoder), Speller (decoder), and an attention mechanism to focus on relevant parts of the encoded sequence.
The listener consists of an embedding layer and several pblstm layers. The embedding layer uses 1-d convnets with residual connections, which embeds 27-dim mfcc to a higher feature dimension. The inputs can be very long in time dimension. The pyramidal-bilstm layer concatenates consecutive timesteps of the input, effectively reducing the timesteps by half for each layer. The listener uses 2 pblstm layers, so the encoded features are 4 times shorter than the input sequence.

The speller consists of a LSTM + output MLP. At each timestep, the output phoneme from the previous timestep is fed to the LSTM as next input. LSTM's output + attention context calculated by the attender are passed through the output MLP. The output MLP outputs a probability distribution over the phonemes. Loss is a simple CrossEntropyLoss on the distribution.

Experiments
We have trained the encoder and decoder jointly. The LAS-SMALL model has 128 hidden shape, and LAS-LARGE model uses 200. LAS-SMALL model was trained on the data in the train-100 directory from kaggle, for 100 epochs on a laptop 3080 gpu(10GB memory), which took 5-6 hours. LAS-LARGE model was trained on both train-100 and 360, on a Tesla V100 gpu(32GB memory) for 6-7 hours.
Here's the results from the SMALL-model, using greedy decoding strategy.
on valid set:
lev_dist mean: 17.8
lev_dist std: 35.6

In greedy decoding, the decoder chooses the most likely character at each timestep, as opposed to sampling one. I experimented with random decoding too, running the decoder hundreds of times and choosing the sequence with the highest log likelihood, but it didn't really help. Here's the same LAS-SMALL model using random decoding.

here are some metrics logged for the project.
Especially, the tf_rate graph shows the teacher forcing ratio schedule. Starting with a value of 0.9 and ramping down to a value of 0.6 worked best. In the run set tab, models with attn_64 prefix are SMALL models, and attn_128 prefix are LARGE models. Scroll right to see hyperparamters
Implementation Details
Teacher Forcing Rate scheduling
Instead of reducing teacher forcing by significant amounts each time, linear scheduling seems to work better. I experimented with two methods: one is to reduce teacher forcing rate piecewise-linearly by 0.1 every 15 epochs, from 1.0 to 0.6. The other was a linear ramp from 0.9 to 0.6. The latter worked slightly better.
Notes on hyperparamters
Effect of weight initialization was great. The original paper proposes uniform init [-0.1, 0.1], which works best. With respect to regularization, dropout rate of 0.2 works best, with locked dropout on LSTM layers. Embedding dropout might also help, but haven't tried it. Using kernel size=3 Conv1d for MFCC feature extraction. Residual connection improves result significantly.
Add a comment