The invention relates to the technical field of
deep learning and neural
network model compression, and discloses a
model filter compression method based on gradient guidance and
terminal equipment in order to solve the technical problems of high reasoning cost and difficult deployment of an FSMN model caused by a high-order FIR filter. A trained FSMN model is obtained, the model comprises at least one high-order
finite impulse response filter layer, the weight of the high-order
finite impulse response filter layer is defined as the step b, and the gradient of a final
loss function of the FSMN model relative to the gradient is determined and calculated; and step c, searching and determining an
infinite impulse response filter of which the order is lower than that of the FIR filter based on the guidance of the gradient, and defining the weight of the
infinite impulse response filter as step d, and replacing the generated compressed FSMN model with the
infinite impulse response filter. The problem that the FSMN model is high in reasoning cost is solved, and the parameter quantity and the calculation complexity of the model are remarkably reduced.