paper-with-me

홈 › Papers

Model Equality Testing: Which Model Is This API Serving?

2024-10-26 · Irena Gao, Percy Liang, Carlos Guestrin

Users often interact with large language models through black-box inference APIs, both for closed- and open-weight models (e.g., Llama models are popularly accessed via Amazon Bedrock and Azure AI Studio). In order to cut costs or add functionality, API providers may quantize, watermark, or finetune the underlying model, changing the output distribution -- often without notifying users. We formalize detecting such distortions as Model Equality Testing, a two-sample testing problem, where the user collects samples from the API and a reference distribution and conducts a statistical test to see if the two distributions are the same. We find that tests based on the Maximum Mean Discrepancy between distributions are powerful for this task: a test built on a simple string kernel achieves a median of 77.4% power against a range of distortions, using an average of just 10 samples per prompt. We then apply this test to commercial inference APIs for four Llama models, finding that 11 out of 31 endpoints serve different distributions than reference weights released by Meta.

📄 PDF Abstract BibTeX arXiv:2410.20247

Code (1)

i-gao/model-equality-testing 공식 구현 pytorch

Tasks

modelTwo-sample testing

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

An Extreme-Value Approach for Testing the Equality of Large U-Statistic Based Correlation Matrices

2015-02-11 · Cheng Zhou, Fang Han, Xinsheng Zhang, Han Liu

There has been an increasing interest in testing the equality of large Pearson's correlation matrices. However, in many applications it is more important to test the equality of large rank-based correlation matrices sinc…

valid

Permutation Tests at Nonparametric Rates

2021-02-26 · Marinho Bertanha, EunYi Chung

Classical two-sample permutation tests for equality of distributions have exact size in finite samples, but they fail to control size for testing equality of parameters that summarize each distribution. This paper propos…

Testing Instrument Validity with Covariates

2021-12-15 · Thomas Carr, Toru Kitagawa

We develop a novel test of the instrumental variable identifying assumptions for heterogeneous treatment effect models with conditioning covariates. We assume semiparametric dependence between potential outcomes and cond…

A Conditional Distribution Equality Testing Framework using Deep Generative Learning

2025-09-22 · Siming Zheng, Tong Wang, Meifang Lan, Yuanyuan Lin arxiv

In this paper, we propose a general framework for testing the conditional distribution equality in a two-sample problem, which is most relevant to covariate shift and causal discovery. Our framework is built on neural ne…

Testing Piketty's Hypothesis on the Drivers of Income Inequality: Evidence from Panel VARs with Heterogeneous Dynamics

2025-05-02 · Carlos Góes

Thomas Piketty's Capital in the Twenty-First Century puts forth a logically consistent explanation for changes in income and wealth inequality patterns. However, while rich in data, the book provides no formal empirical …