Paper Reading AI Learner

Teaching by Failure: Counter-Example-Driven Curricula for Transformer Self-Improvement

2025-12-01 02:00:41
Harshil Vejendla

Abstract

Transformer models often exhibit brittle extrapolation, failing on inputs that are longer or structurally more complex than those seen during training. We introduce Counter-Example-Driven Curricula (CEDC), an automated framework that improves model robustness by iteratively focusing on its own failures. At each step, CEDC uses the current model to generate a diverse set of candidate problems, employs a fast, executable verifier to identify incorrect predictions (counter-examples), and then fine-tunes the model on a dataset enriched with these discovered failures. We evaluate CEDC on a suite of algorithmic and natural language tasks, including integer addition, sorting, Dyck-2 language recognition, and three text classification benchmarks. Compared to static training and standard curriculum learning baselines, CEDC achieves up to 30x greater length extrapolation, is 3.75x more computationally efficient than uniform data augmentation, and requires no manual difficulty heuristics. We provide a detailed analysis of the counter-examples, showing how the curriculum naturally adapts to target progressively more complex error modes. Our findings establish verifier-guided, failure-driven learning as a simple, powerful, and efficient paradigm for enhancing the generalization capabilities of Transformer models.

Abstract (translated)

翻译: Transformer 模型常常在面对超出训练数据长度或结构复杂度的输入时表现出脆弱性。我们引入了一种名为“反例驱动课程学习”(CEDC)的自动化框架,通过迭代关注模型自身的错误来提高其鲁棒性。在每一步中,CEDC 使用当前模型生成一系列多样化的候选问题集,使用快速可执行验证器识别出不正确的预测(反例),然后对包含这些发现失败案例的数据集进行微调。 我们在整数加法、排序、Dyck-2 语言识别和三项文本分类基准上评估了 CEDC。与静态训练以及标准课程学习基线相比,CEDC 在长度外推方面取得了高达30倍的进步,其计算效率比均匀数据增强高出3.75倍,并且不需要手动难度启发式方法。 我们提供了对反例的详细分析,展示了该课程如何自然地适应目标并逐渐解决更复杂的错误模式。我们的研究结果确立了由验证器引导、以失败为导向的学习作为一种简单、强大而高效的范式,用于增强 Transformer 模型的一般化能力。

URL

https://arxiv.org/abs/2512.01187

PDF

https://arxiv.org/pdf/2512.01187.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot