I know that RNN can be used for such task. For instance facenet used rnn with triplet loss. But maybe there are some less sophisticated alternatives to try first?
-
$\begingroup$ BERT/transformer/XLNet with position embedding can handle encoding sequential data, and you can also try CNN(for instance the encoder of FairSeq). $\endgroup$– Lerner ZhangNov 28, 2019 at 16:09
-
$\begingroup$ bert is also based on rnn. And CNN is far from "less sophisticated alternative". I thought that there is some algo from pre-NN era, but it looks like that there is none. $\endgroup$– aivenNov 28, 2019 at 16:22
-
$\begingroup$ What do you mean by "bert is also based on RNN"? $\endgroup$– Lerner ZhangNov 29, 2019 at 13:44