A nanoscale dielectric gap clamped between two metal electrodes may undergo a
large resistance change from insulating to highly conducting upon applying an
electrical stress. This sudden resistive switching effect is largely exploited
in memristors for emulating synapses in neuromorphic neural networks. Here, we
show that resistive switching can be accompanied by a release of
electromagnetic radiation spanning the visible spectral region. Importantly, we
find that the spectrum is characterized by photon energies exceeding the
maximum kinetic energy of electrons provided by the switching voltage. This
so-called overbias emission can be described self-consistently by a thermal
radiation model featuring an out-of-equilibrium electron distribution generated
in the device with an effective temperature exceeding 2000~K. The emitted
spectrum is understood in terms of hot electrons radiatively decaying to
resonant optical modes occurring in a nanoscale \ch{SiO2} matrix located
between two \ch{Ag} electrodes. The correlation between resistive switching and
the onset of overbias emission in atomic-scale photonic memristor brings new
venues to generate light on chip and their exploitation in optical
interconnects. Photons emitted during memristive switching can also be
monitored to follow the neural activation pathways in memristor-based networks