Extracting Compact Knowledge From Massive Data