Cascaded Multi-task Adaptive Learning Based on Neural Architecture Search

Yingying Gao, Shilei Zhang, Zihao Cui, Chao Deng, Junlan Feng

Introduction

In modern artificial intelligence, complex tasks are often solved by "cascading" specialized models. A prime example is Spoken Language Understanding (SLU), which typically chains together Speech Enhancement (SE), Automatic Speech Recognition (ASR), and Natural Language Understanding (NLU) modules. While this modular approach is effective, adapting these cascaded systems to new domains—such as specific dialects or specialized vocabularies—presents a significant challenge.

Engineers generally face a trade-off between two extremes: Full Fine-tuning, which updates every parameter but is computationally expensive and prone to overfitting on small datasets, and Adapters, which insert small trainable bottleneck layers into a frozen model. While adapters are efficient, they often struggle to match the accuracy of full fine-tuning in complex multi-stage pipelines. Determining which specific layers to freeze, which to fine-tune, and where to place adapters is currently a manual process of trial and error. This paper introduces a framework to automate these decisions using Neural Architecture Search (NAS).

The NFA Framework

The researchers propose NFA (NAS-based Fine-tuning and Adaptation), a framework that treats the adaptation strategy of a cascaded model as an optimization problem. Instead of a human engineer pre-defining the adaptation architecture, the system searches for the optimal configuration for each module in the cascade.

Search Space and Optimization

For every layer or module within the cascaded system, the NFA framework chooses between three distinct operations:

  1. Frozen: The original weights are kept static, requiring no additional memory or computation for updates.
  2. Insert Adapter: A small, trainable bottleneck layer is added to the module while the original weights remain frozen.
  3. Fine-tune: The existing weights of the module are updated directly.

To make this discrete selection process searchable via gradient descent, the authors employ the Gumbel Softmax trick. This allows the system to learn the "architecture" of the adaptation strategy simultaneously with the model weights.

Parameter Control Loss

A critical innovation in this work is the Parameter Control Loss ($L_p$). This penalty term is added to the standard task loss, accounting for the total number of trainable parameters in the chosen path. By tuning this loss, the framework is forced to find a balance between high task accuracy and a low parameter footprint, effectively regularizing the search process.

Experimental Setup

The system was evaluated using the SLURP corpus, a comprehensive benchmark for SLU that includes audio, transcripts, and semantic metadata. The experimental cascade consisted of:

  • Speech Enhancement (SE): Pre-trained on the Voicebank dataset.
  • Automatic Speech Recognition (ASR): Pre-trained on Librispeech.
  • Natural Language Understanding (NLU): Randomly initialized and trained during the adaptation process.

The training followed a two-stage approach, alternating between updating the architecture parameters (the strategy) and the network weights (the task performance).

Key Results and Insights

The NFA approach demonstrated superior performance and efficiency compared to traditional adaptation methods:

  • Superior Accuracy: NFA achieved a 12.32% Character Error Rate (CER) on the SLURP benchmark. This not only significantly outperformed standard adapter-only methods (17.08% CER) but also surpassed full fine-tuning (12.42% CER).
  • Extreme Efficiency: The final architecture discovered by the NAS used only 8.7% of the trainable parameters compared to a full fine-tuning setup.
  • Data Robustness: The method proved resilient to data scarcity. When tested with reduced training sets (5h, 10h, and 20h), NFA consistently identified the same optimal architecture, suggesting that the strategy is robust across different data scales.

The search results revealed that different tasks in the cascade require heterogeneous strategies. For example, the NAS often preferred placing adapters in the top layers of modules and in downstream components, while opting to freeze lower-level feature extraction layers. Interestingly, the parameter penalty acted as a regularizer; by restricting the trainable space, the model avoided overfitting, which explains why it outperformed full fine-tuning.

Conclusion and Future Work

NFA provides a powerful automated alternative to the manual "black art" of model adaptation. By using NAS to navigate the trade-offs between freezing, fine-tuning, and adapting, the framework achieves state-of-the-art results with a fraction of the parameter overhead.

Future research directions include scaling this approach to Large Language Models (LLMs), exploring even deeper cascades, and testing the framework's efficacy in multi-modal domains such as video-to-text systems. While the initial search phase introduces some computational overhead, the resulting efficiency and accuracy gains make it a compelling strategy for domain-specific AI deployment.

Summary updated

BibTeX
@inproceedings{gao2023cascaded,
  author = {Yingying Gao and Shilei Zhang and Zihao Cui and Chao Deng and Junlan Feng},
  title = {{Cascaded Multi-task Adaptive Learning Based on Neural Architecture Search}},
  booktitle = {Interspeech},
  year = {2023},
  doi = {10.21437/interspeech.2023-341},
}
Figure