Optical feedback due to mutual relation between local field effect and intersubband transition in quantum dots is investigated for the first time. In this regard, dielectric function of quantum dots is considered up to the third order of nonlinearity. It is found that near the resonance, the intensity inside the dot is a function of frequency, which is determined by the optical feedback. This effect changes the magnitude of optical nonlinearity and its symmetry around the transition energy. The results indicate that the magnitude of the dielectric function decreases at frequencies below the transition frequency because of concentration of electric field inside the dot and vice versa. It is also shown that this effect is enhanced by increasing the intensity and resonance contribution in the dielectric function.