Manuscript Offprint
arXiv:2608.30297AIA: Attribute-Agnostic Imbalance Augmentation for Subgroup Robustness
Abstract
Attributes describing data content and context can induce diverse imbalance patterns that go beyond label imbalance alone. However, existing studies primarily address label imbalance while overlooking data attributes, such as topics and demographics, which can induce meaningful subgroup structure while causing model degradation on underrepresented subgroups. We propose Attribute-Agnostic Imbalance Augmentation (AIA ) , a framework for improving model robustness under varying subgroup imbalances without explicit subgroup annotations. AIA automatically discovers varying imbalances via latent semantic distributions, obtains slices with both learning difficulty and subgroup imbalance deficits, and deploys a large language model (LLM) for subgroup-aware imbalance augmentation. We have evaluated AIA on 5 popular corpora with rich domains and their attribute values, covering social issues and diverse topics. Results show improved performance on the lowest-performing subgroups and consistent gains over competitive baselines. Ablation studies confirm complementary contributions from each component, and additional analyses show that AIA provides a practical and consistent way to improve worst-group robustness under data subgroup imbalance.
1 Introduction
Data attributes explicitly characterize data with heterogeneous attribute values and categorize data into subgroups with distinct statistical properties, such as topic, demographic factors, and various sources (Koh et al., 2021; Chen et al., 2023a; Li et al., 2025; Liu et al., 2025). Those data attributes can induce diverse patterns of subgroup imbalance that are not reflected by general data and label imbalance alone. However, varying imbalance patterns by attribute values are usually overlooked in

(a) Input Space (UMAP)
(b) Label Distribution
Figure 1: Subgroup-level distribution shifts in HumAID across different event sources (colors).
existing studies (Rudner et al., 2024), which can easily lead to unstable performance on underrepresented or minority subgroups and raise concerns on model robustness and reliability. For example, a model optimized for overall label distributions may still exhibit significant performance variations or disparities across groups of data attributes with varying distributions.
Figure 1 visualizes social media subgroup distributions by event source and label distributions: label imbalance widely exists across the subgroups, while imbalance patterns vary significantly across event sources. While a growing body of work focuses on data balance through re-weighting (Lin et al., 2020; Rao et al., 2026), sampling (Chawla et al., 2002), data augmentation (Zhang et al., 2023), and optimization (Ren et al., 2020), these studies usually consider only global-level label skew, leaving subgroup-level data skew underexplored. Additionally, existing approaches (Henning et al., 2023) implicitly or explicitly assume that attribute values and annotations are accessible; however, subgroup-defining attributes are often unknown, partially observed, sensitive, or unavailable. For example, demographic attributes may be restricted due to privacy or regulatory constraints. These gaps limit existing imbalance methods particularly when subgroup structure is implicit rather
Code is available at https://github.com/trust-nlp/AIA2-Subgroup-Robustness

