METHOD AND APPARATUS FOR IMPROVING MODEL BASED ON PRE-TRAINED SEMANTIC MODEL

    公开(公告)号:US20210397794A1

    公开(公告)日:2021-12-23

    申请号:US17249718

    申请日:2021-03-10

    Abstract: Embodiments of a method and an apparatus for improving a model based on a pre-trained semantic model are provided. The method may include: based on the pre-trained semantic model, obtaining an initial improved model, where semantic result information of an input vector is determined in the initial improved model based on a hash search method; and based on a model distillation method, training the initial improved model to obtain an improved model. Some embodiments can obtain the semantic result information of the input vector by performing the hash search method on the input vector, replace the original complex iterative calculation process of a semantic model, and obtain the improved model with few model parameters and high compression ratio.

    METHOD AND APPARATUS FOR PROCESSING DATA

    公开(公告)号:US20210192288A1

    公开(公告)日:2021-06-24

    申请号:US16895242

    申请日:2020-06-08

    Abstract: Embodiments of the present disclosure provide a method and apparatus for processing data. The method may include: acquiring a sample set; inputting a plurality of target samples in the sample set into a pre-trained first natural language processing model, respectively, to obtain prediction results output from the pre-trained first natural language processing model; determining the obtained prediction results as labels of the target samples in the plurality of target samples, respectively; and training a to-be-trained second natural language processing model, based on the plurality of target samples and the labels of the target samples to obtain a trained second natural language processing model, parameters in the first natural language processing model being more than parameters in the second natural language processing model.

Patent Agency Ranking