Abstract
This paper investigates the zero-shot generalization capabilities of OpenAI’s Whisper model through gradient-free prompt engineering. By modifying input tokens without altering model weights, researchers demonstrate that Whisper can excel at specialized tasks it was not explicitly trained for, including audio-visual speech recognition (AVSR), code-switched ASR, and English-to-X speech translation. Experimental results show performance gains ranging from 10% to 45% across various benchmarks, revealing significant emergent abilities within web-scale foundation models.
Introduction
While large-scale foundation models like Whisper demonstrate state-of-the-art performance in standard automatic speech recognition (ASR), they often struggle with specialized domains. For instance, Whisper was primarily optimized for translating various languages into English, rather than the reverse, and lacks native support for visual context or frequent language switching (code-switching). Traditionally, addressing these gaps requires computationally expensive fine-tuning. This study explores an alternative: unlocking these "hidden" talents solely through clever prompt engineering.
Methodology
The researchers focused on "gradient-free" adaptation, injecting context into the Whisper decoder's "previous text" prompt slot. Three primary tasks were addressed:
Audio-Visual Speech Recognition (AVSR)
To provide Whisper with visual context, the team utilized a CLIP vision model to identify objects within video frames. These objects were converted into a text-based list (e.g., "craftsman, powder, concrete") and provided as a prompt to the decoder. This allows the model to leverage visual cues to disambiguate noisy audio.
Code-Switched ASR (CS-ASR)
Standard Whisper usage involves a single language token (e.g., <|en|>). The authors introduced a "concat" approach, providing multiple language tokens (e.g., <|zh|><|en|>) to signal that the model should expect and output mixed-language speech.
English-to-X Speech Translation
To overcome Whisper's bias toward English-target translation, the researchers employed a counter-intuitive "hack": using the <|asr|> (transcribe) token instead of the <|st|> (translate) token while setting the target language to the desired output (e.g., Russian). Vocabulary constraints were then applied to ensure the model adhered to the target script.
Key Results and Discussion
The prompting strategies yielded substantial improvements across all tested benchmarks:
- AVSR Performance: Visual prompting improved Word Error Rate (WER) by 10% on the VisSpeech dataset. Notably, the
Tiny.enmodel with visual prompts outperformed previous supervised state-of-the-art models. - Code-Switching: The concatenation prompt resulted in a 19% relative improvement in Mixed Error Rate on the SEAME dataset.
- Translation: The transcription-token strategy for English-to-X translation improved BLEU scores by 45% compared to default translation prompts.
Analysis revealed that Whisper is a "Socratic" listener; it is remarkably robust to noise in prompts, often ignoring irrelevant visual context to focus on the audio. However, a performance gap remains for regional dialects, such as Singaporean/Malaysian accents, where the model's Language Identification (LID) frequently fails.
Conclusion and Limitations
While visual prompting significantly benefits smaller and English-only models, it was found to degrade performance in the largest multilingual models (Medium and Large). This suggests a potential interference between multilingual capabilities and visual text processing. Future research will focus on making these prompts more native to the model architecture to eliminate the need for manual vocabulary constraints and further bridge the gap in regional dialect recognition.
Summary updated