Geometric Filtering Boosts LLM-Generated Data for Classification

Benjam\'in Schindler, Gonzalo A. Ruz· August 17, 2026 View original

Key takeaways

  • LLM-generated synthetic data quality for text classification is often inconsistent.
  • Geometric filtering selects high-quality synthetic samples based on embedding space proximity to real data.
  • This method significantly improves few-shot text classification performance.
  • Simple distance-based filtering can outperform complex multi-criteria alternatives.

Who benefits

Customer ServiceMarketingHealthcareLegalE-commerce

Summary

This paper proposes a geometric filtering framework that improves few-shot text classification by evaluating LLM-generated synthetic data based on its Euclidean distance to real class examples. The method selects only geometrically consistent samples, significantly outperforming other augmentation techniques across various datasets and models.

Large Language Models (LLMs) are increasingly used to generate synthetic training data for tasks like text classification, especially in few-shot scenarios where real data is scarce. However, the quality of this generated data can vary widely; some samples accurately represent their intended class, while others are less relevant or even misaligned. Researchers have introduced a geometric filtering framework designed to address this variability. This method assesses each LLM-generated sample by calculating its Euclidean distance to actual examples within the sentence embedding space. Only those synthetic samples that are geometrically consistent with their target class are selected for training. A soft weighting mechanism then transforms these filter scores into sample weights for the classifier. Extensive evaluations across 13 datasets, 5 classifiers, and 10 augmentation methods demonstrated the framework's effectiveness, achieving a significant performance improvement over traditional methods like SMOTE. The approach also proved robust across various LLMs and generalized successfully to other tasks like named entity recognition, highlighting that even simple distance-based filtering can yield superior results compared to more complex multi-criteria alternatives.

Why it matters

This technique provides a practical and highly effective way for professionals to leverage LLMs for data augmentation, improving the performance of text classification models, especially in data-scarce environments.

How to implement this in your domain

  1. 1Integrate geometric filtering into your LLM-based data augmentation pipeline for text classification.
  2. 2Experiment with different sentence embedding models to find the optimal representation for distance calculations.
  3. 3Apply this filtering method to few-shot learning scenarios where synthetic data generation is crucial.
  4. 4Benchmark the performance of classifiers trained with geometrically filtered data against other augmentation strategies.

Original post by Benjam\'in Schindler, Gonzalo A. Ruz

"arXiv:2608.13866v1 Announce Type: new Abstract: Large language models (LLMs) can generate synthetic training data for text classification, but the quality of generated samples is heterogeneous: some fall in correct class regions of the embedding space while others land in periphe…"

View on X

Originally posted by Benjam\'in Schindler, Gonzalo A. Ruz on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses