Polarized neutron reflectivity (PNR) is used to obtain the magnetic depth profile of an antiferromagnetically coupled ferrimagnetic/ferrimagnetic bilayer, Gd40Fe60/Tb12Fe88. This system shows a transition from positive to negative exchange bias field H(E) as the cooling field H(cf) is increased from small to large positive value. It also exhibits training behavior upon field cycling which affects H(E) and the coercive field H(C). From the PNR measurements at room temperature and at 15 K, we confirm that the magnetic configuration inside the TbFe layer is frozen when the sample is cooled in various H(cf). The thickness and pitch of the magnetic twist inside the TbFe layer depend on H(cf) and give rise to the observed differences in the bias field. Irreversible reorganization of the TbFe magnetization at the interface occurs upon GdFe magnetization reversal and is found to explain the training effect as well as the overall reduction in coercivity.