Linguistic Properties of Truthful Response

Bruce W. Lee, Benedict Florance Arockiaraj, Helen Jin

Abstract

We investigate the phenomenon of an LLM's untruthful response using a large set of 220 handcrafted linguistic features. We focus on GPT-3 models and find that the linguistic profiles of responses are similar across model sizes. That is, how varying-sized LLMs respond to given prompts stays similar on the linguistic properties level. We expand upon this finding by training support vector machines that rely only upon the stylistic components of model responses to classify the truthfulness of statements. Though the dataset size limits our current findings, we show the possibility that truthfulness detection is possible without evaluating the content itself. But at the same time, the limited scope of our experiments must be taken into account in interpreting the results.

Introduction

As Large Language Models (LLMs) advance in fluency, they increasingly produce "hallucinations"—responses that are grammatically perfect but factually incorrect. Traditional detection methods rely on external knowledge bases or complex fact-checking pipelines. This research explores a different path: identifying linguistic "tells" inherent in the style of untruthful responses. By analyzing 220 handcrafted stylistic features, we investigate whether an LLM's "voice" changes when it deviates from the truth, independent of the factual content itself.

Methodology

The study focuses on the GPT-3 family (Ada, Babbage, Curie, and Davinci). Researchers utilized the Linguistic Feature Toolkit (LFTK) to extract 220 features, including part-of-speech ratios, verb variation, readability scores, and numeric usage. To analyze these features, Kernel Density Estimation (KDE) was used to visualize distributions across model sizes. For classification, Support Vector Machines (SVMs) with a radial basis function (RBF) kernel were trained to distinguish between truthful and untruthful responses based solely on these stylistic markers.

The models were evaluated on two benchmarks: TruthfulQA (810 questions designed to elicit misconceptions) and OpenBookQA (500 elementary science questions).

Key Findings

Stylistic Scale Invariance

A primary discovery is that the linguistic profile of a response remains remarkably consistent across different model sizes. Despite the vast differences in parameters and capabilities between GPT-3 Ada and Davinci, their stylistic distributions for truthful versus untruthful responses are nearly identical. This suggests that the "linguistic signature" of an LLM's truthfulness is a fundamental property of the architecture or training process, rather than a byproduct of model scale.

Linguistic feature distributions across GPT-3 models showing consistent patterns regardless of model scale.

Stylistic Indicators of Truth

The SVM classifiers demonstrated that truthfulness can be detected through style alone. In TruthfulQA, features like adjective density and noun variation were strong positive indicators of truth. Conversely, in OpenBookQA, the frequent use of numerals often signaled untruthfulness, highlighting that the specific "tells" can vary significantly by context.

Results and Discussion

Performance and Generalization

Within a specific domain, the stylistic classifier achieved significant accuracy, reaching 75.6% on GPT-3 Davinci responses in TruthfulQA and 72% on OpenBookQA. Furthermore, the linguistic signature proved robust across models; a classifier trained on the smallest model (Ada) could identify untruthfulness in the largest model (Davinci) with a performance drop of less than 5%.

The Challenge of Domain Dependency

While the stylistic "tell" is consistent across model scales, it is highly sensitive to the dataset domain. A classifier trained on TruthfulQA fails significantly when applied to OpenBookQA, with accuracy dropping to approximately 26.1% (worse than a coin flip). This highlights that "truthful style" is highly dependent on the context of the conversation and the nature of the task.

Performance matrix showing the significant drop in accuracy when testing across different datasets.

Conclusion and Limitations

This research demonstrates the feasibility of detecting LLM hallucinations using only stylistic features, bypassing the need for content evaluation. However, the current scope is limited by small sample sizes and a focus on the GPT-3 architecture. Future work should explore larger datasets and diverse model families to determine if a universal, domain-independent "hallucination detector" is achievable.

Summary updated

Abstract

We investigate the phenomenon of an LLM's untruthful response using a large set of 220 handcrafted linguistic features. We focus on GPT-3 models and find that the linguistic profiles of responses are similar across model sizes. That is, how varying-sized LLMs respond to given prompts stays similar on the linguistic properties level. We expand upon this finding by training support vector machines that rely only upon the stylistic components of model responses to classify the truthfulness of statements. Though the dataset size limits our current findings, we show the possibility that truthfulness detection is possible without evaluating the content itself. But at the same time, the limited scope of our experiments must be taken into account in interpreting the results.
BibTeX
@inproceedings{lee2023linguistic,
  author = {Bruce W. Lee and Benedict Florance Arockiaraj and Helen Jin},
  title = {{Linguistic Properties of Truthful Response}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
}
Figure