Abstract
When faced with data-starved or highly complex end-tasks, it is commonplace for machine learning practitioners to introduce auxiliary objectives as supplementary learning signals. Whilst much work has been done to formulate useful auxiliary objectives, their construction is still an art which proceeds by slow and tedious hand-design. Intuitions about how and when these objectives improve end-task performance have also had limited theoretical backing. In this work, we present an approach for automatically generating a suite of auxiliary objectives. We achieve this by deconstructing existing objectives within a novel unified taxonomy, identifying connections between them, and generating new ones based on the uncovered structure. Next, we theoretically formalize widely-held intuitions about how auxiliary learning improves generalization of the end-task. This leads us to a principled and efficient algorithm for searching the space of generated objectives to find those most useful to a specified end-task. With natural language processing (NLP) as our domain of study, we empirically verify that our automated auxiliary learning pipeline leads to strong improvements over competitive baselines across continued training experiments on a pre-trained model on 5 NLP end-tasks.
Introduction
In modern machine learning, "auxiliary learning"—the practice of adding supplementary tasks like Masked Language Modeling (MLM) to bolster a model's primary objective—has become a standard technique for improving performance, particularly in low-resource settings. However, the design of these auxiliary tasks remains a "black art," relying heavily on expert intuition and exhaustive trial and error. There is currently little theoretical guidance to predict which tasks will benefit a specific end-goal, and the potential search space for new objectives is vast.
AANG (Automating Auxiliary LearniNG) addresses this challenge by transforming the manual design process into an automated pipeline. By modularizing existing objectives and applying meta-learning to optimize their selection, AANG removes the technical barriers associated with hand-crafting named objectives like BERT, GPT, or XLNet for specific datasets.
Methods: A Unified Taxonomy and Automated Search
The AANG framework is built upon three core pillars designed to systematize auxiliary learning:
1. A Unified Taxonomy
The authors deconstruct existing NLP objectives into a four-stage modular pipeline. By taking the Cartesian product of these stages, AANG can generate a massive suite of candidate objectives, ranging from established classics to entirely new configurations.
- Data ($\mathcal{D}$): The source of the text (e.g., out-of-domain, in-domain, or task-specific data).
- Input Transformation ($\mathcal{T}$): The method of corruption (e.g., masking, token replacement, or no-op).
- Representation ($\mathcal{R}$): The model's contextual view (e.g., bidirectional, left-to-right, or random factorized).
- Output ($\mathcal{O}$): The prediction target (e.g., denoising a token, next-token prediction, or task labels).
2. Theoretical Foundation
To move beyond intuition, the paper utilizes "algorithmic stability" to derive generalization error bounds. This theory suggests that auxiliary tasks are most effective when they share structural similarities with the end-task and provide a significant volume of data.
3. The AANG Algorithm
To navigate the resulting search space efficiently, AANG employs a factored approach. Instead of weighting hundreds of individual tasks, it assigns weights to the underlying components of the taxonomy. Using a meta-learning approach (META-TARTAN), the algorithm adaptively updates these weights based on how effectively a component improves the model's performance on the end-task's validation set.
Empirical Results
The framework was evaluated using a RoBERTa-base model across five low-resource NLP classification benchmarks, including CHEMPROT (biomedical), SCIERC (scientific), and SE-2016-6 (social media stance detection).
AANG achieved an average improvement of 4.2% over standard RoBERTa fine-tuning and consistently outperformed strong established baselines like Task-Adaptive Pre-training (TAPT). Notably, the "task augmentation" strategy—transforming the end-task's own data—often outperformed methods using much larger external datasets.
Discussion and Insights
Analysis of AANG's behavior reveals that it often "rediscovers" successful human-designed objectives, such as BERT-style denoising, validating the search process. Furthermore, AANG learns a dynamic task schedule: it typically prioritizes self-supervised denoising early in training before shifting weight toward tasks that more closely resemble the final supervised objective. While the meta-learning search introduces some computational overhead, the efficiency gained through taxonomy factoring makes the automated discovery of optimal auxiliary signals feasible for a wide range of tasks.
Summary updated