The invention belongs to the technical field of communication, and particularly relates to a semantic communication method combining
variable length coding and
constellation probabilistic shaping, which comprises the following steps of: firstly, constructing a semantic
encoder based on a
mask auto-
encoder framework, and designing a
mask rate control function through
channel state information and information source characteristics so as to dynamically adjust an information source
mask rate; a self-adaptive variable-length coding mechanism is realized; according to the obtained mask rate, sampling a non-masked information source unit by adopting a maximum
entropy criterion so as to reserve the information amount of the information source to the maximum extent; the
constellation point optimal probability is shaped and approximated to discrete two-dimensional
Gaussian distribution, and an end-to-end optimization target is deduced based on variational
inference;
semantic feature coding distribution is constrained through layer normalization operation to approximate
Gaussian prior, so that an objective function is effectively simplified; and finally, designing a quantization modulator of
semantic feature-
constellation point identical distribution mapping based on finite
scalar quantization, and adopting a gradient straight-through estimator to solve the non-differentiable problem of the quantization process, and finally realizing end-to-end joint optimization of the
system.