Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
library_name: keras
|
6 |
+
pipeline_tag: automatic-speech-recognition
|
7 |
+
---
|
8 |
+
# Model Card: Moonshine
|
9 |
+
|
10 |
+
This is the reference codebase for running the automatic speech recognition (ASR) models (Moonshine models) trained and released by Useful Sensors.
|
11 |
+
|
12 |
+
Following [Model Cards for Model Reporting (Mitchell et al.)](https://arxiv.org/abs/1810.03993), we're providing some information about the automatic speech recognition model. More information on how these models were trained and evaluated can be found [in the paper](TBD). Note, lot of the text has been copied verbatim from the [model card](https://github.com/openai/whisper/blob/main/model-card.md) for the Whisper model developed by OpenAI, because both models serve identical purposes, and carry identical risks.
|
13 |
+
|
14 |
+
## Model Details
|
15 |
+
|
16 |
+
The Moonshine models are trained for the speech recognition task, capable of transcribing English speech audio into English text. Useful Sensors developed the models to support their business direction of developing real time speech transcription products based on low cost hardware. There are 2 models of different sizes and capabilities, summarized in the following table.
|
17 |
+
|
18 |
+
| Size | Parameters | English-only model | Multilingual model |
|
19 |
+
|:----:|:----------:|:------------------:|:------------------:|
|
20 |
+
| tiny | 27 M | ✓ | |
|
21 |
+
| base | 61 M | ✓ | |
|
22 |
+
|
23 |
+
### Release date
|
24 |
+
|
25 |
+
October 2024
|
26 |
+
|
27 |
+
### Model type
|
28 |
+
|
29 |
+
Sequence-to-sequence ASR (automatic speech recognition) and speech translation model
|
30 |
+
|
31 |
+
### Paper & samples
|
32 |
+
|
33 |
+
[Paper](TBD) / [Blog](TBD)
|
34 |
+
|
35 |
+
## Model Use
|
36 |
+
|
37 |
+
### Evaluated Use
|
38 |
+
|
39 |
+
The primary intended users of these models are AI developers that want to deploy English speech recognition systems in platforms that are severely constrained in memory capacity and computational resources. We recognize that once models are released, it is impossible to restrict access to only “intended” uses or to draw reasonable guidelines around what is or is not safe use.
|
40 |
+
|
41 |
+
The models are primarily trained and evaluated on English ASR task. They may exhibit additional capabilities, particularly if fine-tuned on certain tasks like voice activity detection, speaker classification, or speaker diarization but have not been robustly evaluated in these areas. We strongly recommend that users perform robust evaluations of the models in a particular context and domain before deploying them.
|
42 |
+
|
43 |
+
In particular, we caution against using Moonshine models to transcribe recordings of individuals taken without their consent or purporting to use these models for any kind of subjective classification. We recommend against use in high-risk domains like decision-making contexts, where flaws in accuracy can lead to pronounced flaws in outcomes. The models are intended to transcribe English speech, use of the model for classification is not only not evaluated but also not appropriate, particularly to infer human attributes.
|
44 |
+
|
45 |
+
## Training Data
|
46 |
+
|
47 |
+
The models are trained on 200,000 hours of audio and the corresponding transcripts collected from the internet, as well as datasets openly available and accessible on HuggingFace. The open datasets used are listed in the [the accompanying paper](TBD).
|
48 |
+
|
49 |
+
## Performance and Limitations
|
50 |
+
|
51 |
+
Our evaluations show that, the models exhibit greater accuracy on standard datasets over existing ASR systems of similar sizes.
|
52 |
+
|
53 |
+
However, like any machine learning model, the predictions may include texts that are not actually spoken in the audio input (i.e. hallucination). We hypothesize that this happens because, given their general knowledge of language, the models combine trying to predict the next word in audio with trying to transcribe the audio itself.
|
54 |
+
|
55 |
+
In addition, the sequence-to-sequence architecture of the model makes it prone to generating repetitive texts, which can be mitigated to some degree by beam search and temperature scheduling but not perfectly. It is likely that this behavior and hallucinations may be worse for short audio segments, or segments where parts of words are cut off at the beginning or the end of the segment.
|
56 |
+
|
57 |
+
## Broader Implications
|
58 |
+
|
59 |
+
We anticipate that Moonshine models’ transcription capabilities may be used for improving accessibility tools, especially for real-time transcription. The real value of beneficial applications built on top of Moonshine models suggests that the disparate performance of these models may have real economic implications.
|
60 |
+
|
61 |
+
There are also potential dual-use concerns that come with releasing Moonshine. While we hope the technology will be used primarily for beneficial purposes, making ASR technology more accessible could enable more actors to build capable surveillance technologies or scale up existing surveillance efforts, as the speed and accuracy allow for affordable automatic transcription and translation of large volumes of audio communication. Moreover, these models may have some capabilities to recognize specific individuals out of the box, which in turn presents safety concerns related both to dual use and disparate performance. In practice, we expect that the cost of transcription is not the limiting factor of scaling up surveillance projects.
|