Perturbative method for generalized spectral decompositions