Recently, 2D semiconductor-based optoelectronic memory has been explored to overcome the limitations of conventional von Neumann architectures by integrating optical sensing and data storage into one device. Persistent photocurrent (PPC), essential for optoelectronic memory, originates from charge carrier trapping according to the Shockley-Read-Hall (SRH) model in 2D semiconductors. The quasi-Fermi level position influences the activation of charge-trapping sites. However, the correlation between quasi-Fermi level modulations and PPC in 2D semiconductors has not been extensively studied. In this study, we demonstrate optoelectronic memory based on a 2D semiconductor-polymer hybrid structure and confirm that the underlying mechanism is charge trapping, as the SRH model explains. Under light illumination, electrons transfer from polyvinylpyrrolidone to p-type tungsten diselenide, resulting in high-level injection and majority carrier-type transitions. The quasi-Fermi level shifts upward with increasing temperature, improving PPC and enabling optoelectronic memory at 433 K. Our findings offer valuable insights into optimizing 2D semiconductor-based optoelectronic memory.