Decomposed Learning for Joint Segmentation and Categorization