Anúncio

SRExpert

Pare de alternar entre 6 ferramentas de Kubernetes.

Monitoramento, alertas, segurança, deploys Helm e operações com IA numa só plataforma.

Testar 30 dias grátis

Tópico

Hardware e Chips

856documentos

57últimos 7 dias

arXiv AI Papers

State-Dependent Hybrid Computing for Robust and Efficient LLaMA 3.2-1B Inference Under Noisy Compute Models

Large language models (LLMs) rely on compute-intensive matrix operations, making efficient inference increasingly difficult as sequence length and model size grow. Analog computation can improve efficiency, but may also degrade model accuracy. This paper proposes a dynamic hybrid computing architecture that adaptively selects between a noisy analog and digital execution at runtime based on noise level, context length, token entropy, and activation statistics. Rather than using a fixed layer-wise execution strategy, the proposed method performs state-dependent routing that better balances output quality and compute cost. By using a Gaussian noise model to simulate compute-in-memory (CIM) hardware noise on WikiText-2 with LLaMA 3.2-1B, we observe that the proposed method reduces a normalized compute-cost proxy by 45\% relative to FP16 while limiting perplexity degradation to approximately 8.2\%. These results indicate that runtime-aware precision routing is a promising strategy for improving efficiency under noisy analog computation, although validation on hardware-calibrated analog CIM remains a future work.

en
arXiv AI Papers

PruneCheck: Closed-Loop Selection for Safe Pruning of Vision-Language-Action Policies

Vision-language-action (VLA) policies achieve strong results in robot manipulation. Their size makes deployment on robot hardware costly, so they are pruned. Current methods select the components to remove with importance scores borrowed from language-model pruning. These scores are computed without running the policy. They can select components that the closed-loop policy cannot run without. One aggregate success rate does not reveal this error. We propose PruneCheck, a closed-loop pruning framework that selects the components to keep by paired ablation instead of by score. Cheap scores only rank the candidates. Exact paired tests on identical initial states, registered in advance, decide which candidate is kept. On eight public VLA-Adapter checkpoints, PruneCheck reduces 24 gated fusion connections to one while preserving task success on all eight. The learned gate selects a sufficient connection on five checkpoints. Block Influence, the score of ShortGPT and EfficientVLA, does so on two. Its choices reduce success from 100% to 0% on one task suite. On the shipped checkpoint, the pruned policy reaches 91.8% success against 93.0% over 500 episodes. PruneCheck costs 6 to 9 GPU-hours per checkpoint on one GPU.

en
arXiv AI Papers

Myodyssey: A Muscle-Driven Motion Generalist Trained through a Differentiable Musculoskeletal World Model

Generalist motion-tracking policies trained on hundreds of hours of motion capture reproduce diverse human movements with humanoid robots and torque-driven characters. However, extending this capability to musculoskeletal models remains costly because of their more complex joint structures and muscle geometry, together with the need to control hundreds of redundant muscles. We present Myodyssey, a muscle-driven motion generalist for a 354-muscle full-body model, trained through a differentiable musculoskeletal world model. The world model computes muscle forces and joint torques analytically using a fitted surrogate of the muscle geometry and learns only the skeletal and contact dynamics from these torques, accelerating policy learning relative to an activation-input world model. The policy likewise observes its muscles through the joint torques, making its observation invariant to activation differences in the torque-null space that produce no net torque. Under the same effort penalty, this observation reduces excess muscle effort from 232 to 38%. Trained on 175 h of flat-ground motion, Myodyssey tracks 97.8% of the motions of 8 held-out subjects and all 108 test motions from KIT, an unseen dataset, under a 0.5 m tracking threshold. Further training on the full 182 h library with a local heightmap extends the policy to terrain, with 92 to 100% success on stairs, ramps, seats and box steps and 81% on KIT terrain, while retaining 98.2% flat-ground success. The flat-ground policy reaches about 90% validation success under the 0.5 m threshold after about 25 min, and both training stages run to early stopping in about 11 h on a single RTX PRO 6000 GPU. These results show that exploiting known muscle mechanics in both dynamics learning and policy observation enables efficient training of muscle-driven generalists with broad motion coverage and lower excess muscle effort.

