Attention encoder-decoder ASR: অডিও ও টোকেনের alignment শেখা
Attention encoder-decoder অডিওকে উপস্থাপন করে এবং সেই representation ও আগের output ব্যবহার করে token তৈরি করে। LAS উদাহরণে শেখা alignment, beam search এবং দীর্ঘ utterance মূল্যায়নের সতর্কতা ব্যাখ্যা করা হয়েছে।
Attention encoder-decoder ASR: অডিও ও টোকেনের alignment শেখা
Attention-ভিত্তিক encoder-decoder speech recognition অডিওকে representation-এ বদলে সেই representation ও আগের output থেকে token ধরে ধরে লেখা তৈরি করে। আগে থেকে প্রতিটি frame-এর label না দিয়েও attention input-output alignment শিখতে পারে, তবে সব দৈর্ঘ্য ও পরিবেশে স্থিতিশীলতার নিশ্চয়তা দেয় না।
Listen, Attend and Spell (LAS) এর উদাহরণ। “Listener” encoder spectral feature-কে উচ্চস্তরের representation-এ রূপান্তর করে; মূল গবেষণায় সময়গত resolution কমাতে pyramidal recurrent encoder ব্যবহৃত হয়েছে। প্রতিটি output ধাপে attention encoder-এর প্রাসঙ্গিক অবস্থানকে ওজন দিয়ে context বানায়। “Speller” decoder আগের অক্ষর ও context থেকে পরের অক্ষর অনুমান করে। Character output স্থির pronunciation lexicon-এর বাইরে শব্দ লিখতে পারে, কিন্তু tokenization ও training data গুরুত্বপূর্ণ।
রেফারেন্স token sequence y-এর সম্ভাবনা প্রায়ই P(y|x)=∏ᵢP(yᵢ|x,y<ᵢ) আকারে লেখা হয়। Training-এ decoder সাধারণত সঠিক আগের token পায়; inference-এ নিজের output ব্যবহার করে, তাই প্রাথমিক ভুল পরের পূর্বাভাসে প্রভাব ফেলতে পারে। Beam search একাধিক সম্ভাব্য prefix ধরে রাখে। কিছু সিস্টেম বাইরের language model দিয়ে candidate-কে পুনরায় score করে; ভুল ভারসাম্যে acoustic evidence-এর চেয়ে text frequency বেশি প্রাধান্য পেতে পারে।
Attention alignment শেখে ও আগের token-এর প্রসঙ্গ ব্যবহার করে, তবে দীর্ঘ audio-তে attention এবং autoregressive generation হিসাব ও latency বাড়ায়। Bidirectional encoder ভবিষ্যৎ frame-এর জন্য অপেক্ষা করতে পারে, তাই streaming স্বয়ংক্রিয় নয়। Chunking বা monotonic attention latency ও accuracy-র মধ্যে সমঝোতা।
দীর্ঘ utterance আলাদা করে মূল্যায়ন করুন। প্রাথমিক গবেষণায় কিছু মডেল training উদাহরণের চেয়ে অনেক দীর্ঘ utterance-এ দুর্বল generalization দেখিয়েছিল এবং location-aware attention প্রস্তাব করেছিল। LAS-ও দৈর্ঘ্যভিত্তিক ভুল বিশ্লেষণ করেছে। এগুলো নির্দিষ্ট মডেল/ডেটার ফল, সর্বজনীন সীমা নয়। দৈর্ঘ্য, noise, speaker ও language অনুযায়ী WER/CER ভেঙে দেখুন; deployment-এ latency, memory, beam width ও বাইরের language model-এর প্রভাব মাপুন। যুক্তিযুক্ত attention map বা কম training loss একা transcription quality প্রমাণ করে না。
References
[Chan et al., Listen, Attend and Spell (2015)](https://arxiv.org/abs/1508.01211)
[Google Research, Listen, Attend and Spell](https://research.google/pubs/listen-attend-and-spell/)
[Chorowski et al., Attention-Based Models for Speech Recognition (NeurIPS 2015)](https://proceedings.neurips.cc/paper/2015/hash/1068c6e4c8051cfd4e9ea8072e3189e2-Abstract.html)