This invention relates to the field of generative
artificial intelligence and discloses a semantic
processing method for 5G message
parsing, comprising: inputting a 5G message text sequence into a generative
language model; calculating the information entropy of the intermediate
network layer; terminating the calculation and extracting the
hidden layer state
tensor when the information entropy is lower than a threshold; determining the set of legitimate intentions based on the 5G protocol state and transition topology; modulating the initial logarithmic probability
tensor using a
mask tensor to
mask semantic outputs outside the protocol range; calculating the normalized probability distribution sequence and determining the target
parsing intention. This invention maps protocol rules to the boundary of the logarithmic probability space, blocks signaling routing failures caused by probability
divergence, resolves the conflict between semantic generation and protocol rigor, and ensures the
determinism of service
parsing under
telecommunications conditions.