A Compact Network Model for Distribution Regression