Comments (5)
There's no real advantage to using soft decoding at inference time - standard softmax attention typically works as well or better and has the same complexity/capabilities. You only really get a gain (in terms of cost and the ability to online decoding) from monotonic attention if you do hard attention at inference time.
from mad.
IIRC you could probably do it with a custom kernel, but it's been so long since I thought about it that I don't remember what I had in mind. Otherwise you could try using higher-precision floats, but AFAIK there aren't any other options.
from mad.
what do you mean by a custom kernel? could you please give an example? thanks!
from mad.
E.g. a custom CUDA kernel. No examples, sorry.
from mad.
thanks for clarifying. Just one last question: during inference, from my understanding, it would be ok to use soft monotonic attention as in training (despite it being more expensive) instead of hard monotonic attention. Could you please confirm if that is true? The only potential problem that I see is the introduction of white noise before the sigmoid layer, would really appreciate it if you could give some insights into this. Thanks again for the great paper!
from mad.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mad.