SpeechVerse Unites Audio Encoder and LLM for Superior Spoken QA

SpeechVerse Unites Audio Encoder and LLM for Superior Spoken QA

Table of Links

Part 1: Abstract & Introduction

Part 2: Background

Part 3: Attacks & Countermeasures

Part 4: Experimental Setup

Part 5: Datasets & Evaluation

Part 6: Attack, Countermeasure Parameters, & Baseline: Random Perturbations

Part 7: Results & Discussion

Part 8: Transfer Attacks & Countermeasures

Part 9: Conclusion, Limitations, & Ethics Statement

Part 10: Appendix: Audio Encoder Pre-training & Evaluation

Part 11: Appendix: Cross-prompt assaults, Training Data Ablations, & Impact of random noise on helpfulness

Part 12: Appendix: Adaptive assaults & Qualitative Examples

4. EXPERIMENTAL SETUP

4.1 Models

We exhibit our unified SLM structure referred to as SpeechVerse in Figure 3. It consists of two primary elements: audio encoder and enormous language mannequin.

QA

Large Language Model We make use of two varieties of publicly out there pre-trained LLMs in our examine: (1) encoder-decoder structure based mostly Flan-T5- XL (Chung et al., 2022) with 3 billion parameters, and (2) decoder-only structure based mostly Mistral-7bInstruct (Jiang et al., 2023) with 7 billion parameters. While each fashions can comply with directions, solely the latter matches or exceeds the efficiency of a 13 billion parameter mannequin like Llama-2 (Touvron et al., 2023). Notably, neither of the 2 LLMs are explicitly skilled to be protected or innocent, so we safety-align their SLM counterparts and consult with them as S-FlanT5 and S-Mistral on this work. We additionally fine-tune Mistral explicitly on safetyaligned textual instruction information and consult with its SLM counterpart as S-Mistral-FT.

We wish to be aware that among the widespread LLMs like ChatGPT[3] and Claude 2.1[4] don’t help audio inputs off-the-shelf. Further tuning of those text-only LLMs is important with paired audio-text information to allow the mannequin to grasp audio inputs. This requires entry to the mannequin’s gradients for fine-tuning. Therefore, we resort to the open-source Flan and Mistral fashions on this work. However, we additionally showcase jailbreaking assaults each in black-box (SpeechGPT) in addition to in white-box settings.

4.2 Training

To allow SLMs to higher comprehend the enter audio, a two stage coaching paradigm is popularly adopted: modality pre-adaptation and cross-modal instruction fine-tuning (Zhang et al., 2023; Shu et al., 2023). In this work, we examine SLMs skilled with the two-stage paradigm in addition to a singlestage paradigm by immediately performing cross-modal instruction fine-tuning for Spoken QA utility. We make the most of Automatic Speech Recognition (ASR) because the modality pre-adaptation job. To the perfect of our information, ours is the primary examine evaluating the efficacies of the 2 paradigms.

We scale back the computational prices related to lengthy dimension of audio modality by using 1-D convolutional layers on the outputs of the audio encoder (see Figure 3). For the two-stage coaching paradigm, the primary stage includes coaching the convolutional layers and the audio encoder layer (mixture) weights on ASR information, and the second stage includes additional tuning them together with randomly initialized LoRA adapters (Hu et al., 2021; Mangrulkar et al., 2022) of LLM. For the single-stage coaching paradigm, we merely tune all of the aforementioned trainable parameters for the Spoken QA utility upon random initialization. At all instances, the pre-trained audio encoder and LLM parameters are saved frozen. Overall, the overall variety of trainable parameters are roughly 27 million and 66 million when utilizing Flan-T5-XL (3B) and Mistral-7B as spine LLMs respectively.

Although the main focus of this work is primarily to know the robustness of SLMs for security, fine-tuning SLMs with safety-aligned instruction information alone can result in catastrophic forgetting of the LLM pre-trained efficacies, particularly affecting the helpfulness of the SLM in opposition to innocent directions (Zhao et al., 2023a). We deal with this downside by adopting expertise replay method (Wu et al., 2024) and incorporate common instruction tuning information throughout cross-modal instruction fine-tuning.

Implementation Details All the fashions on this work are skilled utilizing PyTorch (Paszke et al., 2019) and PyTorch-Lightning (William Falcon, 2019) libraries. We use Huggingface Transformers (Wolf et al., 2020) to initialize pre-trained LLMs. We stack two convolutional 1-D layers with lengths 3 every, and strides 2 and 1 respectively. During coaching, we use a batch measurement 512 and AdamW (Loshchilov and Hutter, 2019) optimizer with a studying charge of 5e-3. We make use of LoRA adapters with rank 16 and alpha 10. We use Dropout (Srivastava et al., 2014) of 0.2 and 0.1 for convolutional layers and LoRA adapters respectively.

:::information
Authors:

(1) Raghuveer Peri, AWS AI Labs, Amazon and with Equal Contributions ([email protected]);

(2) Sai Muralidhar Jayanthi, AWS AI Labs, Amazon and with Equal Contributions;

(3) Srikanth Ronanki, AWS AI Labs, Amazon;

(4) Anshu Bhatia, AWS AI Labs, Amazon;

(5) Karel Mundnich, AWS AI Labs, Amazon;

(6) Saket Dingliwal, AWS AI Labs, Amazon;

(7) Nilaksh Das, AWS AI Labs, Amazon;

(8) Zejiang Hou, AWS AI Labs, Amazon;

(9) Goeric Huybrechts, AWS AI Labs, Amazon;

(10) Srikanth Vishnubhotla, AWS AI Labs, Amazon;

(11) Daniel Garcia-Romero, AWS AI Labs, Amazon;

(12) Sundararajan Srinivasan, AWS AI Labs, Amazon;

(13) Kyu J Han, AWS AI Labs, Amazon;

(14) Katrin Kirchhoff, AWS AI Labs, Amazon.

:::


:::information
This paper is out there on arxiv below CC BY 4.0 DEED license.

:::

[2] We refer the reader to Appendix A.1 for extra particulars on the audio encoder pre-training.

[3] https://ift.tt/nhDJ7z0

[4] https://ift.tt/WaokyvA

HI-FI News

through HackerNoon https://hackernoon.com

February 6, 2025 at 06:31PM