Grounding Transformers: Understanding Their Role in Machine Learning