Figure 2: Overview of the AIA framework. (1) Latent Slice Discovery partitions examples into coherent slices using joint semantic-predictive representations; (2) Slice-Level Distribution Gap Analysis identifies deficit labels and selects high-loss seeds; (3) Constraint-Guided Augmentation and Filtering generates and filters candidates for consistency and diversity. Augmented data is merged into the training set for the next iteration.
than explicit.
In this work, we introduce Attribute-Agnostic Imbalance Augmentation (AIA ), a general framework for enhancing model robustness to subgroup imbalance induced by unknown or latent distributional variations. Instead of predefined attribute values or explicit subgroup labels, AIA automatically discovers latent slices with a joint semantic and learning space, identifies regions of distributional imbalance and misalignment, and constructs latent subgroup graphs to guide data and model augmentation. AIA employs distributional-gap-aware and constraint-guided data augmentation by large language models (LLMs) to dynamically select and fix subgroup imbalance deficits. Because these latent slices evolve with the task model, AIA can track localized failure regions without requiring predefined group assignments. In sum, our contributions are threefold: 1) we propose an attribute-agnostic imbalance-learning framework that improves worst-subgroup robustness without using subgroup metadata during training or model selection; 2) we present a subgroup-aware distributional gap analysis and imbalance-deficit-driven selection mechanism that targets minority patterns and labels within latent regions; and 3) we propose a constraint-guided filtering strategy and augmentation to ensure data diversity and label fidelity.
This raises a fundamental question: when the model’s worst failures occur in such unobserved, locally-misaligned regions, how can we identify where the distribution is “broken” and intervene without access to the right grouping? To address this challenge, we propose an iterative slice-aware augmentation framework that i) discovers latent slices by clustering examples in a joint semantic-predictive space, ii) quantifies local distribution gaps to identify which labels are deficient in each slice, and iii) selectively generates targeted augmentations from the hardest examples while ensuring label consistency and semantic diversity. By iteratively repairing these local distribution defects, our method reduces concentrated slice-level errors without requiring known subgroups. Figure 2 shows the overview of our method.
2.1 Latent Slice Discovery
To identify where errors concentrate, we partition the data into slices based on two complementary signals: the input distribution captured by semantic embeddings, and the predictive distribution captured by model outputs. Clustering on alone groups semantically similar examples but ignores model behavior; clustering on alone captures prediction patterns but conflates unrelated inputs. By combining both, we discover regions where similar content elicits similar (often erroneous) predictions, the failure modes that single-distribution approaches miss.
We construct a joint representation space that captures both semantic content and predictive behavior. For each training example , we combine its semantic embedding (obtained from a pre-trained BGE encoder (Xiao et al., 2023)) with its prediction vector . For classification tasks, corresponds to softmax outputs for single-label or sigmoid outputs for multi-label settings. For sequence labeling tasks such as named entity recognition, where predictions occur at the token level, we instead construct a boundary behavior vector for entity types. This vector encodes, for each type, the average prediction loss on gold entity tokens, the entropy at boundary regions including adjacent positions, and the negative margin between correct and competing label probabilities—collectively capturing how reliably the model identifies entity boundaries rather than aggregating raw token-level outputs. The unified representation is defined as:
, where and are L2-normalized vectors, denotes concatenation, and controls the relative importance of predictive information. This design ensures that slices capture coherent regions in the joint space of (via ) and (via ), rather than relying on either signal alone.
To discover coherent slices from this joint space, we construct a k-nearest neighbor graph where edges connect similar examples, then apply the Leiden community detection algorithm (Traag et al., 2019) with resolution parameter to control granularity. Unlike hierarchical clustering, Leiden optimization naturally handles varying cluster sizes and discovers communities at multiple scales, making it well-suited for finding both broad patterns and concentrated error pockets. The resulting slices provide a data-driven partitioning evolving with the model's behavior across training iterations.
2.2 Slice-Level Distribution Gap Analysis
Having discovered slices that are coherent in space, we now ask: which labels should we augment within each slice? The answer lies in the gap between a slice's local label distribution and the empirical global distribution . For each slice s, we compute the local label distribution and compare it with the global distribution . For multi-class classification, these are simply the empirical class frequencies; for multi-label tasks, they represent per-label positive rates. For sequence labeling tasks such as NER, we define distributions at the span level rather than the token level— represents the proportion of entity spans of type c within slice s, computed by counting contiguous B/I segments for each entity type. This span-based formulation better reflects the semantic composition of entities and avoids bias from varying entity lengths. We quantify the distribution gap using L1 distance:
When , we select slice for augmentation. More importantly, we compute the deficit vector , which indicates which labels are under-represented relative to the global distribution and by how much.
To select seed examples for augmentation, we prioritize candidates based on both label deficits and individual difficulty. For each deficit label c with , we identify candidate examples in slice s with label c, excluding any previously augmented samples. We then rank candidates by their cross-entropy loss , selecting the hardest examples as seeds. The number of seeds per label is proportional to its deficit mass, with the total augmentation budget for slice s determined by:
, where is a set of examples in the slice , provides sublinear scaling to prevent large slices from dominating, controls the overall augmentation rate, and caps the per-slice budget.
2.3 Constraint-Guided Augmentation and Filtering
Given the deficit labels identified through gap analysis within each -defined slice, we now generate augmentations that maintain label fidelity while introducing sufficient diversity to improve local coverage. We leverage a large language model (LLM) with carefully designed constraints to generate meaningful candidates.
For classification tasks, we design prompts that enforce structural transformation and entity substitution while preserving label-determining semantics. Each prompt requires 1) sentence-level restructuring beyond simple word swaps and 2) type-preserving entity replacement (e.g., person→person, location→location). Sequence labeling tasks like NER present a different challenge: direct text rewriting can misalign tokens with their labels. To address this, we use a placeholder-based mechanism. Before generation, we replace each entity span with a unique placeholder (e.g., ENT0) and instruct the LLM to rewrite only the surrounding context while preserving all placeholders. After generation, we expand placeholders back to their original entity tokens with corresponding BIO tags, ensuring perfect token-label alignment. To guide the generation, we provide k reference examples—other high-loss samples from the same slice with the same label—with entities masked as type markers (e.g., ENT:PER) to prevent direct copying while allowing the model to borrow stylistic patterns.
To ensure quality, we generate m candidates per seed and apply a two-stage filtering pipeline. First, we apply hard constraints to verify format compliance, including length limits and single-line output; for NER tasks, we additionally enforce that each placeholder appears exactly once and that original entity surface forms do not appear in the rewritten context. Second, we score surviving candidates to balance prediction consistency and semantic diversity. Specifically, we pass each candidate through the current model and compute its score as:
, where p denotes predicted class probabilities from
Algorithm 1 AIA unified training procedure
Input: Training set , validation set
Parameter: Warmup rounds , total rounds T, gap threshold
Output: Best model
1: Initialize , ,
2: for to T do
3:
4: Update if validation on improves
5: if or then
6: continue
7: end if
8: Compute ,
9: Discover slices using Leiden on the kNN graph
10: for each slice s with do
11: Select high-loss seeds from deficit labels
12: Generate augmentations via LLM
13: end for
14:
15: end for
16: return
the task model and z denotes sentence embeddings from the pretrained BGE encoder, with both terms computed via cosine similarity. The first term rewards prediction consistency, while the second encourages semantic diversity relative to the seed. We then select the top-scoring candidates up to the per-seed budget, typically retaining 2–3 augmentations per seed to balance quality and quantity.
2.4 Iterative Training Framework
The latent slice discovery, distribution gap analysis, and targeted augmentation mechanisms integrate seamlessly into a unified iterative training procedure summarized in Algorithm 1. Training proceeds through T rounds, beginning with warmup rounds of standard training to establish initial model behavior before augmentation begins. At each subsequent round, the framework trains the model on the current dataset, re-discovers slices using updated joint representations, identifies deficit labels within misaligned slices, and generates targeted augmentations that are merged into the training set for the next round. Re-slicing at each round allows the discovery mechanism to adapt as the model evolves, enabling progressive correction of local distribution defects without predefined groups or manual intervention.
| Dataset | Domain | Task | Size | #Classes | #Subgroups | Splits | IR | ||
|---|---|---|---|---|---|---|---|---|---|
| Train | Valid | Test | |||||||
| HateXplain | Social | CLS | 14,995 | 3 | 8 | 11,996 | 1,499 | 1,500 | 1.6 |
| HumAID | Crisis | CLS | 15,311 | 7 | 5 | 10,717 | 1,559 | 3,035 | 14.8 |
| WWW2015 | Review | CLS | 15,449 | 5 | 10 | 12,378 | 1,562 | 1,509 | 27.4 |
| RE3D | Security | NER | 931 | 5 | 7 | 634 | 50 | 247 | 16.3 |
| CrossNER | Multi-domain | NER | 5,327 | 5 | 5 | 4,261 | 532 | 534 | 2.0 |
Table 1: Dataset characteristics. #Subgroups indicates annotated metadata (e.g., country, target group) that define natural data partitions. IR (imbalance ratio) is the ratio of the largest class size to the smallest class size.
3 Experiment
3.1 Data
We evaluate our approach on five publicly available corpora across two tasks: text classification (CLS) and named-entity recognition (NER). These datasets exhibit both global class imbalance and heterogeneous subpopulations whose local label distributions may differ from the global pattern. For CLS, HateXplain (Mathew et al., 2021) provides hate speech annotations with target-community metadata; HumAID (Alam et al., 2021) contains humanitarian tweets from multiple disaster sources; and WWW2015 (Hovy et al., 2015) includes business reviews with company-level metadata. For NER, RE3D (Defence Science and Technology Laboratory, 2021) covers news, government, and encyclopedic documents annotated with defense and security entities, while CrossNER (Liu et al., 2020) spans five specialized domains with domain-specific entity labels. We quantify global imbalance by IR = |maj|/|min|. Table 1 summarizes the dataset characteristics, with further details provided in Appendix A.
3.2 Baselines
We compare AIA against baselines spanning three paradigms: sample-level reweighting, group-level optimization, and LLM-based augmentation. For sample-level methods, Focal Loss (Lin et al., 2020) down-weights well-classified examples using the modulating factor , while Just Train Twice (JTT) (Liu et al., 2021) upweights examples misclassified by an early ERM model. For group-level methods, Group DRO (Sagawa et al., 2020) optimizes the worst-group loss through group reweighting, and Diverse Prototypical Ensembles (DPE) (To et al., 2025) uses subgroup annotations to build attribute-balanced validation sets and train diverse prototypical classifiers. GEORGE (Sohoni et al., 2020) infers hidden subclasses by clustering learned representations and applies group-robust training over the resulting proxy groups. Following its original example-level formulation, we evaluate GEORGE only on the three classification datasets. AugGPT paraphrases random training samples; CB-LLM augments minority classes by the global class distribution. Unlike these baselines, AIA performs targeted augmentation by inferring latent subgroup-label structure. Additional baseline details are provided in Appendix B.
3.3 Experimental Settings
To ensure consistency with the baselines, we use DeBERTa-v3-base (He et al., 2021) as the default task model. For AIA , we use BGE-large-env1.5 (Xiao et al., 2023) for slice discovery and Qwen3-32B (Team, 2025) for sample augmentation (temperature 0.85). We run 8 iterative rounds and select the best checkpoint based on validation performance. We report Micro-F1 and Macro-F1. For NER, scores are computed at the entity level under the BIO scheme, excluding the O tag. We further evaluate worst-group performance using WGA for multi-class classification and WG-F1 for NER. WGA is the minimum accuracy across predefined subgroups, while WG-F1 is the minimum micro-F1 across subgroups. All results are averaged over five independent runs with different random seeds, and Appendix E reports standard deviations of the results in Table 2. Additional implementation details, hyperparameter sensitivity analyses, and computational overhead appear in Appendix C, Appendix F, and Appendix G, respectively.
4 Results
4.1 Overall Performance
Table 2 summarizes the overall performance of AIA against seven baselines, with GEORGE evaluated on the classification datasets only. Across datasets, AIA consistently achieves the best results, improving Macro-F1, Micro-F1, and worst-group metrics by up to 1.9, 2.2, and 1.5 points, respectively. On the severely imbalanced WWW2015 (IR = 27.4), AIA reaches 57.6 Macro-F1, outperforming GEORGE by 1.4 points, while improving WGA over the best baseline by 1.5 points. It also remains effective in less skewed settings, improving both Macro-F1 and WG-F1 on CrossNER (IR = 2.0). The comparisons with Aug-GPT and CB-LLM show that these gains are not simply due to generic LLM paraphrasing or global class-balanced expansion. On WWW2015, AIA
| Method | CLS | NER | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HumAID | WWW2015 | HateXplain | RE3D | CrossNER | |||||||||||
| M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WG-F1 | M-F1 | μ-F1 | WG-F1 | |
| Focal | 67.5 | 76.0 | 69.5 | 54.2 | 85.2 | 78.4 | 63.3 | 65.1 | 54.3 | 64.6 | 64.0 | 59.1 | 71.4 | 72.6 | 60.9 |
| GroupDRO | 66.8 | 75.9 | 71.5 | 53.1 | 85.4 | 76.7 | 63.1 | 64.8 | 54.9 | 64.9 | 63.9 | 60.0 | 73.7 | 72.0 | 61.9 |
| GEORGE | 67.2 | 75.9 | 70.4 | 56.2 | 84.5 | 78.8 | 63.4 | 64.4 | 56.4 | - | - | - | - | - | - |
| JTT | 65.6 | 74.5 | 68.7 | 52.6 | 86.1 | 79.4 | 59.3 | 61.7 | 52.0 | 64.4 | 62.3 | 57.8 | 72.2 | 73.4 | 62.5 |
| DPE | 53.3 | 75.4 | 69.6 | 43.4 | 86.4 | 79.4 | 62.7 | 63.8 | 56.7 | 63.5 | 63.2 | 60.1 | 72.2 | 73.4 | 61.9 |
| CB-LLM | 66.4 | 75.6 | 67.5 | 53.5 | 85.1 | 78.8 | 62.0 | 64.1 | 55.6 | 64.7 | 63.7 | 59.5 | 71.7 | 72.3 | 60.9 |
| AugGPT | 67.5 | 76.0 | 71.0 | 54.4 | 85.5 | 77.0 | 60.4 | 63.3 | 53.7 | 64.9 | 64.1 | 59.6 | 72.1 | 72.5 | 62.2 |
| (Ours) | 69.4 | 77.6 | 71.8 | 57.6 | 87.5 | 80.9 | 64.6 | 66.2 | 57.7 | 66.5 | 66.3 | 60.5 | 74.4 | 74.9 | 63.8 |
Table 2: Results of baselines and the proposed AIA (percentages). M-F1 and -F1 denote macro-averaged and micro-averaged F1 scores, respectively. WGA denotes worst-group accuracy for CLS, and WG-F1 denotes worst-group F1 score for NER. GEORGE is evaluated only on the classification datasets. Best scores are in bold.

