Advances in machine-learning-based sampling motivated by lattice quantum chromodynamics