Generalized joint attribute modeling