0
$\begingroup$

I have an encoder decoder architecture where the output $ \bar{\bf{y}}_t $ is a sequence of integers of maximum length $n$. Each integer in the sequence is representative of a category so the sequence $ {0 ,1 ,3 ,4 ,6} $ could mean $\text{Car , Train , Plane , House , Dog}$. There are $m$ possible categories. The current output of the network is an $n \times m$ matrix where the entry $(i,j)$ is meant to represent the probability that the $i^\text{th}$ element of the output sequence belongs to category $j$. I was wondering is there a way to reduce the dimensionality of this problem by sharing weights among the rows of the output matrix. I was thinking there may be a way of predicting the outputs sequentially so there is weight sharing among the rows

$\endgroup$
7
  • $\begingroup$ Hi @KaneM, welcome to the site. What architecture are you currently using? You tagged lstm but this would imply that the predictions are done sequentially and this is precisely what you seem to be willing to achieve, suggesting you currently have an architecture where there is no weight sharing. $\endgroup$
    – noe
    Nov 19, 2020 at 14:04
  • $\begingroup$ Hi , I am currently using an encoder decoder architecture but the output is a sequence of sequences so I am not sure how to reduce the dimensionality of the output. I feel that I am not being 100% clear in my question so please do ask more questions if it lacks clarity $\endgroup$
    – KaneM
    Nov 19, 2020 at 14:40
  • $\begingroup$ Encoder-decoder is an architectural pattern. You can have an encoder-decoder based on LSTMs, GRUs, muti-head attention or convolutions. Please provide more details in that respect. $\endgroup$
    – noe
    Nov 19, 2020 at 15:50
  • $\begingroup$ The encoder decoder is based on LSTM units. My problem stems from their being multiple outputs per time step. In traditional encoder decoder architecture, my understanding is that the output is generally a probability distribution over the dictionary of words. My problem is more akin to their being multiple outputs per time step $\endgroup$
    – KaneM
    Nov 19, 2020 at 16:32
  • $\begingroup$ Ahhh, now I see what you mean $\endgroup$
    – noe
    Nov 19, 2020 at 16:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.