Automatic Speech Recognition
aboots commited on
Commit
b81bddd
·
verified ·
1 Parent(s): 6d0c20c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +51 -1
README.md CHANGED
@@ -4,4 +4,54 @@ datasets:
4
  - mozilla-foundation/common_voice_4_0
5
  - google/fleurs
6
  pipeline_tag: automatic-speech-recognition
7
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  - mozilla-foundation/common_voice_4_0
5
  - google/fleurs
6
  pipeline_tag: automatic-speech-recognition
7
+ ---
8
+
9
+
10
+ CLASP (Contrastive Language-Speech Pretraining) is a novel, lightweight, multilingual, multimodal representation designed for audio-text retrieval.
11
+ To learn more about our proposed model, please refer to this [paper](https://arxiv.org/abs/2412.13071). All code is available on this [GitHub page](https://github.com/language-modeling-lab/CLASP).
12
+ The newly introduced dataset, SpeechBrown, which we created for training this model, can be found on [this page](https://huggingface.co/datasets/llm-lab/SpeechBrown)
13
+
14
+ CLASP creates powerful and meaningful semantic embeddings for raw speech in a 768-dimensional multilingual representation space. These embeddings can be used in various tasks such as speech retrieval or classification.
15
+
16
+ Here, we have uploaded different versions of the CLASP and LASP models we trained:
17
+
18
+ - `CLASP_Concat_Final_Fusion_Encoder.pt`: The best model we trained based on retrieval and classification metrics. It uses the concatenation fusion encoder strategy and is trained with contrastive loss.
19
+ - `CLASP_Gating.pt`: Trained with contrastive loss and employs a gating algorithm.
20
+ - `LASP_Concat.pt`: Trained with Huber loss and employs the concatenation strategy.
21
+ - `LASP_Gating.pt`: Trained with Huber loss and employs the gating algorithm.
22
+
23
+ To use these models or train your own on custom datasets, please refer to our [GitHub page](https://github.com/language-modeling-lab/CLASP). The `clasp-inference.ipynb` notebook provides an example of loading and using the model.
24
+
25
+ ## Steps for Inference with CLASP:
26
+ 1. Load our model with the specified architecture.
27
+ 2. Load the [EfficientNet](https://pytorch.org/vision/main/models/generated/torchvision.models.efficientnet_b7.html) encoder for spectrogram encoding.
28
+ 3. Load the [HuBERT](https://huggingface.co/facebook/hubert-large-ls960-ft) encoder for self-supervised speech encoding.
29
+ 4. Use our scripts to generate embeddings for your audio files.
30
+ 5. Use these embeddings for tasks like classification or speech retrieval. For speech retrieval, you can load the [LaBSE](https://huggingface.co/sentence-transformers/LaBSE) sentence transformer to compute the cosine similarity between query and speech embeddings.
31
+
32
+ ## Architecture Overview
33
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/64ba58d377dd483716aba098/qnAr3Yim5Cre-qoRbt09s.png)
34
+
35
+ ## Contributions
36
+ 1. We introduce CLASP (Contrastive Language-Speech Pretraining), a novel, lightweight, multilingual, multimodal representation designed for audio-text retrieval.
37
+ 2. We present a diverse paired speech-text dataset (Speech Brown) in 15 categories, covering a wide range of topics from fiction to religion.
38
+ 3. We demonstrate that combining audio spectrograms with a pre-trained self-supervised speech model enhances audio encoding in retrieval applications.
39
+ 4. Evaluations in multiple languages show that CLASP achieves new benchmarks in HITS@1, Mean Reciprocal Rank (MRR), and Mean Rank (meanR) metrics.
40
+
41
+ ## Citations
42
+ If you find our paper, code, data, or models useful, please cite the paper:
43
+ ```
44
+ @misc{abootorabi2024claspcontrastivelanguagespeechpretraining,
45
+ title={CLASP: Contrastive Language-Speech Pretraining for Multilingual Multimodal Information Retrieval},
46
+ author={Mohammad Mahdi Abootorabi and Ehsaneddin Asgari},
47
+ year={2024},
48
+ eprint={2412.13071},
49
+ archivePrefix={arXiv},
50
+ primaryClass={cs.CL},
51
+ url={https://arxiv.org/abs/2412.13071},
52
+ }
53
+ ```
54
+
55
+ ## Contact
56
+ If you have questions, please email [email protected] or [email protected].
57
+