Conducting Credit Assignment by Aligning Local Representations