# Supervised Embeddings too GOOD to be Deprecated

**URL:** <https://forum.rasa.com/t/supervised-embeddings-too-good-to-be-deprecated/40627>\
**Category:** Rasa Open Source\
**Created:** [February 25, 2021, 4:17pm UTC](https://forum.rasa.com/t/supervised-embeddings-too-good-to-be-deprecated/40627 "2021-02-25T16:17:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marco1](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@marco1](https://forum.rasa.com/u/marco1)\
**Post date:** [February 25, 2021, 4:17pm UTC](https://forum.rasa.com/t/supervised-embeddings-too-good-to-be-deprecated/40627/1 "2021-02-25T16:17:32Z")

</div>

Hi everyone! I am currently using Rasa since more than 2 years just for NLU scopes. For my needs the intent classification task is just enough and Rasa works perfectly (supervised\_embeddings policy). The problem is Rasa has decided to move on the DIET classifier, that is nice but it is slower in training and too much for my needs. The supervised\_embeddings policy is great and I am wondering why Rasa decided to deprecate this feature. I am evaluating the possibility to keep the old Rasa version but it could become a technical debt in the future. For this reason i am looking for other alternatives and I would appreciate an advice about what I could do in my situation, because Rasa is moving on different goals.

---

<div class="post-metadata">

**Author:** ![koaning](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/koaning/32/6626_2.png) [@koaning](https://forum.rasa.com/u/koaning)\
**Post date:** [March 1, 2021, 5:09pm UTC](https://forum.rasa.com/t/supervised-embeddings-too-good-to-be-deprecated/40627/2 "2021-03-01T17:09:48Z")

</div>

Hi Marco,

DIET, technically, is a superset on top of the supervised embeddings that we had earlier. The main thing that we added is a transformer layer as well as support for entities. The algorithm whiteboard video series on youtube explains it in more detail ([here](https://www.youtube.com/watch?v=vWStcJDuOUk&list=PL75e0qA87dlG-za8eLI6t0_Pbxafk-cxb&index=2) and [here](https://www.youtube.com/watch?v=KUGGuJ0aTL8&list=PL75e0qA87dlG-za8eLI6t0_Pbxafk-cxb&index=3)).

If you’d like to get similar performance that mainly means that we need to configure DIET to not use the new features. This _should_ also make the algorithm as fast as before. You can find more details on all available settings in the [docs](https://rasa.com/docs/rasa/components#dietclassifier) but I’ll list some settings which I think should make the biggest difference.

```auto
  - name: DIETClassifier
    epochs: 100
    entity_recognition: False
    number_of_transformer_layers: 0

```

There may be some minor differences that cannot be prevented. The main thing that comes to mind is that we do keep our library up to date with Tensorflow which we don’t do for old versions of Rasa.

That said, if you could share any details on the speedup/slowdown and performance difference between Rasa 1.x and 2.x I’m all ears.

---

<div class="post-metadata">

**Author:** ![koaning](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/koaning/32/6626_2.png) [@koaning](https://forum.rasa.com/u/koaning)\
**Post date:** [March 1, 2021, 5:11pm UTC](https://forum.rasa.com/t/supervised-embeddings-too-good-to-be-deprecated/40627/3 "2021-03-01T17:11:58Z")

</div>

If case it’s of interest, in [this video](https://www.youtube.com/watch?v=oj5oPGDlep4&list=PL75e0qA87dlG-za8eLI6t0_Pbxafk-cxb&index=4) we compare the old `EmbeddingIntentClassifier` with DIET. On our end it certainly seemed like `DIET` had preferable characteristics.
