Generative model for HBNBP