A singular perturbation perspective on mode localization