Figure 3: Subgroup-level Micro-F1 (%) across five datasets. Each radar plot compares AIA with two representative baselines, JTT and DPE. Each spoke denotes a subgroup, and radial values indicate Micro-F1.
improves over the best augmentation baseline by 3.2 points in Macro-F1, 2.0 points in Micro-F1, and 2.1 points in WGA. Compared with reweighting, group-aware optimization, error-based upweighting or ensembling, and LLM-based augmentation, AIA provides more consistent improvements. These results suggest that discovering latent slices and repairing slice-level label deficits through targeted augmentation is more effective than relying on predefined groups, loss-based signals, or untargeted LLM augmentation.
Subgroup-level analysis. Figure 3 presents subgroup Micro-F1 comparisons using radar plots, contrasting AIA with two representative baselines, JTT and DPE. Each radar chart corresponds to one dataset, where each spoke denotes a subgroup and the radial value indicates Micro-F1. We choose JTT and DPE because they provide strong worst-group performance while reflecting two distinct supervision settings: JTT does not rely on subgroup labels, whereas DPE leverages group annotations. Across all five datasets, AIA forms the outer envelope on most spokes, achieving the highest or near-highest Micro-F1 for the majority of subgroups. The gains are most evident on challenging subgroups where baselines exhibit sharp drops (e.g., several minority subgroups in HateXplain, specific disaster events in HumAID, and domain-specific subsets in RE3D/CrossNER). Overall, the radar plots indicate that AIA delivers broad and consistent improvements across diverse subgroups, rather than increasing aggregate scores by trading off performance on specific subgroups.
4.2 Slice Alignment and Deficit Repair
Slice–attribute alignment. To examine how the latent slices discovered without subgroup supervision relate to available dataset attributes, we compare their community assignments with metadata labels withheld from training and used only for post-hoc evaluation. For the four datasets in which each instance has a single metadata value, we compute Adjusted Mutual Information (AMI), a chance-adjusted measure of agreement between partitions (Vinh et al., 2009), over the original training instances after each community-discovery round and report the mean across rounds. HateXplain is excluded because an instance may be associated with multiple target groups, so its metadata
| Blk Method | CLS | NER | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HumAID | WWW2015 | HateXplain | RE3D | CrossNER | ||||||||||||
| M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WG-F1 | M-F1 | μ-F1 | WG-F1 | ||
| MA | Full | 69.4 | 77.6 | 71.8 | 57.6 | 87.5 | 80.9 | 64.6 | 66.2 | 57.7 | 66.5 | 66.3 | 60.5 | 74.4 | 74.9 | 63.8 |
| w/o slice | 67.8 | 76.8 | 70.8 | 54.3 | 86.5 | 80.0 | 62.3 | 64.1 | 55.2 | 63.9 | 63.9 | 58.7 | 73.2 | 71.7 | 61.1 | |
| w/o gap-aware | 67.2 | 76.1 | 69.5 | 55.5 | 86.3 | 78.9 | 62.6 | 64.5 | 57.6 | 65.0 | 64.7 | 53.3 | 73.1 | 73.1 | 62.2 | |
| w/o LLM | 67.7 | 76.7 | 70.4 | 53.8 | 86.5 | 78.9 | 63.5 | 65.5 | 56.7 | 65.6 | 65.4 | 58.2 | 72.8 | 71.8 | 64.2 | |
| TM | Focal | 66.2 | 73.8 | 68.7 | 53.3 | 85.8 | 78.2 | 62.6 | 64.2 | 54.8 | 49.9 | 47.8 | 33.3 | 65.8 | 64.3 | 53.8 |
| GroupDRO | 67.2 | 75.8 | 69.5 | 52.2 | 85.5 | 77.8 | 60.4 | 61.7 | 52.9 | 49.5 | 46.8 | 27.0 | 66.2 | 65.2 | 54.5 | |
| GEORGE | 66.5 | 75.1 | 68.7 | 52.4 | 84.0 | 77.7 | 62.0 | 63.5 | 53.2 | - | - | - | - | - | - | |
| JTT | 66.2 | 75.8 | 70.2 | 53.8 | 85.9 | 77.1 | 62.2 | 63.7 | 53.9 | 50.7 | 51.7 | 43.3 | 65.7 | 64.8 | 54.1 | |
| DPE | 40.4 | 67.9 | 59.7 | 17.9 | 81.0 | 67.7 | 44.3 | 50.9 | 34.3 | 45.0 | 43.7 | 28.6 | 24.7 | 29.9 | 16.1 | |
| CB-LLM | 66.0 | 75.6 | 68.5 | 52.5 | 85.2 | 77.5 | 62.1 | 63.7 | 52.9 | 51.0 | 50.2 | 40.5 | 64.4 | 64.7 | 55.0 | |
| AugGPT | 65.5 | 75.4 | 68.1 | 51.9 | 84.6 | 77.6 | 62.3 | 63.9 | 51.0 | 51.8 | 50.2 | 42.7 | 63.9 | 64.1 | 57.3 | |
| (Ours) | 67.0 | 76.1 | 69.5 | 54.9 | 86.4 | 78.2 | 63.2 | 64.5 | 54.8 | 53.8 | 51.2 | 43.6 | 66.8 | 66.1 | 59.1 | |
| BB | Qwen3-32B | 69.4 | 77.6 | 71.8 | 57.6 | 87.5 | 80.9 | 64.6 | 66.2 | 57.7 | 66.5 | 66.3 | 60.5 | 74.4 | 74.9 | 63.8 |
| Qwen3-14B | 69.3 | 77.6 | 71.8 | 54.0 | 86.6 | 80.1 | 63.3 | 65.2 | 57.7 | 64.8 | 65.0 | 60.2 | 74.4 | 73.3 | 61.5 | |
| Phi-4 | 69.5 | 77.7 | 71.7 | 55.6 | 87.2 | 81.1 | 63.6 | 65.2 | 58.9 | 68.9 | 68.0 | 62.1 | 74.3 | 72.9 | 62.8 | |
Table 3: Combined ablation results. Blocks correspond to: MA (module ablation of AIA ), TM (task model ablation on ModernBERT-base), and BB (LLM backbone ablation). In MA, w/o slice removes latent slice discovery, w/o gap-aware removes label-gap-aware seed selection, and w/o LLM removes LLM-based augmentation.
| Dataset | #Groups | #Communities | AMI ↑ |
|---|---|---|---|
| HumAID | 5 | 10–12 | 0.637 |
| WWW2015 | 10 | 13–14 | 0.615 |
| RE3D | 7 | 8–10 | 0.268 |
| CrossNER | 5 | 12–15 | 0.559 |
Table 4: Alignment between discovered communities and metadata-defined groups. #Groups denotes the number of attribute values, and #Communities reports the observed range across discovery rounds.
does not define a single partition.
As shown in Table 4, alignment varies across datasets. AMI reaches 0.637 on HumAID, 0.615 on WWW2015, and 0.559 on CrossNER, but decreases to 0.268 on RE3D. Across all four datasets, the number of discovered communities exceeds the number of metadata-defined groups, suggesting that a single group may contain multiple regions with distinct semantic content or model responses. Despite its weaker alignment, AIA still improves all three evaluation metrics on RE3D in Table 2, indicating that useful slices need not closely reproduce the available metadata partition. Overall, the discovered slices capture part of the metadata-defined structure while also reflecting finer-grained semantic–predictive variation.
Deficit repair and subgroup gains. To further examine whether AIA improves subgroup robustness through targeted deficit repair, we conduct a subset-level diagnostic analysis on classification datasets, where subgroup-label subsets and subset- level accuracy are directly defined. A subgroup-label subset refers to examples of label c within subgroup a. For each subset, its label-deficit gap measures how much label c is underrepresented in subgroup a compared with the global label distribution of the original training set. We define the deficit reduction after augmentation as , where a larger value indicates that augmentation better reduces the local label deficit. We then compute the corresponding accuracy gain as , where is obtained from the same training setup without generated data.

