[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-327280-105":59,"doc-detail-327280-en":131,"doc-similar-327280":164},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","black-box-inference-of-llm-architectural-properties-with-restrictive-api-access-preprint","Black-Box Inference of LLM Architectural Properties with Restrictive API Access - Preprint","","Most commercial LLM providers conceal details of underlying architectures, yet prior research shows that limited API access (e.g., top-k logits or a logit-bias function) can reveal properties such as the hidden dimension. The paper studies a more restrictive setting where APIs expose only the single logit for each decoded token. It introduces NightVision, estimating hidden dimension, depth, and parameter count using restrictive black-box queries plus timing (TTFT), validated on 32 open-source models.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/black-box-inference-of-llm-architectural-properties-with-restrictive-api-access-preprint/327280/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/black-box-inference-of-llm-architectural-properties-with-restrictive-api-access-preprint/327280.png","ImageObject",300,407,{"name":92,"@type":93},"Olivia Brown","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-09-21",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",11,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What problem does the paper address about LLM APIs?","Question",{"text":113,"@type":114},"It examines whether attackers can infer sensitive architectural properties of a large language model using only restrictive black-box API access, such as minimal single-token logit information combined with timing.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What is NightVision and what parameters does it recover?",{"text":118,"@type":114},"NightVision is an inference attack that estimates an LLM’s hidden dimension, depth, and total parameter count under restrictive API constraints.",{"name":120,"@type":111,"acceptedAnswer":121},"How does NightVision work under restrictive logit access?",{"text":122,"@type":114},"It uses common-set prompting to recover hidden dimension from single-logit access and then leverages end-to-end time to first token (TTFT) to estimate depth and parameter count.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},327280,1790462430,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":19,"preview_urls":147},16904993612988,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","Black-Box Inference of LLM Architectural Properties with Restrictive API Access  \nChristopher Ellis∗  \nCarnegie Mellon University Pittsburgh, PA 15213 [crellis@andrew.cmu.edu](crellis@andrew.cmu.edu)  \nShreyas Chaudhari∗ Carnegie Mellon University  \nPittsburgh, PA 15213 [shreyasc@andrew.cmu.edu](shreyasc@andrew.cmu.edu)  \narXiv :2607 .0 13 13v 1 [ cs .LG] 1 Jul 2026  \nMei-Yu Wang∗  \nPittsburgh Supercomputing Center Pittsburgh, PA 15213 [mwang7@psc.edu](mwang7@psc.edu)  \nGiulia Fanti  \nCarnegie Mellon University Pittsburgh, PA 15213 [gfanti@andrew.cmu.edu](gfanti@andrew.cmu.edu)  \nLeighton Barnes  \nCarnegie Mellon University Pittsburgh, PA 15213 [leightonb@cmu.edu](leightonb@cmu.edu)  \nJosé M. F. Moura  \nCarnegie Mellon University Pittsburgh, PA 15213 [moura@andrew.cmu.edu](moura@andrew.cmu.edu)  \nAbstract  \nIn 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.  \nAlgorithmically, NightVision relies on a novel common set prompting technique in which multiple prompts expose log probabilities for the same set of output tokens;  \na 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.  \nWe 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.  \n1 Introduction  \nCan attackers infer architectural properties of a large language model, e.g., its hidden dimension, depth, or total parameter count, from API access alone? This question is of great interest to both LLM  \n∗Equal contribution  \nPreprint.  \ndevelopers and servers, who may seek to keep their hyperparameters and associated model intellectual property secret [Tramèr et al., 2016] . It is also relevant to security researchers and digital forensics experts, who may need to characterize unknown LLM APIs encountered in the wild. The feasibility of black-box architectural inference thus has direct implications for both API design [Hartenstein, 2025, Liu et al., 2026] and model auditing [Amirizaniani et al., 2024, Mökander et al., 2024, Rastogiet al., 2023] .  \nRecent black-box attacks [Zhao et al., 2025] have shown that hidden dimension and final-layer weights (up to orthogonal transformation) can be recovered via spectral analysis of output logits [Carlini et al., 2024, Finlayson et al., 2024] . These attacks critically depend on either full log probabilities or a logit-bias parameter that allows the attacker to reconstruct full logit vectors from top-k probabilities. In response, as modern language model APIs continue to evolve [Chauvin et al., 2025], providers have started to restrict access to both top-k logits and logit bias [Carlini et al., 2024], rendering these attacks inapplicable on such APIs. A natural question ","cbCaicO3sPJmf4WW","https://ap.wps.com/l/cbCaicO3sPJmf4WW","pdf",4996635,31,"English","# Abstract\n# 1 Introduction\n## Contributions\n## Algorithmic approach\n## Theoretical analysis","[{\"question\":\"What problem does the paper address about LLM APIs?\",\"answer\":\"It examines whether attackers can infer sensitive architectural properties of a large language model using only restrictive black-box API access, such as minimal single-token logit information combined with timing.\"},{\"question\":\"What is NightVision and what parameters does it recover?\",\"answer\":\"NightVision is an inference attack that estimates an LLM’s hidden dimension, depth, and total parameter count under restrictive API constraints.\"},{\"question\":\"How does NightVision work under restrictive logit access?\",\"answer\":\"It uses common-set prompting to recover hidden dimension from single-logit access and then leverages end-to-end time to first token (TTFT) to estimate depth and parameter count.\"}]","Black-Box Inference of LLM Architectural Properties with Restrictive API Access - Preprint | PDF",1789976893,78,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6abc9e9108357a744464aec7583350e6.webp",983,1272,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/f4b8b1cce5c9bf9e95380d632b331b3e.webp",982,1270,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/eca53473ea3770a67ce7a28880d5d2e1.webp",981,1269,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/a3d161b747cad6cb7feaaabe9f380b87.webp",980,1268,{"list":165,"token":66},[166,173,180,187,194,201,207,213,220,226],{"doc_id":167,"doc_title":168,"file_type":138,"home_preview_img_url":169,"slug":170,"view_count":171,"category_name":40,"create_tm":172},125516,"Single-pass Detection of Jailbreaking Input in Large Language Models - Paper Abstract","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229838453001/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205419&Signature=7JjooPb5zKc0APipC%2BhyvsAVsKs%3D","single-pass-detection-of-jailbreaking-input-in-large-language-models-paper-abstract",22,1785899556,{"doc_id":174,"doc_title":175,"file_type":138,"home_preview_img_url":176,"slug":177,"view_count":178,"category_name":40,"create_tm":179},85248,"Can Watermarking Techniques Help Prevent LLM Model Stealing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809297579/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205419&Signature=lU0nw1l2b6fKaO8w1foPyjTlh3Q%3D","can-watermarking-techniques-help-prevent-llm-model-stealing",26,1784202067,{"doc_id":181,"doc_title":182,"file_type":138,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":40,"create_tm":186},82527,"Rise From The Ashes LLM-based Static Analysis for Deep Learning Framework Bugs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808758055/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205419&Signature=j1B1EZpu%2FjmqbKCXa1SREG3l2nQ%3D","rise-from-the-ashes-llm-based-static-analysis-for-deep-learning-framework-bugs",29,1784181258,{"doc_id":188,"doc_title":189,"file_type":138,"home_preview_img_url":190,"slug":191,"view_count":192,"category_name":40,"create_tm":193},85718,"Gauge Dependence and Structured-Output Corruption in Sign-Branched Repetition Penalties: Measurements Across Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809345646/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205419&Signature=TzCG5G37FhMK9adRQ65%2FNlNkriA%3D","gauge-dependence-and-structured-output-corruption-in-sign-branched-repetition-penalties-measurements-across-models",27,1784205774,{"doc_id":195,"doc_title":196,"file_type":138,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":40,"create_tm":200},83590,"Hypic Accelerating Hybrid-Attention LLM Serving with Position-Independent Caching","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808989915/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205419&Signature=JRQRJ553la9kVcEtU9Bq2g%2BjfTY%3D","hypic-accelerating-hybrid-attention-llm-serving-with-position-independent-caching",32,1784189059,{"doc_id":202,"doc_title":203,"file_type":138,"home_preview_img_url":204,"slug":205,"view_count":192,"category_name":40,"create_tm":206},84922,"FreqDepthKV Frequency-Guided Depth Sharing for Robust KV Cache Compression in Long-Context LLM Inference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809220301/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205419&Signature=%2B9cJUmebWnWeLoksSi2%2BlJ8IPhs%3D","freqdepthkv-frequency-guided-depth-sharing-for-robust-kv-cache-compression-in-long-context-llm-inference",1784199362,{"doc_id":208,"doc_title":209,"file_type":138,"home_preview_img_url":210,"slug":211,"view_count":81,"category_name":40,"create_tm":212},686580,"Live API-Bench - 2500+ Live APIs for Testing Multi-Step Tool Calling","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000538437/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205419&Signature=ErwY%2Fc%2FrtduNiDoxrIXbh3SiPgY%3D","live-api-bench-2500-live-apis-for-testing-multi-step-tool-calling",1794057054,{"doc_id":214,"doc_title":215,"file_type":138,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":40,"create_tm":219},489341,"R4R - Template-based REST API Framework for RDF Knowledge Graphs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229927229712/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205419&Signature=bjPbHXfS9T0kcKMq3F6PpTjqy3Y%3D","r4r-template-based-rest-api-framework-for-rdf-knowledge-graphs",15,1790822333,{"doc_id":221,"doc_title":222,"file_type":138,"home_preview_img_url":223,"slug":224,"view_count":56,"category_name":40,"create_tm":225},84758,"Elastic Gang: Per-Token Membership Change for a Hard-Barriered LLM Inference Gang Co-Scheduled with OS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809202298/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205419&Signature=vCKcosaTEZIrH9KFLprh2tB%2FojY%3D","elastic-gang-per-token-membership-change-for-a-hard-barriered-llm-inference-gang-co-scheduled-with-os",1784198075,{"doc_id":227,"doc_title":228,"file_type":138,"home_preview_img_url":229,"slug":230,"view_count":24,"category_name":40,"create_tm":231},686575,"RestGPT - Connecting Large Language Models with Real-World Applications via RESTful APIs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000538110/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796205419&Signature=wKgCKD0L2RJ400ZxKle3cV5uPS4%3D","restgpt-connecting-large-language-models-with-real-world-applications-via-restful-apis",1794057005]