mlsanityData to 7 Oct 2026

Black-Box Inference of LLM Architectural Properties with Restrictive API Access

arXiv 2607.01313 ↗First posted 1 Jul 2026cs.LG cs.AI cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

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 logits 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 logit 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 32 open-source LLMs, recovering hidden dimension to within 23% average relative error across all models (9% on MoE models), and depth and parameter count to within 53% for models exceeding three billion parameters. 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.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 28 of its 36 references that are in the map. First posted on arXiv 1 Jul 2026.

Builds on

28 of 36 references.

References · 28

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Scaling Laws for Neural Language Modelscited by 6,411
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  4. 2020GLU Variants Improve Transformercited by 1,724
  5. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
  6. 2016Stealing Machine Learning Models via Prediction APIscited by 602
  7. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
  8. 2024Stealing Part of a Production Language Modelcited by 152
  9. 2023Auditing large language models: a three-layered approachcited by 135
  10. 2023Language Model Inversioncited by 66
  11. 2024Instructional Fingerprinting of Large Language Modelscited by 64
  12. 2024LLMmap: Fingerprinting For Large Language Modelscited by 56
16 more
  1. 2023Supporting Human-AI Collaboration in Auditing LLMs with LLMscited by 46
  2. 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
  3. 2018Stealing Neural Networks via Timing Side Channelscited by 42
  4. 2024Logits of API-Protected LLMs Leak Proprietary Informationcited by 38
  5. 2024Large Language Model Inference Acceleration: A Comprehensive Hardware Perspectivecited by 36
  6. 2024REEF: Representation Encoding Fingerprints for Large Language Modelscited by 34
  7. 2024TRAP: Targeted Random Adversarial Prompt Honeypot for Black-Box Identificationcited by 33
  8. 2023HuRef: HUman-REadable Fingerprint for Large Language Modelscited by 32
  9. 2025A Survey on Model Extraction Attacks and Defenses for Large Language Modelscited by 18
  10. 2026Incompressible Knowledge Probes: Estimating Black-Box LLM Parameter Counts via Factual Capacitycited by 16
  11. 2025SoK: Large Language Model Copyright Auditing via Fingerprintingcited by 14
  12. 2024AuditLLM: A Tool for Auditing Large Language Models Using Multiprobe Approachcited by 11
  13. 2025A Survey of LLM Inference Systemscited by 8
  14. 2025Log Probability Tracking of LLM APIscited by 8
  15. 2025LLMs Have Rhythm: Fingerprinting Large Language Models Using Inter-Token Times and Network Traffic Analysiscited by 7
  16. 2016Fast estimation of approximate matrix ranks using spectral densitiescited by 5

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Detokenization Leaks: Reconstructing Local LLM Outputs From Cache Traces
  2. 2025Predictive Auditing of Hidden Tokens in LLM APIs via Reasoning Length Estimation
  3. 2026Safeguarding LLMs via Model-Agnostic Latent Safety Signals from Dark Knowledge
  4. 2026Position: LLM Inference Should Be Evaluated as Energy-to-Token Production
  5. 2026Governing the KV Cache: Preventing Timing Side-Channel Leakage in Multi-Tenant LLM Inference
  6. 2026A Picture is Worth a Thousand Tokens: How Vision Language Models Cut AI Energy Costs While Improving Accuracy
  7. 2026Token-Budget-Aware Pool Routing for Cost-Efficient LLM Inference
  8. 2026Continuous Discovery of Vulnerabilities in LLM Serving Systems with Fuzzing