We then use the attention network described in Equation 4  When we translate the current sentence B, we have to make sure that the decoder is provided with sufficient information from sentence B, and at the same time, with helpful imformation from the preceding sentence A.
we need a mechanism to control the scale of information flowing from the sentence A and sentence B to the decoder.