[Paper Review] Bring Your Own Data! Self-Supervised Evaluation for Large Language Models
The paper introduces a self-supervised evaluation framework for LLMs that measures invariances and sensitivities to input transformations, enabling dataset-agnostic, production-friendly model assessment without labeled data.
With the rise of Large Language Models (LLMs) and their ubiquitous deployment in diverse domains, measuring language model behavior on realistic data is imperative. For example, a company deploying a client-facing chatbot must ensure that the model will not respond to client requests with profanity. Current evaluations approach this problem using small, domain-specific datasets with human-curated labels. These evaluation sets are often sampled from a narrow and simplified distribution, and data sources can unknowingly be leaked into the training set which can lead to misleading evaluations. To bypass these drawbacks, we propose a framework for self-supervised evaluation of LLMs by analyzing their sensitivity or invariance to transformations on the input text. Self-supervised evaluation can directly monitor LLM behavior on datasets collected in the wild or streamed during live model deployment. We demonstrate self-supervised evaluation strategies for measuring closed-book knowledge, toxicity, and long-range context dependence, in addition to sensitivity to grammatical structure and tokenization errors. When comparisons to similar human-labeled benchmarks are available, we find strong correlations between self-supervised and human-supervised evaluations. The self-supervised paradigm complements current evaluation strategies that rely on labeled data.
Motivation & Objective
- Motivate the need for evaluation methods that do not rely on curated labeled datasets and are robust to data leakage from training data.
- Propose a framework that uses input transformations to create original/perturbed pairs and quantify model responses.
- Demonstrate several self-supervised metrics (knowledge via negations, toxicity, long-range context, word order, tokenization sensitivity) across diverse LLMs.
- Show correlations between self-supervised scores and human-labeled benchmarks when available.
- Discuss limitations and the practical utility of self-supervised evaluation in production settings.
Proposed method
- Construct original and transformed input pairs from a corpus by applying simple, well-defined transformations (e.g., negation, profanity triggering, sentence reordering, tokenization perturbations).
- Feed pairs into the LLM and compare outputs using a similarity metric on probabilities, perplexity, or distributions.
- Aggregate pairwise scores over the dataset with an aggregation operator to obtain an invariance/sensitivity score (score = A{M(f(x), f(x'))}).
- Implement specific metrics: negation-based knowledge probing (sensitivity to negation via log perplexity differences), toxicity via F-bomb prompts (text and next-token probability changes), context long-range sensitivity via Jensen-Shannon divergence on last sentence distributions, word order sensitivity via JSD between original and swapped-word distributions, and tokenization sensitivity via broken-tokenization comparisons.
- Normalize certain metrics to account for model behavior on benign corpora (normalized sensitivity).
- Compare self-supervised scores to TriviaQA accuracy where applicable to validate correlation with human benchmarks.
Experimental results
Research questions
- RQ1Can self-supervised invariance/sensitivity metrics capture knowledge, toxicity, and linguistic robustness of LLMs without labeled data?
- RQ2Do these self-supervised metrics correlate with human-labeled benchmarks and vary with model size, instruction finetuning, or training data?
- RQ3How do LLMs respond to specific input transformations such as negation, long-range context changes, word order perturbations, and tokenization perturbations?
- RQ4What are the limitations and practical considerations of deploying self-supervised evaluation in production settings?
Key findings
- Self-supervised sensitivity scores track human benchmark accuracy (e.g., TriviaQA) for non-instruction-tuned models, with normalization improving correlation.
- Instruction finetuning generally increases negation sensitivity and context sensitivity across models, though effects vary by model and method.
- Toxicity metrics derived from input perturbations correlate with Perspective API toxicity scores across multiple models, with no clear size-related trend.
- Word order and long-range context sensitivity show positive correlations with model size and with instruction tuning, indicating larger and finetuned models are more sensitive to these transformations.
- Tokenization sensitivity relates to training data exposure and FLOPs, with less sensitive models often corresponding to fewer tokens seen during training; instruction finetuning shows mixed effects on tokenization robustness.
- Overall, the framework yields actionable, dataset-agnostic measures that complement existing labeled benchmarks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.