Sparse processing method and apparatus for sparse attention network, and electronic device
Through the sparse processing method of the sparse attention network and the use of constraints to construct masked sparse representation, the problem of high memory consumption in large model training is solved, and memory consumption is reduced and training efficiency is improved.
Patent Information
- Application Number
- PCT/CN2024/089610
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-19
- Filing Date
- 2024-04-24
- Publication Date
- 2025-09-25
AI Technical Summary
In the training of large transformer-based models, the memory consumption of the attention module is quadratically proportional to the sequence length. Especially when using custom masks, it is difficult to further reduce the memory consumption with existing technologies.
The sparse processing method of the sparse attention network is adopted to construct a masked sparse representation through constraints, reducing memory consumption from the square of the sequence length to the linear level. The sparse attention mechanism is combined with the fine-tuning training of the large language model.
This significantly reduces the memory requirements for training large models, improves training efficiency, and enhances computing performance.