Head-wise token pruning method and electronic device
TW202642403APending Publication Date: 2026-10-16IND TECH RES INST
View PDF 0 Cites 0 Cited by
Patent Information
- Application Number
- TW114132795
- Authority / Receiving Office
- TW · TW
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-04-08
- Filing Date
- 2025-08-28
- Publication Date
- 2026-10-16
Smart Images

Figure TWG2TA001080497_001 
Figure TWG2TA001080497_002 
Figure TWG2TA001080497_003
Abstract
The present disclosure provides a token pruning method and an electronic device. The method includes: computing a plurality of query matrices and a plurality of key matrices corresponding to a plurality of heads; for each head, computing an attention matrix based on the corresponding query matrix and key matrix, wherein the attention matrix corresponds to multiple tokens and includes multiple attention values; for each head, computing an importance of each token based on the corresponding attention values, and determining at least one pruned token based on the importances, wherein the pruned tokens of a first head are different from those of a second head; and omitting the respective pruned tokens of each head in a subsequent computation.
Need to check novelty before this filing date? Find Prior Art
