Task-Informed Anti-Curriculum by Masking Improves Downstream Performance on Text

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Jarca, Andrei, Croitoru, Florinel Alin, Ionescu, Radu Tudor
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913859851255808
author Jarca, Andrei
Croitoru, Florinel Alin
Ionescu, Radu Tudor
author_facet Jarca, Andrei
Croitoru, Florinel Alin
Ionescu, Radu Tudor
contents Masked language modeling has become a widely adopted unsupervised technique to pre-train large language models (LLMs). However, the process of selecting tokens for masking is random, and the percentage of masked tokens is typically fixed for the entire training process. In this paper, we propose to adjust the masking ratio and to decide which tokens to mask based on a novel task-informed anti-curriculum learning scheme. First, we harness task-specific knowledge about useful and harmful tokens in order to determine which tokens to mask. Second, we propose a cyclic decaying masking ratio, which corresponds to an anti-curriculum schedule (from hard to easy). We exemplify our novel task-informed anti-curriculum by masking (TIACBM) approach across three diverse downstream tasks: sentiment analysis, text classification by topic, and authorship attribution. Our findings suggest that TIACBM enhances the ability of the model to focus on key task-relevant features, contributing to statistically significant performance gains across tasks. We release our code at https://github.com/JarcaAndrei/TIACBM.
format Preprint
id arxiv_https___arxiv_org_abs_2502_12953
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Task-Informed Anti-Curriculum by Masking Improves Downstream Performance on Text
Jarca, Andrei
Croitoru, Florinel Alin
Ionescu, Radu Tudor
Computation and Language
Artificial Intelligence
Machine Learning
Masked language modeling has become a widely adopted unsupervised technique to pre-train large language models (LLMs). However, the process of selecting tokens for masking is random, and the percentage of masked tokens is typically fixed for the entire training process. In this paper, we propose to adjust the masking ratio and to decide which tokens to mask based on a novel task-informed anti-curriculum learning scheme. First, we harness task-specific knowledge about useful and harmful tokens in order to determine which tokens to mask. Second, we propose a cyclic decaying masking ratio, which corresponds to an anti-curriculum schedule (from hard to easy). We exemplify our novel task-informed anti-curriculum by masking (TIACBM) approach across three diverse downstream tasks: sentiment analysis, text classification by topic, and authorship attribution. Our findings suggest that TIACBM enhances the ability of the model to focus on key task-relevant features, contributing to statistically significant performance gains across tasks. We release our code at https://github.com/JarcaAndrei/TIACBM.
title Task-Informed Anti-Curriculum by Masking Improves Downstream Performance on Text
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2502.12953