# US 2026/0065068 A1 · Eliciting black-box representations from machine learning models through self-queries

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0065068 A1
- Document ID: US20260065068A1
- Status: Published application
- Kind: A1
- Application number: 18/819,217
- Filed: 2024-08-29
- Published: 2026-03-05
- Earliest claimed: 2024-08-29
- Assignees: Robert Bosch GmbH; Carnegie Mellon University
- Applicants: Robert Bosch GmbH; Carnegie Mellon University
- Inventors: Dylan Jiang SAM; Marc FINZI; Jeremy KOLTER; Devin T. WILLMOTT; Wan-Yi LIN
- Web page: https://patentgrep.com/patent/US20260065068A1

## CPC

- G06N 3/094: Adversarial learning
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods for determining black-box representations of machine learning models when information pertaining to internal states or parameters of the models are not accessible are disclosed. By using outputs of the model instead of internal states, the black-box representation is model-agnostic and provides a reliable and robust representation of the model using an external lens. The black-box representation is generated using responses from the model to a series of initialization and elicitation questions that quantify the confidence that the model has in answers it just returned. The black-box representation is then used as a training dataset for a linear classifier in order to learn performance metrics about the model.

## Claims

### Claim 1

A computer-implemented method for analyzing a large language model (LLM), comprising:
providing, via computing devices of a service provider network, a first text-based data sample to the LLM, wherein the first text-based data sample is formulated as an initialization question and is selected from a first dataset of text-based data samples;
receiving, from an Application Programming Interface (API) associated with the LLM, data indicating a response to the initialization question;
providing a second text-based data sample to the LLM, wherein the second text-based data sample is formulated as an elicitation question and is selected from a second dataset of text-based data samples;
receiving, from the API associated with the LLM, data indicating a response to the elicitation question, wherein the response to the elicitation question is one of two binary response options;
determining a black-box representation of the LLM based on the data indicating the responses to the initialization and elicitation questions and on data indicating subsequent responses of the LLM when provided with other text-based data samples of the first and second datasets; and
providing the black-box representation as a training dataset to a linear classifier, wherein the linear classifier is trained to output performance data about the LLM.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the black-box representation comprises probabilities of receiving a first of the two binary response options from the API associated with the LLM when provided with a given initialization question and a given elicitation question of the first and second datasets, respectively.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the determining of the black-box representation does not rely on internal states, hidden states, weights, biases, or other internal parameters of the LLM.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the LLM is located externally to the service provider network.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising generating the second dataset of text-based data samples, wherein the text-based data samples of the second dataset are formulated to elicit information about accuracy or confidence from the LLM and to prompt binary-type responses from the LLM.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
providing a request to the API associated with the LLM for data indicating top-k probabilities of the LLM; and
determining the black-box representation of the LLM additionally based on the data indicating the top-k probabilities.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising:
determining that data indicating top-k probabilities of the LLM are not available for request;
performing high-temperature sampling of the LLM to generate simulated top-k probabilities; and
determining the black-box representation of the LLM additionally based on the simulated top-k probabilities.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, further comprising:
calculating a post-confidence score of the LLM, wherein the calculated post-confidence score provides a probability of receiving a first of the two binary response options from the API associated with the LLM when provided with the text-based data samples of the second dataset; and
providing the black-box representation in addition to the calculated post-confidence score as the training dataset to the linear classifier.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, further comprising:
training the linear classifier, based on the black-box representation of the LLM, to output an indication of which version of the LLM the responses were collected from; and
executing the linear classifier to output the indication.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, further comprising:
training the linear classifier, based on the black-box representation of the LLM, to output an indication of whether the LLM has been incorrectly influenced by one or more adversarial inputs; and
executing the linear classifier to output the indication.

### Claim 11

A computer-implemented method for analyzing a large language model (LLM), comprising:
providing, via computing devices of a service provider network, text-based data samples of a first dataset and of a second dataset to the LLM, wherein:
text-based data samples of the first dataset are formulated as initialization questions; and
text-based data samples of the second dataset are formulated as elicitation questions;
receiving, from an Application Programming Interface (API) associated with the LLM, data indicating responses to the initialization questions and to the elicitation questions, wherein the data indicating the responses to the elicitation questions are one of two binary response options;
determining a black-box representation of the LLM based on the data indicating the responses; and
providing the black-box representation as a training dataset to a linear classifier, wherein the linear classifier is trained to output performance data about the LLM.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11, wherein the black-box representation comprises probabilities of receiving a first of the two binary response options from the API associated with the LLM when provided with a given initialization question and a given elicitation question of the first and second datasets, respectively.

### Claim 13 (depends on 11)

The computer-implemented method of claim 11, wherein the LLM is located externally to the service provider network.

### Claim 14 (depends on 11)

The computer-implemented method of claim 11, wherein:
when providing the text-based data samples of the first and second datasets to the LLM, a given initialization question is provided concurrently with a given elicitation question; and
the method further comprises:
calculating a pre-confidence score of the LLM, wherein the calculated pre-confidence score provides a probability of receiving a first of the two binary response options from the API associated with the LLM when provided with the text-based data samples of the second dataset; and
providing the black-box representation in addition to the calculated pre-confidence score as the training dataset to the linear classifier.

### Claim 15 (depends on 11)

The computer-implemented method of claim 11, wherein:
when providing the text-based data samples of the first and second datasets to the LLM, a given elicitation question is provided sequentially after receiving the response to the given initialization question; and
the method further comprises:
calculating a post-confidence score of the LLM, wherein the calculated post-confidence score provides a probability of receiving a first of the two binary response options from the API associated with the LLM when provided with the text-based data samples of the second dataset; and
providing the black-box representation in addition to the calculated post-confidence score as the training dataset to the linear classifier.

### Claim 16 (depends on 11)

The computer-implemented method of claim 11, further comprising:
providing a request to the API associated with the LLM for data indicating top-k probabilities of the LLM; and
determining the black-box representation of the LLM additionally based on the data indicating the top-k probabilities.

### Claim 17

A system, comprising:
computing devices of a service provider network configured to implement a Machine Learning (ML) model analysis service, wherein the ML model analysis service is configured to:
provide data samples of a first dataset and of a second dataset to an external ML model, located externally to the service provider network, wherein data samples of the second dataset are text-based data samples and are formulated as elicitation questions;
receive, from an Application Programming Interface (API) associated with the external ML model, data indicating responses to the data samples of the first dataset and to the elicitation questions, wherein the data indicating the responses to the elicitation questions are one of two binary response options;
determine a black-box representation of the external ML model based on the data indicating the responses;
provide the black-box representation as a training dataset to an internal ML model, located internally to the service provider network; and
executing the internal ML model to output performance data about the external ML model.

### Claim 18 (depends on 17)

The system of claim 17, wherein:
the external ML model is a Vision-Language Generative Model or an Image Captioning Model; and
the data samples of the first dataset are image-based data samples.

### Claim 19 (depends on 17)

The system of claim 17, wherein:
the external ML model is a Large Language Model; and
the data samples of the first dataset are text-based data samples.

### Claim 20 (depends on 17)

The system of claim 17, wherein the internal ML model is a linear classifier or a neural network.
