To dynamically adjust to such depth, a terminated gate is designed by considering two conditions.
the correlation between the intermediate result m t−1 and the reasoning operation a t−1 in previous step, as well as m t−1 and candidate answer options o l | L l=1 .