LLM-Generated Natural Language Meets Scaling Laws: New Explorations and Data Augmentation Methods

Zhenhua Wang, Guang Xu, Ming RenarXiv 2024 · OpenReview

TL;DR

This paper investigates whether Large Language Models (LLMs) generate natural language that truly mirrors human language by analyzing eight "scaling laws." They then introduce ZGPTDA, a novel data augmentation method that uses these scaling laws and fuzzy logic to select more valuable LLM-generated data for few-shot text classification, significantly improving model performance.

What Problem Does This Paper Address?

The rise of LLMs has led to their use in data augmentation for tasks like few-shot text classification. However, two key issues remain:

  1. Authenticity: Does LLM-generated natural language (LLMNL) truly align with human natural language (HNL)? Previous work assumes it does, but empirical evidence is lacking.
  2. Data Quality: LLM-generated data is often treated as uniformly valuable. In reality, some generated text might be less useful for training, potentially hindering classifier performance.

This paper aims to address these concerns by providing a quantitative method to assess LLMNL's alignment with HNL and by developing a smarter data augmentation strategy.

Methods

The core of the paper's methodology involves two main parts:

  1. Scaling Law Analysis: The authors analyze LLMNL and HNL using eight established "scaling laws" from statistical physics. These laws describe inherent statistical regularities in natural language, such as word frequency distributions (Zipf's law), vocabulary growth (Heaps' law), and information density (Hilberg's law). By comparing how LLM-generated text and human-generated text adhere to these laws, the researchers can quantify their similarities and differences. They use metrics like R², Kullback-Leibler (KL) divergence, Jensen-Shannon (JS) divergence, and Mean Absolute Percentage Error (MAPE) to measure the goodness of fit.
  2. ZGPTDA Data Augmentation: To address the issue of varying data quality, they propose ZGPTDA. This method uses GPT-4 to generate augmented data. Crucially, instead of using all generated data, ZGPTDA evaluates each augmented instance's "suitability" based on its conformity to the eight scaling laws. This suitability score is determined using a Z-number-based fuzzy logic system, which combines multiple metrics (R², KL, JS, MAPE) to provide a robust assessment. The most suitable augmented instances are then selected and combined with the original data for training.

Datasets

The study uses three datasets for evaluating the scaling laws and for experiments:

  • Cgtd: Based on TOEFL essays.
  • Cheat: Compiled from Quora interpretation questions, SQUAD 2.0, and CNN news articles.
  • HC3: Covers topics in medicine and finance.

These datasets contain both human-written and LLM-generated texts, allowing for direct comparison.

Key Insights and Ideas

  • LLMNL is remarkably similar to HNL: The analysis using eight scaling laws reveals a strong congruence between LLM-generated text and human language, providing a solid foundation for using LLMs in NLP tasks.
  • Subtle differences exist: While largely similar, LLMNL shows slight deviations in some scaling laws (e.g., Mandelbrot's law) and a generally lower "fractal complexity" compared to HNL. This suggests HNL has a richer, more nuanced structure.
  • Not all LLM data is equal: The research confirms that LLM-generated data has varying training value. This highlights the need for intelligent selection methods.
  • Scaling laws are powerful indicators: The study demonstrates that adherence to scaling laws is a robust indicator of language "naturalness" and can be leveraged for data selection.
  • Hilberg's and Taylor's laws are particularly beneficial: These specific scaling laws seem to impart more benefits to text classification tasks, suggesting their importance in feature engineering.

Key Results

  • Scaling Law Alignment: All R² values were consistently above 0.9, with Heaps' and Mandelbrot's laws exceeding 0.99, indicating a strong fit for both LLMNL and HNL across datasets. KL and JS divergences were minimal, further supporting the alignment.
  • ZGPTDA Performance:
    • Improved F1 scores for BERT and RoBERTa by 7-10% in few-shot text classification.
  • Outperformed recent data augmentation methods like AugGPT and GENCO by about 2% accuracy on DeBERTa.
  • Demonstrated the effectiveness of ZGPTDA over simpler approaches like random selection (ZGPTDA(random)) and embedding concatenation (ChatEmb).

Limitations and Future Work

  • Fractal Complexity Gap: While LLMNL is similar to HNL, it exhibits a lower fractal complexity. The paper explores this through linguistic style analysis (readability, sentiment) but acknowledges that fully replicating human language's nuanced complexity remains a challenge.
  • Suitability Factors: Identifying the exact factors that make a GPT-4 generated sample "suitable" is difficult due to the implicit nature of these factors and the vast number of potential variables.
  • Future Directions: The authors suggest further research into developing methodologies that can assess the multitude of factors influencing LLM-generated text suitability. They also propose exploring how scaling laws might inform the training of LLMs themselves and how to ensure ethical alignment in AI systems. The findings on Hilberg's and Taylor's laws could inspire future work in feature engineering.

Summary updated

Abstract

With the ascent of large language models (LLM), natural language processing has witnessed enhancements, such as LLM-based data augmentation. Nonetheless, prior research harbors two primary concerns: firstly, a lack of contemplation regarding whether the natural language generated by LLM (LLMNL) truly aligns with human natural language (HNL), a critical foundational question; secondly, an oversight that augmented data is randomly generated by LLM, implying that not all data may possess equal training value, that could impede the performance of classifiers. To address these challenges, we introduce the scaling laws to intrinsically calculate LLMNL and HNL. Through extensive experiments, we reveal slight deviations (approximately 0.2 Mandelbrot exponent) from Mandelbrot's law in LLMNL, underscore a complexity advantage in HNL, and supplement an interpretive discussion on language style. This establishes a solid foundation for LLM's expansion. Further, we introduce a novel data augmentation method for few-shot text classification, termed ZGPTDA, which leverages fuzzy computing mechanisms driven by the conformity to scaling laws to make decisions about GPT-4 augmented data. Extensive experiments, conducted in real-world scenarios, confirms the effectiveness (improving F1 of Bert and RoBerta by 7-10%) and competitiveness (surpassing recent AugGPT and GENCO methods by about 2% accuracy on DeBerta) of ZGPTDA. In addition, we reveal some interesting insights, e.g., Hilberg's law and Taylor's law can impart more benefits to text classification, etc.
BibTeX
@misc{wang2024llm,
  author = {Zhenhua Wang and Guang Xu and Ming Ren},
  title = {{LLM-Generated Natural Language Meets Scaling Laws: New Explorations and Data Augmentation Methods}},
  year = {2024},
  eprint = {2407.00322},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.00322},
}
Figure