Efficient sparse modeling with automatic feature grouping