en
arXiv AI Papers

Physics-Informed Electromagnetic Modeling of Hardware-Impaired Reconfigurable Intelligent Surfaces

Hardware impairments in practical reconfigurable intelligent surfaces (RISs) may cause a significant difference between the actual electromagnetic reflection responses and those modeled based on ideal hardware assumptions, leading to deviations on channel modeling of RIS-assisted wireless systems. There has been approaches considering hardware impairments based on analytical formulations and statistical assumptions in modeling hardware-impaired RISs. However, it is difficult to identify which assumptions best represent a practical RIS. What is more, these models cannot capture various complex and coupled hardware impairments beyond those predefined analytical formulations. To address this issue, we propose a physics-informed electromagnetic modeling method with an embedded electromagnetic reflection forward model, which can learn the electric field magnitude patterns from hardware-impaired RISs. The method employs an ideal-state pretraining and impairment-aware fine-tuning strategy to separately learn actual RIS reflection behavior from physical mechanisms and data. Simulation results show that the proposed model achieves nice prediction with higher accuracy and faster convergence than those baselines. In addition, it maintains high accuracy with a small amount of training data and achieves millisecond-level inference. Besides, the predicted electric field magnitude pattern can be adopted to calculate the received power and the achievable rate, enabling accurate user rate prediction across representative hardware-impaired RIS-assisted communication scenarios.

en
arXiv AI Papers

Omokage: Understanding How Agents Develop and Optimize HPC Kernels on GPUs

Coding agents are becoming a part of performance engineering. However, existing evaluations mostly report end-to-end speedups under fixed budgets rather than examining how agents optimize code. In this paper, we evaluate general coding agents on GPU high-performance computing (HPC) kernels. We build Omokage, a sandbox-based inspection framework: it isolates execution, hides ground truth, pairs deterministic verification with LLM-assisted bug reproduction, and analyzes the code and execution traces an agent leaves behind. On NVIDIA B300 GPUs, 28 models across Claude Code, Antigravity, Codex, and OpenCode port 30 PolyBench kernels from serial C to CUDA without a budget limit. We measure attainment against researcher-validated roofline bounds and verify floating-point solutions against a higher-precision reference and integer solutions exactly. Gemini 4 Neon reaches a geometric mean of 2.0of the bound and Opus 5.5 reaches 1.6, while the best open-weight model, Kimi K3, reaches only 0.32. Frontier models exceed the bound through unprompted reduced precision with accuracy recovery, temporal blocking, and algorithm changes. The three flagship models change the algorithm on up to five kernels each. At the time of our tests, Neon is stronger at algorithmic optimizations and Opus 5.5 at kernel optimizations for hardware features. Trace analysis shows that quantitative performance modeling and a hypothesize-implement-verify loop appear consistently together in the four large Claude models and Gemini 4 Neon. However, unlike traditional performance-engineering workflows, most models rarely use a profiler even when enabled, and using one makes kernels faster about as often as slower. Beyond ranking models, our framework and findings can help performance engineers, practitioners, and model developers understand where coding agents succeed and where they still fall short.

en
arXiv AI Papers

ZenMargin: Margin-Refined Two-Limb FP4 Attention for Long-Context Language Models

