Automated Discovery of Dependencies Between Logical Components in Document Image Understanding