A Theoretical Understanding of Self-Correction through In-context Alignment Yifei Wang 1 Y uyang Wu2 Zeming Wei 3 Stefanie Jegelka 5,1