Long-context LLM serving faces a frustrating trade-off on 4-bit tensor cores: uniform 4-bit attention degrades long-range retrieval, while selective FP16 fallback forces systems to keep a full-precision KV cache and leaves decoding unaccelerated. We show that no FP16 backup is needed. Analyzing why 4-bit retrieval fails reveals two root causes: quantization error concentrates along a few dominant key directions, creating strongly correlated score errors, and retrieval heads operate with narrow score margins where modest 4-bit noise flips the winning key. ZenMargin resolves both directly in 4-bit precision. It smooths keys with causal centering and a lightweight Hadamard transform, then splits every KV pair into a primary 4-bit tensor and a residual 4-bit tensor under a shared scale (two-limb NVFP4). During prefill, an online margin gate reads only the primary 4-bit limb for 95-99% of blocks and refines the remaining 1-5% of near-peak blocks natively on FP4 tensor cores; during decoding, ZenMargin-Cache reuses the exact same split layout with zero repacking. Across six open LLMs on a single RTX 5090 (up to 128K context), ZenMargin is simultaneously fast, compact, and faithful. It reaches 867-967 TFLOPS on real activations (4.0-4.4x FlashAttention-2, 1.5-1.6x SageAttention2++, and faster than FlashInfer NVFP4), holds flat throughput across diffuse and code workloads with zero degradation cliff, and speeds up 64K time-to-first-token by up to 1.9x. By cutting KV-cache memory 44% below BF16 while reading mostly the primary 4-bit limb, ZenMargin-Cache lifts 32-layer single-GPU serving throughput 2.1-2.9x over FlashInfer BF16, and outperforms FlashInfer FP8, across both long-input and incremental-flush Long-CoT workloads. Without retraining, it matches BF16 accuracy across full 13-task RULER (up to 67.6K) and LongBench.

en
arXiv AI Papers

JS^2: Joint Scheduling and Speculative Decoding for Efficient Agentic LLM Inference

LLM-powered agents execute tasks through interdependent LLM calls interleaved with tool executions, making end-to-end Job Completion Time (JCT) a central serving objective. Our measurements reveal that the dominant LLM inference bottleneck shifts from decoding latency at low concurrency to queueing delay at high concurrency. Speculative Decoding (SD) accelerates decoding but may degrade performance under heavy load. Dynamic arrivals and intermittent tool executions cause batch-size fluctuations in online agent serving. Existing Adaptive Speculative Decoding (ASD) approaches rely on reactive feedback, incur overhead when speculation is disabled, and offer limited upper-layer control. Agent-level scheduling mitigates queueing delays but overlooks the load-dependent effectiveness of SD. Our key insight is that prioritizing tasks with fewer remaining LLM requests reduces queueing delays and shortens high-batch periods, creating additional SD opportunities. We present JS^2, a bottleneck-aware LLM serving system that jointly optimizes SD and agent-level scheduling. JS^2 enables externally controllable, iteration-level switching between native SD and non-SD paths using separate CUDA Graphs, minimizing disabled-SD overhead while preserving ASD compatibility. It estimates remaining steps using explicit plans, prompt-derived execution states, and hierarchical matching of historical trajectories. JS^2 coordinates remaining-step-aware scheduling with load-adaptive SD selection based on offline profiling and near-future load estimation. We implement JS^2 on vLLM and SGLang and evaluate it across three LLMs, four workloads, three workflows, two GPU platforms, and two real-world serving traces. JS^2 achieves up to a 2.10speedup in average JCT over the best baselines, while maintaining comparable tail latency and throughput. Our code is available at https://github.com/Wenz0101/JS2.

en
arXiv AI Papers

BFloat16 Writeback Freezing Makes LLM Unlearning Fragile to Wide-Gap Four-Bit Quantization

Four-bit post-training quantization (PTQ) can restore supposedly forgotten text after LLM unlearning (Zhang et al., 2025). Auditing seven public repositories reveals an upstream precision defect: both Zhang et al.'s MUSE trainer and single-GPU open-unlearning default to pure-BF16 round-to-nearest (RN) storage, freezing 83%-95% of weights even with FP32 optimizer moments and concentrating updates inside |w_0| 2^{-8} where wide-gap four-bit quantizers (bnb-FP4, per-channel GPTQ) and magnitude pruning erase them. On MUSE-News (Llama-2-7B, n=3), switching only writeback to stochastic rounding (BF16+SR) eliminates severe Ep. 10 FP4 and per-channel GPTQ verbatim rebound (30.2 0.09 and 19.0 0.21) and cuts non-saturated early-stop FP4 rebound by 92% across two independent runs (30 neighboring checkpoints across 3 seeds). A single-seed same-checkpoint GPTQ sweep is consistent with median zero-cell half-width hw_0 crossing τ= 2^{-8}, while strict zero-BF16 FP32 1B surgeries establish near-zero support sufficiency alongside update-magnitude co-mediation on natural 7B runs. Combining sufficient arithmetic bounds, 1B-8B rebound replications (Llama, Qwen2.5, Gemma-4), and localized 27B freezing checks (Qwen3.8), we recommend checking trained-layer weight movement (f_{move}^{tr}) before jointly tuning writeback precision and learning rate.

