- Rating
- 3
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
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
Paper formatting concerns
No formatting or anonymity violations observed.
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.
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 p=0.54, but all experiments using Algorithm 1 ran with p=0.05, and none of the results change.
We swept p∈[0.01,0.07]∪{0.10,0.15,0.30,0.50} for all 39 models, and perturbed the two arctan window bounds by ±5%, ±10%, and ±20%. 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 n=100k to 0.303 / 0.300 at the full n=1M budget. Tables 1 and 2 summarize the results by sampling budget n.
The saddle detector is mostly insensitive to the prominence fraction. For 0.01≤p≤0.10, the predictions are identical to those at the default p=0.05, both before and after grid-snapping. The first changes appear at p=0.15 (1.8% of predictions change) and remain limited at p=0.30 (3.8%), with predictions at n≥300k unchanged. At p=0.50 the accuracy degrades substantially (0.534 / 0.540 at n=1M), 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 n (39 models per row). Mean relative error (MRE) reported before / after grid-snapping. The "Baseline" columns are identical for every p∈[0.01,0.07]∪{0.10}. Changes at p=0.15 and p=0.30 are confined to n≤200k, while p=0.50 differs at every budget.
The full area of interest (AOI) detector (both saddle and peak) is also robust to the two arctan thresholds that bound the search windows. arctan(π) upper-bounds the saddle search, preventing the detector from returning a global minimum like the one in Figure 13, and arctan(π/2) 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 ±10% leaves d^ essentially unchanged; a single spectrum shifts at +10% and n=100k. At +20% the detector degrades at low budgets (0.981 / 0.980 at n=100k, where only 5.1% of spectra yield an AOI) and largely recovers by the full budget (0.379 / 0.377 at n=1M, with 92.3% AOI detection).
Table 2: arctan window-bound sensitivity by sampling budget n (39 models per row; MRE before / after grid-snapping as in Table 1). Scalings from −20% to +5% match the baseline at every budget; +10% differs only at n=100k; +20% degrades at low budgets and largely recovers by n=1M.
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 g=128 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 g is a trade-off: because the snap rounds up, g=64 could under-predict at low budgets, where the raw estimate already runs low, while g=128 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.