ByteDance / Attention2Probability

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: August 27 2025
automatic-speech-recognition

Introduction of Attention2Probability

Model Details of Attention2Probability

Attention2Probability: Attention-Driven Terminology Probability Estimation for Robust Speech-to-Text System

Attention2Probability (A2P) is a lightweight intervention scheme for speech terminology. The core approach is to use the cross-attention mechanism to retrieve the terms that may appear in the audio and add these terms to the prompt of the llm to complete the term intervention.

News
  • [2025-08-27] We have released the train and infer code for A2P.
Structure

The overall architecture of Attention2Probability. Audio features are extracted and then fed into a cross-attention retriever, which retrieves the Top-k terms with the highest probability of occurrence within the audio. These retrieved terms are concatenated with the prompt. Finally, the prompt and the audio features are jointly input into the speech large language model.

Installation

A2P is implemented based on the open-source toolkit accelerate

pip3 install -r requirements.txt
Training
  1. Download the data to /pathtodata . It's important to change your audio path in json.
  2. Download the model to /path/pretrained-modelh . Your can also download Qwen2-Audio-Instruction and split it to the audio_tower, projector and embedding.
  3. Running with ```bash ./retriever/train.sh`` in A100-SXM-80GB.
  4. For the dataset configuration, the phrase_type parameter can be adjusted to specify either word-level or phrase-level granularity. It should be noted that models for Chinese are generally trained only at the phrase-level, as word-level granularity is nonsensical for the Chinese language.
Inference
  1. Same as Training: 1-2 .
  2. Download the ckpt to ckpt .
  3. Running with python3 ./infer/infer.py --config ./infer/infer_config in A100-SXM-80GB. Now you can change the setting in the infer_config.json . Enjoy yourself !
Citation

If you find A2P useful, please cite the paper:

@inproceedings{
  dy2025attention,
  title={{Attention2Probability: Attention-Driven Terminology Probability Estimation for Robust Speech-to-Text System},
  author={Yangfan Du, Jun Zhang, Bin Wang, Jin Qiu, Lu Huang, Yuan Ge, Xiaoqian Liu, Tong Xiao, Jingbo Zhu},
}

Runs of ByteDance Attention2Probability on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About Attention2Probability huggingface.co Model

More Attention2Probability license Visit here:

https://choosealicense.com/licenses/apache-2.0

Attention2Probability huggingface.co

Attention2Probability huggingface.co is an AI model on huggingface.co that provides Attention2Probability's model effect (), which can be used instantly with this ByteDance Attention2Probability model. huggingface.co supports a free trial of the Attention2Probability model, and also provides paid use of the Attention2Probability. Support call Attention2Probability model through api, including Node.js, Python, http.

Attention2Probability huggingface.co Url

https://huggingface.co/ByteDance/Attention2Probability

ByteDance Attention2Probability online free

Attention2Probability huggingface.co is an online trial and call api platform, which integrates Attention2Probability's modeling effects, including api services, and provides a free online trial of Attention2Probability, you can try Attention2Probability online for free by clicking the link below.

ByteDance Attention2Probability online free url in huggingface.co:

https://huggingface.co/ByteDance/Attention2Probability

Attention2Probability install

Attention2Probability is an open source model from GitHub that offers a free installation service, and any user can find Attention2Probability on GitHub to install. At the same time, huggingface.co provides the effect of Attention2Probability install, users can directly use Attention2Probability installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Attention2Probability install url in huggingface.co:

https://huggingface.co/ByteDance/Attention2Probability

Url of Attention2Probability

Attention2Probability huggingface.co Url

Provider of Attention2Probability huggingface.co

ByteDance
ORGANIZATIONS

Other API from ByteDance

huggingface.co

Total runs: 45.4K
Run Growth: -13.4K
Growth Rate: -29.36%
Updated:December 05 2024
huggingface.co

Total runs: 39.7K
Run Growth: 16.2K
Growth Rate: 40.91%
Updated:January 19 2026
huggingface.co

Total runs: 34.6K
Run Growth: 31.8K
Growth Rate: 91.72%
Updated:January 19 2026
huggingface.co

Total runs: 4.5K
Run Growth: 3.1K
Growth Rate: 68.04%
Updated:December 12 2025
huggingface.co

Total runs: 2.7K
Run Growth: 1.9K
Growth Rate: 69.76%
Updated:September 08 2025
huggingface.co

Total runs: 1.3K
Run Growth: -4.1K
Growth Rate: -320.44%
Updated:September 08 2025
huggingface.co

Total runs: 625
Run Growth: -1.3K
Growth Rate: -208.48%
Updated:November 28 2025
huggingface.co

Total runs: 584
Run Growth: -83
Growth Rate: -14.21%
Updated:September 08 2025
huggingface.co

Total runs: 344
Run Growth: -636
Growth Rate: -184.88%
Updated:July 16 2025
huggingface.co

Total runs: 126
Run Growth: 10
Growth Rate: 7.94%
Updated:April 04 2025
huggingface.co

Total runs: 38
Run Growth: -88
Growth Rate: -231.58%
Updated:September 08 2025
huggingface.co

Total runs: 32
Run Growth: -11
Growth Rate: -34.38%
Updated:July 01 2025
huggingface.co

Total runs: 14
Run Growth: 7
Growth Rate: 50.00%
Updated:April 22 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 26 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 11 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 02 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 27 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 24 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 13 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 05 2025