Similar to conventional prototypical networks (Snell et al., 2017), our proposed method calculates class prototype s via the representations of all support instances in this class, i.e., { s k } K k=1 .
instead of using a naive mean operation, we aggregate instance-level representations via attention over { s k } K k=1 , where each weight is derived from the instance matching score between s k and q.