نوع مقاله : مقاله کامپیوتر
عنوان مقاله English
نویسندگان English
One of the fundamental challenges in natural language processing is adapting and fine-tuning large pre-trained language models for specialized tasks under limited data and computational constraints. Considering that many advanced models are only accessible through black-box APIs, making traditional gradient-based methods infeasible, providing an efficient framework for derivative-free optimization has attracted considerable attention from researchers. Although significant work has been done in black-box tuning, an effective and efficient method that can deliver competitive performance using a limited number of API calls and without access to the model’s internal parameters has not yet been introduced. To address this, we propose a simple yet intelligent framework for optimizing language models using Deep Black-Box Tuning (DeepBBT) architecture combined with an In2 initialization strategy. In the proposed method, continuous prompts are initialized using a combination of manually designed instructions and automatically selected demonstration examples. In addition to these two components, for better efficiency, we leverage the intrinsic dimension hypothesis and the CMA-ES evolutionary optimization algorithm in a low-dimensional subspace. Subsequently, the deep prompts are trained layer by layer over the 24 hidden layers of the RoBERTa-Large model. Finally, the classification accuracy of input instances is computed based on the optimized weights from the training stage and salient cues extracted from the instructions and demonstration examples. The proposed method demonstrates superior performance in both accuracy and convergence speed compared to other black-box approaches and even surpasses gradient-based methods in certain tasks.
کلیدواژهها English