Downloads · 30 days
10
16% of all-time downloads
linanjie0820/lcma-srt
lcma-srt is a machine learning model from linanjie0820. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for icefall. The card lists the license as apache-2.0.
[](https://aclanthology.org/2026.acl-long.1634/) [](https://github.com/linanjie0820/LCMA-SRT)
Downloads · 30 days
10
16% of all-time downloads
All-time downloads
62
Public
Repo size
311 MB
Likes
1
Public
Click a slice to open those files.
.safetensors310 MB · 100%
From the Hugging Face model README
Neural transducers offer an alignment-free framework for speech-to-text modeling, and hierarchical transducer architectures further improve multilingual joint automatic speech recognition (ASR) and speech translation (ST) by stacking a translation-focused encoder on top of an ASR encoder. However, extending hierarchical transducers to multilingual many-to-many settings remains challenging: fully shared models often suffer from negative transfer and unstable target-language generation, while training separate models for each direction is computationally prohibitive. We propose LCMA-SRT (Language-Conditional Mixture-of-Experts Adapters for Speech Recognition and Translation), which augments a hierarchical transducer with language-conditional Mixture-of-Experts (MoE) adapters. A source-conditioned MoE adapter (SRC-MoE) uses source-language embeddings to reduce cross-language interference and improve multilingual ASR. A target-conditioned MoE adapter (TGT-MoE) uses the desired target language to reduce cross-target interference and stabilize target-language generation in many-to-many ST. Experiments on Europarl-ST (9 languages, 72 directions) show that LCMA-SRT improves both ASR and ST within a single joint model, reducing average WER and improving BLEU and COMET over strong hierarchical transducer baselines.
# Clone the code repository
git clone https://github.com/linanjie0820/LCMA-SRT.git
cd LCMA-SRT
# Install icefall environment
# See: https://k2-fsa.github.io/icefall/installation/index.html
pip install safetensors sentencepiece torch torchaudio kaldifeat k2 lhotse
pip install huggingface_hub
huggingface-cli download linanjie0820/lcma-srt --local-dir ./model
# ASR (speech recognition)
python model/inference.py --audio test.wav --task asr --src-lang en
# AST (speech translation, e.g., English -> German)
python model/inference.py --audio test.wav --task ast --src-lang en --tgt-lang de
# Both ASR + AST simultaneously
python model/inference.py --audio test.wav --task both --src-lang en --tgt-lang de
ASR only:
$ python inference.py --audio en_5525.flac --task asr --src-lang en
==================================================
Decoding ASR...
[ASR] mister president one of the key issues in the new lisbon treaty is the increased role of the european union in the world
==================================================
AST only (English -> German):
$ python inference.py --audio en_5525.flac --task ast --src-lang en --tgt-lang de
==================================================
Decoding AST (en -> de)...
[AST en->de] herr präsident eine wichtige des neuen vertrag von lissabon ist die erhöhten der europäischen union in der welt
==================================================
Both ASR + AST:
$ python inference.py --audio en_5525.flac --task both --src-lang en --tgt-lang de
==================================================
Decoding ASR...
[ASR] mister president one of the key issues in the new lisbon treaty is the increased role of the european union in the world
Decoding AST (en -> de)...
[AST en->de] herr präsident eine wichtige des neuen vertrag von lissabon ist die erhöhten der europäischen union in der welt
==================================================
from safetensors.torch import load_file
# Load weights
state_dict = load_file("model/lcma-srt.safetensors")
# Build model (requires LCMA-SRT code repo)
model.load_state_dict(state_dict, strict=False)
model.eval()
| File | Description |
|---|---|
lcma-srt.safetensors | Model weights (averaged over training) |
config.json | Model architecture configuration |
bpe_asr.model | SentencePiece tokenizer for ASR |
bpe_ast.model | SentencePiece tokenizer for AST |
tokens_asr.txt | ASR token list |
tokens_ast.txt | AST token list |
inference.py | Inference example script |
The dataset covers 9 European languages:
| Code | Language |
|---|---|
es | Spanish |
de | German |
en | English |
fr | French |
nl | Dutch |
pl | Polish |
pt | Portuguese |
ro | Romanian |
it | Italian |
All non-identical language pairs are processed (72 pairs total).
Each final CutSet manifest entry (MonoCut) contains:
{
"id": "en_5525-758",
"start": 0,
"duration": 6.76,
"channel": 0,
"supervisions": [
{
"id": "en_5525",
"recording_id": "en_5525",
"start": 0.0,
"duration": 6.76,
"channel": 0,
"text": "mister president one of the key issues in the new lisbon treaty is the increased role of the european union in the world",
"language": "en",
"speaker": "unknown",
"custom": {
"st_text": "herr präsident einer der hauptpunkte des neuen vertrages von lissabon ist die aufwertung der rolle der europäischen union in der welt",
"lang": "de"
}
}
],
"recording": {
"id": "en_5525",
"sources": [
{
"type": "file",
"channels": [0],
"source": "data/Europarl-ST/audio/test/en_5525.flac"
}
],
"sampling_rate": 16000,
"num_samples": 108160,
"duration": 6.76
},
"type": "MonoCut"
}
Key fields:
supervisions[0].text: ASR ground truth transcriptionsupervisions[0].language: source languagesupervisions[0].custom.st_text: ST ground truth translationsupervisions[0].custom.lang: target languageFor training and full decoding scripts, please refer to the GitHub repository.
@inproceedings{li2026lcma,
title={LCMA-SRT: Language-Conditional Mixture-of-Experts Adapters for Joint Multilingual Speech Recognition and Translation},
author={Li, Nanjie and Guo, Xiaoyong and Huang, Hao and Haihua, Xu and Shi, Wei},
booktitle={Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
pages={35363--35377},
year={2026}
}
Apache License 2.0