Structured Alignment Methods in Machine Learning