As in this paper we discuss PESN in the framework of RNTN, computation outside the nodes N 1 , N 2 , N 3 follows that for the standard three-way tensors in RNTN.
the hidden vector i 3 is computed with the following formula: where, W r ∈ R d×(d+d) and V r ∈ R (d+d)×(d+d)×d are the matrix and tensor of the composition function used in RNTN, respectively, each of which is shared over the whole tree in computing vectors i 1 , i 2 , and i 3 .