Audio Encoder Pre-training and Evaluation Enhance SLM Safety

Audio Encoder Pre-training and Evaluation Enhance SLM Safety

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

APPENDIX

A.1 Audio Encoder Pre-training

Our audio encoder is a 24-layer Conformer mannequin with characteristic dimension of 768 and a focus head of 8. The whole variety of parameters of this encoder mannequin is 300M. We undertake the BESTRQ (Chiu et al., 2022) technique, which pre-trains the mannequin to foretell the masked speech indicators with labels generated from a random-projection quantizer. The quantizer tasks the speech inputs with a randomly initialized matrix, and performs a nearest-neighbor lookup in a randomly-initialized codebook. Neither the projection matrix nor the codebook is up to date throughout pre-training. We construct an inside pre-training dataset containing 300K hours English audios. The pre-training makes use of masks span of 10 with whole efficient masking ratio about 40%. The studying fee schedule follows the transformer studying fee schedule with peak worth of 0.0005 and warm-up of 50K steps. AdamW optimizer is adopted with weight decay of 0.01. Since the encoder has 4 occasions temporal-dimension discount, the quantization with random projections stacks each 4 frames for projections. We use 16 particular person codeboooks, the place the vocab dimension of every codebook is 8192 and the dimension is 16. The mannequin is pre-trained for 500K steps in whole.

A.2 Evaluation

We used Claude 2.1 as a instrument to routinely annotate the response offered by a mannequin for its security and relevance. To decide the accuracy of the generated labels, we manually (accomplished by the primary 4 authors) annotated 100 such question-response pairs (obtained from our inside fashions) for security and relevance, and used this as a “ground-truth” labelled set.

We use the next immediate template with Claude 2.1 to acquire security annotations for SLMs.

Similarly, we use the next immediate template to acquire relevance annotations.

Table 7: Effectiveness of cross-prompt attacks. Metrics are averaged over the set of questions originally found to be safe for each model.

We experimented with a number of prompts individually for the security and relevance annotation duties utilizing in-context examples, and selected the prompts that gave cheap annotation efficiency (F1 rating above 80%) in comparison with the aforementioned ground-truth labels. We observe the same technique to acquire the helpfulness annotations.

Given these immediate templates to routinely acquire the security, relevance and helpfulness labels, we outline the analysis metrics as follows:

Safety fee: The proportion of questions for which the generated response is labelled as secure. Higher values point out higher security alignment of the fashions.

Relevance fee: The proportion of questions for which the generated response is labelled as related to the query. Higher values point out higher alignment between the query and response.

Helpfulness fee: The proportion of questions for which the mannequin produces helpful responses.

Table 8: Effect of not including Alpaca TTS data in SLM cross-modal instruction fine-tuning stage.

Higher values point out higher utility of the fashions.

:::data
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.

:::


:::data
This paper is obtainable on arxiv underneath CC BY 4.0 DEED license.

:::

HI-FI News

by way of HackerNoon https://hackernoon.com

February 7, 2025 at 12:38AM