In task T r , we firstly calculate the score for each entity pairs (h i , t i ) in support set S r as follows: where x represents the L2 norm of vector x.
we design the score function inspired by TransE (Bordes et al., 2013) which assumes the head entity embedding h, relation embedding r and tail entity embedding t for a true triple (h, r, t) satisfying h+r = t. the score function is defined according to the distance between h + r and t. Transferring to our few-show link prediction task, we replace the relation embedding r with relation meta R Tr as there is no direct general relation embeddings in our task and R Tr can be regarded as the relation embedding for current task T r .