Command Palette
Search for a command to run...
لا تُدرَّب من الصفر: المقارنة العادلة بين نماذج التسلسلات الطويلة تتطلب مسبقات مستمدة من البيانات
لا تُدرَّب من الصفر: المقارنة العادلة بين نماذج التسلسلات الطويلة تتطلب مسبقات مستمدة من البيانات
Ido Amos Jonathan Berant Ankit Gupta
الملخص
نمذجة الاعتمادات بعيدة المدى عبر التسلسلات هدفٌ قديم في تعلّم الآلة، وقد أدّى إلى ظهور بنيات معمارية، مثل نماذج فضاء الحالة، تتفوّق بشكل كبير على نماذج المحوّلات (Transformers) في التسلسلات الطويلة. ومع ذلك، فقد أُثبِتَت هذه المكاسب التجريبية المبهرة إلى حدٍّ كبير على مجموعات اختبار (مثل Long Range Arena)، حيث تُهيَّأ النماذج بشكل عشوائي وتُدرَّب للتنبؤ بتسمية هدف انطلاقًا من تسلسل مُدخَل. في هذا العمل، نُبيِّن أنّ التهيئة العشوائية تؤدّي إلى مبالغة كبيرة في تقدير الفروق بين البنيات المعمارية، وأنّ التدريب المسبق باستخدام دوال هدف قياسية لإزالة التشويش، بالاعتماد فقط على بيانات المهمة اللاحقة، يؤدّي إلى مكاسب هائلة عبر بنايات معمارية متعدّدة وإلى فروقات صغيرة جدًّا بين المحوّلات ونماذج فضاء الحالة (SSMs). وعلى خلافٍ جذريّ مع الأعمال السابقة، نجد أنّ المحوّلات الأساسية (vanilla Transformers) تضاهي أداء نموذج S4 على Long Range Arena عند تدريبها المسبق بشكلٍ سليم، كما نرفع أفضل النتائج المُعلَنة لنماذج SSMs في مهمة PathX-256 بمقدار 20 نقطة مطلقة. بعد ذلك، نحلّل فائدة التمثيلات البارامترية المنظمة المُقترَحة سابقًا لنماذج SSMs ونُبيّن أنّها تصبح في الغالب غير ضرورية في ظلّ التهيئة المستمدة من البيانات التي يتحقّق بها التدريب المسبق. يُبيّن عملنا أنّه عند تقييم بنايات معمارية مختلفة على مهام إشرافية، فإنّ تضمين مسبقات مستمدة من البيانات عبر التدريب المسبق أمرٌ جوهريّ لتقدير أداء موثوق، ويمكن تحقيقه بكفاءة.
One-sentence Summary
Random initialization grossly overestimates architectural gaps between Transformers and state space models on benchmarks like Long Range Arena, whereas pretraining with denoising objectives using only downstream task data allows vanilla Transformers to match S4 and improves SSM results on PathX-256 by 20 absolute points.
Key Contributions
-
This paper shows that random initialization on long-range benchmarks can grossly underestimate architecture differences and proposes supervised pretraining with standard denoising objectives on downstream task data to learn data-driven priors for reliable evaluation.
-
On Long Range Arena, pretraining improves vanilla Transformers by more than 30% in mean absolute performance, enabling them to match state-of-the-art SSMs such as S4 without architectural changes, and improves S4 on five of six tasks, including a 20-point gain on PathX-256 from 67 to 87.
-
This work analyzes structured SSM parameterizations and finds they become mostly redundant once pretraining learns data-driven initialization, providing competitive Long Range Arena results with Transformers and diagonal linear RNNs and using learned convolution kernels to reveal learned long-range priors.
Introduction
Self-supervised pretraining is widely used in machine learning, and downstream models are typically finetuned from pretrained checkpoints to obtain strong performance. This is especially important for modeling long-range dependencies, where benchmarks such as Long Range Arena have suggested that standard Transformers struggle, motivating new architectures with hand-crafted inductive biases. However, training these architectures from scratch can conflate performance differences caused by architecture choices with the absence of a useful pretraining objective. The authors show that this discrepancy largely comes from training and evaluation practices, and they introduce self pretraining, a simple data-driven approach that applies denoising objectives directly on the downstream training data. This produces better inductive biases without requiring large pretrained corpora or architectural modifications, improving Transformers and state space models on Long Range Arena and showing that many manual biases become unnecessary.
Experiment
The experiments evaluate Transformers and state space models on long-range sequence tasks, including Long Range Arena and additional modalities, primarily by comparing models trained from scratch with models self-pretrained on task-specific data. The results show that self-pretraining substantially improves the reliability of comparisons and reveals that Transformers can learn effective long-range dependencies without specialized architectural assumptions. Across model choices, data scales, and modalities, the findings indicate that data-driven priors are often competitive with or more effective than manually designed biases for capturing sequence structure.
Self-pretraining Transformers on task data before finetuning produces much larger gains than training from scratch on Long Range Arena, increasing average accuracy by roughly 30%. These improvements appear for both causal and masked objectives, including tasks such as LISTOPS where context may not strongly support token prediction, indicating that learned priors from self-pretraining are central to more reliable evaluation. Self-pretraining substantially improves Transformer performance across Long Range Arena tasks compared with random initialization. Causal and masked self-pretraining lead to similar gains, even on tasks where causal models offer no clear advantage. Transformer baselines trained from scratch show uneven results and remain at chance accuracy on PathX.
Self pretraining substantially strengthens Transformers on sequence modeling tasks, closing the gap with strong structured sequence models and showing that much of the needed inductive bias can be learned from data. S4 also benefits from self pretraining, especially on the longest Pathfinder task, while text pretrained Transformers remain useful but less effective than pretraining directly on the target modality. The results support pure attention models as competitive when trained with task-specific pretraining. Masked self pretraining produces broad gains for rotary Transformers across the benchmark. Self pretraining helps S4 modestly overall and strongly on the longest Pathfinder task. Text pretrained Pythia improves over random initialization but lags behind Transformers pretrained on the task data.
Across Speech Commands and sequential CIFAR, SPT produces large improvements for Transformers and smaller gains for S4. The method also narrows the gap between trained from scratch Transformers and S4, and reduces the difference between causal and bidirectional S4 on speech. On BIDMC regression tasks, all models are already near ceiling, so the benefit of SPT is difficult to observe. SPT gives Transformers large gains on Speech Commands and sequential CIFAR. SPT modestly improves S4 and narrows Transformer versus S4 performance gaps. BIDMC scores are very high for both model families, limiting visible SPT improvements.
The experiments evaluate task-specific self-pretraining before finetuning on Long Range Arena, sequence modeling, Speech Commands, sequential CIFAR, and BIDMC, comparing randomly initialized Transformers, S4 variants, and text-pretrained models. They show that pretraining on the target task data substantially strengthens Transformers and makes learned priors central to reliable evaluation, while causal and masked objectives perform similarly. Self-pretraining also narrows gaps between Transformers and stronger structured sequence models, gives S4 modest or task-dependent gains, and outperforms text-based pretraining, whereas near-ceiling BIDMC results limit visible improvements.