Laboratory experiments and numerical methods were used to investigate the effectiveness of compensation of thermal self-action. The arrangement of the laboratory apparatus and its mathematical model are presented. An algorithm that increases the stability of adaptive correction in the presence of noise in the electron-optic feedback circuit is proposed. The experimental and theoretical results are compared.