Leveraging a Cognitive Model to Measure Subjective Similarity of Human and GPT-4 Written Content

Tyler Malloy, Maria José Ferreira, Fei Fang, Cleotilde Gonzalez · DOI

Abstract

Standard AI metrics for text similarity, such as cosine similarity between vector embeddings, often fail to capture the subjective nature of human perception. This paper introduces IBIS (Instance-Based Individualized Similarity), a metric that integrates Large Language Model (LLM) embeddings with Instance-Based Learning (IBL) cognitive models. By simulating human memory and decision-making, IBIS acts as a "digital twin" for individual users. Evaluated on a large-scale phishing detection dataset, IBIS achieves 93% accuracy in predicting individual human judgments, significantly outperforming standard AI methods (52%).

Introduction: The Need for Subjective Similarity

While Large Language Models like GPT-4 provide powerful objective measures of text similarity, they lack "cognitively-aware personalization." In domains like education, understanding how a specific individual perceives similarity is crucial. For instance, a student learning to identify phishing emails relies on their personal history and cognitive biases rather than just statistical word distributions.

Current machine learning approaches often attempt to model the "average" human by pooling data. However, individual differences in memory decay and cognitive constraints mean that an average model rarely fits any single person well. The challenge lies in creating a metric that respects individual subjectivity with limited personal data.

Methods: The IBIS Framework

Researchers at Carnegie Mellon University developed IBIS by leveraging Instance-Based Learning Theory (IBLT). This cognitive framework posits that humans make decisions by retrieving similar past experiences, or "instances," from memory.

The IBIS framework consists of:

  1. Individual Digital Twins: An IBL model is constructed for each participant, storing their past decisions as instances.
  2. Memory Simulation: The model incorporates "activation" levels that decay over time, reflecting how recent experiences carry more weight in decision-making.
  3. Linguistic-Cognitive Integration: GPT-4's high-dimensional embeddings are integrated into the IBL model's similarity function. This effectively combines the linguistic capabilities of an LLM with the decision-making processes of a human cognitive model.

The Phishing Education Dataset

To validate IBIS, the study introduced a dataset comprising 39,230 human judgments from 433 participants. Participants categorized 1,440 emails—ranging from human-written to GPT-4 generated content—as "phishing" or "ham."

Distribution of human subjective similarity for phishing and ham emails, showing the distinct clusters of human perception.

Beyond simple categorization, the dataset tracks reaction times and confidence levels. The researchers found that reaction time serves as a vital proxy for similarity: faster decisions indicate higher perceived similarity to an internal category concept, while hesitation suggests lower similarity.

Results and Discussion

The performance of IBIS was compared against several baselines using Kernel Density Estimate (KDE) log probability scores and regression accuracy. Standard cosine similarity performed poorly, barely exceeding chance at 52% accuracy. This highlights the significant gap between objective AI metrics and human subjective perception.

Comparison of standard GPT-4 cosine similarity (light blue/orange) against human subjective similarity (dark blue/brown), illustrating the significant misalignment of objective AI metrics.

IBIS's 93% accuracy demonstrates that human "errors" and biases are predictable when modeled through cognitive lenses like memory decay and mismatch penalties. While ensemble methods perform well on average, IBIS excels at capturing the unique decision-making "flavor" of individuals.

Conclusion and Future Directions

IBIS represents a significant step toward personalized AI that understands human subjectivity. Future work will address computational scaling—as IBL models grow with every decision—and test the framework in more complex, multi-category domains. Additionally, improving the modeling of "normalcy" (ham emails) remains a key challenge, as these often lack the distinct features present in phishing content.

Summary updated

BibTeX
@article{malloy2024leveraging,
  author = {Tyler Malloy and Maria José Ferreira and Fei Fang and Cleotilde Gonzalez},
  title = {{Leveraging a Cognitive Model to Measure Subjective Similarity of Human and GPT-4 Written Content}},
  journal = {Under Review at Conference on Natural Language Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=sOFHOETEjt},
}
Figure