A Perplexity and Menger Curvature-Based Approach for Similarity Evaluation of Large Language Models

Yuantao Zhang, Zhankui Yang
4/5/2025
cs.CL

Official code: zyttt-coder/LLM_similarity (3 stars, last commit 2025-03-08).

Abstract

The rise of Large Language Models (LLMs) has brought about concerns regarding copyright infringement and unethical practices in data and model usage. For instance, slight modifications to existing LLMs may be used to falsely claim the development of new models, leading to issues of model copying and violations of ownership rights. This paper addresses these challenges by introducing a novel metric for quantifying LLM similarity, which leverages perplexity curves and differences in Menger curvature. Comprehensive experiments validate the performance of our methodology, demonstrating its superiority over baseline methods and its ability to generalize across diverse models and domains. Furthermore, we highlight the capability of our approach in detecting model replication through simulations, emphasizing its potential to preserve the originality and integrity of LLMs. Code is available at https://github.com/zyttt-coder/LLM_similarity.

View on arXivView PDF

Code Implementations(1)

Official code for paper "A Perplexity and Menger Curvature-Based Approach for Similarity Evaluation of Large Language Models"

31Shell, PythonJun 20, 20241 years ago

Cite this paper

@article{zhang2025perplexity,
  title  = {A Perplexity and Menger Curvature-Based Approach for Similarity Evaluation of Large Language Models},
  author = {Yuantao Zhang and Zhankui Yang},
  year   = {2025},
  eprint = {2504.04216},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.04216v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.04216.svg)](https://codeofpaper.com/paper/2504.04216)

Discussion