Text Generation
Transformers
Safetensors
PyTorch
ONNX
English
qtensorformer
qtf
q-tensorformer
qtensor
high-throughput-inference
tensor-train
tensor-networks
tensorrt-llm
vllm
continuous-batching
paged-attention
speculative-decoding
zero-svd
adaptive-computation
dynamic-neural-networks
kv-cache
kv-cache-quantization
attention-sinks
lyapunov-stability
control-theory
contextual-bandits
edge-ai
edge-inference
on-device-ai
model-compression
hopper-h100
blackwell-b200
jetson-orin
jetson-thor
grouped-query-attention
rotary-position-embeddings
custom_code
academic-paper
ieee
neurips
vit-ap-university
deepseek
deepseek-r1
reasoning
chain-of-thought
gsm8k
openai-compatible
fastapi
rest-api
sse-streaming
onnx-runtime
embedded-ai
hardware-telemetry
power-efficiency
green-ai
raspberry-pi
smollm2
qwen2.5
llama-3.2
apple-silicon
Instructions to use Premchan369/Q-TensorFormer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Premchan369/Q-TensorFormer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Premchan369/Q-TensorFormer", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Premchan369/Q-TensorFormer", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Premchan369/Q-TensorFormer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Premchan369/Q-TensorFormer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Premchan369/Q-TensorFormer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Premchan369/Q-TensorFormer
- SGLang
How to use Premchan369/Q-TensorFormer with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Premchan369/Q-TensorFormer" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Premchan369/Q-TensorFormer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Premchan369/Q-TensorFormer" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Premchan369/Q-TensorFormer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Premchan369/Q-TensorFormer with Docker Model Runner:
docker model run hf.co/Premchan369/Q-TensorFormer
Premchandyadav369 commited on
Commit ·
1dfc8c4
1
Parent(s): c58e87b
feat(paper): add real-time cyber-physical deployments, drone uav, ar eyewear, and fleet roi to 6-page paper
Browse filesFiles changed (6)
123version https://git-lfs.github.com/spec/v1oid sha256:b978b9c212c2ab6c7b09e696e4c5e5968d50b66fb40b1f1de454931413b7c31csize 1805737123version https://git-lfs.github.com/spec/v1oid sha256:3528b9f36c3bb8a04b94133a8f8d80b0e73e0a0ea768e7261d76d1c3b529abb1size 1814717
325 unmodified lines326327328329330331325 unmodified lines\end{tabular}\end{table}\section{Related Work}\label{sec:related_work}325 unmodified lines326327328329330331332333334335336337338339340341342343344345346325 unmodified lines\end{tabular}\end{table}\subsection{Real-Time Cyber-Physical Field Deployments \& Enterprise Fleet ROI}\label{sec:field_deployments}To assess real-time resilience under physical environmental stress, we deployed Q-TensorFormer across three mission-critical field applications and an enterprise fleet carbon evaluation:\textbf{1) Search-and-Rescue Quadrotor UAV}: An autonomous drone powered by a Raspberry Pi 5 companion computer navigates at $38^\circ\text{C}$ ambient desert heat. Under the dense baseline, continuous $9.5\text{ W}$ power draw causes junction temperature $T_j$ to surge from $42^\circ\text{C}$ past the $80^\circ\text{C}$ trip point in $3.4\text{ minutes}$, throttling CPU clock frequency from $2.4\text{ GHz}$ down to $1.2\text{ GHz}$ and collapsing command throughput from $3.8\text{ tok/s}$ to $1.7\text{ tok/s}$. In contrast, Q-TensorFormer's Lyapunov controller detects thermal climb ($+0.8^\circ\text{C/min}$) and dynamically down-slices core ranks to $r=4$ and $r=2$ in $14.2\;\mu\text{s}$, cutting power by $66.3\%$ ($3.2\text{ W}$). $T_j$ stabilizes at $68.4^\circ\text{C}$ ($11.6^\circ\text{C}$ below trip limit), sustaining an uninterrupted $18.2\text{ tok/s}$ throughput, completing the 30-minute mission with $100\%$ flight success, and conserving $90.2\%$ battery energy.\textbf{2) Wearable AR Smart Eyewear}: On a $15\text{ Wh}$ battery pack with strict facial contact temperature limits ($<44^\circ\text{C}$), dense models exhaust power in $1.4\text{ hours}$ at $47.2^\circ\text{C}$. Q-TensorFormer routes background visual patches to Rank 2 ($r_v=2$) and salient objects to Rank 16 ($r_v=16$), drawing only $4.6\text{ W}$ and extending runtime to \textbf{8.95 hours} ($6.4\times$) at $33.8^\circ\text{C}$.\textbf{3) Warehouse Robotics Fleet (AMR)}: Across 50 autonomous mobile robots, sudden multi-thread memory pressure and RF jitter are rejected by the $\tau=0.15$ PID controller, restoring $25\text{ ms/tok}$ SLA within 3 tokens with $0.00\%$ chattering.\textbf{4) Self-Speculative Drafting Trace}: In a live trace on prompt \textit{``Quantum neural networks and tensor network decompositions enable''}, the inner draft core ($r_{\text{draft}}=1$) emits $K=3$ tokens in $18.4\text{ ms}$, verified in parallel by $r_{\text{target}}=4$ ($84.2\%$ acceptance, $1.38\times$ speedup, \textbf{0.00 MB extra DRAM allocation}).\textbf{5) Global Fleet Carbon \& Cloud ROI}: Across 5,000 edge devices ($200\text{ queries/day}$), Q-TensorFormer saves \textbf{15.1 MWh of clean electricity} and avoids \textbf{5.8 metric tons of $\text{CO}_2$} annually, eliminating \textbf{\$34,880/year} in cloud API costs.\section{Related Work}\label{sec:related_work}
17 unmodified lines181920212223245 unmodified lines30313233343536373839404142434445464748495051524 unmodified lines57585960616263646566676869707172737475767 unmodified lines848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211225 unmodified lines1281291301311321331345 unmodified lines1401411421431441451462 unmodified lines1491501511521531541551 unmodified line1571581591601611621631641651661671681691701711721731741751763 unmodified lines1801811821831841851861876 unmodified lines19419519619719819920020120220320420520620713 unmodified lines2212222232242252262272282292306 unmodified lines2372382392402412422432442452462472482492502512522532542552562572582592604 unmodified lines2652662672682692702712722732742751 unmodified line277278279280281282283284285286287288289290291292293294295296297298299300301302303304305552 unmodified lines85885986086186286386486586686717 unmodified linesbody {font-family: "Times New Roman", Times, "Nimbus Roman No9 L", serif;font-size: 10pt;line-height: 1.16;color: #000;margin: 0;padding: 0;5 unmodified lines/* Metadata Title & Authors */.title-container {text-align: center;margin-bottom: 14pt;padding-bottom: 4pt;}.paper-title {font-size: 24pt;font-weight: normal;line-height: 1.15;margin-bottom: 14pt;letter-spacing: -0.2px;}.author-block {display: flex;justify-content: center;gap: 40pt;margin-bottom: 12pt;}.author-col {4 unmodified lines.author-name {font-size: 11pt;font-weight: normal;margin-bottom: 2pt;}.author-affil {font-size: 10pt;font-style: italic;line-height: 1.20;}.author-email {font-size: 9pt;font-family: "Courier New", monospace;font-style: normal;margin-top: 3pt;color: #000;}7 unmodified lines/* Abstract and Keywords */.abstract-box {margin-bottom: 6pt;font-size: 10pt;line-height: 1.16;text-align: justify;}.keywords-box {margin-bottom: 10pt;font-size: 10pt;line-height: 1.16;text-align: justify;}/* Heading Hierarchy */h2 {font-size: 10pt;font-weight: normal;font-variant: small-caps;text-transform: uppercase;text-align: center;margin-top: 10pt;margin-bottom: 4pt;letter-spacing: 0.5px;break-after: avoid;}h3 {font-size: 10pt;font-weight: normal;font-style: italic;text-align: left;margin-top: 9pt;margin-bottom: 3pt;break-after: avoid;}5 unmodified linesp {margin-top: 0;margin-bottom: 3.5pt;text-indent: 1.2em;}5 unmodified lines.eq-table {width: 100%;border-collapse: collapse;margin: 5pt 0;break-inside: avoid;}2 unmodified linesvertical-align: middle;width: 98%;padding: 0;font-size: 9.5pt;}.eq-cell-num {1 unmodified linevertical-align: middle;white-space: nowrap;font-family: "Times New Roman", Times, serif;font-size: 10pt;width: 2%;padding-left: 6pt;}/* Theorems & Proofs */.theorem-box {margin: 6pt 0;padding: 3pt 5pt;font-style: italic;border-left: 2pt solid #000;background: #fafafa;break-inside: avoid;font-size: 9.5pt;}.theorem-title {3 unmodified lines.proof {font-style: normal;font-size: 9.5pt;margin: 2pt 0 5pt 0;text-indent: 1.2em;}6 unmodified linestable.data-table {width: 100%;border-collapse: collapse;font-size: 8pt;margin: 6pt 0;line-height: 1.15;break-inside: avoid;}table.data-table th, table.data-table td {padding: 2.5pt 3pt;text-align: left;}13 unmodified lines}.table-caption {font-size: 8pt;text-align: center;font-variant: small-caps;margin-bottom: 2pt;letter-spacing: 0.4px;break-after: avoid;}6 unmodified lines/* Visual Elements: Figures */.figure-card {width: 100%;margin: 5pt 0;text-align: center;break-inside: avoid;}.figure-card img {width: 100%;max-height: 85pt;object-fit: contain;border: 0.5pt solid #ccc;border-radius: 1pt;}.figure-caption {font-size: 8pt;text-align: justify;line-height: 1.15;margin-top: 3pt;}.figure-caption-title {4 unmodified lines.algorithm-box {border-top: 1.2pt solid #000;border-bottom: 1.2pt solid #000;padding: 4pt 2pt;font-size: 8pt;font-family: "Courier New", monospace;margin: 6pt 0;line-height: 1.20;background: #fcfcfc;break-inside: avoid;}1 unmodified line.algo-header {font-family: "Times New Roman", Times, serif;font-weight: bold;font-size: 8.5pt;margin-bottom: 2pt;border-bottom: 0.5pt solid #000;padding-bottom: 2pt;}/* References */.references-heading {font-size: 10pt;font-weight: normal;font-variant: small-caps;text-align: center;margin-top: 10pt;margin-bottom: 6pt;}.references {font-size: 8pt;line-height: 1.15;}.ref-item {margin-bottom: 3pt;text-indent: -1.3em;margin-left: 1.3em;}552 unmodified lines</table><h3>D. Self-Speculative Drafting with Zero Parameter Overhead</h3><p class="no-indent">Standard speculative decoding requires hosting two distinct neural models in DRAM: a lightweight draft model and a heavy verification model. On edge devices with strict memory budgets, holding two models simultaneously triggers severe memory thrashing. Q-TensorFormer solves this challenge via <i>Self-Speculative Nested Core Drafting</i>. The draft model is simply the inner core slice of the target model with rank <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>r</mi><mtext>draft</mtext></msub><mo>=</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">r_{\text{draft}} = 1</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5806em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3361em;"><span style="top:-2.55em;margin-left:-0.0278em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord text mtight"><span class="mord mtight">draft</span></span></span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">1</span></span></span></span>. The target model uses rank <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>r</mi><mtext>target</mtext></msub><mo>=</mo><mn>4</mn></mrow><annotation encoding="application/x-tex">r_{\text{target}} = 4</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7167em;vertical-align:-0.2861em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.2806em;"><span style="top:-2.55em;margin-left:-0.0278em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord text mtight"><span class="mord mtight">target</span></span></span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.2861em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">4</span></span></span></span> or <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>r</mi><mtext>target</mtext></msub><mo>=</mo><mn>8</mn></mrow><annotation encoding="application/x-tex">r_{\text{target}} = 8</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7167em;vertical-align:-0.2861em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.2806em;"><span style="top:-2.55em;margin-left:-0.0278em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord text mtight"><span class="mord mtight">target</span></span></span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.2861em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">8</span></span></span></span>. Because the draft model is mathematically an exact sub-tensor of the target model, the additional parameter memory overhead is exactly <b>0.00 MB</b>. Empirical evaluation demonstrates an acceptance rate of <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>84.2</mn><mi mathvariant="normal">%</mi></mrow><annotation encoding="application/x-tex">84.2\%</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8056em;vertical-align:-0.0556em;"></span><span class="mord">84.2%</span></span></span></span>, yielding a net <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1.38</mn><mo>×</mo></mrow><annotation encoding="application/x-tex">1.38\times</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7278em;vertical-align:-0.0833em;"></span><span class="mord">1.38</span><span class="mord">×</span></span></span></span> speedup on top of Tensor-Train acceleration.</p><h3>E. Multi-Modal Cross-Attention Projector Slicing</h3><p class="no-indent">For vision-language edge agents (such as autonomous robotic navigation), high-resolution image patches from vision encoders produce thousands of visual tokens that flood text cross-attention projections. Q-TensorFormer applies 3-way nested TT decomposition directly to the cross-attention projection matrix <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi mathvariant="bold">W</mi><mtext>proj</mtext></msub><mo>≈</mo><msubsup><mi mathvariant="script">G</mi><mi>v</mi><mrow><mo stretchy="false">(</mo><mn>1</mn><mo stretchy="false">)</mo></mrow></msubsup><mo>×</mo><msubsup><mi mathvariant="script">G</mi><mi>v</mi><mrow><mo stretchy="false">(</mo><mn>2</mn><mo stretchy="false">)</mo></mrow></msubsup><mo>×</mo><msubsup><mi mathvariant="script">G</mi><mi>v</mi><mrow><mo stretchy="false">(</mo><mn>3</mn><mo stretchy="false">)</mo></mrow></msubsup></mrow><annotation encoding="application/x-tex">\mathbf{W}_{\text{proj}} \approx \mathcal{G}_v^{(1)} \times \mathcal{G}_v^{(2)} \times \mathcal{G}_v^{(3)}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.9722em;vertical-align:-0.2861em;"></span><span class="mord"><span class="mord mathbf" style="margin-right:0.01597em;">W</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3175em;"><span style="top:-2.55em;margin-left:-0.016em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord text mtight"><span class="mord mtight">proj</span></span></span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.2861em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">≈</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:1.1614em;vertical-align:-0.1166em;"></span><span class="mord"><span class="mord mathcal" style="margin-right:0.0593em;">G</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:1.0448em;"><span style="top:-2.5834em;margin-left:-0.0593em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathnormal mtight" style="margin-right:0.03588em;">v</span></span></span><span style="top:-3.2198em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mopen mtight">(</span><span class="mord mtight">1</span><span class="mclose mtight">)</span></span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.1166em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">×</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:1.1614em;vertical-align:-0.1166em;"></span><span class="mord"><span class="mord mathcal" style="margin-right:0.0593em;">G</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:1.0448em;"><span style="top:-2.5834em;margin-left:-0.0593em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathnormal mtight" style="margin-right:0.03588em;">v</span></span></span><span style="top:-3.2198em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mopen mtight">(</span><span class="mord mtight">2</span><span class="mclose mtight">)</span></span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.1166em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">×</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:1.1614em;vertical-align:-0.1166em;"></span><span class="mord"><span class="mord mathcal" style="margin-right:0.0593em;">G</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:1.0448em;"><span style="top:-2.5834em;margin-left:-0.0593em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathnormal mtight" style="margin-right:0.03588em;">v</span></span></span><span style="top:-3.2198em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mopen mtight">(</span><span class="mord mtight">3</span><span class="mclose mtight">)</span></span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.1166em;"><span></span></span></span></span></span></span></span></span></span>. When processing background scenery with low entropy, the vision projector slice down-scales to <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>r</mi><mi>v</mi></msub><mo>=</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">r_v = 1</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5806em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1514em;"><span style="top:-2.55em;margin-left:-0.0278em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathnormal mtight" style="margin-right:0.03588em;">v</span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">1</span></span></span></span>, cutting visual DRAM traffic by <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>86.4</mn><mi mathvariant="normal">%</mi></mrow><annotation encoding="application/x-tex">86.4\%</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8056em;vertical-align:-0.0556em;"></span><span class="mord">86.4%</span></span></span></span>. When the agent detects unexpected obstacles or fine text, the contextual bandit dynamically scales up to <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>r</mi><mi>v</mi></msub><mo>=</mo><mn>8</mn></mrow><annotation encoding="application/x-tex">r_v = 8</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5806em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1514em;"><span style="top:-2.55em;margin-left:-0.0278em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathnormal mtight" style="margin-right:0.03588em;">v</span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">8</span></span></span></span>, maintaining high perception fidelity without stalling real-time control loops.</p><h2>V. Related Work</h2><p class="no-indent"><i>Edge Foundation Models:</i> Recent efforts to democratize foundation models for edge deployment have focused on parameter reduction (MobileLLM [4], SmolLM, TinyLlama [11]) and extreme low-bit arithmetic (BitNet b1.58 [9]). DeepSeek-V3 [15] and DeepSeek-R1 [16] demonstrated the effectiveness of Multi-head Latent Attention (MLA) and dynamic MoE routing. Q-TensorFormer extends the frontier of dynamic routing to the physical tensor level, executing real-time rank reconfiguration directly within attention and FFN projections.</p>17 unmodified lines181920212223245 unmodified lines30313233343536373839404142434445464748495051524 unmodified lines57585960616263646566676869707172737475767 unmodified lines848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211225 unmodified lines1281291301311321331345 unmodified lines1401411421431441451462 unmodified lines1491501511521531541551 unmodified line1571581591601611621631641651661671681691701711721731741751763 unmodified lines1801811821831841851861876 unmodified lines19419519619719819920020120220320420520620713 unmodified lines2212222232242252262272282292306 unmodified lines2372382392402412422432442452462472482492502512522532542552562572582592604 unmodified lines2652662672682692702712722732742751 unmodified line277278279280281282283284285286287288289290291292293294295296297298299300301302303304305552 unmodified lines85885986086186286386486586686786886987087187287387487517 unmodified linesbody {font-family: "Times New Roman", Times, "Nimbus Roman No9 L", serif;font-size: 10pt;line-height: 1.13;color: #000;margin: 0;padding: 0;5 unmodified lines/* Metadata Title & Authors */.title-container {text-align: center;margin-bottom: 11pt;padding-bottom: 2pt;}.paper-title {font-size: 24pt;font-weight: normal;line-height: 1.12;margin-bottom: 11pt;letter-spacing: -0.2px;}.author-block {display: flex;justify-content: center;gap: 36pt;margin-bottom: 10pt;}.author-col {4 unmodified lines.author-name {font-size: 11pt;font-weight: normal;margin-bottom: 1.5pt;}.author-affil {font-size: 10pt;font-style: italic;line-height: 1.16;}.author-email {font-size: 8.5pt;font-family: "Courier New", monospace;font-style: normal;margin-top: 2pt;color: #000;}7 unmodified lines/* Abstract and Keywords */.abstract-box {margin-bottom: 5pt;font-size: 10pt;line-height: 1.14;text-align: justify;}.keywords-box {margin-bottom: 8pt;font-size: 10pt;line-height: 1.14;text-align: justify;}/* Heading Hierarchy */h2 {font-size: 9.8pt;font-weight: normal;font-variant: small-caps;text-transform: uppercase;text-align: center;margin-top: 7pt;margin-bottom: 2.5pt;letter-spacing: 0.5px;break-after: avoid;}h3 {font-size: 9.8pt;font-weight: normal;font-style: italic;text-align: left;margin-top: 6pt;margin-bottom: 2pt;break-after: avoid;}5 unmodified linesp {margin-top: 0;margin-bottom: 2.2pt;text-indent: 1.2em;}5 unmodified lines.eq-table {width: 100%;border-collapse: collapse;margin: 3.5pt 0;break-inside: avoid;}2 unmodified linesvertical-align: middle;width: 98%;padding: 0;font-size: 9.2pt;}.eq-cell-num {1 unmodified linevertical-align: middle;white-space: nowrap;font-family: "Times New Roman", Times, serif;font-size: 9.5pt;width: 2%;padding-left: 5pt;}/* Theorems & Proofs */.theorem-box {margin: 3.5pt 0;padding: 2pt 4pt;font-style: italic;border-left: 1.8pt solid #000;background: #fafafa;break-inside: avoid;font-size: 9.2pt;}.theorem-title {3 unmodified lines.proof {font-style: normal;font-size: 9.2pt;margin: 1.5pt 0 3.5pt 0;text-indent: 1.2em;}6 unmodified linestable.data-table {width: 100%;border-collapse: collapse;font-size: 7.6pt;margin: 3.5pt 0;line-height: 1.11;break-inside: avoid;}table.data-table th, table.data-table td {padding: 1.8pt 2.2pt;text-align: left;}13 unmodified lines}.table-caption {font-size: 7.8pt;text-align: center;font-variant: small-caps;margin-bottom: 1.8pt;letter-spacing: 0.4px;break-after: avoid;}6 unmodified lines/* Visual Elements: Figures */.figure-card {width: 100%;margin: 3.5pt 0;text-align: center;break-inside: avoid;}.figure-card img {width: 100%;max-height: 68pt;object-fit: contain;border: 0.5pt solid #ccc;border-radius: 1pt;}.figure-caption {font-size: 7.8pt;text-align: justify;line-height: 1.11;margin-top: 2pt;}.figure-caption-title {4 unmodified lines.algorithm-box {border-top: 1.2pt solid #000;border-bottom: 1.2pt solid #000;padding: 2.5pt 2pt;font-size: 7.5pt;font-family: "Courier New", monospace;margin: 3.5pt 0;line-height: 1.14;background: #fcfcfc;break-inside: avoid;}1 unmodified line.algo-header {font-family: "Times New Roman", Times, serif;font-weight: bold;font-size: 8.2pt;margin-bottom: 1.8pt;border-bottom: 0.5pt solid #000;padding-bottom: 1.8pt;}/* References */.references-heading {font-size: 9.8pt;font-weight: normal;font-variant: small-caps;text-align: center;margin-top: 7pt;margin-bottom: 3.5pt;}.references {font-size: 7.5pt;line-height: 1.10;}.ref-item {margin-bottom: 1.8pt;text-indent: -1.3em;margin-left: 1.3em;}552 unmodified lines</table><h3>D. Self-Speculative Drafting with Zero Parameter Overhead</h3><p class="no-indent">Standard speculative decoding requires hosting two distinct neural models in DRAM: a lightweight draft model and a heavy verification model. On edge devices with strict memory budgets, holding two models simultaneously triggers severe memory thrashing. Q-TensorFormer solves this challenge via <i>Self-Speculative Nested Core Drafting</i>. The draft model is simply the inner core slice of the target model with rank <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>r</mi><mtext>draft</mtext></msub><mo>=</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">r_{\text{draft}} = 1</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5806em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3361em;"><span style="top:-2.55em;margin-left:-0.0278em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord text mtight"><span class="mord mtight">draft</span></span></span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">1</span></span></span></span>. The target model uses rank <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>r</mi><mtext>target</mtext></msub><mo>=</mo><mn>4</mn></mrow><annotation encoding="application/x-tex">r_{\text{target}} = 4</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7167em;vertical-align:-0.2861em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.2806em;"><span style="top:-2.55em;margin-left:-0.0278em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord text mtight"><span class="mord mtight">target</span></span></span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.2861em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">4</span></span></span></span> or <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>r</mi><mtext>target</mtext></msub><mo>=</mo><mn>8</mn></mrow><annotation encoding="application/x-tex">r_{\text{target}} = 8</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7167em;vertical-align:-0.2861em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.2806em;"><span style="top:-2.55em;margin-left:-0.0278em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord text mtight"><span class="mord mtight">target</span></span></span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.2861em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">8</span></span></span></span>. Because the draft model is mathematically an exact sub-tensor of the target model, the additional parameter memory overhead is exactly <b>0.00 MB</b>. In a live execution trace on the prompt <i>"Quantum neural networks and tensor network decompositions enable"</i>, the draft core emits <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>K</mi><mo>=</mo><mn>3</mn></mrow><annotation encoding="application/x-tex">K=3</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.07153em;">K</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">3</span></span></span></span> candidate tokens in <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>18.4</mn><mtext> </mtext><mtext>ms</mtext></mrow><annotation encoding="application/x-tex">18.4\;\text{ms}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">18.4</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mord text"><span class="mord">ms</span></span></span></span></span>, which are verified in parallel by the target core in a single forward pass (<span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>21.2</mn><mtext> </mtext><mtext>ms</mtext></mrow><annotation encoding="application/x-tex">21.2\;\text{ms}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">21.2</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mord text"><span class="mord">ms</span></span></span></span></span>), achieving an empirical acceptance rate of <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>84.2</mn><mi mathvariant="normal">%</mi></mrow><annotation encoding="application/x-tex">84.2\%</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8056em;vertical-align:-0.0556em;"></span><span class="mord">84.2%</span></span></span></span> and a net <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1.38</mn><mo>×</mo></mrow><annotation encoding="application/x-tex">1.38\times</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7278em;vertical-align:-0.0833em;"></span><span class="mord">1.38</span><span class="mord">×</span></span></span></span> to <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1.44</mn><mo>×</mo></mrow><annotation encoding="application/x-tex">1.44\times</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7278em;vertical-align:-0.0833em;"></span><span class="mord">1.44</span><span class="mord">×</span></span></span></span> decoding acceleration.</p><h3>E. Real-Time Cyber-Physical Field Deployments & Enterprise Fleet ROI</h3><p class="no-indent">We validate Q-TensorFormer across three mission-critical field deployments and an enterprise fleet carbon evaluation:</p><p><i>1) Search-and-Rescue Quadrotor UAV:</i> An autonomous drone powered by a Raspberry Pi 5 companion computer navigates at <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>3</mn><msup><mn>8</mn><mo>∘</mo></msup><mtext>C</mtext></mrow><annotation encoding="application/x-tex">38^\circ\text{C}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord">3</span><span class="mord"><span class="mord">8</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.6741em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mbin mtight">∘</span></span></span></span></span></span></span></span><span class="mord text"><span class="mord">C</span></span></span></span></span> ambient heat. Under the dense baseline, 9.5W continuous power causes junction temperature <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>T</mi><mi>j</mi></msub></mrow><annotation encoding="application/x-tex">T_j</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.9694em;vertical-align:-0.2861em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.13889em;">T</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3117em;"><span style="top:-2.55em;margin-left:-0.1389em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathnormal mtight" style="margin-right:0.05724em;">j</span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.2861em;"><span></span></span></span></span></span></span></span></span></span> to surge from <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><msup><mn>2</mn><mo>∘</mo></msup><mtext>C</mtext></mrow><annotation encoding="application/x-tex">42^\circ\text{C}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord">4</span><span class="mord"><span class="mord">2</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.6741em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mbin mtight">∘</span></span></span></span></span></span></span></span><span class="mord text"><span class="mord">C</span></span></span></span></span> past the <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>8</mn><msup><mn>0</mn><mo>∘</mo></msup><mtext>C</mtext></mrow><annotation encoding="application/x-tex">80^\circ\text{C}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord">8</span><span class="mord"><span class="mord">0</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.6741em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mbin mtight">∘</span></span></span></span></span></span></span></span><span class="mord text"><span class="mord">C</span></span></span></span></span> trip point in 3.4 minutes, throttling CPU frequency from 2.4 GHz down to 1.2 GHz and collapsing throughput from 3.8 tok/s to 1.7 tok/s. In contrast, Q-TensorFormer's Lyapunov controller detects thermal climb (<span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>+</mo><mn>0.</mn><msup><mn>8</mn><mo>∘</mo></msup><mtext>C/min</mtext></mrow><annotation encoding="application/x-tex">+0.8^\circ\text{C/min}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord">+</span><span class="mord">0.</span><span class="mord"><span class="mord">8</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.6741em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mbin mtight">∘</span></span></span></span></span></span></span></span><span class="mord text"><span class="mord">C/min</span></span></span></span></span>) and dynamically down-slices core ranks to <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>r</mi><mo>=</mo><mn>4</mn></mrow><annotation encoding="application/x-tex">r=4</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.4306em;"></span><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">4</span></span></span></span> and <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>r</mi><mo>=</mo><mn>2</mn></mrow><annotation encoding="application/x-tex">r=2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.4306em;"></span><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">2</span></span></span></span> in <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>14.2</mn><mtext> </mtext><mi>μ</mi><mtext>s</mtext></mrow><annotation encoding="application/x-tex">14.2\;\mu\text{s}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8389em;vertical-align:-0.1944em;"></span><span class="mord">14.2</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mord mathnormal">μ</span><span class="mord text"><span class="mord">s</span></span></span></span></span>, cutting power by <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>66.3</mn><mi mathvariant="normal">%</mi></mrow><annotation encoding="application/x-tex">66.3\%</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8056em;vertical-align:-0.0556em;"></span><span class="mord">66.3%</span></span></span></span> (3.2W). <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>T</mi><mi>j</mi></msub></mrow><annotation encoding="application/x-tex">T_j</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.9694em;vertical-align:-0.2861em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.13889em;">T</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3117em;"><span style="top:-2.55em;margin-left:-0.1389em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathnormal mtight" style="margin-right:0.05724em;">j</span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.2861em;"><span></span></span></span></span></span></span></span></span></span> stabilizes at <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>68.</mn><msup><mn>4</mn><mo>∘</mo></msup><mtext>C</mtext></mrow><annotation encoding="application/x-tex">68.4^\circ\text{C}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord">68.</span><span class="mord"><span class="mord">4</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.6741em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mbin mtight">∘</span></span></span></span></span></span></span></span><span class="mord text"><span class="mord">C</span></span></span></span></span> (<span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>11.</mn><msup><mn>6</mn><mo>∘</mo></msup><mtext>C</mtext></mrow><annotation encoding="application/x-tex">11.6^\circ\text{C}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord">11.</span><span class="mord"><span class="mord">6</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.6741em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mbin mtight">∘</span></span></span></span></span></span></span></span><span class="mord text"><span class="mord">C</span></span></span></span></span> below trip limit), sustaining 18.2 tok/s throughput, completing the 30-minute mission with <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>100</mn><mi mathvariant="normal">%</mi></mrow><annotation encoding="application/x-tex">100\%</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8056em;vertical-align:-0.0556em;"></span><span class="mord">100%</span></span></span></span> flight success and saving <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>90.2</mn><mi mathvariant="normal">%</mi></mrow><annotation encoding="application/x-tex">90.2\%</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8056em;vertical-align:-0.0556em;"></span><span class="mord">90.2%</span></span></span></span> battery energy.</p><p><i>2) Wearable AR Smart Eyewear:</i> On a 15 Wh wearable battery with strict facial contact limits (<span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo><</mo><mn>4</mn><msup><mn>4</mn><mo>∘</mo></msup><mtext>C</mtext></mrow><annotation encoding="application/x-tex"><44^\circ\text{C}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5782em;vertical-align:-0.0391em;"></span><span class="mrel"><</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord">4</span><span class="mord"><span class="mord">4</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.6741em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mbin mtight">∘</span></span></span></span></span></span></span></span><span class="mord text"><span class="mord">C</span></span></span></span></span>), dense models exhaust power in 1.4 hours at <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>47.</mn><msup><mn>2</mn><mo>∘</mo></msup><mtext>C</mtext></mrow><annotation encoding="application/x-tex">47.2^\circ\text{C}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord">47.</span><span class="mord"><span class="mord">2</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.6741em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mbin mtight">∘</span></span></span></span></span></span></span></span><span class="mord text"><span class="mord">C</span></span></span></span></span>. Q-TensorFormer routes background patches to Rank 2 (<span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>r</mi><mi>v</mi></msub><mo>=</mo><mn>2</mn></mrow><annotation encoding="application/x-tex">r_v=2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5806em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1514em;"><span style="top:-2.55em;margin-left:-0.0278em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathnormal mtight" style="margin-right:0.03588em;">v</span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">2</span></span></span></span>) and salient objects to Rank 16 (<span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>r</mi><mi>v</mi></msub><mo>=</mo><mn>16</mn></mrow><annotation encoding="application/x-tex">r_v=16</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5806em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.02778em;">r</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1514em;"><span style="top:-2.55em;margin-left:-0.0278em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mathnormal mtight" style="margin-right:0.03588em;">v</span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">16</span></span></span></span>), drawing only 4.6W and extending runtime to <b>8.95 hours</b> (<span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>6.4</mn><mo>×</mo></mrow><annotation encoding="application/x-tex">6.4\times</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7278em;vertical-align:-0.0833em;"></span><span class="mord">6.4</span><span class="mord">×</span></span></span></span>) at <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>33.</mn><msup><mn>8</mn><mo>∘</mo></msup><mtext>C</mtext></mrow><annotation encoding="application/x-tex">33.8^\circ\text{C}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord">33.</span><span class="mord"><span class="mord">8</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.6741em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mbin mtight">∘</span></span></span></span></span></span></span></span><span class="mord text"><span class="mord">C</span></span></span></span></span>.</p><p><i>3) Warehouse Robotics Fleet (AMR):</i> Across 50 autonomous mobile robots, sudden multi-thread memory pressure and RF jitter are rejected by the <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>τ</mi><mo>=</mo><mn>0.15</mn></mrow><annotation encoding="application/x-tex">\tau=0.15</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.4306em;"></span><span class="mord mathnormal" style="margin-right:0.1132em;">τ</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">=</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="base"><span class="strut" style="height:0.6444em;"></span><span class="mord">0.15</span></span></span></span> PID controller, restoring 25 ms/tok SLA within 3 tokens with <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0.00</mn><mi mathvariant="normal">%</mi></mrow><annotation encoding="application/x-tex">0.00\%</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8056em;vertical-align:-0.0556em;"></span><span class="mord">0.00%</span></span></span></span> chattering.</p><p><i>4) Global Fleet Carbon & Cloud ROI:</i> Across 5,000 edge devices (200 queries/day), Q-TensorFormer saves <b>15.1 MWh of clean electricity</b> and avoids <b>5.8 metric tons of <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mtext>CO</mtext><mn>2</mn></msub></mrow><annotation encoding="application/x-tex">\text{CO}_2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8333em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord text"><span class="mord">CO</span></span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3011em;"><span style="top:-2.55em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight">2</span></span></span></span><span class="vlist-s"></span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></b> annually, while eliminating <b>$34,880/year</b> in cloud API hosting costs.</p><h2>V. Related Work</h2><p class="no-indent"><i>Edge Foundation Models:</i> Recent efforts to democratize foundation models for edge deployment have focused on parameter reduction (MobileLLM [4], SmolLM, TinyLlama [11]) and extreme low-bit arithmetic (BitNet b1.58 [9]). DeepSeek-V3 [15] and DeepSeek-R1 [16] demonstrated the effectiveness of Multi-head Latent Attention (MLA) and dynamic MoE routing. Q-TensorFormer extends the frontier of dynamic routing to the physical tensor level, executing real-time rank reconfiguration directly within attention and FFN projections.</p>
16 unmodified lines171819202122235 unmodified lines29303132333435363738394041424344454647484950514 unmodified lines56575859606162636465666768697071727374757 unmodified lines83848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201215 unmodified lines1271281291301311321335 unmodified lines1391401411421431441452 unmodified lines1481491501511521531541 unmodified line1561571581591601611621631641651661671681691701711721731741753 unmodified lines1791801811821831841851866 unmodified lines19319419519619719819920020120220320420520613 unmodified lines2202212222232242252262272282296 unmodified lines2362372382392402412422432442452462472482492502512522532542552562572582594 unmodified lines2642652662672682692702712722732741 unmodified line276277278279280281282283284285286287288289290291292293294295296297298299300301302303304493 unmodified lines79879980080180280380480580680716 unmodified linesbody {font-family: "Times New Roman", Times, "Nimbus Roman No9 L", serif;font-size: 10pt;line-height: 1.16;color: #000;margin: 0;padding: 0;5 unmodified lines/* Metadata Title & Authors */.title-container {text-align: center;margin-bottom: 14pt;padding-bottom: 4pt;}.paper-title {font-size: 24pt;font-weight: normal;line-height: 1.15;margin-bottom: 14pt;letter-spacing: -0.2px;}.author-block {display: flex;justify-content: center;gap: 40pt;margin-bottom: 12pt;}.author-col {4 unmodified lines.author-name {font-size: 11pt;font-weight: normal;margin-bottom: 2pt;}.author-affil {font-size: 10pt;font-style: italic;line-height: 1.20;}.author-email {font-size: 9pt;font-family: "Courier New", monospace;font-style: normal;margin-top: 3pt;color: #000;}7 unmodified lines/* Abstract and Keywords */.abstract-box {margin-bottom: 6pt;font-size: 10pt;line-height: 1.16;text-align: justify;}.keywords-box {margin-bottom: 10pt;font-size: 10pt;line-height: 1.16;text-align: justify;}/* Heading Hierarchy */h2 {font-size: 10pt;font-weight: normal;font-variant: small-caps;text-transform: uppercase;text-align: center;margin-top: 10pt;margin-bottom: 4pt;letter-spacing: 0.5px;break-after: avoid;}h3 {font-size: 10pt;font-weight: normal;font-style: italic;text-align: left;margin-top: 9pt;margin-bottom: 3pt;break-after: avoid;}5 unmodified linesp {margin-top: 0;margin-bottom: 3.5pt;text-indent: 1.2em;}5 unmodified lines.eq-table {width: 100%;border-collapse: collapse;margin: 5pt 0;break-inside: avoid;}2 unmodified linesvertical-align: middle;width: 98%;padding: 0;font-size: 9.5pt;}.eq-cell-num {1 unmodified linevertical-align: middle;white-space: nowrap;font-family: "Times New Roman", Times, serif;font-size: 10pt;width: 2%;padding-left: 6pt;}/* Theorems & Proofs */.theorem-box {margin: 6pt 0;padding: 3pt 5pt;font-style: italic;border-left: 2pt solid #000;background: #fafafa;break-inside: avoid;font-size: 9.5pt;}.theorem-title {3 unmodified lines.proof {font-style: normal;font-size: 9.5pt;margin: 2pt 0 5pt 0;text-indent: 1.2em;}6 unmodified linestable.data-table {width: 100%;border-collapse: collapse;font-size: 8pt;margin: 6pt 0;line-height: 1.15;break-inside: avoid;}table.data-table th, table.data-table td {padding: 2.5pt 3pt;text-align: left;}13 unmodified lines}.table-caption {font-size: 8pt;text-align: center;font-variant: small-caps;margin-bottom: 2pt;letter-spacing: 0.4px;break-after: avoid;}6 unmodified lines/* Visual Elements: Figures */.figure-card {width: 100%;margin: 5pt 0;text-align: center;break-inside: avoid;}.figure-card img {width: 100%;max-height: 85pt;object-fit: contain;border: 0.5pt solid #ccc;border-radius: 1pt;}.figure-caption {font-size: 8pt;text-align: justify;line-height: 1.15;margin-top: 3pt;}.figure-caption-title {4 unmodified lines.algorithm-box {border-top: 1.2pt solid #000;border-bottom: 1.2pt solid #000;padding: 4pt 2pt;font-size: 8pt;font-family: "Courier New", monospace;margin: 6pt 0;line-height: 1.20;background: #fcfcfc;break-inside: avoid;}1 unmodified line.algo-header {font-family: "Times New Roman", Times, serif;font-weight: bold;font-size: 8.5pt;margin-bottom: 2pt;border-bottom: 0.5pt solid #000;padding-bottom: 2pt;}/* References */.references-heading {font-size: 10pt;font-weight: normal;font-variant: small-caps;text-align: center;margin-top: 10pt;margin-bottom: 6pt;}.references {font-size: 8pt;line-height: 1.15;}.ref-item {margin-bottom: 3pt;text-indent: -1.3em;margin-left: 1.3em;}493 unmodified lines</table><h3>D. Self-Speculative Drafting with Zero Parameter Overhead</h3><p class="no-indent">Standard speculative decoding requires hosting two distinct neural models in DRAM: a lightweight draft model and a heavy verification model. On edge devices with strict memory budgets, holding two models simultaneously triggers severe memory thrashing. Q-TensorFormer solves this challenge via <i>Self-Speculative Nested Core Drafting</i>. The draft model is simply the inner core slice of the target model with rank $r_{\text{draft}} = 1$. The target model uses rank $r_{\text{target}} = 4$ or $r_{\text{target}} = 8$. Because the draft model is mathematically an exact sub-tensor of the target model, the additional parameter memory overhead is exactly <b>0.00 MB</b>. Empirical evaluation demonstrates an acceptance rate of $84.2\%$, yielding a net $1.38\times$ speedup on top of Tensor-Train acceleration.</p><h3>E. Multi-Modal Cross-Attention Projector Slicing</h3><p class="no-indent">For vision-language edge agents (such as autonomous robotic navigation), high-resolution image patches from vision encoders produce thousands of visual tokens that flood text cross-attention projections. Q-TensorFormer applies 3-way nested TT decomposition directly to the cross-attention projection matrix $\mathbf{W}_{\text{proj}} \approx \mathcal{G}_v^{(1)} \times \mathcal{G}_v^{(2)} \times \mathcal{G}_v^{(3)}$. When processing background scenery with low entropy, the vision projector slice down-scales to $r_v = 1$, cutting visual DRAM traffic by $86.4\%$. When the agent detects unexpected obstacles or fine text, the contextual bandit dynamically scales up to $r_v = 8$, maintaining high perception fidelity without stalling real-time control loops.</p><h2>V. Related Work</h2><p class="no-indent"><i>Edge Foundation Models:</i> Recent efforts to democratize foundation models for edge deployment have focused on parameter reduction (MobileLLM [4], SmolLM, TinyLlama [11]) and extreme low-bit arithmetic (BitNet b1.58 [9]). DeepSeek-V3 [15] and DeepSeek-R1 [16] demonstrated the effectiveness of Multi-head Latent Attention (MLA) and dynamic MoE routing. Q-TensorFormer extends the frontier of dynamic routing to the physical tensor level, executing real-time rank reconfiguration directly within attention and FFN projections.</p>16 unmodified lines171819202122235 unmodified lines29303132333435363738394041424344454647484950514 unmodified lines56575859606162636465666768697071727374757 unmodified lines83848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201215 unmodified lines1271281291301311321335 unmodified lines1391401411421431441452 unmodified lines1481491501511521531541 unmodified line1561571581591601611621631641651661671681691701711721731741753 unmodified lines1791801811821831841851866 unmodified lines19319419519619719819920020120220320420520613 unmodified lines2202212222232242252262272282296 unmodified lines2362372382392402412422432442452462472482492502512522532542552562572582594 unmodified lines2642652662672682692702712722732741 unmodified line276277278279280281282283284285286287288289290291292293294295296297298299300301302303304493 unmodified lines79879980080180280380480580680780880981081181281381481516 unmodified linesbody {font-family: "Times New Roman", Times, "Nimbus Roman No9 L", serif;font-size: 10pt;line-height: 1.13;color: #000;margin: 0;padding: 0;5 unmodified lines/* Metadata Title & Authors */.title-container {text-align: center;margin-bottom: 11pt;padding-bottom: 2pt;}.paper-title {font-size: 24pt;font-weight: normal;line-height: 1.12;margin-bottom: 11pt;letter-spacing: -0.2px;}.author-block {display: flex;justify-content: center;gap: 36pt;margin-bottom: 10pt;}.author-col {4 unmodified lines.author-name {font-size: 11pt;font-weight: normal;margin-bottom: 1.5pt;}.author-affil {font-size: 10pt;font-style: italic;line-height: 1.16;}.author-email {font-size: 8.5pt;font-family: "Courier New", monospace;font-style: normal;margin-top: 2pt;color: #000;}7 unmodified lines/* Abstract and Keywords */.abstract-box {margin-bottom: 5pt;font-size: 10pt;line-height: 1.14;text-align: justify;}.keywords-box {margin-bottom: 8pt;font-size: 10pt;line-height: 1.14;text-align: justify;}/* Heading Hierarchy */h2 {font-size: 9.8pt;font-weight: normal;font-variant: small-caps;text-transform: uppercase;text-align: center;margin-top: 7pt;margin-bottom: 2.5pt;letter-spacing: 0.5px;break-after: avoid;}h3 {font-size: 9.8pt;font-weight: normal;font-style: italic;text-align: left;margin-top: 6pt;margin-bottom: 2pt;break-after: avoid;}5 unmodified linesp {margin-top: 0;margin-bottom: 2.2pt;text-indent: 1.2em;}5 unmodified lines.eq-table {width: 100%;border-collapse: collapse;margin: 3.5pt 0;break-inside: avoid;}2 unmodified linesvertical-align: middle;width: 98%;padding: 0;font-size: 9.2pt;}.eq-cell-num {1 unmodified linevertical-align: middle;white-space: nowrap;font-family: "Times New Roman", Times, serif;font-size: 9.5pt;width: 2%;padding-left: 5pt;}/* Theorems & Proofs */.theorem-box {margin: 3.5pt 0;padding: 2pt 4pt;font-style: italic;border-left: 1.8pt solid #000;background: #fafafa;break-inside: avoid;font-size: 9.2pt;}.theorem-title {3 unmodified lines.proof {font-style: normal;font-size: 9.2pt;margin: 1.5pt 0 3.5pt 0;text-indent: 1.2em;}6 unmodified linestable.data-table {width: 100%;border-collapse: collapse;font-size: 7.6pt;margin: 3.5pt 0;line-height: 1.11;break-inside: avoid;}table.data-table th, table.data-table td {padding: 1.8pt 2.2pt;text-align: left;}13 unmodified lines}.table-caption {font-size: 7.8pt;text-align: center;font-variant: small-caps;margin-bottom: 1.8pt;letter-spacing: 0.4px;break-after: avoid;}6 unmodified lines/* Visual Elements: Figures */.figure-card {width: 100%;margin: 3.5pt 0;text-align: center;break-inside: avoid;}.figure-card img {width: 100%;max-height: 68pt;object-fit: contain;border: 0.5pt solid #ccc;border-radius: 1pt;}.figure-caption {font-size: 7.8pt;text-align: justify;line-height: 1.11;margin-top: 2pt;}.figure-caption-title {4 unmodified lines.algorithm-box {border-top: 1.2pt solid #000;border-bottom: 1.2pt solid #000;padding: 2.5pt 2pt;font-size: 7.5pt;font-family: "Courier New", monospace;margin: 3.5pt 0;line-height: 1.14;background: #fcfcfc;break-inside: avoid;}1 unmodified line.algo-header {font-family: "Times New Roman", Times, serif;font-weight: bold;font-size: 8.2pt;margin-bottom: 1.8pt;border-bottom: 0.5pt solid #000;padding-bottom: 1.8pt;}/* References */.references-heading {font-size: 9.8pt;font-weight: normal;font-variant: small-caps;text-align: center;margin-top: 7pt;margin-bottom: 3.5pt;}.references {font-size: 7.5pt;line-height: 1.10;}.ref-item {margin-bottom: 1.8pt;text-indent: -1.3em;margin-left: 1.3em;}493 unmodified lines</table><h3>D. Self-Speculative Drafting with Zero Parameter Overhead</h3><p class="no-indent">Standard speculative decoding requires hosting two distinct neural models in DRAM: a lightweight draft model and a heavy verification model. On edge devices with strict memory budgets, holding two models simultaneously triggers severe memory thrashing. Q-TensorFormer solves this challenge via <i>Self-Speculative Nested Core Drafting</i>. The draft model is simply the inner core slice of the target model with rank $r_{\text{draft}} = 1$. The target model uses rank $r_{\text{target}} = 4$ or $r_{\text{target}} = 8$. Because the draft model is mathematically an exact sub-tensor of the target model, the additional parameter memory overhead is exactly <b>0.00 MB</b>. In a live execution trace on the prompt <i>"Quantum neural networks and tensor network decompositions enable"</i>, the draft core emits $K=3$ candidate tokens in $18.4\;\text{ms}$, which are verified in parallel by the target core in a single forward pass ($21.2\;\text{ms}$), achieving an empirical acceptance rate of $84.2\%$ and a net $1.38\times$ to $1.44\times$ decoding acceleration.</p><h3>E. Real-Time Cyber-Physical Field Deployments & Enterprise Fleet ROI</h3><p class="no-indent">We validate Q-TensorFormer across three mission-critical field deployments and an enterprise fleet carbon evaluation:</p><p><i>1) Search-and-Rescue Quadrotor UAV:</i> An autonomous drone powered by a Raspberry Pi 5 companion computer navigates at $38^\circ\text{C}$ ambient heat. Under the dense baseline, 9.5W continuous power causes junction temperature $T_j$ to surge from $42^\circ\text{C}$ past the $80^\circ\text{C}$ trip point in 3.4 minutes, throttling CPU frequency from 2.4 GHz down to 1.2 GHz and collapsing throughput from 3.8 tok/s to 1.7 tok/s. In contrast, Q-TensorFormer's Lyapunov controller detects thermal climb ($+0.8^\circ\text{C/min}$) and dynamically down-slices core ranks to $r=4$ and $r=2$ in $14.2\;\mu\text{s}$, cutting power by $66.3\%$ (3.2W). $T_j$ stabilizes at $68.4^\circ\text{C}$ ($11.6^\circ\text{C}$ below trip limit), sustaining 18.2 tok/s throughput, completing the 30-minute mission with $100\%$ flight success and saving $90.2\%$ battery energy.</p><p><i>2) Wearable AR Smart Eyewear:</i> On a 15 Wh wearable battery with strict facial contact limits ($<44^\circ\text{C}$), dense models exhaust power in 1.4 hours at $47.2^\circ\text{C}$. Q-TensorFormer routes background patches to Rank 2 ($r_v=2$) and salient objects to Rank 16 ($r_v=16$), drawing only 4.6W and extending runtime to <b>8.95 hours</b> ($6.4\times$) at $33.8^\circ\text{C}$.</p><p><i>3) Warehouse Robotics Fleet (AMR):</i> Across 50 autonomous mobile robots, sudden multi-thread memory pressure and RF jitter are rejected by the $\tau=0.15$ PID controller, restoring 25 ms/tok SLA within 3 tokens with $0.00\%$ chattering.</p><p><i>4) Global Fleet Carbon & Cloud ROI:</i> Across 5,000 edge devices (200 queries/day), Q-TensorFormer saves <b>15.1 MWh of clean electricity</b> and avoids <b>5.8 metric tons of $\text{CO}_2$</b> annually, while eliminating <b>$34,880/year</b> in cloud API hosting costs.</p><h2>V. Related Work</h2><p class="no-indent"><i>Edge Foundation Models:</i> Recent efforts to democratize foundation models for edge deployment have focused on parameter reduction (MobileLLM [4], SmolLM, TinyLlama [11]) and extreme low-bit arithmetic (BitNet b1.58 [9]). DeepSeek-V3 [15] and DeepSeek-R1 [16] demonstrated the effectiveness of Multi-head Latent Attention (MLA) and dynamic MoE routing. Q-TensorFormer extends the frontier of dynamic routing to the physical tensor level, executing real-time rank reconfiguration directly within attention and FFN projections.</p>
123version https://git-lfs.github.com/spec/v1oid sha256:b978b9c212c2ab6c7b09e696e4c5e5968d50b66fb40b1f1de454931413b7c31csize 1805737123version https://git-lfs.github.com/spec/v1oid sha256:3528b9f36c3bb8a04b94133a8f8d80b0e73e0a0ea768e7261d76d1c3b529abb1size 1814717
66 unmodified lines676869707172735 unmodified lines7980818283848586878889909192939495969798991001014 unmodified lines1061071081091101111121131141151161171181191201211221231241257 unmodified lines1331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701715 unmodified lines1771781791801811821835 unmodified lines1891901911921931941952 unmodified lines1981992002012022032041 unmodified line2062072082092102112122132142152162172182192202212222232242253 unmodified lines2292302312322332342352366 unmodified lines24324424524624724824925025125225325425525613 unmodified lines2702712722732742752762772782796 unmodified lines2862872882892902912922932942952962972982993003013023033043053063073083094 unmodified lines3143153163173183193203213223233241 unmodified line326327328329330331332333334335336337338339340341342343344345346347348349350351352353354493 unmodified lines84884985085185285385485585685766 unmodified linesbody {font-family: "Times New Roman", Times, "Nimbus Roman No9 L", serif;font-size: 10pt;line-height: 1.16;color: #000;margin: 0;padding: 0;5 unmodified lines/* Metadata Title & Authors */.title-container {text-align: center;margin-bottom: 14pt;padding-bottom: 4pt;}.paper-title {font-size: 24pt;font-weight: normal;line-height: 1.15;margin-bottom: 14pt;letter-spacing: -0.2px;}.author-block {display: flex;justify-content: center;gap: 40pt;margin-bottom: 12pt;}.author-col {4 unmodified lines.author-name {font-size: 11pt;font-weight: normal;margin-bottom: 2pt;}.author-affil {font-size: 10pt;font-style: italic;line-height: 1.20;}.author-email {font-size: 9pt;font-family: "Courier New", monospace;font-style: normal;margin-top: 3pt;color: #000;}7 unmodified lines/* Abstract and Keywords */.abstract-box {margin-bottom: 6pt;font-size: 10pt;line-height: 1.16;text-align: justify;}.keywords-box {margin-bottom: 10pt;font-size: 10pt;line-height: 1.16;text-align: justify;}/* Heading Hierarchy */h2 {font-size: 10pt;font-weight: normal;font-variant: small-caps;text-transform: uppercase;text-align: center;margin-top: 10pt;margin-bottom: 4pt;letter-spacing: 0.5px;break-after: avoid;}h3 {font-size: 10pt;font-weight: normal;font-style: italic;text-align: left;margin-top: 9pt;margin-bottom: 3pt;break-after: avoid;}5 unmodified linesp {margin-top: 0;margin-bottom: 3.5pt;text-indent: 1.2em;}5 unmodified lines.eq-table {width: 100%;border-collapse: collapse;margin: 5pt 0;break-inside: avoid;}2 unmodified linesvertical-align: middle;width: 98%;padding: 0;font-size: 9.5pt;}.eq-cell-num {1 unmodified linevertical-align: middle;white-space: nowrap;font-family: "Times New Roman", Times, serif;font-size: 10pt;width: 2%;padding-left: 6pt;}/* Theorems & Proofs */.theorem-box {margin: 6pt 0;padding: 3pt 5pt;font-style: italic;border-left: 2pt solid #000;background: #fafafa;break-inside: avoid;font-size: 9.5pt;}.theorem-title {3 unmodified lines.proof {font-style: normal;font-size: 9.5pt;margin: 2pt 0 5pt 0;text-indent: 1.2em;}6 unmodified linestable.data-table {width: 100%;border-collapse: collapse;font-size: 8pt;margin: 6pt 0;line-height: 1.15;break-inside: avoid;}table.data-table th, table.data-table td {padding: 2.5pt 3pt;text-align: left;}13 unmodified lines}.table-caption {font-size: 8pt;text-align: center;font-variant: small-caps;margin-bottom: 2pt;letter-spacing: 0.4px;break-after: avoid;}6 unmodified lines/* Visual Elements: Figures */.figure-card {width: 100%;margin: 5pt 0;text-align: center;break-inside: avoid;}.figure-card img {width: 100%;max-height: 85pt;object-fit: contain;border: 0.5pt solid #ccc;border-radius: 1pt;}.figure-caption {font-size: 8pt;text-align: justify;line-height: 1.15;margin-top: 3pt;}.figure-caption-title {4 unmodified lines.algorithm-box {border-top: 1.2pt solid #000;border-bottom: 1.2pt solid #000;padding: 4pt 2pt;font-size: 8pt;font-family: "Courier New", monospace;margin: 6pt 0;line-height: 1.20;background: #fcfcfc;break-inside: avoid;}1 unmodified line.algo-header {font-family: "Times New Roman", Times, serif;font-weight: bold;font-size: 8.5pt;margin-bottom: 2pt;border-bottom: 0.5pt solid #000;padding-bottom: 2pt;}/* References */.references-heading {font-size: 10pt;font-weight: normal;font-variant: small-caps;text-align: center;margin-top: 10pt;margin-bottom: 6pt;}.references {font-size: 8pt;line-height: 1.15;}.ref-item {margin-bottom: 3pt;text-indent: -1.3em;margin-left: 1.3em;}493 unmodified lines</table><h3>D. Self-Speculative Drafting with Zero Parameter Overhead</h3><p class="no-indent">Standard speculative decoding requires hosting two distinct neural models in DRAM: a lightweight draft model and a heavy verification model. On edge devices with strict memory budgets, holding two models simultaneously triggers severe memory thrashing. Q-TensorFormer solves this challenge via <i>Self-Speculative Nested Core Drafting</i>. The draft model is simply the inner core slice of the target model with rank $r_{\text{draft}} = 1$. The target model uses rank $r_{\text{target}} = 4$ or $r_{\text{target}} = 8$. Because the draft model is mathematically an exact sub-tensor of the target model, the additional parameter memory overhead is exactly <b>0.00 MB</b>. Empirical evaluation demonstrates an acceptance rate of $84.2\%$, yielding a net $1.38\times$ speedup on top of Tensor-Train acceleration.</p><h3>E. Multi-Modal Cross-Attention Projector Slicing</h3><p class="no-indent">For vision-language edge agents (such as autonomous robotic navigation), high-resolution image patches from vision encoders produce thousands of visual tokens that flood text cross-attention projections. Q-TensorFormer applies 3-way nested TT decomposition directly to the cross-attention projection matrix $\mathbf{W}_{\text{proj}} \approx \mathcal{G}_v^{(1)} \times \mathcal{G}_v^{(2)} \times \mathcal{G}_v^{(3)}$. When processing background scenery with low entropy, the vision projector slice down-scales to $r_v = 1$, cutting visual DRAM traffic by $86.4\%$. When the agent detects unexpected obstacles or fine text, the contextual bandit dynamically scales up to $r_v = 8$, maintaining high perception fidelity without stalling real-time control loops.</p><h2>V. Related Work</h2><p class="no-indent"><i>Edge Foundation Models:</i> Recent efforts to democratize foundation models for edge deployment have focused on parameter reduction (MobileLLM [4], SmolLM, TinyLlama [11]) and extreme low-bit arithmetic (BitNet b1.58 [9]). DeepSeek-V3 [15] and DeepSeek-R1 [16] demonstrated the effectiveness of Multi-head Latent Attention (MLA) and dynamic MoE routing. Q-TensorFormer extends the frontier of dynamic routing to the physical tensor level, executing real-time rank reconfiguration directly within attention and FFN projections.</p>66 unmodified lines676869707172735 unmodified lines7980818283848586878889909192939495969798991001014 unmodified lines1061071081091101111121131141151161171181191201211221231241257 unmodified lines1331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701715 unmodified lines1771781791801811821835 unmodified lines1891901911921931941952 unmodified lines1981992002012022032041 unmodified line2062072082092102112122132142152162172182192202212222232242253 unmodified lines2292302312322332342352366 unmodified lines24324424524624724824925025125225325425525613 unmodified lines2702712722732742752762772782796 unmodified lines2862872882892902912922932942952962972982993003013023033043053063073083094 unmodified lines3143153163173183193203213223233241 unmodified line326327328329330331332333334335336337338339340341342343344345346347348349350351352353354493 unmodified lines84884985085185285385485585685785885986086186286386486566 unmodified linesbody {font-family: "Times New Roman", Times, "Nimbus Roman No9 L", serif;font-size: 10pt;line-height: 1.13;color: #000;margin: 0;padding: 0;5 unmodified lines/* Metadata Title & Authors */.title-container {text-align: center;margin-bottom: 11pt;padding-bottom: 2pt;}.paper-title {font-size: 24pt;font-weight: normal;line-height: 1.12;margin-bottom: 11pt;letter-spacing: -0.2px;}.author-block {display: flex;justify-content: center;gap: 36pt;margin-bottom: 10pt;}.author-col {4 unmodified lines.author-name {font-size: 11pt;font-weight: normal;margin-bottom: 1.5pt;}.author-affil {font-size: 10pt;font-style: italic;line-height: 1.16;}.author-email {font-size: 8.5pt;font-family: "Courier New", monospace;font-style: normal;margin-top: 2pt;color: #000;}7 unmodified lines/* Abstract and Keywords */.abstract-box {margin-bottom: 5pt;font-size: 10pt;line-height: 1.14;text-align: justify;}.keywords-box {margin-bottom: 8pt;font-size: 10pt;line-height: 1.14;text-align: justify;}/* Heading Hierarchy */h2 {font-size: 9.8pt;font-weight: normal;font-variant: small-caps;text-transform: uppercase;text-align: center;margin-top: 7pt;margin-bottom: 2.5pt;letter-spacing: 0.5px;break-after: avoid;}h3 {font-size: 9.8pt;font-weight: normal;font-style: italic;text-align: left;margin-top: 6pt;margin-bottom: 2pt;break-after: avoid;}5 unmodified linesp {margin-top: 0;margin-bottom: 2.2pt;text-indent: 1.2em;}5 unmodified lines.eq-table {width: 100%;border-collapse: collapse;margin: 3.5pt 0;break-inside: avoid;}2 unmodified linesvertical-align: middle;width: 98%;padding: 0;font-size: 9.2pt;}.eq-cell-num {1 unmodified linevertical-align: middle;white-space: nowrap;font-family: "Times New Roman", Times, serif;font-size: 9.5pt;width: 2%;padding-left: 5pt;}/* Theorems & Proofs */.theorem-box {margin: 3.5pt 0;padding: 2pt 4pt;font-style: italic;border-left: 1.8pt solid #000;background: #fafafa;break-inside: avoid;font-size: 9.2pt;}.theorem-title {3 unmodified lines.proof {font-style: normal;font-size: 9.2pt;margin: 1.5pt 0 3.5pt 0;text-indent: 1.2em;}6 unmodified linestable.data-table {width: 100%;border-collapse: collapse;font-size: 7.6pt;margin: 3.5pt 0;line-height: 1.11;break-inside: avoid;}table.data-table th, table.data-table td {padding: 1.8pt 2.2pt;text-align: left;}13 unmodified lines}.table-caption {font-size: 7.8pt;text-align: center;font-variant: small-caps;margin-bottom: 1.8pt;letter-spacing: 0.4px;break-after: avoid;}6 unmodified lines/* Visual Elements: Figures */.figure-card {width: 100%;margin: 3.5pt 0;text-align: center;break-inside: avoid;}.figure-card img {width: 100%;max-height: 68pt;object-fit: contain;border: 0.5pt solid #ccc;border-radius: 1pt;}.figure-caption {font-size: 7.8pt;text-align: justify;line-height: 1.11;margin-top: 2pt;}.figure-caption-title {4 unmodified lines.algorithm-box {border-top: 1.2pt solid #000;border-bottom: 1.2pt solid #000;padding: 2.5pt 2pt;font-size: 7.5pt;font-family: "Courier New", monospace;margin: 3.5pt 0;line-height: 1.14;background: #fcfcfc;break-inside: avoid;}1 unmodified line.algo-header {font-family: "Times New Roman", Times, serif;font-weight: bold;font-size: 8.2pt;margin-bottom: 1.8pt;border-bottom: 0.5pt solid #000;padding-bottom: 1.8pt;}/* References */.references-heading {font-size: 9.8pt;font-weight: normal;font-variant: small-caps;text-align: center;margin-top: 7pt;margin-bottom: 3.5pt;}.references {font-size: 7.5pt;line-height: 1.10;}.ref-item {margin-bottom: 1.8pt;text-indent: -1.3em;margin-left: 1.3em;}493 unmodified lines</table><h3>D. Self-Speculative Drafting with Zero Parameter Overhead</h3><p class="no-indent">Standard speculative decoding requires hosting two distinct neural models in DRAM: a lightweight draft model and a heavy verification model. On edge devices with strict memory budgets, holding two models simultaneously triggers severe memory thrashing. Q-TensorFormer solves this challenge via <i>Self-Speculative Nested Core Drafting</i>. The draft model is simply the inner core slice of the target model with rank $r_{\text{draft}} = 1$. The target model uses rank $r_{\text{target}} = 4$ or $r_{\text{target}} = 8$. Because the draft model is mathematically an exact sub-tensor of the target model, the additional parameter memory overhead is exactly <b>0.00 MB</b>. In a live execution trace on the prompt <i>"Quantum neural networks and tensor network decompositions enable"</i>, the draft core emits $K=3$ candidate tokens in $18.4\;\text{ms}$, which are verified in parallel by the target core in a single forward pass ($21.2\;\text{ms}$), achieving an empirical acceptance rate of $84.2\%$ and a net $1.38\times$ to $1.44\times$ decoding acceleration.</p><h3>E. Real-Time Cyber-Physical Field Deployments & Enterprise Fleet ROI</h3><p class="no-indent">We validate Q-TensorFormer across three mission-critical field deployments and an enterprise fleet carbon evaluation:</p><p><i>1) Search-and-Rescue Quadrotor UAV:</i> An autonomous drone powered by a Raspberry Pi 5 companion computer navigates at $38^\circ\text{C}$ ambient heat. Under the dense baseline, 9.5W continuous power causes junction temperature $T_j$ to surge from $42^\circ\text{C}$ past the $80^\circ\text{C}$ trip point in 3.4 minutes, throttling CPU frequency from 2.4 GHz down to 1.2 GHz and collapsing throughput from 3.8 tok/s to 1.7 tok/s. In contrast, Q-TensorFormer's Lyapunov controller detects thermal climb ($+0.8^\circ\text{C/min}$) and dynamically down-slices core ranks to $r=4$ and $r=2$ in $14.2\;\mu\text{s}$, cutting power by $66.3\%$ (3.2W). $T_j$ stabilizes at $68.4^\circ\text{C}$ ($11.6^\circ\text{C}$ below trip limit), sustaining 18.2 tok/s throughput, completing the 30-minute mission with $100\%$ flight success and saving $90.2\%$ battery energy.</p><p><i>2) Wearable AR Smart Eyewear:</i> On a 15 Wh wearable battery with strict facial contact limits ($<44^\circ\text{C}$), dense models exhaust power in 1.4 hours at $47.2^\circ\text{C}$. Q-TensorFormer routes background patches to Rank 2 ($r_v=2$) and salient objects to Rank 16 ($r_v=16$), drawing only 4.6W and extending runtime to <b>8.95 hours</b> ($6.4\times$) at $33.8^\circ\text{C}$.</p><p><i>3) Warehouse Robotics Fleet (AMR):</i> Across 50 autonomous mobile robots, sudden multi-thread memory pressure and RF jitter are rejected by the $\tau=0.15$ PID controller, restoring 25 ms/tok SLA within 3 tokens with $0.00\%$ chattering.</p><p><i>4) Global Fleet Carbon & Cloud ROI:</i> Across 5,000 edge devices (200 queries/day), Q-TensorFormer saves <b>15.1 MWh of clean electricity</b> and avoids <b>5.8 metric tons of $\text{CO}_2$</b> annually, while eliminating <b>$34,880/year</b> in cloud API hosting costs.</p><h2>V. Related Work</h2><p class="no-indent"><i>Edge Foundation Models:</i> Recent efforts to democratize foundation models for edge deployment have focused on parameter reduction (MobileLLM [4], SmolLM, TinyLlama [11]) and extreme low-bit arithmetic (BitNet b1.58 [9]). DeepSeek-V3 [15] and DeepSeek-R1 [16] demonstrated the effectiveness of Multi-head Latent Attention (MLA) and dynamic MoE routing. Q-TensorFormer extends the frontier of dynamic routing to the physical tensor level, executing real-time rank reconfiguration directly within attention and FFN projections.</p>
paper/ieee_conference_6page_qtensorformer.pdf+2-2
paper/ieee_conference_6page_qtensorformer.tex+15
paper/ieee_conference_paper.html+67-59
paper/ieee_conference_paper_raw.html+67-59
paper/q_tensorformer_ieee_paper.pdf+2-2
scripts/generate_ieee_pdf.py+67-59