An alternative formulation of attention pooling function in translation