Applying transformer attention in multiple sequential stages to progressively refine understanding of document hierarchy.