NEURAL PROCESSING UNIT FOR ATTENTION-BASED INFERENCE

    公开(公告)号:US20240028877A1

    公开(公告)日:2024-01-25

    申请号:US17870038

    申请日:2022-07-21

    Applicant: Arm Limited

    CPC classification number: G06N3/063

    Abstract: There is provided a neural processing unit for calculating an attention matrix during machine learning inference. The neural processing unit is configured to calculate: a first score matrix based on differences between a query matrix and a key matrix; a second score matrix based on differences between the key matrix and a learned key matrix; a similarity matrix based on a combination of the first score matrix and second score matrix; and an attention matrix comprising applying a normalisation function to the similarity matrix. Also provided is an apparatus comprising at least one said neural processing unit and at least one memory, the memory configured to pass, on demand, a learned key matrix to the neural processing unit. Also provided is a computer program product having computer readable program code stored thereon which, when executed by said neural processing unit, causes the unit to perform said calculations.

Patent Agency Ranking