Since the resistance switching of the transition metal oxide (TMO) resistive random access memory (ReRAM) is based on the interaction between the oxygen ions and vacancies, the unintentional oxygen/vacancy reaction should be avoided during data retention. This work demonstrates significant improvements on the retention performance by inserting a Si layer in the TiO x N y ReRAM to block the diffusion of oxygen ions through the Ti/TiO x N y interface. The mechanism and factors that influenced the HRS and LRS retention are also studied. The retention performance of HRS is correlated with its RESET level while the LRS retention depends on the programming current. The proposed Ti/Si/TiO x N y ReRAMs can switch for more than 103 cycles from array testing results.