Figure 4: Subgroup-label accuracy gain versus deficit reduction on WWW2015, with an OLS fit.
On WWW2015, deficit reduction is strongly associated with accuracy gain across 39 subgroup-label subsets: the Spearman correlation is 0.769
, and the ordinary least squares (OLS) fit explains a substantial portion of the variation ( ). Figure 4 visualizes this pattern, showing that larger generally corresponds to larger . Among all subsets, 16 subsets (41.0%) fall into the positive-repair region with both reduced deficit and improved accuracy. This result suggests that AIA gains are concentrated in subsets where subgroup-label deficits are effectively reduced, supporting targeted deficit repair as a key mechanism behind the observed subgroup robustness improvements. Additional results on the other two CLS datasets are provided in Appendix H and show the same positive trend.
4.3 Ablation Study: Module Contributions
We conduct a module-level ablation study by selectively disabling one module at a time while keeping the rest of the iterative training pipeline unchanged: Latent Slice Discovery (“w/o slice”), Label-Gap-Aware Seed Selection (“w/o gap-aware”), and LLM-Based Augmentation (“w/o LLM”). In the first ablation, learned slices are replaced with random partitions of equal cardinality. In the second, seed examples are sampled uniformly at random within each slice rather than prioritized by type-specific gap scores. In the third, the LLM generator is replaced with a copy-based method that simply duplicates the seed instances.
As shown in the first block (MA) of Table 3, the full model performs best across benchmarks, achieving the top results on nearly all metrics. Removing Latent Slice Discovery leads to consistent degradation, with drops on WWW2015 Macro-F1 (57.6 to 54.3) and CrossNER Micro-F1 (74.9 to 71.7), indicating that learned slices support targeted augmentation. Removing Label-Gap-Aware Seed Selection weakens tail performance, with the largest drop on RE3D WG-F1 (60.5 to 53.3), showing that gap-based seed prioritization is critical for under-performing labels. Replacing LLM-Based Augmentation with simple duplication reduces most scores, especially on WWW2015 Macro-F1 (57.6 to 53.8), confirming that diverse examples provide richer supervision than duplicates.
4.4 Ablation Study: Impacts of Base Models
We investigate the robustness of AIA to two key model choices: 1) the task backbone used for classification and NER; 2) the LLM used for data augmentation. Additional ablations of slice representation, seed selection, and clustering methods are provided in Appendix I.
Task model generalization. The TM block of Table 3 evaluates whether AIA remains effective when the task model is changed from DeBERTa-v3-base to ModernBERT-base (Warner et al., 2024). Although all methods show slightly lower absolute performance under ModernBERT, AIA still achieves the strongest or comparable results on most benchmarks. In particular, it obtains the best Macro-F1 on four of the five datasets and the best worst-group score on both NER datasets. For example, on CrossNER, AIA improves WG-F1 over the best baseline (AugGPT, 57.3) by 1.8 points. We also find that DPE is more sensitive to the backbone change, likely because it relies on frozen ERM features, whereas AIA remains comparatively stable across encoder architectures. These results suggest that slice-aware augmentation is not tied to a specific task backbone and generalizes across modern pretrained encoders.
Data Generator Impacts. The BB block of Table 3 examines sensitivity to augmentation LLM choice by comparing Qwen3-32B (default), Qwen3-14B, and Phi-4. Overall, results are stable across generators, with most datasets varying within 1–2 Macro-F1 points (e.g., HumAID: 69.3–69.5). Phi-4 performs particularly well on RE3D (Macro-F1 68.9, WG-F1 62.1), exceeding Qwen3-32B by 2.4 and 1.6 points, suggesting that smaller but well-aligned models can be effective for targeted augmentation. The main sensitivity occurs on WWW2015, where Qwen3-32B (57.6) outperforms Qwen3-14B (54.0) by 3.6 Macro-F1 points, likely due to the higher diversity required for business review generation. These findings indicate that AIA is not tightly coupled to a specific LLM and can leverage a range of open-source generators without substantial performance loss.
5 Related Work
Class imbalance and group robustness have been widely studied in machine learning. Re-weighting methods adjust loss contributions by class frequency or training difficulty, as in Focal Loss (Lin et al., 2020) and Class-Balanced Loss (Cui et al., 2019). Group-robust methods further target performance disparities by minimizing worst-case loss over predefined groups (Sagawa et al., 2020). Later methods reduce the need for full group annotations by using initial model errors, biased models, or in-ferred environments to identify hard examples (Liu et al., 2021; Nam et al., 2020; Creager et al., 2021). However, these methods usually rely on observed group information during training or validation, or address global class imbalance without modeling latent subgroup structure.
Another line of work discovers underperforming subgroups without explicit annotations. Domino identifies coherent error slices using cross-modal embeddings and produces natural language descriptions (Eyuboglu et al., 2022). GEORGE clusters learned representations to uncover hidden subclasses, then applies group-robust training with pseudo-labels (Sohoni et al., 2020). Spotlight searches representation space for regions with concentrated errors (d'Eon et al., 2022). These methods are useful for diagnosis, but they mainly identify failure modes after training. They do not integrate subgroup discovery into training to repair local distributional gaps.
Data augmentation offers a complementary way to improve robustness. Traditional text augmentation uses word-level perturbations or back-translation to create paraphrases (Wei and Zou, 2019; Sennrich et al., 2016). Recent LLM-based methods generate more fluent augmented examples through sample mixing, rephrasing, or counterfactual prompting (Han et al., 2025; Yoo et al., 2021; Dai et al., 2025; Chen et al., 2023b). Mixup-based methods interpolate between training examples, while LISA selectively mixes samples using domain or label information to improve out-of-distribution robustness (Guo et al., 2019; Yao et al., 2022). However, existing augmentation strategies usually apply transformations globally or depend on explicit domain annotations for selection. They lack a way to locate distributionally deficient latent subgroups and direct augmentation toward those regions.
6 Conclusion
This paper presented AIA , a framework for improving subgroup robustness without explicit attribute annotations. AIA discovers latent slices in a joint semantic-predictive space, identifies local label deficits, and uses LLMs for targeted augmentation. Across five text classification and named entity recognition datasets, AIA improves overall and worst-group performance over competitive baselines. Generated-data analysis shows that gains concentrate in subgroup-label subsets where augmentation reduces local deficits, supporting targeted deficit repair as the main mechanism. Ablation studies confirm the roles of slice discovery, gap-aware selection, and LLM-based generation, with stable results across design choices. Future work will explore more efficient slice discovery and augmentation strategies to reduce the computational overhead of iterative training. It will also be benefit to extend AIA to broader NLP tasks and systematically evaluate its effectiveness across subgroups defined by demographic attributes, such as health informatics, where rich demographic attributes exist and imbalance and augmentation may interact with demographic biases.
Limitations
Despite its effectiveness, AIA has several limitations. First, the framework introduces extra computational cost due to iterative training, repeated slice discovery, distribution gap analysis, and LLM-based augmentation. Although the overhead is manageable in our experiments, scaling to larger corpora or stronger task models may require more efficient slice construction and generation strategies. Second, latent slice discovery depends on the quality of semantic embeddings and prediction signals. When these representations are noisy or weakly aligned with the target domain, the discovered slices may become less reliable, which can affect seed selection and augmentation quality. Third, LLM-generated examples may contain label noise, hallucinated details, or demographic and topical biases. Although our filtering procedure checks format, label consistency, and semantic diversity, it cannot fully eliminate these risks. Finally, our evaluation focuses on text classification and named entity recognition. The generalizability of AIA to other NLP tasks, such as relation extraction or question answering, remains to be further validated. Future work can improve the efficiency, stability, and applicability of slice-aware augmentation.
Acknowledgments
The first and second authors were supported by the NSF CRII (IIS-2245920) and MRI (CNS-2318210) awards, respectively. We thank the computing resources provided by the iTiger GPU cluster (Sharif et al., 2026) supported by the NSF MRI program under the award CNS-2318210.
References
Firoj Alam, Umair Qazi, Muhammad Imran, and Ferda Ofli. 2021. Humaid: Human-annotated disaster incidents data from twitter. In Proceedings of the Fifteenth International AAAI Conference on Web and Social Media, ICWSM '21, Online. AAAI.
Nitesh V Chawla, Kevin W Bowyer, Lawrence O Hall, and W Philip Kegelmeyer. 2002. Smote: synthetic minority over-sampling technique. Journal of artificial intelligence research, 16:321–357.
Muxi Chen, YU LI, and Qiang Xu. 2023a. Hibug: On human-interpretable model debug. In Advances in Neural Information Processing Systems, volume 36, pages 4753–4766. Curran Associates, Inc.
Zeming Chen, Qiyue Gao, Antoine Bosselut, Ashish Sabharwal, and Kyle Richardson. 2023b. Disco: Distilling counterfactuals with large language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5514–5528.
Elliot Creager, Jörn-Henrik Jacobsen, and Richard Zemel. 2021. Environment inference for invariant learning. In International Conference on Machine Learning, pages 2189–2200. PMLR.
Yin Cui, Menglin Jia, Tsung-Yi Lin, Yang Song, and Serge Belongie. 2019. Class-balanced loss based on effective number of samples. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 9268–9277.
Haixing Dai, Zhengliang Liu, Wenxiong Liao, Xiaoke Huang, Yihan Cao, Zihao Wu, Lin Zhao, Shaochen Xu, Fang Zeng, Wei Liu, and 1 others. 2025. Auggpt: Leveraging chatgpt for text data augmentation. IEEE Transactions on Big Data, 11(3):907–918.
Defence Science and Technology Laboratory. 2021. Relationship and entity extraction evaluation dataset (documents). Accessed: 2026-01-17.
Greg d'Eon, Jason d'Eon, James R Wright, and Kevin Leyton-Brown. 2022. The spotlight: A general method for discovering systematic errors in deep learning models. In Proceedings of the 2022 ACM Conference on Fairness, Accountability, and Transparency, pages 1962–1981.
Martin Ester, Hans-Peter Kriegel, Jörg Sander, and Xiaowei Xu. 1996. A density-based algorithm for discovering clusters in large spatial databases with noise. In Proceedings of the Second International Conference on Knowledge Discovery and Data Mining, KDD'96, page 226–231. AAAI Press.
Sabri Eyuboglu, Maya Varma, Khaled Saab, Jean-Benoit Delbrouck, Christopher Lee-Messer, Jared Dunnmon, James Zou, and Christopher Ré. 2022. Domino: Discovering systematic errors with cross-modal embeddings. arXiv preprint arXiv:2203.14960.
Hongyu Guo, Yongyi Mao, and Richong Zhang. 2019. Augmenting data with mixup for sentence classification: An empirical study. arXiv preprint arXiv:1905.08941.
Guangzeng Han, Weisi Liu, and Xiaolei Huang. 2025. Attributes as textual genes: Leveraging LLMs as genetic algorithm simulators for conditional synthetic data generation. In Findings of the Association for Computational Linguistics: EMNLP 2025, pages 19367–19389, Suzhou, China. Association for Computational Linguistics.
Pengcheng He, Jianfeng Gao, and Weizhu Chen. 2021. Debertav3: Improving deberta using electra-style pretraining with gradient-disentangled embedding sharing. Preprint, arXiv:2111.09543.
Sophie Henning, William Beluch, Alexander Fraser, and Annemarie Friedrich. 2023. A survey of methods for addressing class imbalance in deep-learning based natural language processing. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pages 523–540.
Dirk Hovy, Anders Johannsen, and Anders Søgaard. 2015. User review sites as a resource for large-scale sociolinguistic studies. In Proceedings of the 24th International Conference on World Wide Web, WWW '15, page 452–461, Republic and Canton of Geneva, CHE. International World Wide Web Conferences Steering Committee.
Abiodun M. Ikotun, Absalom E. Ezugwu, Laith Abualigah, Belal Abuhaija, and Jia Heming. 2023. K-means clustering algorithms: A comprehensive review, variants analysis, and advances in the era of big data. Information Sciences, 622:178–210.
Pang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie, Marvin Zhang, Akshay Balsubramani, Weihua Hu, Michihiro Yasunaga, Richard Lanas Phillips, Irena Gao, Tony Lee, Etienne David, Ian Stavness, Wei Guo, Berton Earnshaw, Imran Haque, Sara M Beery, Jure Leskovec, Anshul Kundaje, and 4 others. 2021. Wilds: A benchmark of in-the-wild distribution shifts. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 5637–5664. PMLR.
Wang Li, Guangzeng Han, Yuexin Wu, I.-Chan Huang, and Xiaolei Huang. 2025. Joint Imbalance Adaptation for Radiology Report Generation. Journal of Healthcare Informatics Research, 9(4):720–742.
Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollár. 2020. Focal loss for dense object detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 42(2):318–327.
Evan Z Liu, Behzad Haghgoo, Annie S Chen, Aditi Raghunathan, Pang Wei Koh, Shiori Sagawa, Percy Liang, and Chelsea Finn. 2021. Just train twice: Improving group robustness without training group information. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 6781–6792. PMLR.
Weisi Liu, Guangzeng Han, and Xiaolei Huang. 2025. Examining and adapting time for multilingual classification via mixture of temporal experts. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 6151–6166, Albuquerque, New Mexico. Association for Computational Linguistics.
Zihan Liu, Yan Xu, Tiezheng Yu, Wenliang Dai, Ziwei Ji, Samuel Cahyawijaya, Andrea Madotto, and Pascale Fung. 2020. Crossner: Evaluating cross-domain named entity recognition.
Binny Mathew, Punyajoy Saha, Seid Muhie Yimam, Chris Biemann, Pawan Goyal, and Animesh Mukherjee. 2021. Hatexplain: A benchmark dataset for explainable hate speech detection. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 14867–14875.
Daniel Müllner. 2011. Modern hierarchical, agglomerative clustering algorithms. ArXiv, abs/1109.2378.
Junhyun Nam, Hyuntak Cha, Sungsoo Ahn, Jaeho Lee, and Jinwoo Shin. 2020. Learning from failure: Debiasing classifier from biased classifier. Advances in Neural Information Processing Systems, 33:20673–20684.
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, and 1 others. 2019. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32.
Hanshu Rao, Guangzeng Han, and Xiaolei Huang. 2026. Model-agnostic meta learning for class imbalance adaptation. In Findings of the Association for Computational Linguistics: ACL 2026, pages 10442–10456, San Diego, California, United States. Association for Computational Linguistics.
Jiawei Ren, Cunjun Yu, Xiao Ma, Haiyu Zhao, Shuai Yi, and 1 others. 2020. Balanced meta-softmax for long-tailed visual recognition. Advances in neural information processing systems, 33:4175–4186.
Tim GJ Rudner, Ya Shi Zhang, Andrew Gordon Wilson, and Julia Kempe. 2024. Mind the gap: Improving robustness to subpopulation shifts with group-aware priors. In International Conference on Artificial Intelligence and Statistics, pages 127–135. PMLR.
Shiori Sagawa, Pang Wei Koh, Tatsunori B Hashimoto, and Percy Liang. 2019. Distributionally robust neural networks for group shifts: On the importance of regularization for worst-case generalization. arXiv preprint arXiv:1911.08731.
Shiori Sagawa, Pang Wei Koh, Tatsunori B. Hashimoto, and Percy Liang. 2020. Distributionally robust neural networks. In International Conference on Learning Representations.
Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. Improving neural machine translation models with monolingual data. In Proceedings of the 54th annual meeting of the association for computational linguistics (volume 1: long papers), pages 86–96.
Mayira Sharif, Guangzeng Han, Weisi Liu, and Xiaolei Huang. 2026. Cultivating multidisciplinary AI workforce development on itiger GPU cluster: Practices and challenges. In Proceedings of the Practice and Experience in Advanced Research Computing 2026: Resilient Roots + Empowered Communities, Minneapolis, MN, USA, July 26-30, 2026, pages 84:1–84:6. ACM.
Nimit Sohoni, Jared Dunnmon, Geoffrey Angus, Albert Gu, and Christopher Ré. 2020. No subclass left behind: Fine-grained robustness in coarse-grained classification problems. Advances in Neural Information Processing Systems, 33:19339–19352.
Qwen Team. 2025. Qwen3 technical report. Preprint, arXiv:2505.09388.
Nguyen Nhat Minh To, Paul F R Wilson, Viet Nguyen, Mohamed Harmanani, Michael Cooper, Fahimeh Fooladgar, Purang Abolmaesumi, Parvin Mousavi, and Rahul Krishnan. 2025. Diverse prototypical ensembles improve robustness to subpopulation shift. In Forty-second International Conference on Machine Learning.
Vincent A Traag, Ludo Waltman, and Nees Jan Van Eck. 2019. From louvain to leiden: guaranteeing well-connected communities. Scientific reports, 9(1):1–12.
Taha ValizadehAslani, Yiwen Shi, Jing Wang, Ping Ren, Yi Zhang, Meng Hu, Liang Zhao, and Hualou Liang. 2024. Two-stage fine-tuning with chatgpt data augmentation for learning class-imbalanced data. Neurocomputing, 592:127801.
Nguyen Xuan Vinh, Julien Epps, and James Bailey. 2009. Information theoretic measures for clusterings comparison: is a correction for chance necessary? In Proceedings of the 26th annual international conference on machine learning, pages 1073–1080.
Benjamin Warner, Antoine Chaffin, Benjamin Clavié, Orion Weller, Oskar Hallström, Said Taghadouini, Alexis Gallagher, Raja Biswas, Faisal Ladhak, Tom Aarsen, Nathan Cooper, Griffin Adams, Jeremy Howard, and Iacopo Poli. 2024. Smarter, better, faster, longer: A modern bidirectional encoder for fast, memory efficient, and long context finetuning and inference. Preprint, arXiv:2412.13663.
Jason Wei and Kai Zou. 2019. Eda: Easy data augmentation techniques for boosting performance on text classification tasks. arXiv preprint arXiv:1901.11196.
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Remi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, and 3 others. 2020. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 38–45, Online. Association for Computational Linguistics.
Shitao Xiao, Zheng Liu, Peitian Zhang, and Niklas Muennighoff. 2023. C-pack: Packaged resources to advance general chinese embedding. Preprint, arXiv:2309.07597.
Huaxiu Yao, Yu Wang, Sai Li, Linjun Zhang, Weixin Liang, James Zou, and Chelsea Finn. 2022. Improving out-of-distribution robustness via selective augmentation. In International Conference on Machine Learning, pages 25407–25437. PMLR.
Kang Min Yoo, Dongju Park, Jaewook Kang, Sang-Woo Lee, and Woomyoung Park. 2021. Gpt3mix: Leveraging large-scale language models for text augmentation. In Findings of the Association for Computational Linguistics: EMNLP 2021, pages 2225–2239.
Yifan Zhang, Bingyi Kang, Bryan Hooi, Shuicheng Yan, and Jiashi Feng. 2023. Deep long-tailed learning: A survey. IEEE transactions on pattern analysis and machine intelligence, 45(9):10795–10816.
A Data Imbalance Details
HumAID (Alam et al., 2021) contains 15,311 annotated tweets collected from five different natural disasters (e.g., Hurricane Irma 2017, Cyclone Idai 2019). These disaster events serve as natural subgroups, with distinct label distributions across humanitarian categories as shown in Figure 5. The tweets are labeled into humanitarian categories (e.g., Infrastructure and utility damage, Rescue volunteering or donation effort). The moderate class imbalance (IR = 14.8) and social media context test a model's robustness to noisy, informal text with uneven class distributions.
HateXplain (Mathew et al., 2021) contains 14,995 annotated posts collected from Twitter and Gab across eight target community groups (e.g., African, Caucasian, Homosexual). These target communities serve as natural subgroups, with distinct label distributions across hate speech categories as shown in Figure 5. The posts are labeled into three categories: hatespeech, offensive, and normal. The relatively balanced class distribution (IR = 1.6) and social media context test a model's ability to distinguish fine-grained boundaries between hate speech and offensive language in informal, user-generated text.
WWW2015 (Hovy et al., 2015) contains 15,449 business reviews collected from ten different companies. These company sources serve as natural subgroups, with distinct label distributions across rating levels as shown in Figure 5. The reviews are labeled into five rating categories (1-5 stars). The substantial class imbalance (IR = 27.4) and review domain test a model's robustness to skewed sentiment distributions and domain-specific language patterns across different business contexts.
RE3D (Defence Science and Technology Laboratory, 2021) contains 931 annotated documents collected from seven different sources spanning news, government, and encyclopedic domains (e.g., BBC_Online, CENTCOM, UK_Government). These document sources serve as natural subgroups, with distinct entity distributions across defense and security contexts as shown in Figure 5. The documents are annotated with five entity types (e.g., Temporal, Organisation). The moderate class imbalance (IR = 16.3) and security domain test a model's ability to recognize specialized entities in formal, domain-specific text with limited training data.
CrossNER (Liu et al., 2020) contains 5,327 annotated sentences collected from five specialized domains (Politics, Natural Science, Music, Literature, and Artificial Intelligence). These domains serve as natural subgroups, with distinct entity distributions across knowledge areas as shown in Figure 5. The sentences are annotated with five entity types (e.g., Location, Quantity, Temporal, Organisation, Person). The relatively balanced class distribution (IR = 2.0) and multi-domain setting test a model's robustness to domain shift and its ability to generalize entity recognition across diverse topical contexts.
B Baseline Details
Focal Loss (Lin et al., 2020) adds a modulating factor to focus on data samples with hard minority classes and down-weight well-classified (easy) instances. The resulting loss is formulated as , where refers to a predicted probability for the true class. Following prior practice, we set the focusing parameter

Figure 5: Label distributions across subgroups for five datasets. Each polygon represents a subgroup (G1, G2, ...), and axes correspond to label indices. Values are shown on a logarithmic scale ( ).
and adopt a class-balanced weighting schema for .
Group DRO (Sagawa et al., 2020) is a group-aware robust baseline that uses observed group labels and optimizes a worst-case objective over predefined groups. In practice, it maintains a distribution over groups q and upweights groups with higher minibatch loss via an exponentiated-gradient update, then updates model parameters by minimizing the resulting group-reweighted loss. We implement Group DRO on top of the same ERM backbone and use training-set group annotations to compute per-group minibatch losses and update q.
GEORGE (Sohoni et al., 2020) discovers latent subclasses by clustering learned representations within each class and then applies group-robust training over the inferred subclass labels. We follow its original example-level formulation and evaluate it on the three classification datasets.
Just Train Twice (JTT) (Liu et al., 2021) improves worst-group robustness without requiring training group labels via a two-stage reweighting scheme. It first trains an ERM identification model for T steps and collects the examples it misclassifies into an error set E. It then trains the final model by upweighting (equivalently, upsampling) examples in E by a factor under standard ERM. Hyperparameters are selected by worst-group performance on a small group-annotated validation set.
Diverse Prototypical Ensembles (DPE) (To et al., 2025) improves worst-group robustness under subpopulation shift by training a diversified ensemble of distance-based prototypical classifiers on top of frozen ERM features. It first fits an ERM backbone, then replaces the linear head with multiple prototype heads that assign class probabilities by a softmax over distances to class prototypes in the embedding space. To avoid redundant members, DPE regularizes similarity among prototypes across ensemble heads, encouraging complementary decision rules that better cover minority subpopulations.
Class-Balanced LLM Augmentation (CB-LLM) (ValizadehAslani et al., 2024) is based on class-balanced ChatGPT augmentation for class-imbalanced text classification. The original method first trains on class-balanced augmented data before standard fine-tuning, so minority classes receive stronger supervision early in training. We adopt this class-balancing principle as an augmentation baseline by prioritizing classes with fewer training samples under the global class distribution. We use Qwen3-32B to generate label-preserving samples for these selected classes, so this baseline tests whether the gain mainly comes from increasing minority-class sample counts.
AugGPT (Dai et al., 2025) uses ChatGPT to rephrase training samples into label-preserving variants for text data augmentation. The method increases training data by generating multiple semantically related versions of each input sentence. Following this idea, we build an LLM paraphrasing baseline by randomly selecting training samples and generating paraphrases with the original labels. We use Qwen3-32B as the generation model instead of ChatGPT, so this baseline tests whether the gain comes from adding generic LLM-generated data.
C Implementation Details
To validate our approach, we implement all methods using HuggingFace Transformers (Wolf et al., 2020) and PyTorch (Paszke et al., 2019) and conduct experiments on the same data splits. All experiments were conducted on a server with an NVIDIA H100 GPU. We fine-tuned the microsoft/deberta-
| Method | CLS | NER | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HumAID | WWW2015 | HateXplain | RE3D | CrossNER | |||||||||||
| M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WG-F1 | M-F1 | μ-F1 | WG-F1 | |
| Focal | 0.53 | 0.38 | 0.77 | 0.74 | 0.47 | 1.02 | 0.45 | 0.34 | 0.59 | 0.92 | 0.58 | 1.24 | 0.60 | 0.45 | 0.81 |
| GroupDRO | 0.74 | 0.59 | 1.38 | 1.08 | 0.70 | 2.17 | 0.69 | 0.51 | 0.94 | 1.27 | 0.86 | 2.38 | 0.80 | 0.64 | 1.52 |
| GEORGE | 0.85 | 0.53 | 1.04 | 0.72 | 0.91 | 1.10 | 0.78 | 0.61 | 0.97 | - | - | - | - | - | - |
| JTT | 1.01 | 0.80 | 1.59 | 1.46 | 1.01 | 2.44 | 0.90 | 0.66 | 1.11 | 1.78 | 1.14 | 2.89 | 1.19 | 0.81 | 1.84 |
| DPE | 0.60 | 0.45 | 0.81 | 0.80 | 0.54 | 1.11 | 0.51 | 0.34 | 0.66 | 0.96 | 0.62 | 1.40 | 0.63 | 0.50 | 0.95 |
| CB-LLM | 0.70 | 0.52 | 1.01 | 0.98 | 0.63 | 1.46 | 0.59 | 0.42 | 0.77 | 1.14 | 0.82 | 1.68 | 0.76 | 0.57 | 1.19 |
| AugGPT | 0.88 | 0.61 | 1.22 | 1.16 | 0.77 | 1.67 | 0.71 | 0.56 | 0.91 | 1.34 | 0.97 | 1.89 | 0.96 | 0.71 | 1.31 |
| AIA(Ours) | 0.72 | 0.53 | 1.10 | 0.99 | 0.65 | 1.24 | 0.61 | 0.47 | 0.83 | 1.02 | 0.84 | 1.94 | 0.81 | 0.56 | 1.12 |
Table 5: Standard deviation ( ) over 5 runs. M-F1 and -F1 denote macro-averaged and micro-averaged F1 scores, respectively. WGA denotes worst-group accuracy for CLS, and WG-F1 denotes worst-group F1 score for NER. GEORGE is evaluated only on the classification datasets.
v3-base model as the backbone for all classification and NER tasks. We conduct iterative training for 8 rounds, with 1 warmup round for initial model training. Each round trains for 1 epoch using the AdamW optimizer with learning rate , batch size 16, and maximum sequence length 512. The best model is selected based on validation combined score (average of micro- and macro-F1) across all rounds.
For slice discovery, we employ the bge-large-en-v1.5 model to generate semantic embeddings, which are combined with predictive representations using weighting. We construct a k-nearest neighbor graph () in the joint semantic-predictive space and apply Leiden clustering (Traag et al., 2019) with resolution 1.0 to identify latent slices. Only slices with size samples are considered for augmentation to ensure statistical reliability. For data augmentation, we use Qwen3-32B (Team, 2025) as our generative model, with temperature 0.85 and top-p 0.95 to balance diversity and quality in generated samples. For each identified slice with distribution gap exceeding threshold , we select hard examples based on their loss values and generate augmentations with the following constraints: (i) maximum 80 augmentations per slice with 2 augmentations per seed example, (ii) generated texts must maintain label consistency as verified by the current classifier, (iii) semantic diversity is enforced through cosine similarity filtering. The augmentation budget is allocated proportionally to the deficit mass with augmentation coefficient and size exponent .
D Prompts and Filtering
This appendix provides the generation prompts and candidate-filtering rules used in AIA . Fields enclosed in braces are instantiated at runtime.
Classification prompt
You are a careful assistant that follows instructions strictly.
You are generating data augmentation for a text classification task.
Label of the seed sample: {label}
Hard constraints:
-
Output ONLY one final text.
-
One line only. No quotes. No prefixes. No explanations.
-
Max length: {max_chars_cap} characters.
Required transformations (must do BOTH):
-
Sentence-structure transformation (change syntax/order; do NOT just swap a few words).
-
Entity substitution with same-type entities (person->person, city->city, org->org, group->group, etc.).
Notes:
-
You MAY introduce new details, but the final text must still belong to label ' {label} '.
-
Use the reference examples to borrow entities/structures, but do NOT copy any full sentence.
Seed text:
{seed}
Reference examples (same label, high-loss; for style/entity ideas): {refs}
Write the new text now:
https://huggingface.co/microsoft/deberta-v3-base
https://huggingface.co/BAAI/bge-large-en-v1.5
NER prompt
You follow hard constraints strictly.
You are generating data augmentation for a token-level NER task.
You will be given a tokenized sentence (tokens are already split).
Reference examples (masked entities; ENT:TYPE tokens appear ONLY here; do NOT output them): {refs_block}
Hard constraints (must satisfy all):
- Output ONLY one line.
- Output must be space-separated tokens (SINGLE spaces).
- You MUST keep every placeholder token EXACTLY unchanged.
- Each placeholder token must appear EXACTLY once in the output.
- Placeholders must be standalone tokens: do NOT attach any punctuation/quotes to them (e.g., "ENT0," not "ENT0,").
- Entities MUST be represented ONLY by placeholders (no entity surface forms).
- Rewrite the non-placeholder context substantially; avoid copying long consecutive spans from the seed.
- Keep punctuation tokenization style (punctuation is its own token if shown).
Placeholders (types only): {placeholders_block}
Seed template tokens (with placeholders): {seed_tokens_block}
Output tokens now (space-separated, one line):
Candidate filtering
For each selected seed, we generate 15 candidates and retain at most two. For classification, we discard empty outputs, outputs longer than 280 characters, and exact duplicates, and then select candidates according to predictive consistency with the seed and semantic diversity. For NER, we discard candidates that do not preserve every placeholder exactly once, contain reference markers or original entity surface forms, duplicate another candidate, or share at least 60% of their placeholder-stripped 5-grams with the seed; among the remaining candidates, we prioritize semantic diversity and use predictive similarity to break ties.
E Stability Analysis
To assess run-to-run stability, we repeat the experiments in Table 2 five times with different random seeds (42, 43, 44, 45, 46) and report the standard deviation of all metrics in Table 5. The main observation is that maintains stable average performance while improving subgroup robustness. For Macro-F1 and Micro-F1, its standard deviation stays below 1.0 point on most datasets, indicating limited variation across seeds. Worst-group metrics show larger variance, as they depend on the most difficult subgroup and are more sensitive to small sample changes. Even so, AIA remains more stable than JTT on all worst-group metrics; for example, its standard deviation is 1.24 on WWW2015 and 1.94 on RE3D, compared with 2.44 and 2.89 for JTT. These results indicate that iterative slice discovery and LLM-based augmentation do not introduce excessive seed sensitivity.
| Setting | HumAID | CrossNER | ||||
|---|---|---|---|---|---|---|
| M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WG-F1 | |
| Semantic-only | 68.0 | 76.5 | 70.0 | 72.2 | 72.3 | 62.5 |
| α = 0.05 | 68.8 | 77.2 | 71.0 | 73.2 | 73.5 | 63.9 |
| α = 0.1 | 69.4 | 77.6 | 71.8 | 74.4 | 74.9 | 63.8 |
| α = 0.2 | 69.1 | 77.0 | 72.1 | 74.4 | 74.1 | 64.0 |
| α = 0.5 | 69.7 | 76.5 | 71.8 | 73.2 | 74.9 | 62.4 |
| α = 1.0 | 66.5 | 75.2 | 68.5 | 72.8 | 73.2 | 62.9 |
| Prediction-only | 64.2 | 73.1 | 65.5 | 70.5 | 71.8 | 61.8 |
Table 6: Sensitivity analysis of the weighting coefficient in the joint semantic–predictive representation.
| k in kNN graph | HumAID | CrossNER | ||||
|---|---|---|---|---|---|---|
| M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WG-F1 | |
| 5 | 68.6 | 77.4 | 70.1 | 72.8 | 74.0 | 62.2 |
| 10 | 68.9 | 77.2 | 71.4 | 73.6 | 73.9 | 63.3 |
| 15 | 69.4 | 77.6 | 71.8 | 74.4 | 74.9 | 63.8 |
| 20 | 69.7 | 77.5 | 71.6 | 74.4 | 74.5 | 63.2 |
Table 7: Sensitivity analysis of the number of nearest neighbors in the kNN graph.
F Hyperparameter Sensitivity Analysis
We conduct a sensitivity analysis of AIA for four key hyperparameters: the weighting coefficient in the joint semantic–predictive representation, the number of nearest neighbors k in the kNN graph, the Leiden resolution parameter, and the number of generated candidates per seed sample. The analysis is performed on two representative datasets: HumAID for CLS and CrossNER for NER. These hyperparameters cover the two main stages of AIA : latent slice discovery and LLM-based augmentation. For each experiment, we vary one hyperparameter while keeping all other settings fixed. The default setting used in the main experiments is , k = 15, resolution = 1.0, and #Candidates = 20.
| Resolution | HumAID | CrossNER | ||||
|---|---|---|---|---|---|---|
| M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WG-F1 | |
| 0.50 | 68.4 | 77.3 | 70.9 | 73.0 | 73.7 | 62.9 |
| 0.75 | 69.4 | 77.1 | 71.1 | 73.6 | 75.0 | 63.1 |
| 1.00 | 69.4 | 77.6 | 71.8 | 74.4 | 74.9 | 63.8 |
| 1.25 | 69.1 | 77.5 | 71.4 | 74.3 | 74.5 | 63.6 |
| 1.50 | 69.0 | 77.4 | 70.6 | 73.2 | 74.2 | 62.4 |
Table 8: Sensitivity analysis of the Leiden resolution parameter.
| #Candidates | HumAID | CrossNER | ||||
|---|---|---|---|---|---|---|
| M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WG-F1 | |
| 10 | 68.4 | 77.5 | 70.8 | 72.9 | 74.2 | 62.5 |
| 15 | 69.2 | 77.3 | 71.3 | 73.8 | 73.6 | 63.4 |
| 20 | 69.4 | 77.6 | 71.8 | 74.4 | 74.9 | 63.8 |
| 30 | 69.9 | 77.6 | 71.5 | 74.5 | 75.0 | 63.5 |
Table 9: Sensitivity analysis of the number of generated candidates per seed sample.
Tables 6–9 show that AIA is stable under moderate hyperparameter changes. For , semantic-only corresponds to , whereas prediction-only represents the limit. Values between 0.05 and 0.2 outperform semantic-only slicing across all metrics on both datasets. The default remains competitive across tasks, while larger values yield less consistent results and prediction-only performs worst overall. For , both datasets remain stable across ; the default value gives the best or near-best worst-group performance, while slightly improves Macro-F1. For the Leiden resolution parameter, resolution = 1.0 gives the best results on HumAID and the best worst-group score on CrossNER. The tested resolutions lead to small performance changes, showing that AIA does not rely on a narrow clustering granularity. For the number of generated candidates, a larger candidate pool improves Macro-F1 in some cases, but #Candidates = 20 gives the best worst-group performance on both datasets. Overall, the default setting remains competitive across tasks and usually provides the strongest worst-group results. These results suggest that the gains of AIA are not driven by dataset-specific tuning or a fragile hyperparameter choice.
G Computational Overhead
We report training time and peak GPU-memory cost on one representative dataset per task: WWW2015 for CLS and CrossNER for NER. All methods are evaluated with batch size 16 on an H100 GPU. Table 10 shows that AIA introduces additional overhead over lightweight training baselines such as Focal Loss and GroupDRO, due to latent slice discovery and LLM-based targeted augmentation. However, AIA is more efficient than generic LLM augmentation baselines in training time. On WWW2015, it reduces training time by 15.5% compared with CB-LLM and 28.2% compared with AugGPT; on CrossNER, it reduces training time by 10.4% and 20.2%, respectively. Its peak memory cost is also comparable to LLM augmentation baselines: AIA uses less memory than CB-LLM on both datasets, less than AugGPT on WWW2015, and slightly more than AugGPT on CrossNER. These results show that AIA provides a practical cost–benefit tradeoff: it adds expected overhead over simple training baselines while remaining more time-efficient than general-purpose LLM augmentation methods.
| Baselines | WWW2015 | CrossNER | ||
|---|---|---|---|---|
| Time (s) | Memory (GB) | Time (s) | Memory (GB) | |
| Focal | 1143 | 17.6 | 1292 | 16.2 |
| GroupDRO | 1262 | 17.2 | 1666 | 18.6 |
| JTT | 2837 | 21.0 | 2389 | 23.8 |
| DPE | 1755 | 20.6 | 1973 | 21.0 |
| CB-LLM | 3193 | 74.2 | 3372 | 78.0 |
| AugGPT | 3760 | 72.4 | 3789 | 75.4 |
| AIA | 2699 | 71.8 | 3022 | 76.6 |
Table 10: Efficiency comparison on different datasets.
H Additional Generated Data Analysis
To complement the WWW2015 analysis in Section 4.2, we further examine the relationship between deficit reduction and subgroup-label accuracy gain on the other two CLS datasets, HumAID and HateXplain. As shown in Figure 6, both datasets show a clear positive association between the reduction of subgroup-label deficits and the improvement of subset-level accuracy. On HumAID, the trend is significantly positive across 35 subgroup-label subsets, with Spearman's () and an OLS fit of . On HateXplain, the association is also significant across 24 subsets, with Spearman's () and . In addition, 14 subsets on HumAID and 15 subsets on HateXplain fall into the positive-repair region, where deficit reduction and accuracy gain are both positive. These results are consistent with the main

(a) HumAID

(b) HateXplain
Figure 6: Additional subgroup-label accuracy gain versus deficit reduction on HumAID and HateXplain.
| Method | HumAID | CrossNER | ||
|---|---|---|---|---|
| Added | Increase | Added | Increase | |
| AugGPT | 1,493 | 13.9% | 2,196 | 51.5% |
| CB-LLM | 997 | 9.3% | 1,913 | 44.9% |
| Semantic Cluster-Gap | 1,281 | 12.0% | 1,952 | 45.8% |
| 1,073 | 10.0% | 1,643 | 38.6% | |
Table 11: Retained augmentation volume across generative methods on HumAID and CrossNER.
WWW2015 finding and further support that AIA improves subgroup robustness by repairing local subgroup-label deficits, rather than relying only on untargeted data expansion.
Table 11 reports the filtered samples retained for training; raw candidates rejected during quality control are excluded, and the increase is measured relative to the original training-set size. Semantic Cluster-Gap corresponds to the semantic-only setting in Table 6: it forms semantic communities and targets labels that are underrepresented relative to the global label distribution. AIA retains 1,073 samples on HumAID and 1,643 on CrossNER, corresponding to training-set increases of 10.0% and 38.6%, respectively. It retains fewer samples than AugGPT and Semantic Cluster-Gap on both datasets and fewer than CB-LLM on CrossNER, while CB-LLM retains slightly fewer samples on HumAID. These comparisons indicate that the performance gains of AIA do not arise from consistently using a larger augmentation volume.
I Additional Ablations
Representation and selection We further examine the representations used for latent slice discovery and the signals used for seed selection on WWW2015 and CrossNER, while keeping the remaining pipeline and augmentation budget unchanged. Semantic-only and prediction-only slicing use only semantic embeddings or model-output distributions, respectively. Deficit-only selection randomly samples within deficit labels, whereas high-loss-only selection ranks all instances within each slice without using deficit labels. As shown in Table 12, the full setting achieves the best results across all metrics on both datasets. It improves worst-group performance over the single-signal slice variants by 3.2–4.3 points on WWW2015 and 1.3–2.0 points on CrossNER, and over the single-signal selection variants by 1.9–2.7 and 1.0–1.2 points, respectively. These results support the joint designs used in both stages.
| Setting | WWW2015 | CrossNER | ||||
|---|---|---|---|---|---|---|
| M-F1 | μ-F1 | WGA | M-F1 | μ-F1 | WG-F1 | |
| Full AIA | 57.6 | 87.5 | 80.9 | 74.4 | 74.9 | 63.8 |
| Semantic-only slicing | 55.4 | 85.3 | 77.7 | 72.2 | 72.3 | 62.5 |
| Prediction-only slicing | 54.3 | 85.8 | 76.6 | 70.5 | 71.8 | 61.8 |
| Deficit-only selection | 56.1 | 86.4 | 79.0 | 72.5 | 73.7 | 62.8 |
| High-loss-only selection | 56.5 | 86.3 | 78.2 | 72.0 | 73.3 | 62.6 |
Table 12: Ablations of slice representation and seed selection.
Clustering methods We include this experiment to examine whether the effectiveness of AIA depends on the specific clustering algorithm used for latent slice discovery. Table 13 compares the default Leiden community detection method (Traag et al., 2019) with K-Means (Ikotun et al., 2023), DBSCAN (Ester et al., 1996), and Agglomerative clustering (Müllner, 2011). Overall, Leiden provides the most consistent performance across datasets. K-Means performs comparably on classification tasks but drops more clearly on NER, suggesting that centroid-based clustering may be
| Method | CLS | NER | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HumAID | WWW2015 | HateXplain | RE3D | CrossNER | |||||||||||
| M-F1 | -F1 | WGA | M-F1 | -F1 | WGA | M-F1 | -F1 | WGA | M-F1 | -F1 | WG-F1 | M-F1 | -F1 | WG-F1 | |
| Leiden | 69.4 | 77.6 | 71.8 | 57.6 | 87.5 | 80.9 | 64.6 | 66.2 | 57.7 | 66.5 | 66.3 | 60.5 | 74.4 | 74.9 | 63.8 |
| K-Means | 69.4 | 77.6 | 71.7 | 55.4 | 87.1 | 80.3 | 63.4 | 65.0 | 57.7 | 63.9 | 63.4 | 55.3 | 73.0 | 72.5 | 61.8 |
| DBSCAN | 68.1 | 77.2 | 71.1 | 55.7 | 86.6 | 80.9 | 62.6 | 64.2 | 55.8 | 60.8 | 61.5 | 55.7 | 72.2 | 70.6 | 60.4 |
| Agglomerative | 68.4 | 76.9 | 70.7 | 52.7 | 86.1 | 79.4 | 61.5 | 63.4 | 55.8 | 62.9 | 63.5 | 59.3 | 74.3 | 73.1 | 64.1 |
Table 13: Clustering method robustness for latent slice discovery. Leiden is the default clustering method, while K-Means, DBSCAN, and Agglomerative clustering are used as alternatives.
less effective for irregular error regions. DBSCAN is less stable, likely because the joint semantic–predictive space has varying local densities. Agglomerative clustering shows mixed results, with occasional gains on CrossNER but weaker performance on several other datasets. These results suggest that AIA is broadly robust to reasonable clustering choices, while graph-based community detection remains the most reliable default for iterative slice-aware augmentation.