Adaptive Learning in OpenNMT


(Piyush Singh) #1

I was wondering if there is some way we can apply Adaptive learning in Open NMT so that we can improve and adapt our model as people start using it.?


(Guillaume Klein) #2

Hi,

Can you be more specific about what your mean by adaptive learning? Is it to retrain the model with revised or new translations coming from users?


(JX Huang) #3

Well, let me put my case here - I was also wondering about it.

I want to use the already trained out-domain model, and continue the training on the small in-domain data.

  • the in-domain data could be used as both training and validation set, or just used as validation set.

(David Landan) #4

I think we’re loading “adaptive” here…

@Jean is talking about something akin to “domain adaptation” which several people (myself included) have had success with.

I think @adroit9153 is talking about using user feedback (post-edits) to update the model in (near) real-time. You certainly could do that one post-edit at a time, but I’d be tempted to batch them - wait until you have at least 1000 before updating your model, unless your model is really underperforming on your dataset.


(Piyush Singh) #5

Hi @guillaumekln , @dbl
Yes, I am talking about the postedits (user feedback ) to modify the model and make it more accurate for a particular product.

I have considered to retrain the model after some batch of strings. But somehow I think there should be a better way to provide learning and correction to the user instantly.

Let me know your thoughts.


(David Landan) #6

There’s nothing to stop you from updating your model with each post-edited segment, I just don’t know how efficient it would be. If you’re using one of the server options, you’d need to restart it with your updated model after every translation… Doable, but not very practical in a production environment, in my opinion.


(JX Huang) #7

Thank you, I found it!


(Daniel Benito) #8

Actually, “adaptive” is also sometimes used to refer to the interactive MT offered by Lilt and SDL Trados Studio 2017, which is a kind of predictive typing powered by SMT - the system will initially offer an MT translation for a sentence, but the user can accept only a part of the suggestion and make manual changes, and the system will suggest a new translation based on what has been accepted so far.


(David Landan) #9

Yes, that’s true. Adaptive in the interactive sense, but that didn’t sound like what the OP had in mind, unless I’m mistaken.

Do Lilt or SDL offer this with neural engines? I had thought they were only doing so with SMT. Not that it would be impossible, just a very different implementation.


(Etienne Monneret) #10

I think this would be easy to implement for someone comfortable with ONMT code:


#11

I would be interested in ways to achieve such a predictive translation server. Can someone already familiar with ONMT code provide first hints in the existing translate implementation?