Effective residual interaction kernel approach for optical spectra