The paper reveals the influence of Li, B and the composition of metal contacts on the processes of resistive switching in memristive structures M/NC/D/M. After field exposure in structures Cu/(Co50Fe50)Х(LiNbO3)100-Х/s-LiNbO3/Cu/sitall, Cu/(Co50Fe50)Х(LiNbO3)100-Х/d-LiNbO3/Cu/sitall and Cu/(Co40Fe40B20)Х(SiO2)100-Х/d-LiNbO3/Cu/sitall at x < 13 at.% was detected a residual voltage (up to 16 mV) due to the electromigration of Li ions, that leading to a "reversible" type of VAC hysteresis and instability of the time dependencies of induced resistive states. In the structures of Cu/(Co40Fe40B20)Х(LiNbO3)100-Х/s-LiNbO3/Cu/sitall, Cr/Cu/Cr/(Co40Fe40B20)Х(LiNbO3)100-Х/s-LiNbO3/Cr/Cu/Cr/sitall containing B, the residual voltage is reduced by formation of chemical compounds B with percolated Li atoms. When limiting the electromigration of Li ions, the main mechanism of resistive switching is the processes of electromigration of oxygen vacancies in the dielectric oxide layer. Suppression of residual voltage in the Cr/Cu/Cr/(Co50Fe50)Х(LiNbO3)100-Х/s-LiNbO3/Cr/Cu/Cr/sitall structure due to the introduction of a Cr buffer layer that does not dissolve Li leads to the absence of bipolar resistive switching in these structures.