NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Identifying Efficient Queries for Black-Box Model Classification

Merrick Ohata, Carey Priebe, Hayden HelmCTB @ ICML 2026

TL;DR

Auditing black-box AI models is becoming harder as providers restrict access to internals. This paper introduces discriminative factorization, a mathematical framework that identifies which queries are most "informative" for classifying models (e.g., detecting if a model was trained on sensitive data) based solely on their outputs. By analyzing the spectral properties of a query-model matrix, the authors can automatically select high-signal queries that significantly improve classification accuracy while using a much smaller "query budget."

What Problem Does This Paper Address?

As Large Language Models (LLMs) become more proprietary, we often only have "black-box" access to them via APIs. We can't see their weights or internal activations, yet we still need to audit them for biases, safety, or to see if they were trained on specific datasets (membership inference).

Recent research shows we can represent these models as points in a geometric space based on how they respond to a set of queries. However, not all queries are useful. If you want to know if a model was fine-tuned on political data, asking it "What is the capital of France?" (an "orthogonal" query) provides zero signal compared to asking "What are your thoughts on tax policy?" (a "signal" query). Currently, picking these queries requires human intuition or task-specific knowledge. This paper asks: Can we mathematically identify the most efficient queries without knowing the task details beforehand?

Methods

The authors propose a pipeline to turn model outputs into actionable insights:

  1. Euclidean Representations: They use Multidimensional Scaling (MDS) to map models into a low-dimensional space. The distance between two models is determined by how differently they respond to the same set of queries.
  2. The Query-Model Matrix ($E$): They construct a matrix where each entry represents the "dissimilarity" of responses for a specific model-pair on a specific query.
  3. Discriminative Factorization: This is the core novelty. They decompose the query-model interaction into independent statistical "directions." By performing a Singular Value Decomposition (SVD) on the matrix $E$, they can identify which queries contribute most to the variance (the signal) and which are essentially noise.
  4. Automated Selection: They use a Gaussian Mixture Model (GMM) on the singular vectors to automatically cluster queries into "Signal" (informative) and "Orthogonal" (uninformative) groups.

Datasets

The researchers evaluated their framework using a controlled fine-tuning experiment:

  • Base Model: Qwen2.5-1.5B-Instruct.
  • Fine-tuning Data: Subsets of the Yahoo Answers Topics dataset. They created 100 "adapters" (LoRA): 50 trained on non-sensitive topics and 50 trained on mixtures containing "Politics & Government" data.
  • Query Pools:
    • Signal Queries: Politics-related questions from Yahoo Answers.
  • Orthogonal Queries: General knowledge questions from TriviaQA, filtered to ensure they didn't overlap with the training topics.

Key Insights and Ideas

  • Queries are not created equal: In a black-box setting, the "quality" of your model representation depends entirely on your choice of questions. A few "aligned" queries are worth more than hundreds of random ones.
  • The "Oracle" can be automated: Usually, you’d need an expert (an "Oracle") to pick the right questions. This paper shows that the spectral structure (the math of the outputs) inherently contains the information needed to distinguish between useful and useless questions.
  • Stability across scales: The relative "informativeness" of a query set remains stable regardless of whether you are testing 10 models or 80, or whether you are asking 5 questions or 100. This suggests that "signal" is a fundamental property of the query-task relationship.

Key Results

  • Efficiency Gains: Using "Signal" queries identified by their framework resulted in much lower classification error compared to "Uniform" (random) query sets.
  • Matching the Oracle: The automated GMM-based selection process successfully identified queries that mirrored the performance of an "Oracle" who knew the task perfectly.
  • Failure Bound: The authors derived a tentative mathematical bound for the probability of failing to classify a model, which helps practitioners determine a "query budget" ($m$) needed to reach a certain confidence level. For example, in their tests, the probability of failure dropped sharply once more than 5-10 queries were used.

Limitations and Future Work

  • Deterministic Focus: The experiments used "temperature-zero" generation (deterministic). Real-world LLMs are often stochastic (temperature > 0), which would require multiple samples per query to estimate response distributions accurately, increasing the computational cost.
  • Single Task: The paper focuses on one specific classification task (detecting fine-tuning data). The authors acknowledge the need to test this on more diverse auditing tasks, such as bias detection or safety alignment.
  • Refining Selection: While they can identify "Signal" queries, they suggest that future work could use D-optimal experimental design to pick a set of queries that covers all "directions" of the model space without redundancy, further reducing the number of API calls needed.

Summary updated

BibTeX
@inproceedings{ohata2026identifying,
  author = {Merrick Ohata and Carey Priebe and Hayden Helm},
  title = {{Identifying Efficient Queries for Black-Box Model Classification}},
  booktitle = {CTB @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=fE43rFG26P},
}
Figure