We present an extension of the Gerchberg-Saxton algorithm to allow for phase retrieval from interferometric data recorded at multiple sample-detector distances. A system of coupled waves is introduced where the information exchange can be controlled by use of relaxation parameters. Optimal parameters are investigated by numerical simulation and demonstrated to work with experimental data. We demonstrate that systematic errors such as pointing instabilities of the interfering waves involved and position uncertainties of the detector can be overcome by dimensional extension of the search space. Further it is shown that the proposed approach offers superior reconstruction quality as compared to conventional Gerchberg-Saxton type algorithms. We expect that the method described here will open up numerous possibilities for the correction of systematic errors in optical phase retrieval and lensless microscopy.