mlsanityData to 7 Oct 2026

Auditing Black-Box LLM APIs with a Rank-Based Uniformity Test

arXiv 2506.06975 ↗First posted 8 Jun 2025cs.CR cs.AI cs.CLcited by 16

Not on the map. Why?

Abstract (arXiv)

As API access becomes a primary interface to large language models (LLMs), users often interact with black-box systems that offer little transparency into the deployed model. To reduce costs or maliciously alter model behaviors, API providers may discreetly serve quantized or fine-tuned variants, which can degrade performance and compromise safety. Detecting such substitutions is difficult, as users lack access to model weights and, in most cases, even output logits. To tackle this problem, we propose a rank-based uniformity test that can verify the behavioral equality of a black-box LLM to a locally deployed authentic model. Our method is accurate, query-efficient, and avoids detectable query patterns, making it robust to adversarial providers that reroute or mix responses upon the detection of testing attempts. We evaluate the approach across diverse threat scenarios, including quantization, harmful fine-tuning, jailbreak prompts, and full model substitution, showing that it consistently achieves superior statistical power over prior methods under constrained query budgets.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 23 of its 36 references that are in the map. First posted on arXiv 8 Jun 2025.

Builds on

23 of 36 references.

References · 23

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  2. 2020Scaling Laws for Neural Language Modelscited by 6,411
  3. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  4. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  5. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  6. 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 828
  7. 2023A Watermark for Large Language Modelscited by 667
  8. 2022Mixture-of-Experts with Expert Choice Routingcited by 611
  9. 2024WildChat: 1M ChatGPT Interaction Logs in the Wildcited by 598
  10. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
  11. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
  12. 2023How is ChatGPT's behavior changing over time?cited by 265
11 more
  1. 2023DetectLLM: Leveraging Log Rank Information for Zero-Shot Detection of Machine-Generated Textcited by 207
  2. 2023A Robust Semantics-based Watermark for Large Language Model against Paraphrasingcited by 71
  3. 2024Instructional Fingerprinting of Large Language Modelscited by 64
  4. 2024LLMmap: Fingerprinting For Large Language Modelscited by 56
  5. 2024Model Equality Testing: Which Model Is This API Serving?cited by 44
  6. 2025Are You Getting What You Pay For? Auditing Model Substitution in LLM APIscited by 35
  7. 2025Idiosyncrasies in Large Language Modelscited by 32
  8. 2025Exploring and Mitigating Adversarial Manipulation of Voting-Based Leaderboardscited by 19
  9. 2025Auditing Prompt Caching in Language Model APIscited by 19
  10. 2025LLMs Have Rhythm: Fingerprinting Large Language Models Using Inter-Token Times and Network Traffic Analysiscited by 7
  11. 2025EICopilot: Search and Explore Enterprise Information over Large-scale Knowledge Graphs with LLM-driven Agentscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 4; 2026: 12.

16 papers.

Sort:

By area: