Multi-task learning

524 views
Skip to first unread message

jacka...@gmail.com

unread,
Dec 26, 2015, 2:54:07 AM12/26/15
to kaldi-help
Hi, I'm interested in Multi-task learning in ASR. Now, I have trained a DNN using nnet1/train.sh. Which recipe could I follow to train Multitask DNN? Thanks!

Daniel Povey

unread,
Dec 26, 2015, 3:53:14 PM12/26/15
to kaldi-help, Pegah Ghahrmani
It's not very easy.  I'm not sure if nnet1 really supports it.  In nnet2 we sometimes do it at the script level by replacing parts of neural nets (e.g. there is a train_multilang.sh example somewhere in the wsj example scripts, or similar-- search for multilang).  In nnet3 it's more naturally supported at the code level, as the nnets can have multiple outputs, and some people are working on this type of thing (e.g. Pegah, cc'd), but we don't yet have any example scripts for this.  It might be better for you to wait a while till we check something in.  If not, you could ask Pegah and see if she's willing to give you some advice.
Dan


On Fri, Dec 25, 2015 at 11:54 PM, <jacka...@gmail.com> wrote:
Hi, I'm interested in Multi-task learning in ASR. Now, I have trained a DNN using nnet1/train.sh. Which recipe could I follow to train Multitask DNN? Thanks!

--
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jacka...@gmail.com

unread,
Dec 27, 2015, 8:58:37 PM12/27/15
to kaldi-help, peg...@gmail.com, dpo...@gmail.com
Thanks Dan.
If I follow the train_multilang.sh, should I firstly convert the nnet1 into nnet2? 
BTW, I saw kaldi doc from http://kaldi.sourceforge.net/dnn1.html, run_blocksoftmax.sh in rm may support it, am I right?

Daniel Povey

unread,
Dec 27, 2015, 10:06:04 PM12/27/15
to jacka...@gmail.com, kaldi-help, Pegah Ghahrmani

Thanks Dan.
If I follow the train_multilang.sh, should I firstly convert the nnet1 into nnet2? 

No, the existing trained neural net wouldn't be any use.
 
BTW, I saw kaldi doc from http://kaldi.sourceforge.net/dnn1.html, run_blocksoftmax.sh in rm may support it, am I right?

Possibly but I'm not that familiar with the nnet1 tools.
Dan

xff...@gmail.com

unread,
Apr 11, 2017, 5:51:40 AM4/11/17
to kaldi-help, peg...@gmail.com, dpo...@gmail.com
Hi Dan and Pegah,

currently I also would like to try multitask learning using nnet3.
have you already updated some example scripts how to launch such experiments?
it will be great to have some, even piece of scripts/functions because I am a bit confused how to give two output data/labels for nnet3 training.

Many thanks and Kind regards,
Feifei

feifei xiong

unread,
Apr 11, 2017, 9:22:37 AM4/11/17
to Pegah Ghahremani, dpo...@gmail.com, kaldi-help
hopefully this is the example I can refer to for multitask learning with tdnn as
"For all tasks, we share all except last hidden layer and there is separate final layer per task"

Thanks and Kind regards,
Feifei


On Tue, Apr 11, 2017 at 2:18 PM, Pegah Ghahremani <peg...@gmail.com> wrote:
You can check multilingual-modified-config branch in my github. We willhopefully merge it next week.



--
Kind regards,
Xiong Feifei
Reply all
Reply to author
Forward
0 new messages