inversedMixup: Data Augmentation via Inverting Mixed Embeddings

Fanshuang Kong, Richong Zhang, Qiyu Sun, Zhijie Nie, Ting Deng, Chunming Hu

Abstract: Mixup generates augmented samples by linearly interpolating inputs and labels with a controllable ratio. However, since it operates in the latent embedding level, the resulting samples are not human-interpretable. In contrast, LLM-based augmentation methods produce sentences via prompts at the token level, yielding readable outputs but offering limited control over the generation process. Inspired by recent advances in LLM inversion, which reconstructs natural language from embeddings and helps bridge the gap between latent embedding space and discrete token space, we propose inversedMixup, a unified framework that combines the controllability of Mixup with the interpretability of LLM-based generation. Specifically, inversedMixup adopts a three-stage training procedure to align the output embedding space of a task-specific model with the input embedding space of an LLM. Upon successful alignment, inversedMixup can reconstruct mixed embeddings with a controllable mixing ratio into human-interpretable augmented sentences, thereby improving the augmentation performance. Additionally, inversedMixup provides the first empirical evidence of the manifold intrusion phenomenon in text Mixup and introduces a simple yet effective strategy to mitigate it. Extensive experiments demonstrate the effectiveness and generalizability of our approach in both few-shot and fully supervised scenarios.

Introduction

Data augmentation is a cornerstone of modern NLP, particularly when training models in low-resource or few-shot environments. Two dominant paradigms have emerged: traditional Mixup and LLM-based generation. Traditional Mixup operates by linearly interpolating sentence embeddings (e.g., 70% of Sentence A and 30% of Sentence B). While mathematically elegant and highly controllable, the resulting vectors exist in a "black box" latent space, making it impossible for humans to verify if the semantic blend is coherent.

Overview of the inversedMixup framework, showing how mixed embeddings are inverted into interpretable sentences.

Conversely, LLM-based methods generate readable text through prompting but lack the precise control over mixing ratios and diversity that Mixup provides. The inversedMixup framework bridges this gap. By inverting mixed latent vectors back into natural language, it provides the first human-interpretable look at text Mixup while maintaining the mathematical precision of interpolation.

Methodology

The core of inversedMixup is a three-stage pipeline designed to align the embedding space of a task-specific model (e.g., BERT) with that of a frozen Large Language Model (e.g., LLaMA-3).

The three-stage training procedure: (a) Adaptor Alignment, (b) Adaptor Refinement, and (c) Inverting Mixed Embedding.
  1. Adaptor Alignment: A lightweight Multi-Layer Perceptron (MLP) adaptor is trained to map embeddings from the task-specific model into the input space of the LLM. This stage uses large-scale unlabeled data and a self-supervised reconstruction loss to ensure the LLM can "read" the task model's vectors.
  2. Adaptor Refinement: Task-specific fine-tuning often shifts a model's embedding distribution. To maintain alignment, the adaptor is further refined using labeled target data, ensuring the LLM remains accurate when processing task-specific vectors.
  3. Inverting Mixed Embeddings: To generate new data, the system takes two real sentence embeddings, mixes them at a specific ratio ($\lambda$), passes the result through the adaptor, and prompts the LLM to reconstruct the sentence.
  4. Hard Labeling: To address semantic drift, the framework uses the LLM as a judge to assign a single "hard" label to the generated sentence, rather than relying on the mathematical "soft" label (e.g., 0.7/0.3).

Key Insights: Manifold Intrusion

A significant contribution of this work is the first empirical evidence of manifold intrusion in text Mixup. This occurs when a mixed sample's semantic meaning deviates from its calculated label. The authors categorize this into:

  • Inside Intrusion: The resulting sentence belongs to one of the source classes, but the semantic weight does not match the mixing ratio (e.g., a 50/50 mix results in a sentence purely about one topic).
  • Outside Intrusion: The mixed embedding drifts into a completely unrelated semantic category, effectively becoming noise.

By inverting the embeddings, the researchers observed that at a 0.5 mixing ratio, sentences often become semantically ambiguous, whereas at a 0.9 ratio, one source sentence typically dominates. The "Hard Labeling" strategy effectively mitigates these issues by ensuring the label matches the actual generated text.

Results and Discussion

The framework was evaluated across several benchmarks, including Yahoo Answers, TREC, and AG News. inversedMixup consistently outperformed traditional methods like EDA and Back-Translation, as well as standard Mixup and LLM-based generation.

The gains were particularly pronounced in few-shot scenarios. On the TREC dataset with only one sample per class (K=1), inversedMixup achieved 41.6% accuracy, a significant improvement over the base model's 36.8% and standard Mixup's 37.7%. These results suggest that the interpretability and refinement provided by inversion lead to higher-quality synthetic data.

Conclusion

inversedMixup represents a significant step forward in making latent space operations transparent. By combining the controllability of Mixup with the generative power of LLMs, it offers a robust solution for data augmentation. While the computational cost of using an 8B-parameter LLM is higher than simple vector math, the performance gains and the ability to diagnose manifold intrusion make it a valuable tool for high-stakes or low-resource NLP tasks.

Summary updated

BibTeX
@misc{kong2026inversedmixup,
  author = {Fanshuang Kong and Richong Zhang and Qiyu Sun and Zhijie Nie and Ting Deng and Chunming Hu},
  title = {{inversedMixup: Data Augmentation via Inverting Mixed Embeddings}},
  year = {2026},
  eprint = {2601.21543},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.21543},
}
Figure