en
arXiv AI Papers

Sharing Corrections across Tasks: A Study of Generalizable Action Editing for Pretrained Robot Policies

Action-editing methods refine frozen robot policies via online reinforcement learning, typically one task at a time. We test whether a single shared editor transfers to editor-held-out tasks, on which the base policy was fine-tuned but no editor was trained. On LIBERO-130, editors trained on 112 source tasks under three recipes raise mean held-out success from 23.3% to 50.0-57.6% with no update on those tasks. Each base-editor episode pair is rescued, kept, harmed, or still failed, and the gain is rescue minus harm. Rescue grows and harm falls with source breadth, while the source-task ranking of six 16-task recipes does not carry over to held-out tasks. Gains concentrate on tasks the base rarely solves, and harm on tasks it solves at least half the time. Harm follows correction size: soft-penalty recipes harm 4.9-6.2% of held-out episodes, against 10.2% with output bounds, and halving the correction at inference lowers harm. A fixed source-mean correction nearly matches the bounded editor but falls 12.0-18.1 points below the soft-penalty editors, which depend on live context. In single-task adaptation, pretraining halves critic loss under every recipe; offline source replay more than doubles retained source success under the additive soft penalty without lowering target success, while the bounded recipe stays below the base. With a different base and simulator (RoboTwin), a four-task editor repeats the narrow-source pattern of two-task LIBERO editors: it raises source-task success from 74.6% to 84.1% and lowers it on 12 others. ReSOP, our asynchronous system, trains the 112-task bounded editor in 167 GPU-hours.

en
arXiv AI Papers

Monitoring Activations for Real-Time Detection of Cyber Misuse

A large language model (LLM) that helps a defender secure a system can also assist a user attempting to compromise it. To prevent harmful misuse of LLMs, monitors can be used to recognize when a user starts misusing it and when the LLM starts to provide harmful assistance. However, using a second LLM to check each step of an agentic interaction adds significant inference cost and latency often making this impractical. We introduce Iris Cyber Probe (ICP), a small recurrent classifier that reads the deployed model's activations at every token. We train ICP on top of Beam-501B-A23B using over a million labeled chunks of agentic traces sourced from automated red teaming and vendors where labels identify harmful user requests and model assistance. ICP detects 93.1% of harmful test chunks compared with 72.7% from a Kimi K3 text monitor, when calibrated to flag at most 5% of benign validation traces. For practical real-time use, we integrate ICP into vLLM and SGLang. With SGLang, we measure only a 0.6% reduction in output throughput at 64 concurrent users when the probe runs on one additional GPU.

en
arXiv AI Papers

RTAQ: Reasoning Termination Aware Quantization for Mixture of Experts Architectures

Extreme low-bit post-training quantization is key to serving large-scale mixture-of-experts (MoE) language models, yet reasoning models quantized to around two bits often collapse on long-horizon reasoning tasks. We show that a major source of this collapse is not a loss of knowledge but a failure to stop reasoning. When a near-2-bit reasoning model emits the end-of-thinking token (), it almost always completes its answer, and for most methods the accuracy of such responses stays close to full precision; a large share of the remaining errors (up to 47\% for GPTQ) come from reasoning traces that never close. We trace this termination decision to a small subset of routed experts (approximately 2\% of all routed experts) that are consistently selected at the end-of-thinking position but are largely overlooked by standard sensitivity metrics. Building on this finding, we propose RTAQ (Reasoning-Termination-Aware Quantization), a weight-only quantization pipeline with three stages: (1) constructing a bank of activation-weighted, DP-optimal scalar codebooks for every expert and bit-width; (2) performing termination-aware bit allocation, which fixes termination experts at higher precision within the bit budget and assigns the remaining bits through knapsack optimization; and (3) applying grid-preserving recalibration, which reassigns codes using GPTQ-style error compensation and rescales expert outputs in under one second per expert. At an average bit-width of 2.0 for routed experts, RTAQ preserves over 9498\% of the full-precision performance on long-reasoning benchmarks such as AIME. On a single GPU, {} also shrinks routed-expert memory by 6.3and roughly doubles decoding throughput over BF16.

en
arXiv AI Papers

Unmix Drift: Component-Wise Drift Representation for Online Time Series Forecasting under Delayed Feedback

Online time series forecasting (OTSF) needs to adapt to concept drift under delayed feedback, where complete labels for an H-step forecast become available only after H time steps. Existing proactive methods such as PROCEED reduce this adaptation lag by comparing global representations of the current input and the latest historical reference. However, early aggregation may obscure component-level current-historical discrepancies and limit the resulting adaptation signal. To this end, we propose Unmix Drift, a proactive adaptation framework with component-wise drift construction. It follows a decompose-compare-aggregate strategy that preserves component-level discrepancies until final aggregation, combining normalized component-wise residuals with salience derived from pre-normalization response changes to form a compact drift representation for lightweight parameter modulation. Because component decomposition depends on the learned representation while parameter generation consumes the resulting drift signal, jointly training all modules from the outset exposes downstream modules to continuously changing intermediate representations. We therefore adopt a stage-wise warm-up strategy that sequentially refines the projection, decomposition, and generation modules in dependency order, providing more stable inputs to downstream stages. Experiments across three forecasting backbones, five real-world datasets, and three forecasting horizons show that Unmix Drift achieves lower MSE than PROCEED in 44 of 45 configurations and ranks first or second in all configurations on both MSE and MAE, while maintaining comparable per-step latency and GPU memory. The code is available at https://github.com/unmixd/unmix-drift.

en
arXiv AI Papers

Shared KV Heads, Sliding Windows, and Vocabulary Size: Measured Memory and Retrieval Trade-offs in LLaMA 7B, Mistral 7B, and Qwen2.5-7B

Three widely used 7B-class language models, original LLaMA 7B, Mistral 7B v0.1, and Qwen2.5-7B, differ in three design choices that decide what fits on a small GPU: how many key-value (KV) heads the attention layers keep (32, 8, and 4), whether attention is limited to a sliding window (4,096 tokens in Mistral), and how large the vocabulary is (32,000 versus 151,643 tokens). We measure the consequences of each choice on one 16 GB T4 GPU. (1) Passkey retrieval in Mistral stops at the window. In 134 trials with the key placed 3,600 to 4,600 tokens from the end of the prompt, Mistral retrieved it in all 72 trials where it lay within 4,089 tokens and in none of the 62 trials where it lay 4,098 or more tokens away. With the same weights and the window turned off, retrieval succeeds at every tested position in 8K-token prompts, so the mask causes the limit; at 16K and 32K tokens the window-free model fails completely, while the windowed model still retrieves nearby keys. Qwen2.5 retrieves the key in all 60 trials up to 32K tokens. (2) KV-cache memory per token is 512, 128, and 56 KiB. LLaMA runs out of memory at 32K tokens, Qwen2.5 holds 64K tokens in 3.5 GiB, and Mistral's cache stops at 512 MiB. (3) On 1,997 parallel sentences in 15 languages, Qwen2.5's tokenizer removes 38-58% of tokens for five languages and 3-11% for the other ten; combined with KV sharing, LLaMA needs 9.5-22.0 times more cache memory than Qwen2.5 for the same sentence. (4) Decode latency in a common runtime grows with cache size, and copying the cache, measured on its own, costs about as much as that growth. Code and results are public.

en
arXiv AI Papers

Less Fusion, Same Action: Revisiting Redundant Connectivity in Mixture-of-Transformer based Robot Policy Models

Mixture-of-Transformers (MoT) robot policies typically maintain dense expert connectivity across network depth, yet it remains unclear how much of this connectivity is actually necessary for downstream adaptation. We conduct a systematic empirical study of expert connectivity redundancy by sparsifying pretrained MoT policies during fine-tuning across multiple architectures and robot manipulation benchmarks. We find that substantial portions of dense expert connectivity can be removed while largely preserving downstream performance, and that different sparse masks with matched budgets achieve similar results, suggesting that no particular subset of expert connections is uniquely indispensable. Motivated by this flexibility, we introduce a structured pruning pattern that concentrates cross-expert connectivity in the early layers of the network. Using early-half fusion as a representative configuration, this design maintains comparable task success while enabling practical deployment simplifications, including truncation of unused conditioning layers and reduction of historical KV-cache storage in autoregressive policies. Deployment measurements further show reductions in loaded parameters, GPU memory, and per-chunk latency. Together, our results suggest that dense expert connectivity in pretrained MoT robot policies is substantially redundant, and that structured pruning provides a simple path toward more efficient deployment without training a new model from scratch.

en
arXiv AI Papers

Remembering a Number Without Revealing It: Why Chat and Voice Assistants Cannot Host Bulls-and-Cows and a Commit-Score-Reveal Fix

Asked to "come up with a five-digit number" and score guesses in Bulls-and-Cows (Mastermind-style feedback such as +2 -1), conversational assistants fail at a task that is trivial for a person. In five games in ChatGPT Voice, the assistant claimed to have chosen a number every time, contradicted its own answers in all five (first at turns 4-7), rejected a guess that was the only number still consistent with everything it had said, and at the end either named a number that contradicted most of its answers or said it had forgotten it. We argue that this is a structural property of today's deployment stack, not a reasoning slip: in a standard chat the only per-conversation state a model writes to is the transcript the user sees, the GPU key-value cache is a deterministic function of the model's input, and hidden reasoning is often discarded between turns. We formalise the game and compute exactly, over all 27,216 secrets, how fast hosts without a secret contradict themselves: one that ignores the history does so in 79% of games by turn 5, and one that respects it on 95% of turns still does in 12%. A host that never contradicts itself is still not committed: it cannot be told apart from an honest one by outcomes, yet can stretch games by 41%. We propose Commit-Score-Reveal: a sealed per-game secret outside the transcript, scoring in code, and a hash commitment the user verifies at the end, all implementable with today's function-calling APIs.

en
arXiv AI Papers

Revive What Pays: Evidence-Weighted Net-Gain Revival for Mini-Batch k-Means

Mini-batch k-means algorithms such as e-means periodically move rarely used centers to where they reduce the error more, a step called revival. The strongest rule so far, the cost-based revival proposed for the FAISS library, compares running estimates of the cost of removing a center and of the gain of splitting another. These estimates are precise for large, long-lived clusters and mostly noise for small or young ones, and the rule trusts them alike. We treat each move as a decision under uncertainty: a center is moved only if the predicted gain of the split it funds is more likely than not to exceed the predicted cost of its removal. Each estimate is shrunk toward the population of centers according to its evidence (Gamma-Poisson rates, empirical-Bayes cost ratios, and log-gains with a precision-weighted Paule-Mandel prior), and the decision uses posterior medians, which, unlike posterior means, give no credit to centers about which nothing is known. The rule has no tuning parameter. In a pre-registered study on 14 datasets, 34 dataset-size combinations and 20 previously unused seeds, it lowers the test error by 2.9% and the training error by 8.9% relative to cost-based revival, and by 5% and 7% with five epochs, where an earlier version based on posterior means broke down. With its decision in C++ it takes about 7% longer than cost-based revival; an automatic early end of the move phase, which stops revival once it has stopped paying, saves about 5% of the running time with five or ten epochs at a cost of at most 0.33% in error. The rule is a function of per-center statistics only and runs unchanged inside GPU e-means and o-means.

en
Hardware e Chips — overfeed.news