Black-Box Inference of LLM Architectural Properties with Restrictive API Access
Christopher Ellis, Mei-Yu Wang, Shreyas Chaudhari, Leighton Pate Barnes, Giulia Fanti, José M. F. Moura
NeurIPS 2026
TL;DR. NightVision recovers a black-box LLM’s hidden width, depth, and parameter count from API confidence scores and first-token latency alone, showing that restricting API outputs doesn’t prevent architectural leakage.
Abstract. In practice, most commercial LLM providers do not publicly release details of underlying LLM architectures. However, prior work has shown that given limited API access to an LLM (namely, top-k log-probabilities and/or a logit bias function), one can recover certain architectural details of an LLM, such as the hidden dimension of the feed-forward network. Perhaps in response to these results, most commercial LLM providers have restricted their APIs to expose only the single log-probability for each decoded token, and they no longer give users the ability to bias logits. We show that even under current restrictive APIs, several architectural parameters are still recoverable. We present NightVision, an attack that uses restrictive black-box API access to estimate the hidden dimension, depth, and parameter count of an LLM. Algorithmically, NightVision relies on a novel common set prompting technique in which multiple prompts expose log-probabilities for the same set of output tokens; a spectral analysis of these results is used to infer hidden dimension. NightVision additionally uses end-to-end time to first token (TTFT) measurements and the estimated hidden dimension to estimate depth and parameter count. We empirically evaluate NightVision on 31 open-source LLMs, recovering hidden dimension with 21% mean relative error and 12 exact recoveries. Conditioned on the estimated hidden dimension, NightVision recovers depth and parameter count with 36% and 25% mean relative error, respectively, on 14 dense models. We run extensive ablations to demonstrate how these accuracies scale with token budget and model properties. Overall, our results suggest that current LLM APIs are not sufficiently restricted to fully obfuscate the architectural details of their underlying models.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:43 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper studies the problem of inferring characteristics of an LLM's architecture when given only access to an API that exposes the log-probability of each generated token. The authors introduce a method that uses multiple prompts to estimate the hidden dimension of the model and then uses inference time measurements to estimate its depth and total parameter count. They evaluate the ability of their method to recover these characteristics by applying it to several open-weight models.
The paper has received mixed but mostly negative reviews. Reviewers appreciated that the method relaxes assumptions from prior work, openly acknowledges its limitations, and found the paper to be overall sound and well-written. However, they also raised several concerns. In my view, the points most likely to determine the paper’s acceptance after the rebuttal and discussion are the following. The token budget required to implement the method appears high relative to the large errors it produces (reviewer vgyj), and the authors should clarify in which practical scenarios the use of the method would be justifiable. Additionally, the authors should clarify the conditions under which their method's inference time measurements are valid and useful, as these can be affected by factors such as network traffic and the use of different servers (reviewers vgyj and Rde8). I also agree that the paper’s significance is somewhat limited by the absence of results involving commercial LLMs, despite this being a primary motivation for the work (reviewer Rde8). Finally, the authors should address comments related to the empirical evaluation, including the variance analysis requested by reviewer Rde8 and the sensitivity analysis requested by reviewer zR3d. I would encourage the authors to carefully address these points in their rebuttal, along with any other feedback raised by the reviewers that is not highlighted in this meta-review.
Final version update
The authors have done a considerable amount of work in their rebuttals, which has addressed most of the concerns raised by the reviewers. In my view, the paper studies a relevant and timely problem and includes a comprehensive empirical evaluation. Hence, despite any remaining limitations, I believe it would be valuable for the community and a good addition to the program. In the revised version, the authors should revisit all points (minor and major) that led to the reviewers' questions and use the rebuttal and the discussion as a basis to address them. I would particularly emphasize that the authors should incorporate the new experiments on commercial serving platforms, as well as the sensitivity, variance, and error-decomposition analyses they presented during the discussion. They should also include the clarifications regarding the conditions under which the timing-based estimates are valid, and explicitly highlight the cost of the method and how its accuracy scales with model size, which, however, does not diminish the paper's overall contributions.
Final justification
See meta-review
- Final justification
- See meta-review
Read meta-review
Meta-review
The paper studies the problem of inferring characteristics of an LLM's architecture when given only access to an API that exposes the log-probability of each generated token. The authors introduce a method that uses multiple prompts to estimate the hidden dimension of the model and then uses inference time measurements to estimate its depth and total parameter count. They evaluate the ability of their method to recover these characteristics by applying it to several open-weight models.
The paper has received mixed but mostly negative reviews. Reviewers appreciated that the method relaxes assumptions from prior work, openly acknowledges its limitations, and found the paper to be overall sound and well-written. However, they also raised several concerns. In my view, the points most likely to determine the paper’s acceptance after the rebuttal and discussion are the following. The token budget required to implement the method appears high relative to the large errors it produces (reviewer vgyj), and the authors should clarify in which practical scenarios the use of the method would be justifiable. Additionally, the authors should clarify the conditions under which their method's inference time measurements are valid and useful, as these can be affected by factors such as network traffic and the use of different servers (reviewers vgyj and Rde8). I also agree that the paper’s significance is somewhat limited by the absence of results involving commercial LLMs, despite this being a primary motivation for the work (reviewer Rde8). Finally, the authors should address comments related to the empirical evaluation, including the variance analysis requested by reviewer Rde8 and the sensitivity analysis requested by reviewer zR3d. I would encourage the authors to carefully address these points in their rebuttal, along with any other feedback raised by the reviewers that is not highlighted in this meta-review.
Final version update
The authors have done a considerable amount of work in their rebuttals, which has addressed most of the concerns raised by the reviewers. In my view, the paper studies a relevant and timely problem and includes a comprehensive empirical evaluation. Hence, despite any remaining limitations, I believe it would be valuable for the community and a good addition to the program. In the revised version, the authors should revisit all points (minor and major) that led to the reviewers' questions and use the rebuttal and the discussion as a basis to address them. I would particularly emphasize that the authors should incorporate the new experiments on commercial serving platforms, as well as the sensitivity, variance, and error-decomposition analyses they presented during the discussion. They should also include the clarifications regarding the conditions under which the timing-based estimates are valid, and explicitly highlight the cost of the method and how its accuracy scales with model size, which, however, does not diminish the paper's overall contributions.
1 comment
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces NightVision, a black-box method for inferring the hidden dimension, depth, and parameter count of transformer-based LLMs from API access that reveals only the log-probability of each sampled token together with end-to-end response timing. Phase 1 constructs a dense log-probability matrix through common-set prompting: high-entropy prompts are repeatedly sampled so that a shared set of tokens is observed across all prompts, and spectral analysis of the resulting matrix estimates the hidden dimension. Phase 2 fits a linear timing model relating prefill latency on reference models and, given the Phase 1 estimate hidden dimension, solves for depth and parameter count under a LLaMA-style architectural template.
Strengths and weaknesses
Strengths:
+) The paper identifies the gap left after providers removed logit-bias access. Studying what remains inferable under the strictly weaker single-logprob API is a natural and well-motivated question.
+) The overall design is technically sound and reasonable to me.
+) The evaluation spans 32 models across 8 families and two architectural classes.
Weaknesses
+) Hyperparameter sensitivity of the change-point detector. The spectral estimator relies on several interacting hyperparameters (e.g., prominence fraction , specific thresholds, grid spacing ). These are tuned on 7 development models and held fixed for 32 validation models from overlapping families. The paper provides no sensitivity analysis. For instance, how does vary as p is swept over ?
+) Prior knowledge assumption in depth estimation. Figure 5 shows that the Qwen 3.5 family requires a qualitatively different timing fit than LLaMA-style models. In a true black-box scenario, the attacker must select the correct scaling relation before estimating L, yet identifying which relation applies requires knowing the architecture family. As hybrid architectures proliferate, the fraction of models for which the default β is incorrect will grow, and the method currently provides no mechanism for detecting or handling this mismatch.
Questions
+) Detector sensitivity. How does vary when is swept over [0.3,0.7] and when the arctan thresholds are perturbed? Reporting results both before and after grid-snapping would help disentangle the spectral signal from the discretization prior.
+) Architecture-family detection. Have you considered using the timing residuals themselves, (for example, the goodness-of-fit of the linear model or the structure of the residuals) as a signal to classify the target into an architecture family before selecting β? Even a negative result would be more informative than deferring the issue.
+) Error decomposition. Could you provide an oracle experiment where d and L are given exactly, isolating how much of the \hat{P} error comes from the architectural template assumptions versus the upstream estimates?
Limitations
Yes
Final justification
I have carefully read the rebuttal and the subsequent discussion. I appreciate the authors’ thoughtful response and the additional experiments, which adequately address my original technical concerns and strengthen the empirical support for the paper.
The work presents an interesting idea and has clear potential. However, my remaining reservation concerns the level of novelty relative to the closest prior work. While the rebuttal improves the technical completeness of the paper, it does not substantially change my assessment of the conceptual contribution.
I therefore maintain my rating of 3. Nevertheless, I encourage the authors to further sharpen the distinction from prior work and better articulate the broader methodological insight, as this would significantly strengthen the contribution.
Formatting concerns
No formatting or anonymity violations observed.
4 comments
Rebuttal
Thank you for your time and detailed comments! We address your first two questions below, and will respond to any remaining questions in the next few days during the discussion period.
Detector Sensitivity We thank the reviewer for this question, which also helped us uncover a minor error in the reported hyperparameters. The prominence fraction was reported as , but all experiments using Algorithm 1 ran with , and none of the results change.
We swept for all 39 models, and perturbed the two window bounds by , , and . Throughout, we report accuracy both before and after grid-snapping, and score non-detections (no valid saddle or peak) at full error. Using the hyperparameters reported in the paper, the mean relative error (MRE) improves with sampling budget from 0.790 / 0.768 (before / after snapping) at k to 0.303 / 0.300 at the full M budget. Tables 1 and 2 summarize the results by sampling budget .
The saddle detector is mostly insensitive to the prominence fraction. For , the predictions are identical to those at the default , both before and after grid-snapping. The first changes appear at (1.8% of predictions change) and remain limited at (3.8%), with predictions at k unchanged. At the accuracy degrades substantially (0.534 / 0.540 at M), with 26.2% of spectra changing and 18.7% no longer detecting a valid saddle, and, unlike the other settings, the error is no longer monotone in budget.
Table 1: Prominence-fraction sensitivity by sampling budget (39 models per row). Mean relative error (MRE) reported before / after grid-snapping. The "Baseline" columns are identical for every . Changes at and are confined to k, while differs at every budget.
| (samples) | Baseline MRE pre | Baseline MRE post | (pre / post) | (pre / post) | (pre / post) |
|---|---|---|---|---|---|
| 100k | 0.790 | 0.768 | 0.818 / 0.800 | 0.861 / 0.849 | 0.930 / 0.924 |
| 200k | 0.579 | 0.544 | 0.584 / 0.549 | 0.594 / 0.560 | 0.654 / 0.623 |
| 300k | 0.482 | 0.450 | 0.482 / 0.450 | 0.482 / 0.450 | 0.530 / 0.502 |
| 400k | 0.422 | 0.394 | 0.422 / 0.394 | 0.422 / 0.394 | 0.495 / 0.470 |
| 500k | 0.395 | 0.376 | 0.395 / 0.376 | 0.395 / 0.376 | 0.463 / 0.448 |
| 600k | 0.386 | 0.369 | 0.386 / 0.369 | 0.386 / 0.369 | 0.420 / 0.408 |
| 700k | 0.350 | 0.344 | 0.350 / 0.344 | 0.350 / 0.344 | 0.467 / 0.466 |
| 800k | 0.344 | 0.339 | 0.344 / 0.339 | 0.344 / 0.339 | 0.461 / 0.462 |
| 900k | 0.327 | 0.324 | 0.327 / 0.324 | 0.327 / 0.324 | 0.489 / 0.496 |
| 1M | 0.303 | 0.300 | 0.303 / 0.300 | 0.303 / 0.300 | 0.534 / 0.540 |
The full area of interest (AOI) detector (both saddle and peak) is also robust to the two thresholds that bound the search windows. upper-bounds the saddle search, preventing the detector from returning a global minimum like the one in Figure 13, and upper-bounds the peak search, which in some cases could return a large long tail as in Figure 13. Perturbing both jointly by up to leaves essentially unchanged; a single spectrum shifts at and k. At the detector degrades at low budgets (0.981 / 0.980 at k, where only 5.1% of spectra yield an AOI) and largely recovers by the full budget (0.379 / 0.377 at M, with 92.3% AOI detection).
Table 2: window-bound sensitivity by sampling budget (39 models per row; MRE before / after grid-snapping as in Table 1). Scalings from to match the baseline at every budget; differs only at k; degrades at low budgets and largely recovers by M.
| (samples) | Baseline MRE pre | Baseline MRE post | to (pre / post) | (pre / post) | (pre / post) |
|---|---|---|---|---|---|
| 100k | 0.790 | 0.768 | 0.790 / 0.768 | 0.809 / 0.790 | 0.981 / 0.980 |
| 200k | 0.579 | 0.544 | 0.579 / 0.544 | 0.579 / 0.544 | 0.939 / 0.931 |
| 300k | 0.482 | 0.450 | 0.482 / 0.450 | 0.482 / 0.450 | 0.847 / 0.831 |
| 400k | 0.422 | 0.394 | 0.422 / 0.394 | 0.422 / 0.394 | 0.766 / 0.748 |
| 500k | 0.395 | 0.376 | 0.395 / 0.376 | 0.395 / 0.376 | 0.650 / 0.638 |
| 600k | 0.386 | 0.369 | 0.386 / 0.369 | 0.386 / 0.369 | 0.571 / 0.562 |
| 700k | 0.350 | 0.344 | 0.350 / 0.344 | 0.350 / 0.344 | 0.495 / 0.488 |
| 800k | 0.344 | 0.339 | 0.344 / 0.339 | 0.344 / 0.339 | 0.443 / 0.439 |
| 900k | 0.327 | 0.324 | 0.327 / 0.324 | 0.327 / 0.324 | 0.426 / 0.424 |
| 1M | 0.303 | 0.300 | 0.303 / 0.300 | 0.303 / 0.300 | 0.379 / 0.377 |
Regarding the grid-snapping, our prior reflects neural network optimization for GPU architectures. LLM hidden dimensions are multiples of 64 in every model we evaluate, and traditionally neural network architectures favor multiples of 128 wherever possible for best performance on modern GPUs. Snapping to reduces the MRE from 0.303 to 0.300 at the full budget, and the unsnapped predictions are equally stable across every sweep, so the robustness comes from the spectral signal rather than the snap. The choice of is a trade-off: because the snap rounds up, could under-predict at low budgets, where the raw estimate already runs low, while could over-predict on the models whose hidden dimension is a multiple of 64 but not of 128.
Architecture-family Detection The reviewer is right that the current submission provides no mismatch mechanism about architecture families. We have since developed one using the prior distribution of model number of layers (L) versus hidden dimension (d). We also explore the reviewer suggested timing residual approach, but unfortunately it doesn’t yield clear statistical boundaries to differentiate architecture families.
We exploit an empirical distribution of model number of layers versus hidden dimension: across 39 open model in our paper, depth scales with width as L ~ d^0.57 with a residual scatter of only 1.31x (0.119 dex), and every real architecture lies within 2.5 sigma of this relation. We also verified that non-Llama architecture class obeys the same d-L prior when its true (d, L) is used: linear/hybrid attention: -0.3 sigma, MoE: +0.4 sigma, MoE with multi-head latent attention: +0.1 sigma, including DeepSeek-V3 and Kimi-K2 at trillion-parameter scale), and sliding-window attention: +0.1 sigma -- all within +/-2.8 sigma. The d-L relation is thus architecture-agnostic, which is what makes it a valid null hypothesis: a large deviation can only be attributed to the timing model, not to the target's architecture. Assuming our common-set prompting attack recovers d at high precision, we can test each inferred number against the prior. When the same dense template is applied to a variant model, the inferred depth is thrown far outside it: +9.4 sigma for Qwen3.5-4B (L-hat = 436 vs true 32) and +10.8 sigma for Qwen3.5-9B (L-hat = 832 vs true 32). When the correct (dense) per-layer template is assumed for a genuinely Llama-style target, L-hat lands on the prior. We further test with a commercial API from Together AI serverless setup for which the server configuration is unknown. For Llama-style models, we derived +0.2σ for Qwen2.5-7B and +2.5σ for Llama-3.3-70B which verify that server setup likely won’t be a dominating source of confusion. We restrict this test to models above 3B parameters and to measurements taken at or well into each model's attention-dominating regime; several granite models fall out because their context window is too short to reach that regime.
For other tests using timing residual information as suggested by the reviewer, we implemented an experiment estimating the local scaling exponent gamma(S) = dlogT/dlogS by sliding-window regression. However, the results are noisy and the derived gamma(s) information is highly degenerated with the fitted slope, therefore we can not use this approach to generate a clean boundary to differentiate model architectures.
Error Decomposition
We have added an oracle test that replaces each stage of the attack with ground truth, one at a time, and recomputes the parameter count. All values quoted here are means of over the dense models above 3B at the largest budget, measured against the models’ published parameter count.
With each model’s true depth, hidden dimension, and architecture-specific KV/FFN ratios, the formula matches published parameter counts within 3.1%; the remaining error comes from Qwen2.5-3B and Llama-3.2-3B, whose tied embeddings make the (2·V·d) term double-count (V is the size of the vocabulary). Using a fixed Llama-3-8B template at the true (d) and (L) increases error to 16.2%, reflecting the cost of unknown architecture. Replacing only (d) with its estimate yields 53.9% error; replacing only (L), 31.7%; replacing both, 55.7%; and the full blind attack under the fixed template, 56.2%.
The upstream estimates dominate, and they are not independent: 53.9% and 31.7% in isolation combine to 55.7%, not 86%. This is due to cancellation between different error sources. The answer to the reviewer's question is therefore that the template accounts for roughly 16 points of standalone error but almost none of the marginal error of the full attack, which is dominated by the hidden-dimension estimate.
Thank you for the additional sensitivity and decomposition results. The detector-sensitivity analysis and the oracle parameter-count decomposition address my corresponding questions.
My remaining concern is with the timing stage. The proposed prior seems useful for rejecting grossly implausible layer-count estimates, but it does not fully resolve the identifiability issue that timing observes a target-specific product involving both $ L$ and the serving coefficient . Could the authors clarify whether the depth claim should be interpreted as valid only under a calibrated or deployment-matched serving stack? In particular, can the paper state how β-mismatch propagates to , and whether the prior is intended as a rejection mechanism rather than a recovery mechanism?
We thank the reviewer for these follow-up questions, and agree the paper should state the conditions of the timing attack more precisely. We answer the three parts in turn.
(i) Calibrated, not deployment-matched. The adversary does not need to control or match the target's hardware. Appendix B.4.3 demonstrates this: we calibrate the scaling relation on a reference set hosted on hardware we control (NVIDIA H200) and recover depth for models served on a different platform (NVIDIA A100), obtaining an average relative error of ~50% for models above 3B parameters. We have since repeated this against a commercial serverless endpoint. Using a set of open-weight references measured locally on an H200 vLLM server, we recover = 34.1 for Qwen2.5-7B (true 28, +22%) and = 101.2 for Llama-3.3-70B (true 80, +26%), with parameter-count errors of −13% and +28% under a fixed Llama-3-8B template — despite an FP8 versus BF16 serving precision difference and unknown serverless routing and configuration. The requirement is therefore a calibrated , not a matched stack.
(ii) How -mismatch propagates. From Eq. (10), , so a factor-k error in the calibrated coefficient produces a factor-k error in : the propagation is linear and one-for-one, and it is a bias rather than noise, so it is not reduced by repeated sampling. Our cross-platform experiment separates the two contributions to k. The platform contribution is absorbed: differs by 2.19× between A100 and H200, and the transfer factor k = 0.457 removes it, costing ~16 percentage points of accuracy (34% same-platform versus ~50% cross-platform). The architecture contribution is not. For Qwen3.5 hybrids the fitted is 22–45× that of dense models of comparable size, on both devices, and this factor passes directly into : applying a dense-calibrated reference to Qwen3.5 yields = 718 and 519 against a true 32. Consistently, recomputing the target-platform quantities from Qwen3.5 models rather than dense ones reduces the error from +2145%/+1523% to −31%/−64%, i.e. back to the dense baseline. The operative condition is therefore that the reference group shares characteristics of the target's architecture family; hardware may differ.
(iii) The prior is a rejection mechanism. It is deliberately not a recovery mechanism, and its resolving power makes this explicit. With typical residuals being .119 log-units, a |σ| > 5 test fires only when is wrong by more than 3.94×. Our typical estimation error of ~50%, including a full cross-platform transfer, corresponds to 1.5σ and passes; a wrong architecture template corresponds to 9.6–11.6σ and is rejected. The prior is thus calibrated to tolerate the estimator's own error budget while flagging template mismatch, and it cannot be inverted to recover L — the scatter is an order of magnitude too wide at the scale of the errors the method actually makes.
We will add these statements to the timing section: the propagation relation in (ii), the scope condition that must be calibrated on a reference group sharing the target's family, and an explicit relabelling of the d–L test as a rejection criterion with its 3.94× threshold.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work shows three architecture properties, i.e., hidden dimension size, depth, and total number of parameters, can be inferred from model API with only access to the probability of the predicted token with a non-trivial success rate, e.g., on average within 23% relative error for hidden size. Two methods are proposed: The first one builds on existing spectral analysis approach to estimate the hidden dimension, while the second on leverages timing attack to estimate depth and total parameter size of the model. The proposed methods are tested on 32 open-weights LLMs from multiple families that cover both dense and MoE architectures.
Strengths and weaknesses
Strengths
- The authors proposed a method to estimate hidden dimension using only probability of the top predicted token, which largely relax the API requirements from previous work. Moreover, the authors offer a proof on the lower bound of the sample complexity of the method.
- The proposed methods have been tested on a wide range of model families. In particular, the architectures tested in the paper include both dense and MoE transformers. Specifically, the average error rate for hidden dimension is 23%, with an impressive 9% on MoE models.
- The authors provide a practical discussion of attack token budget and an empirical guidance on how to distribute the attack budge between two tasks.
- This paper is overall easy to follow.
Weaknesses
- Applicability to actual commercial LLMs are yet to be tested: Despite the work is motivated by "commercial LLM providers do not publicly release details" (L1-2), there is no empirical evidence on any commercial LLMs using a real API, while earlier work of similar nature like Carlini et al. 2024 and Finlayson et al. 2024 do test results on commercial LLMs, e.g., earlier versions of GPT where dimensions are known or simply register a hypothesis about the hidden dimension a GPT model with unknown size. Lacking such evidence unfortunately weakens the significance of this work.
- This, in particular, brings some worries of whether the settings used in the timing attack reflects the ones of commercial LLMs: The setting used in the paper is "serve models via vLLM and measure end-to-end inference latency through its API" (L263-264), which is much close to pure model inference time. Yet a real-world API is likely served on multiple servers, in which case the variations of the server latency might dominant the timing. Serving optimization like prompt caching might also impact the estimation (although querying with random prefix might still be okay).
- The variance of the method across models seem to be huge, i.e., the chaotic curves hiding in the Figure 2 background, making reporting average seems insufficient. It would be good to quantify the variance and possibly offer some analysis on what contributes to the variance. Again, this weakens the significance of the empirical results.
- Regarding originality, the algorithm proposed in section 4.1 is interesting and non-trivial, but somewhat incremental given it largely follows the spectral analysis approach of earlier work. On the other hand, the timing attack is mostly constructed from an empirical point of view, as it simply uses linear regression against the theoretical computation complexity of the Transformer architecture. Personally, I found the approach like the one in Li 2026 on estimating model size more "thinking out of the box". Overall, I don't think originality is a big concern as long as the method can work well in practice.
- Possible typos: Symbol N in Figure 2 legend is undefined, should be P instead?
Questions
- I would like to see some results or at least some analysis towards how the timing attack works on a real API, basically whether the prefill cost dominants or randomness in the serving latency like server load or network delay dominants the timing. Without such evidence, the timing attack remains speculative. I am happy to raise my score if the authors can shed some lights on this.
- Could authors quantify the variance of the methods across models, the headline results only report mean on the hidden dimension and left out smaller models for parameter estimation? In particular, for models with >50% error rate at 800B token budget, what are some factors that contribute to errors in the estimation.
- As the predictive power of the method (give a fixed token budget) generally inevitably decreases as model size increases, how does the error rate of the proposed method scale w.r.t. d, l, and P? Some scaling law analysis would be helpful.
Limitations
Yes.
Final justification
As discussed in the rebuttal, I have raised my score to 4 as the additional experiments on TogetherAI and OpenAI API largely resolved my concerns on whether the proposed methods work on commercial LLMs.
I do share the efficiency concern with other reviewers that the relative error is large given the query budget, which is why not a higher score. This might say something about the limitations of this line of methods. However, I also don't think this constitutes a reason to reject, as the authors raised a good point in the last reply, which may be useful to include in the paper to inform readers what is the status quo: "Achieving a 10% relative error for width, depth, or model size individually, assuming access to only a single decoded logit, is a challenging problem which, to the best of our knowledge, has not yet been demonstrated in the literature."
Formatting concerns
N/A
4 comments
Rebuttal
Thank you for your time and detailed comments! We address your main questions below, and will respond to any remaining questions in the next few days during the discussion period.
We made timing measurements with two production commercial APIs, Together AI and OpenAI, following the same protocol as our vLLM experiments: prefill-only requests capped at a single output token, 50 repeats per prompt length per session, and an input sequence length = 1 baseline measured in the same session to isolate the -independent network-and-queue overhead. We also use a fresh random prefix on every request to defeat prompt caching, and the retries are disabled so that transient failures are discarded rather than timed. The two platforms serve complementary purposes. Together AI hosts open-weight models whose true depth is known, so recovered values can be checked against ground truth, while presenting the same serverless conditions as a frontier API — no dedicated instance, undisclosed server configuration, and uncontrolled routing. Two models were available to us in serverless mode, Llama-3.3-70B and Qwen2.5-7B, which is sufficient to exercise the cross-model calibration the method requires. OpenAI supplies the complementary case: gpt-4o-mini and gpt-4.1-mini are fully closed, so no ground truth exists, but they let us verify that the signal scales with prompt length as predicted and remains separable from serving noise.
To summarize our results: at the sequence lengths the attack uses, prefill dominates end-to-end latency by roughly 5-6x on both Together AI and OpenAI commercial APIs; serving randomness contributes an approximately additive, -independent term that repeat-averaging and slope-fitting both suppress; and with a hardware-homogeneous reference the attack recovers depth to 20-30% and parameter count to 13%-28% with Together AI serverless API if assuming negligible errors of model hidden dimension derived from common-set prompting methods. We have added these measurements and analysis to the revised paper.
Prefill domination and measurement stability: We estimate prefill's share by subtracting an = 1 baseline, measured in the same session, from the median end-to-end latency and attributing the remainder to prefill. That share grows monotonically with prompt length, and at the sequence lengths the attack uses it dominates on both providers. On Together AI, Llama-3.3-70B at = 40,000 has a median latency of 4.16 s against a 0.447 s = 1 baseline, leaving 89% attributable to prefill (78–94% across four sessions); the share rises from 80% at = 20,000 to that value. Qwen2.5-7B rises from 80% at = 16,000 to 87% at = 26,000 (76–88% across five sessions). On OpenAI, gpt-4o-mini rises from 70% at = 32,768 to 83% at = 65,536, and gpt-4.1-mini from 79% at = 50,000 to 87% at = 81,072 across three sessions. Individual requests are noisy, and the noise level itself varies between sessions — per-request coefficient of variation (standard deviation over mean) of 3–42% on Together and 35–52% on OpenAI. But the estimator consumes session medians, not individual requests, and the session-to-session standard deviation of those medians is 4.5–5.6% on Together and 2.6–6.0% on OpenAI. On OpenAI that spread is fully explained by repeat sampling; on Together, Qwen carries an additional ~5.4% of session-to-session drift, small against the 20–30% accuracy we claim for depth. The timing is therefore a compute measurement with an additive, -independent perturbation, not a measurement of the network. Cost is not a barrier at this scale: a single 50-repeat session runs $1.35–$4.59 on OpenAI and $0.76–$5.98 on Together at list prices, and the entire campaign cost about $64. Prompt caching was verified and defeated throughout, via OpenAI's own cached_tokens field and, on Together, a fixed- versus random-prefix A/B test.
Recovered depth: Applying the timing attack in Section 4.2 and cross-device calibration described in Appendix B.4.3, we recover depth on the commercial endpoints on Together AI calibrated against a fixed reference group of open-weight models measured locally on an H200 vLLM server. As stated in the paper, we do not need an known anchor model hosted on both platforms but require > 1 models to generate global scaling fit to generate cross-device transfer factor. Here we assume perfect knowledge or negligible error of hidden dimension to isolate the error from the timing attack. The results give L = 34.1 against a true 28 (+22%) for Qwen2.5-7B and L = 101.2 against a true 80 (+26%) for Llama-3.3-70B. Propagating into parameter count under the fixed Llama-3-8B template yields −13% and +28% against the true 7.6 B and 70.6 B — comparable to the −27% and +2% contributed by the template alone when true depth is supplied, so the depth estimate is not the dominant error source. This accuracy is obtained despite a precision mismatch between target and reference — Together AI serves FP8 builds while our references are in bf16, and despite the serverless setting, in which server configuration, routing, and co-tenancy are all unknown.
Variance of the hidden-dimension estimate across models
For this experiment we evaluate 11 models (8 dense, 3 MoE) spanning 1–30B parameters and in , over both budget axes: k prompts and samples per prompt (176 configurations). The standard deviation (SD) across models is 26.3, 29.2, 30.7 and 27.3 points as grows. The variance is driven by how large the budget is relative to . the mean error drops from 57.0% at to 39.7% at . Raising at cuts the mean from 48.4% to 30.6% and the median from 50.0% to 18.8%. The residual spread is stratified by , not idiosyncratic, which is why the SD stays near 26–31 points: at the max budget the four models span 0.0–18.8% error (mean 7.8%) while the four models average 50.0%. Theorem 1 predicts this, since the sufficient for recovery grows with .
The four models above 50% error at the max budget (Qwen3-4B, Granite-3.1-8B, Llama-3.1-8B and Qwen3-8B, three at ) show the failure mode of Section 5.2. The estimator sees only the directions excited by the sampled outputs, so at a budget small relative to the spectrum has not saturated, the saddle and peak landmarks fall below , and the detector can only lower-bound the rank. At k, as grows, for Qwen3-8B increases from 640 to 1536, and the four-model mean error falls from 80.2% to 61.1%. The remaining non-monotonicities are detector jitter while the spectrum fills in; the high errors reflect an exhausted budget, not an intrinsic bias.
Scaling of the error rate with , , and
Since drove the variance above, we now test all four axes. We report descriptive statistics rather than a fitted scaling law: across our 39 models the architectural axes are strongly collinear (wider models are also deeper), so joint exponents are not identifiable. For each model we average the error of over ten budgets , before and after snapping to ; 21 of the 390 configurations abstained and are excluded.
Hidden dimension is the only monotone axis (Table 1), again as Theorem 1 predicts: a capped budget buys less accuracy as grows.
Table 1: Relative error (%) of by hidden dimension , before (pre) and after (post) snapping. The and ranges show the collinearity of the axes.
| Models | range | range (B) | Err. pre | Err. post | Median | |
|---|---|---|---|---|---|---|
| 11 | 24–32 | 0.13–3.4 | 8.3 | |||
| 14 | 16–48 | 1.2–30.5 | 32.8 | |||
| 14 | 28–40 | 3.2–9.7 | 62.2 |
Depth and parameter count act only through their correlation with . Both trends over the full model set (Table 2, left columns) vanish or reverse within the 14-model band at , which spans and B; the three models there above 4B are the most accurate at . Once width is controlled for, neither degrades the estimate, consistent with the method reading only the rank of the output-layer spectrum.
Table 2: Relative error (%) of after snapping, by depth and parameter count (total, not active, for MoE), over all 39 models and over the 14 with .
| Group | Models (all) | Err. post (all) | Models () | Err. post () |
|---|---|---|---|---|
| 9 | 5 | |||
| 19 | 3 | |||
| 11 | 6 | |||
| B | 6 | 0 | — | |
| B | 12 | 9 | ||
| B | 12 | 3 | ||
| B | 9 | 2 |
Vocabulary size has no monotone effect. Grouping the 39 models by gives ($\approx$50k, 16 models), (100–128k, 9), ($\approx$152k, 10) and ($\approx$248k, 4), which are unordered in . The k models are the most accurate group at (25.3%) and the least at (78.9%). Each group is dominated by one or two model families, so we attribute these differences to family and width rather than vocabulary.
Hi there, thank you for your review and constructive feedback. Since the author-reviewer discussion period is ending today, we were wondering if you have any further comments regarding our rebuttal. We would be happy to address any other questions. Thanks again for your consideration.
I really appreciate that the authors added experiments on commercial APIs and the scaling analysis.
Regarding the commercial API experiments, the results are convincing that prefill dominates the serving latency at sufficiently large input token length of 50K~60K for OpenAI gpt-4x-min. The results on TogetherAI are good to show networking latency, but likely do not include the cost of a typical serving stack used by a commercial model, which includes components like safety filters. The authors also offered depth predictions on two models using TogetherAI, which have a error rate of 20-30%, aligned with the results reported in the paper using locally served models. Maybe I missed it, but I didn't see any prediction about the depth, hidden dimension, or model size on the two OpenAI models. It would be really helpful if the authors can register a prediction about these values.
Regarding the variance and scaling of the error rate, these results are very informative, but I am afraid they somewhat point to the direction that as the model size increases (which is the direction that this work would be most valuable in), the predictive power of the proposed method decreases under a fixed budget. This is somewhat worrying, especially as other reviewers also have the concerns that the relative error is large given the query budget. It would more convincing if authors can (1) further explain why the cost of this attack is justified and (2) empirically demonstrate that a sufficiently low relative error rate on all three attributes, say <10%, is achievable given a finite, realistic budget (which is unclear from Figure 2, since the green and blue line looks almost converged).
Overall, given the hard work that the authors have done during the rebuttal, and the experiment results are mostly solid (just the significance is unclear given the error rate and budget requirement), I can raise my score to 4, but no higher.
Thank you for the followup and your favorable response to our additional analyses!
We would have presented results for the OpenAI models, however reverse engineering their model parameters is against their terms of service, hence we purposefully made no attempt to do so here.
Common-set prompting can indeed be expensive, and would require a motivated actor to attempt. Part of the contribution of this work is to understand that complexity; show that it is feasible given a number of tokens/API calls that these models do commonly serve; and show experimentally how the error decreases with token budget. We also provide some theoretical results characterizing the sample complexity. That being said, the error can be nontrivial even at large token budgets as we mention in the conclusion. The efficiency of the method could potentially be improved by more advanced prompting frameworks for which common set prompting provides a foundation.
Achieving a 10% relative error for width, depth, or model size individually, assuming access to only a single decoded logit, is a challenging problem which, to the best of our knowledge, has not yet been demonstrated in the literature. In our work, we achieve this level of accuracy in specific regimes (such as hidden dimension on MoE models) through common set prompting. This is itself a novel result, providing insight into which architectural parameters can be recovered with high fidelity under these constraints. Achieving 10% relative error simultaneously across width, depth, and model size is substantially more challenging. Our empirical analysis suggests that doing so likely requires either a very large token budget or additional assumptions on the model families that, for the sake of generality, we do not explicitly consider in this work.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes an approach to estimate the dimension, depth and total parameter count of an unknown LLM only accessible through its API (black box with only the top logprob returned). To that end, they leverage different techniques (spectral analysis, timing analysis). The estimation accuracy is comprehensively evaluated on 32 LLMs for which ground truth is available.
Strengths and weaknesses
- fine grained analysis of LLM access models (not only white or black, but considering precisely what is available)
- feels like "honest reporting": the method is not perfect, and not cheap, but these limitations are adequately presented and contextualised
- good positioning with respect to SoTa, highlighting the key advantages and requirements of other methods.
- unclear "global" threat model -- situations where both common set prompting and timing based analysis are possible feel rare.
- arguably mostly of theoretical interest (800B tokens for 23% estimation error, who needs to know these that badly )
- significance advertising could be improved
This paper is, in my view, very well written: providing context, intuition and precision in a very accessible way. I enjoyed the precision with which authors engaged with related works, accurately delimiting the applicability domain of competing approaches together. I also liked the resulting blend of techniques (with a glimpse of theory) that nicely illustrate the numerous "side channels" that can be exploited facing LLMs. On a higher level, I consider the question of understanding what can be deduced about a model through interaction alone as quite fundamental and important, bearing potential implications regarding model security, safety, and regulation. In that perspective, I believe the paper should invest a bit more space into providing motivations for this specific variation of the problem (why is estimating these hidden parameters important). The paper is however clearly positioned within a line of previous works investigating close questions, demonstrating a shared interest. An important point but that acts as an indirect motivation: this problem is important because considered important by others. Providing direct motivation through for instance a concrete-ish threat model (or scenario) could help, especially for non-specialists.
This concrete motivation appears important given the nature of arguments differentiating the paper against Carlini'24 (unavailability of logit bias), which set the stage in a very "applied" perspective (current providers don't return many logits anymore).
A second limitation I see comes from the conjunction of both techniques (common set prompting CSP and timing based recovery TBR). My understanding is that since both techniques operate under very different regimes, they require very different conditions (CSP: high request volumes, single logit; TBR: LAN black box access and other known models to fit on the same hardware). I have a hard time imagining an attacker that would possess the means and the motivations to obtain these estimates. Another motivation could be the theoretical interest of the question (providing a construct to illustrate that such inference is "not impossible"), but these motivations should be clarified.
Regarding TBR specifically, I the conditions under which end-to-end inference times are collected should be clarified. I'd suppose end-to-end time is heavily impacted by network traffic conditions, routing, load balancing, etc. Perhaps the regression would hold nevertheless, but the calibration would be off unless the attacker can run known models in identical situations. But given the black box setting, how would the adversary know on which hardware the target model is running ?
To sum up, in my view this paper has many qualities, but current positioning on the "theory/practice" axis and the general motivation should be strengthened.
minor
- Fig 11 I found the added value of presenting (full+rounded) errors marginal
- Fig 2:
- N = P confusing
- P <400B not visible, quite sad, perhaps continuing above with some "sketching" or transition to a non-linear scale would help ?
- how is it possible to achieve identical average relative error between d and P, while L is OOM higher and should impact P downstream ?
- Fig 3: relative error is not in % (as 1 on figure corresponds to 100%, text is clear but y axis label is confusing)
- the results section order is a bit confusing, I'd recommend following the presentation order of section 4 or otherwise adding a bit of context at the beginning of section 5 to explain why this order matters and prepare the reader
Questions
- Timing and NV in general: what about impact of quantization ?
- cf questions within review
- open question/curiosity: any idea on reducing the cost of common set prompting strategy ?
Limitations
na
Final justification
I believe this paper is a solid contribution to the area of black box LLM information extraction. First, I believe it is clear, well written, and (provided the authors append their experiments on models in the wild) mobilises a variety of techniques all concurring to extract valuable meta information about unknown target models. Its main weakness is its limited realism and practicality, but its adequate positioning wrt sota on what appears to me as mostly a new research thread softens this shortcoming. Moreover, I believe this paper opens several improvement directions that may ultimately lead to practical solutions with important economic intelligence/ strategic consequences in a future where I easily imagine "adversarial" relations to LLMs becoming more common. To sum up, I think it is a solid paper. I will not fight for it because I understand some may find its current applicability too low, but to me its didactic and prospective values easily overcome this shortcoming. Besides, I believe the considerable efforts invested by authors into improving the original submission deserve some reward.
Formatting concerns
na
4 comments
Rebuttal
Thank you for your time and detailed comments! We would first like to clarify the “global” threat model and the scenarios in which our method is applicable. For the timing based recovery in the second stage of NightVision, we do not need to know the hardware that the target model is run on.
As a demonstration, in the response to reviewer Rde8, we demonstrate the method on a commercial serverless platform whose hardware is unknown to us. The full procedure is given in Appendix B.4.3, where we calibrate an unknown target platform and model against known reference models hosted on a platform we control. The calibration is constructed so that the hardware rate cancels algebraically.
Three conditions are required. First, at least two models must be queried on the unknown server, since a single model cannot separate its own depth from the group slope; their depths need not be known. Second, the reference group's effective depth must be comparable to the target group's, because that ratio is what survives the cancellation — an approximation rather than an identity, and the dominant error term. Third, the serving conditions within each group must be homogeneous. For a serverless setup it still works as long as possible hardware setup, routing, and network conditions are similar.
In the attention-dominated regime the timing law reduces to T = β·L·ℓ²·d + γ, the ℓ ≫ d limit of the full model in which the addmm term is subdominant. Here ℓ is the prompt length, d the hidden dimension, L the depth, β a per-layer rate fixed by the hardware, and γ a sequence-length-independent offset. Two quantities are measured on the unknown server U: the per-model slope of the target, b_target = β_U · L_t, and a pooled slope over a small group of models served there, b_group,U = β_U · ⟨L⟩_U, where ⟨L⟩_U is the group's effective depth. A reference group of known architectures measured on hardware the adversary controls gives b_group,R = β_R · ⟨L⟩_R together with β_R itself. The estimate L̂ = (b_group,R / b_group,U) · b_target / β_R = (β_R⟨L⟩_R)/(β_U⟨L⟩_U) · (β_U L_t)/β_R = L_t · (⟨L⟩_R / ⟨L⟩_U) contains neither β_U nor β_R: both cancel. The adversary therefore never identifies the serving hardware, and no model needs be measured on both sides.
With Together AI serverless API, using two models queried through the commercial API against a reference group of 37 known architectures measured locally on H200 vLLM servers, we recover depth to +22% (L̂ = 34.1 for a true 28) and +26% (L̂ = 101.2 for a true 80). The remaining residual reflects the neglected addmm term at finite ℓ, the fitted intercepts, and hardware effects that our reference set samples only sparsely — not any failure to identify the hardware itself. We also want to mention that timing attack cost is not a barrier at this scale: a single 50-repeat session runs $1.35–$4.59 on OpenAI and $0.76–$5.98 on Together at list prices, and the entire experiment costs about $54. Once the hidden dimension has been recovered by common-set prompting, the stage that dominates the token budget, the timing measurements that yield depth and parameter count add only a small fraction of cost.
We respond to some of your additional comments below, and will respond to any remaining issues in the next few days during the discussion period. Thank you for your questions and patience!
Question: “arguably mostly of theoretical interest (800B tokens for 23% estimation error, who needs to know these that badly)”
Response: It is true that our motivation is to understand what sort of recovery is possible. That being said, there are examples of large AI laboratories using millions of API calls (which is much larger than the number used in our experiments) to target capabilities of frontier models (see https://www.anthropic.com/news/detecting-and-preventing-distillation-attacks). So these methods and other related attacks are not merely hypothetical.
Question: “Timing and NV in general: what about impact of quantization ?”
Response: For hidden dimension, the output embedding has the same shape at any bit-width, so the rank bound that our spectral method exploits is unchanged. The quantization of the observed logits means the observed matrix is never exactly low-rank, and our detector recovers a practical numerical rank instead. Coarser quantization raises that noise floor, and manifests as a larger budget requirement for the same accuracy.
For depth and parameter count, our estimate works by comparing measured runtime against a per-layer cost calibrated from reference models: knowing how long one layer takes, total runtime tells us how many layers there are. Serving precision is one of the factors folded into that per-layer cost.
We ran the following experiment to demonstrate. Serving one architecture (Qwen2.5-7B, L = 28, d = 3584) at two precisions, bf16 and 4-bit AWQ, through the same local vLLM stack, we swept six sequence lengths spanning the model's addmm/attention crossover and fitted the one-term relation T = beta * (L ^2 d) + c to each. Here L is the number of layers, d is hidden dimension, and is input prompt sequence length. Because both models share an identical architecture, the scaling relation is unchanged; only the interception moves. Both precisions are described equally well by the same functional form: R^2 = 0.9948 (bf16) and 0.9934 (AWQ), with the fitted lines straight and parallel in L*\eff^2*d. The fitted rates are beta = 2.49e-08 +/- 9.0e-10 (bf16) and 2.87e-08 +/- 1.2e-09 (AWQ), a difference of 15% (2.5 sigma). Quantization therefore rescales the timing law without altering its form, which is the property the attack depends on: the recovered depth is obtained from a slope ratio, so a uniform change in beta cancels whenever the reference and target share a precision.
We also want to point out that, in fact, we discussed how to factor out effects from unknown server platforms on timing attack, including serving precision. The process is described in detail in our Appendix B.4.3. As discussed in the response to Rde8, we ran a test with a commercial serverless API from Together AI and calibrated against our reference measurement on local NVIDIA H200 vLLM servers with known server setup. Together AI serves FP8 builds while our references are all in bf16, however, our approach was able to recover model depth to 20-30% and parameter count to ~30%. Therefore our approach accounts for model serving precision such as quantization and provides a reasonable approach to deploy the timing attack without knowledge of the server configuration.
Question:"open question/curiosity: any idea on reducing the cost of common set prompting strategy ?"
Response: Cost is the limitation we would most like to remove, and we believe that some of the overhead we report is due to inefficiencies in our own procedure rather than an inevitable cost of the weaker threat model. Since we have not carried out these experiments, we offer three directions for future work: allocating the budget where it still provides coverage, not paying for prompts that will later be pruned, and deciding which side of the matrix binds before adding prompts.
The individual entries in the common-set matrix are exact log-probabilities rather than estimates, so a repeated draw of the same token under the same prompt yields nothing new. Sampling controls only which (prompt, token) entries become observable at all. When a prompt has an observed token set , the complementary probability mass is precisely the probability that a further query using will result in a new token. This uncovered mass can be calculated from the log-probabilities already gathered, and it decreases as coverage increases. At present our sampling schedule is fixed and uniform, giving every prompt samples regardless of whether it has reached saturation. It would be better to freeze a prompt once drops below a threshold and redirect its remaining queries to those prompts which still have headroom.
The common set is the intersection taken over all the prompts that are retained, so a single prompt with narrow support limits the size of this set, and our greedy NaN-pruning step, which drops the rows and columns with the most missing entries until the matrix is dense, removes those rows only after the entire budget has already been allocated to them. Retiring such prompts during the collection phase, once the vocabulary coverage curve has become flat enough to allow us to predict its final support, returns that budget directly.
Budget is also allocated in the wrong direction when the binding constraint is misidentified. The number of usable eigenvalues is limited by , where is the number of prompts retained after pruning, so sampling from new prompts increases this limit when the matrix is row-limited but shrinks when it is column-limited. Both quantities are observable mid-run, so the schedule can check which side binds before spending.
None of these affect the asymptotic scaling in , since their focus is on redundancy and constants, which is where we think the recoverable cost lies.
answering remaining questions
Question: (Fig 2) "P <400B not visible, quite sad, perhaps continuing above with some "sketching" or transition to a non-linear scale would help?"
Response: We experimented with adjusting the figure y axis but we found that showing the clipped region may not be informative. The reason is as follows. Depth L comes from a slope fitted against , so . The blow-up in L is the inversion:, so a relative error in contributes . The data track this closely. At a budget < 200B when the is roughly 90%, the predicted error is as high as 654%. We tried a logarithmic y-axis and did not adopt it. The logarithmic y-axis squeezes the region of interest (relative error < 100%) significantly and makes the informative region much less readable. We will therefore keep the linear axis, add the peak values and a short explanation of the trend to the caption.
Question: (Fig 2) "how is it possible to achieve identical average relative error between d and P, while L is OOM higher and should impact P downstream ?"
Response: The error contributions here are not merely direct propagation to downstream tasks. As stated before, depth L comes from a slope fitted against , so and its error has two channels — the hidden-dimension channel, contributing for a relative error in , and the slope channel from timing noise, fitted range, and conditioning.
The residual P error splits three ways. Template: evaluated at the true and , the Llama-3-8B template still on average contributes 17% error from the published parameter counts — an irreducible floor, removable only by identifying the architecture family. Hidden dimension: the dominant upstream term, passing into P close to one-for-one (). Depth: and are themselves anti-correlated, being one measurement expressed two ways rather than two independent sources. The error contribution from template assumptions also may cancel with contribution from depth and hidden dimension. Therefore the final error propagating to P from d and L may not be additive.
Thank you for these detailed answers. In my view, the added experimental results and explanation provide a great improvement to the contribution. I still have one point regarding motivation, perhaps I was unclear: I agree that given the ongoing harsh competition (and the reported model development costs), certain information regarding competitors may be worth millions of API calls --the point illustrated by the provided anthropic statement. What I missed is rather the motivation for a competitor to invest that much to learn (approximate) target models size, depth and hidden dimension. Ideally, such points would be materialized by a motivated threat model that recaps what the adversary knows (eg does he know the target model fp beforehand ?) and why he wants to learn more. I am otherwise satisfied with the provided answers, and while a better motivation would definitely reinforce the paper I think the paper already has good value as is.
Thank you for the followup question! We answer in two parts:
-
Estimation of these particular parameters is just one piece of the information that an actor might hope to obtain about a model. As you point out, some information might be available more readily (like floating point rate, vocab size, etc), and could then be used to infer further information. We see our method as one part of understanding these potential threats. Although our current work requires specialized prompts, future work may find a way to double dip and use the same prompts for distillation and model architecture reverse-engineering, in which case they could perhaps get some of these parameters “for free”. We will add this to the discussion about motivations and future work.
-
We focus on parameters like model-size, hidden dimension, and depth because they provide information about the scope and capabilities of a model. They also tell us how resource intensive the model is to run in terms of memory and compute, and they do so in a way that has been relatively unchanged over the last few years of LLM development and will likely still be relevant in the next few years to come. In principle, our method can infer these parameters even if the model family is not known publicly and is therefore challenging to fingerprint in other ways.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Overall Response
Thank you to the reviewers and AC for their excellent questions and comments! We have responded in detail to each reviewer’s questions below, and will incorporate the updated analyses and explanations in the final draft of the paper.
We would like to emphasize that while common-set prompting is indeed expensive from a token budget point of view, this is because it solves a challenging and relevant problem. The number of API calls that we use in our experiments (going up to one million, see Figure 15) is much smaller than the number of calls used by real actors trying to glean information from production foundation models (see https://www.anthropic.com/news/detecting-and-preventing-distillation-attacks). These real-world examples show how important it is for the community to understand what information can be inferred from API calls to LLMs – it is a very real security issue.
In our threat model for common-set prompting, we assume only that the single log-probability of the decoded token is revealed. In the second, timing-based stage of NightVision, we do not need to assume that we know the target hardware platform. The requirements are much more mild than that, and are explicitly described in the response to Reviewer vgyj. In the response to Reviewer Rde8, we demonstrate our method with commercial serving platforms, and show how the calibration procedure from Appendix B.4.3 accounts for differences like network latency, quantization, and hardware.
Other important analyses that we present to clarify reviewer questions are as follows:
-the effects of model quantization (response to Reviewer vgyj)
-error variance and scaling with respect to individual parameters (response to Reviewer Rde8)
-detector sensitivity analysis (response to Reviewer zR3d)
-architecture-family detection (response to Reviewer zR3d)
-error decomposition (comment to Reviewer zR3d)
Thank you again! We are happy to engage during this discussion period.