Questions and answers
37 questions from the community, answered by the
author in
#book-of-the-week
on Slack.
-
Krzysztof Ograbek asked
Denis Rothman thank you for doing this!! Maybe I'll start with this question: Do transformers outperform RNNs in any kind of NLP tasks? What makes transformers so great?
-
Rodney Silva asked
Denis Rothman Hi! How should a beginner implement Transformers? Using Hugging Face,Google Trax,MS Azure or implement from scratch to control maintenance?
-
Mert Bozkır asked
Denis Rothman What do you think about future of Natural Language Processing? What will the location of the Transformers in future ?
-
Lalit Pagaria asked
Denis Rothman Isn't Transformers constraints by compute resources? What is way forward for startups with less resources?
-
Vladimir Finkelshtein asked
When do you think we will see transformers for non-NLP tasks? There seem to be papers and attempts with transformers for vision, but no breakthrough, or at least no mainstream adoption of it.
-
Denis Rothman
Author of the book
I'm live so you can ask any question you wish.
-
Denis Rothman
Author of the book
Krzysztof Ograbek There are to reasons transformers outperform RNNs:
-
Denis Rothman
Author of the book
Krzysztof Ograbek I mean there are "two" 🙂 main reasons: 1.optimal transport= RNNs carry all of the information from word(or token) to word and pile the information up in a big backback. 2/ The architecture of RNNs is obsolete with variable sized layers. Transformers have fixed sized industrialized layers. I explain this in chapter 1 of my book but also in this video:
-
Denis Rothman
Author of the book
Krzysztof Ograbek This is the link to the video https://youtu.be/tQTpCvZ1-0w (opens in a new tab)
-
Denis Rothman
Author of the book
Krzysztof Ograbek Proof? Transformers have wiped RNNs off the top ranks of the SuperGlue Leaderboard:
-
Denis Rothman
Author of the book
Krzysztof Ograbek Here is the link to SuperGlue:https://super.gluebenchmark.com/leaderboard/ (opens in a new tab)
-
Denis Rothman
Author of the book
Rodney Silva A beginner should begin by understanding the original Transfomer model explained in Chapter 1 of my book. Even with a piece of paper and a pencil! Or a spreadsheet!
-
Denis Rothman
Author of the book
Rodney Silva Implementing in a real-life project is something else entirely. If it's a low level non-strategic project and isn't really necessary and the project has only a small budget because of that, you can implement almost anything you find since the interest of the solution will be limited! Now if you are implementing Transformers in a critical project, that's something else...
-
Denis Rothman
Author of the book
Rodney Silva The first question is what is the goal of the project. To really understand it. Then to go hunting for the right data with standard software approaches. This can take anywhere from 1 month to 6 months, a year, and maybe two years! In the meantime, you need to find a reason for your customer or employer to keep you on the project so it stays alive! If you understand the project, you can begin with a useful user interface that enables the users to visualize, understand their data and run short but productive tasks. ...
-
Denis Rothman
Author of the book
Rodney Silva If you can get your project in cruise mode as described above then you have plenty of time to build a transformer prototype of the project with the model you find best suited for the project in terms of SLA (Service Level Agreement) with the customer. SLA is standard IT practice that is well documented and contractual.
-
Denis Rothman
Author of the book
Mert Bozkır Your question : What do you think about future of Natural Language Processing? What will the location of the Transformers in future ? My answer: I see transformer-driven NLP (until a new model comes up) on Cloud platforms such as AWS, Googe Cloud or IBM Cloud or another giant such as Microsoft Azure. Why? They have reliable scalable servers! I doubt anybody can match without the power to back up the sales. The smaller solutions will survive but not be critical unless they are partners of the tech giants. NLP will spread out to every area of human activity.
-
Denis Rothman
Author of the book
Vladimir Finkelshtein Your question: When do you think we will see transformers for non-NLP tasks? including vision. My answers: First of all,l let's take vision out of the picture because there are more legends than actual reality here. Computer Vision (CV) relies heavily on massive non-AI algorithms. Then the CNNs do a pretty good job. Transformers are kicking in for image captioning. Ok that's for vision because vision is ok right now. There are a lot of solid AI and non-AI tools. Now in non NLP, you have transformer driven-Recommenders! They can be applied to e-commerce behavior prediction and also can be used in manufacturing. See my video here:https://www.youtube.com/watch?v=tQTpCvZ1-0w&list=PL9uLp9IOO56Gv0YEnRWdrIZOPKwRBHnJe&index=10&t=1s (opens in a new tab)
-
Denis Rothman
Author of the book
Vladimir Finkelshtein Now, let's take your question a bit further for non-NLP transformers. I see powerful solutions being kept secret by tech giants. For example, in terms of recommenders, China has access to far more data in terms of volumes and information than anybody in the world. They are advancing toward a digital society and are many years ahead of the West. For example, they have a national digital currency that is expanding with information (like VISA with its tens of thousands of transactions per minute but China is more like 300 000 transactions per minute). You can easily perceive the patterns you can draw from that with sequences of customer behavior.
-
Denis Rothman
Author of the book
Lalit Pagaria Your question:Isn't Transformers constraints by compute resources? What is way forward for startups with less resources? My answer: Let's go beyond the hype and into the real topic! If you use a nice simple robust model BUT have excellent datasets you will even beat GPT-3 which used a supercomputer!!! Proof? The Pattern-Extracting Training (PET) method I describe in the introduction of Chapter 6 of my book. I describe an average sized transformer model that trained on an optimized tiny dataset and...beat GPT-3 on the SuperGlue Leaderboard!!! More proof? Look at line 13 of the SuperGLue Leaderboard today and you will see PET (Tom Schick) with a nice and good accessible computer and then look down at line 16. What do you see today? GPT-3 is 3 ranks behind! Conclusion: Humans that have imagination can beat super-rich humans and machines any time!
-
Rodney Silva asked
Denis Rothman Do I need to build a Transformer from scratch to fully understand it?
-
Vladimir Finkelshtein asked
What is your position on positional encodings? They seem like an afterthought and it is not so clear when to use them. I saw suggestions in the forums to try to train models with and without them, because a priori it is not clear in which type of problems they are helpful.
-
Vladimir Finkelshtein asked
Are there other metrics outside of the GLUE benchmarks on which NLP models are compared? For example, if I compared regression with decision trees, I could compare sensitivity to outliers, tendency to overfit, reduction of performance due to imbalanced data, robustness, explainability (I guess this one is model agnostic now) etc.
Could we compare which NLP model is more susceptible to biases, because they are overrepresented in the data?
-
Zhi Men Lau asked
Hi Denis Rothman what is your take on interpretability of Transformer? There is a lot of buzz around explainable ML and interpretability, how does Transformer address these issues compare to other technologies.
-
Rodney Silva asked
Denis Rothman Can you guess what will be the evolution of transformers in the next years? Less complexity,efficency,less training time,etc...
-
Krzysztof Ograbek asked
Denis Rothman Thank you for yesterday's answers. Correct me if I'm wrong, but I believe that training transformers doesn't require any knowledge about the language itself. I mean to train a transformer we just need a pre-trained word embedding, feed it to the transformer and wait for the results. So the question here. Nowadays, what is the point of learning things like: Linguistic syntax, dependency parser, Part-of-Speech, Named Entities, etc? How does this "language knowledge" make one a better NLP Specialist?
-
RH asked
Denis Rothman: If someone is starting their journey into NLP, what is the pathway you would recommend them to take? What knowledge/skills makes a strong industry ready NLP practitioner?
-
Doink asked
Denis Rothman Is learning about Bag of words, tf-idf, w2vec, rnn and lstm a waste of time? How much do we need to know in NLP it's an ever growing field.
-
VK asked
Denis Rothman What type of research was implemented for writing this book?
-
Akshat asked
Denis Rothman Hi Denis, can these transformer models be used in predicting physical quantities in car crash simulations or other numerical simulations?
-
Rodney Silva asked
Denis Rothman What's the most common difficulty for people trying to learn the architecture of Transformers?
-
Lalit Pagaria asked
Denis Rothman this not a question but appreciation message. Tomorrow I received your book still in first chapter. So far so good. Really nice book. 🙏
-
Rodney Silva asked
Denis Rothman How much time did it take to write this book, from the research till the final version?
-
Krzysztof Ograbek asked
Denis Rothman I don't know how to properly phrase my question, but I hope you'll know what I mean. How to take advantage of speaking multiple languages? How to use it in NLP field?
-
Krzysztof Ograbek asked
Denis Rothman Could you recommend some good resources for learning linguistic, that can be useful in NLP?
-
Rodney Silva asked
Denis Rothman What was your reaction the first time you realised how transformers worked? Do you think that you could have invented Transformers?
-
Rodney Silva asked
Denis Rothman What do you think is the most brilliant thing in Transformers: multi head attention or sinusoidal positional encoding?
-
Lalit Pagaria asked
Denis Rothman what is faster ways to test which encoding would be great for a task instead of going into whole train - test life cycle. At least any fast intuitive way to try first in order to get fast feedback.
Want the whole story?
The answers above are the short version of Transformers for Natural Language Processing.