Gradient reversal layer without custom operator
I'm looking to implement unsupervised transfer learning architectures based on "gradient reversal" http://arxiv.org/abs/1505.07818 . The idea is outlined nicely in this graphic from the paper:
Any ideas on how to implement this approach without defining a custom gradient reversal operator/layer? I'd prefer to use the Scala-Package which doesn't have support for custom layers yet.
use negative learning rate for some layers?
Ah, I think I can see how to do that via a combination of shared weights and explicitly setting learning rates (negative). Thanks!!
I implemented this as custom operator currently, however I think this would be of interest to others. Would it make sense to implement it in Cpp as a standard or contrib operator? If yes I can PR it.
Hi @ifeherva, thanks for the work you've done in making a gradient reversal layer! Do you know how I can use it while using MX-net as my backend for Keras?