The application provides a method and
system for improving the diversity of bit-level autoregressive
image generation, and relates to the technical fields of
artificial intelligence and
computer vision, and has the characteristics that in the sampling process of a bit-level autoregressive
image generation model, for each generation scale k, the original prediction logits of all token bits at the scale are obtained; based on the original prediction logits, an adaptive
temperature coefficient τk is dynamically solved by a
binary search algorithm, so that after the logits are scaled by the τk and normalized by softmax, the difference between the actual average maximum bit probability of the current scale k and the preset target average maximum bit probability Sk is less than the preset tolerance; an adaptive
temperature coefficient τk is dynamically determined by binary search, so that after the softmax normalization is applied to the τk. The application has the advantages that the generation diversity is improved by adaptively
smoothing the
early prediction distribution, and the visual quality is maintained by means of energy-based
path search; the method mainly operates in the early stage with low computational overhead, and the
inference delay is only slightly increased, and the core design can be extended to similar autoregressive generation models.