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

Andrei Jarca, Florinel Alin Croitoru, Radu Tudor Ionescu
2/18/2025
cs.CLcs.AIcs.LG

Official code: JarcaAndrei/TIACBM (0 stars, last commit 2025-08-23).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

JarcaAndrei/TIACBMOfficial100%
00PythonFeb 15, 20251 years ago

Similar Papers

Cite this paper

@article{jarca2025taskinformed,
  title  = {Task-Informed Anti-Curriculum by Masking Improves Downstream Performance on Text},
  author = {Andrei Jarca and Florinel Alin Croitoru and Radu Tudor Ionescu},
  year   = {2025},
  eprint = {2502.12953},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12953v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.12953.svg)](https://codeofpaper.com/paper/2502.12953)

Discussion