The invention provides a target recognition model reasoning optimization method and device, and the method comprises the steps: firstly carrying out the
structural analysis and sensitivity evaluation of a pre-training model, extracting the structural features of each
network layer, activating the distribution features, carrying out the quantitative sensitivity scoring, and constructing a
data set reflecting the hierarchical features and fault-tolerant capability; and querying a quantitative configuration
knowledge base based on the
data set to generate a heterogeneous quantitative strategy. Layered low-bit quantization is executed according to the strategy, and a layered weighted
loss function is introduced to carry out quantization
perception training, so that precision loss caused by bit width compression is effectively compensated. According to the method, through hierarchical heterogeneous quantification, the model recognition precision is preserved to the maximum extent while high
compression ratio and reasoning acceleration are achieved, and particularly, the performance of a high-sensitivity layer is protected. The generated heterogeneous
quantitative model remarkably reduces memory occupation and
power consumption, is suitable for an edge hardware platform with
limited resources, forms a set of complete automatic process from analysis and configuration to training compensation, and has good universality and
engineering practical value.