# US 2025/0148358 A1 · Training-free architecture search for efficient vision transformers via approximated attention statistics

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

- Number: US 2025/0148358 A1
- Document ID: US20250148358A1
- Status: Published application
- Kind: A1
- Application number: 18/504,117
- Filed: 2023-11-07
- Published: 2025-05-08
- Earliest claimed: 2023-11-07
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Zhuojin LI; Hsin-Pai CHENG; Hong CAI; Sweta PRIYADARSHI; Kartikeya BHARDWAJ; Viswanath GANAPATHY; Chirag Sureshbhai PATEL; Fatih Murat PORIKLI
- Web page: https://patentgrep.com/patent/US20250148358A1

## CPC

- G06N 3/045: Combinations of networks
- G06N 20/00: Machine learning
- G06N 3/02: Neural networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A processor-implemented method for training-free architecture searching for a transformer model includes generating a set of transformer model candidates for a target device. Each transformer model candidate of the set of transformer model candidates is initialized with random weights. A set of data samples are randomly sampled to produce random data samples for inputting at each transformer model candidate. An attention confidence score is computed for each transformer model candidate based on the random data samples and the random weights. A transformer model candidate for the target device is selected based on the attention confidence score.

## Claims

### Claim 1

An apparatus comprising:
at least one memory; and
at least one processor coupled to the at least one memory, the at least one processor configured to:
generate a set of transformer model candidates for a target device, each transformer model candidate of the set of transformer model candidates being initialized with random weights;
randomly sample a set of data samples to produce random data samples for inputting at each transformer model candidate;
compute an attention confidence score for each transformer model candidate based on the random data samples and the random weights; and
select a transformer model candidate for the target device based on the attention confidence score.

### Claim 2 (depends on 1)

The apparatus of claim 1, in which the at least one processor is further configured to:
process the random data samples using each transformer model candidate; and
determine one or more performance metric for each transformer model candidate, in which the transformer model candidate is selected based on the one or more performance metric for each transformer model candidate.

### Claim 3 (depends on 2)

The apparatus of claim 2, in which the one or more performance metric is compared to one or more threshold and the transformer model candidate is selected based on the comparing.

### Claim 4 (depends on 1)

The apparatus of claim 1, in which the at least one processor is further configured to compute the attention confidence score as an average of a maximum attention weight based on the random weights and the random data samples.

### Claim 5 (depends on 1)

The apparatus of claim 1, in which the at least one processor is further configured to select the transformer model candidate based on an attention variance for each transformer model candidate.

### Claim 6 (depends on 1)

The apparatus of claim 1, in which the random data samples comprise images that are not artificially generated to include random pixel values.

### Claim 7 (depends on 1)

The apparatus of claim 1, in which the selected transformer model candidate comprises a vision transformer or a language model.

### Claim 8

A processor-implemented method performed by at least one processor, the processor-implemented method comprising:
generating a set of transformer model candidates for a target device, each transformer model candidate of the set of transformer model candidates being initialized with random weights;
randomly sampling a set of data samples to produce random data samples for inputting at each transformer model candidate;
computing an attention confidence score for each transformer model candidate based on the random data samples and the random weights; and
selecting a transformer model candidate for the target device based on the attention confidence score.

### Claim 9 (depends on 8)

The processor-implemented method of claim 8, further comprising:
processing the random data samples using each transformer model candidate; and
determining one or more performance metric for each transformer model candidate, in which the transformer model candidate is selected based on the one or more performance metric for each transformer model candidate.

### Claim 10 (depends on 9)

The processor-implemented method of claim 9, in which the one or more performance metric is compared to one or more threshold and the transformer model candidate is selected based on the comparing.

### Claim 11 (depends on 8)

The processor-implemented method of claim 8, in which the attention confidence score is computed as an average of a maximum attention weight based on the random weights and the random data samples.

### Claim 12 (depends on 8)

The processor-implemented method of claim 8, in which the transformer model candidate is selected based on an attention variance for each transformer model candidate.

### Claim 13 (depends on 8)

The processor-implemented method of claim 8, in which the random data samples comprise images that are not artificially generated to include random pixel values.

### Claim 14 (depends on 8)

The processor-implemented method of claim 8, in which the selected transformer model candidate comprises a vision transformer or a language model.

### Claim 15

A non-transitory computer-readable medium having program code recorded thereon, the program code executed by a processor and comprising:
program code to generate a set of transformer model candidates for a target device, each transformer model candidate of the set of transformer model candidates being initialized with random weights;
program code to randomly sample a set of data samples to produce random data samples for inputting at each transformer model candidate;
program code to compute an attention confidence score for each transformer model candidate based on the random data samples and the random weights; and
program code to select a transformer model candidate for the target device based on the attention confidence score.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, in which the program code comprises:
program code to process the random data samples using each transformer model candidate; and
program code to determine one or more performance metric for each transformer model candidate, in which the transformer model candidate is selected based on the one or more performance metric for each transformer model candidate.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16, in which the program code comprises:
program code to compare the one or more performance metric to one or more threshold; and
program code to select the transformer model candidate based on the comparing.

### Claim 18 (depends on 15)

The non-transitory computer-readable medium of claim 15, in which the program code comprises program code to compute the attention confidence score as an average of a maximum attention weight based on the random weights and the random data samples.

### Claim 19 (depends on 15)

The non-transitory computer-readable medium of claim 15, in which the program code comprises program code to select the transformer model candidate based on an attention variance for each transformer model candidate.

### Claim 20 (depends on 15)

The non-transitory computer-readable medium of claim 15, in which the random data samples comprise images that are not artificially generated to include random pixel values.

### Claim 21 (depends on 15)

The non-transitory computer-readable medium of claim 15, in which the selected transformer model candidate comprises a vision transformer or a language model.

### Claim 22

An apparatus comprising:
means for generating a set of transformer model candidates for a target device, each transformer model candidate of the set of transformer model candidates being initialized with random weights;
means for randomly sampling a set of data samples to produce random data samples for inputting at each transformer model candidate;
means for computing an attention confidence score for each transformer model candidate based on the random data samples and the random weights; and
means for selecting a transformer model candidate for the target device based on the attention confidence score.

### Claim 23 (depends on 22)

The apparatus of claim 22, further comprising:
means for processing the random data samples using each transformer model candidate; and
means for determining one or more performance metric for each transformer model candidate, in which the transformer model candidate is selected based on the one or more performance metric for each transformer model candidate.

### Claim 24 (depends on 23)

The apparatus of claim 23, further comprising:
means for comparing the one or more performance metric to one or more threshold; and
means for selecting the transformer model candidate based on the comparing.

### Claim 25 (depends on 22)

The apparatus of claim 22, further comprising means for computing the attention confidence score as an average of a maximum attention weight based on the random weights and the random data samples.

### Claim 26 (depends on 22)

The apparatus of claim 22, further comprising means for selecting the transformer model candidate based on an attention variance for each transformer model candidate.

### Claim 27 (depends on 22)

The apparatus of claim 22, in which the random data samples comprise images that are not artificially generated to include random pixel values.

### Claim 28 (depends on 22)

The apparatus of claim 22, in which the selected transformer model candidate comprises a vision transformer or a language model.
