We study the onset of localized deformation in layered ductile rocks.
Pinch-and-swell structures commence with a change of dislocation to diffusion creep.
Viscosity weakening is induced by dissipated energy from grain size reduction.
The evolution reveals multiple steady states at different times and locations.
The paleo-deformation conditions of localized creep can quantitatively be derived.