Discrete profile alignment via constrained information bottleneck