مدل سازی در مهندسی

مدل سازی در مهندسی

تنظیم مدل‎های زبانی پیش‌آموزش دیده برای کاربردهای پایین‌دست

نوع مقاله : مقاله کامپیوتر

نویسندگان
1 دانشکده مهندسی برق و کامپیوتر، دانشگاه سمنان
2 دانشگاه سمنان
چکیده
یکی از چالش‌های اساسی در حوزه پردازش زبان طبیعی، تنظیم مدل‌های زبانی بزرگ پیش‌آموزش‌دیده برای یک کاربرد تخصصی در شرایط محدودیت داده و منابع محاسباتی است. با توجه به اینکه بسیاری از مدل‌های پیشرفته تنها از طریق رابط‌های برنامه‌نویسی در دسترس هستند و امکان بهره‌گیری از روش‌های سنتی مبتنی بر گرادیان وجود ندارد، ارائه یک چارچوب کارآمد برای بهینه‌سازی بدون مشتق مورد توجه پژوهشگران قرار گرفته است. علیرغم اینکه تاکنون کارهای زیادی در زمینه تنظیم جعبه‌سیاه انجام شده است، اما هنوز یک روش موثر و کارآمد که بتواند با استفاده از تعداد محدود فراخوانی API و بدون نیاز به دسترسی به پارامترهای داخلی مدل، عملکردی رقابتی ارائه دهد، معرفی نشده است. برای این منظور، در این مقاله، ما یک چارچوب ساده و هوشمند برای بهینه‌سازی مدل‌های زبانی با استفاده از معماری عمیق پرامپت و استراتژی مقداردهی اولیه پیشنهاد داده‌ایم. در روش پیشنهادی برای مقداردهی اولیه پرامپت‌های پیوسته از ترکیب دستورالعمل‌های دستی و نمونه‌های نمایشی خودکار منتخب استفاده شده است. علاوه بر این دو مؤلفه، برای کارایی بهتر، از فرضیه ابعاد ذاتی و الگوریتم بهینه‌سازی تکاملی CMA-ES در زیرفضای کم‌بعد بهره گرفته شده است. در ادامه، پرامپت‌های عمیق با توجه به ۲۴ لایه مخفی مدل RoBERTa-Large که به صورت لایه‌به‌لایه بهینه‌سازی می‌شوند، آموزش می‌بینند. روش پیشنهادی در دقت و سرعت همگرایی نسبت به سایر روش‌های جعبه‌سیاه برتری دارد و در برخی کاربردها از روش‌های مبتنی بر گرادیان نیز پیشی می‌گیرد.
کلیدواژه‌ها
موضوعات

عنوان مقاله English

Tuning Pre-train Language Models for Downstream Applications

نویسندگان English

Reza Bayati 1
mohammadjavad fadaeieslam 2
1 Faculty of Electrical and Computer Engineering, Semnan University
2 semnan university
چکیده 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

Black-box tuning
Intelligent initialization
Deep prompts
Derivative-free optimization
Intrinsic dimension
In-context learning

مقالات آماده انتشار، پذیرفته شده
انتشار آنلاین از 03 آذر 1405

  • تاریخ دریافت 10 خرداد 1405
  • تاریخ بازنگری 04 مهر 1405
  • تاریخ پذیرش 02 آذر 1405