The 'Deep Leakage from Gradients' (DLG) attack operates by iteratively optimizing randomly generated 'dummy' inputs and labels to minimize the distance between their computed gradients and the actual shared gradients, effectively reversing the training process to reveal original data.