Gap Minimization for Knowledge Sharing and Transfer