Sample recommendations from a low-rank preference matrix
dequant_recommendTang's (2019) recommendation sampler: the user's row projected onto the sketch's approximate top-k row space, its inner products with the sampled rows estimated by the median of means, and items drawn from the projection's length-squared distribution by rejection sampling. Where the reference is made, the draws' total-variation distance from the exact projection's distribution is given beside the distance chance alone gives. The answer carries its label: each source theorem's sample count as a formula evaluated at this instance's ‖A‖_F, ‖A‖, σ_k, k, κ, ε, δ and η (exact where the full decomposition was made), its exponents and whether it states its constant, set beside the counts this run used; the error measured against the full decomposition where the matrix is small enough (at most 2^17 entries); and the work counted (entry queries, length-squared samples, random words, the small decomposition's operations). Sealed with the service's key; verify_quantum_result checks the seal and runs it again for the same bits. Refusals: J210, J211.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"matrix": "<matrix>"
},
"name": "dequant_recommend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | The singular vectors kept (default the generated rank, else 4). | |
| eta | No | The width of the singular-value threshold's band the label's theorems take (default 0.2). | |
| seed | No | The kernel's seed (default 1): the same seed and request give the same bits on every host. | |
| user | No | The user: a row of the matrix (default 0). | |
| delta | No | The failure probability the label's theorems are asked for (default 0.1). | |
| draws | No | Length-squared draws from the answer (default 1000). | |
| budget | No | The most rejection proposals the draws make (default: what the job's work bound leaves). | |
| groups | No | The median of means' groups (default 5). | |
| matrix | Yes | The matrix: {"generate": {"rows", "cols", "rank", "condition", "noise", "seed"}} (a random rank-`rank` matrix, its singular values evenly from 1 down to 1/condition (default 2), plus Gaussian noise whose Frobenius norm is `noise` (default 0.01) of the low-rank part's, from `seed`) or {"entries": [[…], …]} (its rows). At most 2^20 entries. | |
| epsilon | No | The error the label's theorems are asked for (default 0.1). | |
| per_group | No | The samples in each group's mean (default 2000). | |
| reference | No | Hold the answer to the full decomposition where the matrix is small enough (at most 2^17 entries, a smaller side of at most 256; default true). | |
| cols_sampled | No | Columns sampled from the sampled rows (default 160). | |
| rows_sampled | No | Rows sampled by their squared norms (default 160). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||