Regularized Conditional Alignment for Multi-Domain Text Classification

Yuan Wu, Juntao Hu, Yuan Wu 0002

TL;DR

The Regularized Conditional Alignment (RCA) framework improves multi-domain text classification by aligning the joint distribution of domains and classes, rather than just matching domain-level features. By combining a $2M$-way joint discriminator with semi-supervised techniques like entropy minimization and virtual adversarial training, RCA prevents "misalignment" (where opposite sentiments are mapped to the same feature space) and achieves state-of-the-art results on major benchmarks.

What Problem Does This Paper Address?

Multi-domain text classification (MDTC) aims to train a model that performs well across different data distributions (e.g., reviews for books vs. reviews for electronics) by leveraging shared knowledge. Most current methods use a "shared-private" architecture and adversarial training to extract domain-invariant features.

However, the authors identify two critical gaps:

  1. The Misalignment Risk: Standard adversarial methods align marginal distributions—they try to make features from Domain A look like Domain B. But without considering class labels, a "positive" review in the car domain might be aligned with a "negative" review in the camera domain. This muddies the water for the final classifier.
  2. Data Scarcity: MDTC often deals with limited labeled data. Without enough supervision, the model struggles to learn truly discriminative features and is prone to overfitting.

Methods

The authors propose Regularized Conditional Alignment (RCA), which introduces three main components to the standard MDTC pipeline:

  • Joint Distribution Alignment ($2M$-way Discriminator): Instead of a simple discriminator that just guesses which of the $M$ domains a sample belongs to, RCA uses a $2M$-way discriminator. This discriminator must identify both the domain and the sentiment class (e.g., "Domain 1 + Positive" or "Domain 2 + Negative"). This forces the feature extractor to align samples that share both domain and sentiment.
  • Pseudo-Labeling for Unlabeled Data: Since the joint discriminator needs class labels to work, and most data is unlabeled, the model uses its own classifier to generate "pseudo-labels" for unlabeled samples during training.
  • Semi-Supervised Regularization: To handle the noise from pseudo-labels and improve robustness, the authors integrate:
  • Entropy Minimization: Encourages the model to make "confident" predictions on unlabeled data, effectively pushing decision boundaries away from high-density data clusters.
  • Virtual Adversarial Training (VAT): Adds small, calculated perturbations to the input and requires the model to remain consistent in its predictions, imposing a "Lipschitz constraint" that smooths the latent space.

Datasets

The model was evaluated on two standard MDTC benchmarks:

  1. Amazon Review Dataset: A classic benchmark featuring 4 domains (Books, DVD, Electronics, Kitchen). Data is represented as 5,000-dimensional bag-of-feature vectors.
  2. FDU-MTL Dataset: A more complex dataset with 16 domains (including specialized areas like "Baby," "Software," and "Movie Reviews"). This dataset uses raw text, which the authors processed using a Convolutional Neural Network (CNN) and word2vec embeddings.

Key Insights and Ideas

  • Class-Awareness is Key: The "Aha!" moment here is that domain invariance shouldn't come at the cost of class discriminability. By making the discriminator "class-aware," the model ensures that the latent space is organized by sentiment first and domain second.
  • The Shared-Private Synergy: The model uses a shared feature extractor (for universal language patterns) and domain-specific extractors (for niche vocabulary). Concatenating these before classification allows the model to use "private" knowledge to sharpen "shared" features.
  • Stability through SSL: Adversarial training is notoriously unstable. By adding VAT and entropy minimization, the authors provide a "safety net" that prevents the model from collapsing when the discriminator becomes too strong or the pseudo-labels are slightly inaccurate.

Key Results

RCA consistently outperformed previous state-of-the-art methods (like CAN and DACL):

  • Amazon Dataset: Achieved an average accuracy of 87.75%, a 1.05% improvement over the previous best (CAN). It outperformed all baselines in every single sub-domain.
  • FDU-MTL Dataset: Achieved an average accuracy of 90.2%, beating the runner-up by 0.8%. Notably, it achieved the highest accuracy on 12 out of the 16 domains.
  • Robustness: The inclusion of VAT and entropy minimization allowed the model to maintain high performance even in domains with very sparse labeled data.

Limitations and Future Work

While the paper demonstrates strong empirical results, some areas remain for exploration:

  • Pseudo-label Sensitivity: The authors acknowledge that "subpar pseudo-labels have the potential to erode the alignment process." While SSL helps, the model still relies on the initial classifier being "good enough" to start a positive feedback loop.
  • Computational Overhead: VAT requires calculating gradients with respect to the input for every training step, which increases the computational cost compared to simpler adversarial methods.
  • Discrete Data Challenges: The current implementation uses word embeddings or bag-of-features. Applying these joint alignment techniques to modern Large Language Models (LLMs) or Transformer-based architectures could be a promising next step.

Summary updated

BibTeX
@inproceedings{wu2024regularized,
  author = {Yuan Wu and Juntao Hu and Yuan Wu},
  title = {{Regularized Conditional Alignment for Multi-Domain Text Classification}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10448406},
}
Figure