Anúncio

Agendator

Agendamento online grátis para sua barbearia ou salão.

Página de agendamento, agenda e lembretes por e-mail. Sem cookies nem anúncios para seus clientes.

Criar minha página grátis

Tópico

LLMs

3.916documentos

253últimos 7 dias

arXiv AI Papers

Clash of Languages: Political Neutrality of LLMs Shifts with the Prompting Language

Large language models are used globally in dozens of languages, yet most studies of their political bias vary one factor at a time. In this work, we evaluate 11 models, developed in 5 countries, under 16 languages and 14 socio-political topics, generating 74,000 passages and scoring each cell's neutral passages with a linear probe trained on that cell's own pro and con embeddings, so the measure is label-invariant. A variance decomposition shows that the prompting language explains roughly 5more systematic variance in the neutral point than the choice of model. The pattern is shared, each model's language-by-topic profile is predicted by the average of the other ten at mean Pearson r{=}0.61. A separate even-handedness analysis grades 14.5\% of pro/con pairs as asymmetric, concentrated on gender, immigration, and climate change in the same direction for all models. Together, these results show two distinct components of the models' bias in different languages, neither of which is removed by switching models.

en
arXiv AI Papers

Suppressed or Absent? A Statistical Test for Language Model Unlearning

Unlearning methods try to make a language model forget chosen facts, yet a little fine-tuning often brings the facts back. We ask when a model that no longer gives the forgotten answers still holds them. We call knowledge absent when the model carries no information about the forgotten answers beyond what the remaining training data implies. From this definition we derive a simple test, in which an auditor fine-tunes the model on a few forgotten facts and measures its accuracy on the others. We prove that when the knowledge is absent, no auditor beats on average a chance level computed from the remaining data and the facts it is shown, so false alarms stay below a chosen rate. The test detects suppression that a short change to the model undoes, given enough forgotten answers that the remaining data does not imply. Audits of outputs, internal representations and weights form a strict hierarchy, and gradient unlearning in a model of factual memory hides knowledge long before it erases it. Simulations and Gemma~3 and Llama~3.2 models with one to four billion parameters, trained on fictional medical facts, confirm these results. Fine-tuning on a few forgotten facts reveals knowledge in every unlearned model, including models whose answers show none of it, while models that never saw the facts are rarely flagged. On real facts from Wikidata, where a second model trained without the forgotten facts estimates the chance level, the test again flags every unlearned model.

en
arXiv AI Papers

VideoTED: Tree-Guided Evidence Distillation for Open-Vocabulary Action Recognition

Open-vocabulary action recognition (OVAR) requires grounding sub-actions and their compositional relations in visible evidence to recognize activity categories unseen during task-specific training. However, fine-grained descriptions often identify sub-actions without specifying the visual evidence for their relations, while outcome rewards provide limited guidance on whether these sub-actions and relations are correctly identified. In this work, we introduce ActionTree-97k, a dataset that organizes visible observations, sub-actions, and overall activities into Hierarchical Action Trees with explicit support relations. Building on this dataset, we propose VideoTED, a tree-guided evidence distillation framework for vision-language model post-training. Specifically, Tree-Conditioned Credit Modulation (TCM) uses a self-teacher conditioned on the action tree and activity label to modulate token-level update magnitudes on sampled responses while preserving reward-derived update directions. Reference Trajectory Learning (RTL) provides tree-derived reasoning traces and answers as independent learning targets excluded from group reward and advantage calculations, with more weight assigned when few sampled responses are correct. Across four OVAR benchmarks, VideoTED achieves absolute gains of up to 10.7% in base-novel harmonic mean accuracy over the base MLLM. On four general video-understanding benchmarks, average overall and action-related scores improve by 4.5% and 7.8%, respectively.

en
arXiv AI Papers

Planning Ahead Under Rate Limits: Rolling-Horizon CP-SAT Scheduling for Heterogeneous LLM Agent Fleets

Multi-step LLM workflows increasingly mix models from several providers. Each model has its own skills, price, speed, context window and reliability, and providers cap the tokens and requests a client may send per minute. Deciding which model runs each task and when is therefore a scheduling problem, yet most orchestrators decide one call at a time. We formulate it as a constraint program solved with OR-Tools CP-SAT. Each feasible (task, model) pair is an optional interval, and a second, 60-second interval per pair turns these per-minute limits into two cumulative constraints without time buckets. Precedence, concurrency and the budget are constraints (the budget is relaxed only when it cannot be met), and the objective trades makespan, cost and risk. Because LLM calls drift from their estimates, fail and spawn follow-up work, a rolling-horizon engine re-solves the remaining work when execution departs from the plan. On 20 held-out random workflows with 3 stochastic realizations each, in a seeded simulator with common random numbers, the scheduler finishes 98.8 s sooner than a capacity-aware online HEFT baseline (95% CI [59.9, 140.6]; a 45% reduction) and costs 11% less, with a median solve time of 20 ms (mean total 1.10 s per run). Re-planning, however, is not free: solving once and never re-planning is faster still, by 24.6 s (CI [8.8, 42.6]), with no detectable difference in cost. A post-hoc analysis places most of that gap in runs whose re-solves had to relax the budget, which shifts work onto a free but single-slot local model. On 80 fresh workflows, a pre-registered change that prices the overspend instead of minimizing it first recovers about 72% of the single solve's lead on those workflows at a small extra spend, which supports this account, and the advantage over HEFT holds. A reliability-first router completes more tasks at about 9x the cost. Code and data are released.

en
arXiv AI Papers

Continuous Learning from Executable Environments: Autonomous Skill Acquisition, Retention, and Transfer in Language Models

A language model does not keep the experience of a task it completes. Where an attempt can be checked by executing it, that experience can become training data without human-written tasks or labels. We present and evaluate a framework that generates practice tasks, verifies attempts by execution, trains a small adapter (added weights; the base model remains fixed) on the verified records, and repeats, one generation per repetition, evaluating every model on a held-out examination that no stage of the pipeline reads. In predicting the output of Lua programs, using an interpreter as the sole source of labels, a 4-billion-parameter (4B) model's examination accuracy rises from 5.05% to 13.24% over four generations. In editing files with Vim, a larger teacher model writes tasks from the user manual and supplies most verified solutions. Trained on these records, the 4B model solves hand-written examination tasks its base never solves (up to 3.50% of attempts, versus 62.25% for the teacher), whereas a control trained with mismatched task requests solves none. On 228 easier hand-written course exercises, the pass rate rises from 15-16% to 37-41% (exploratory). An iterative protocol then ran three generations with 4B and 8B models, governing every release by a fixed rule. In the first generation, examination gains were one-tenth to one-fifth of the gains on held-out generated tasks. Across training seeds, later candidates averaged 1.2 to 6.1 percentage points above their baselines on generated tasks, implying an expected examination gain of 0.1 to 1.3 points, below the 100-task examination's 2.8-point detection threshold. Consequently, no later examination gain was established, and because outcomes were recorded per attempt rather than per task, whether transfer, acquisition, or retention stalled remains undecided.

en
arXiv AI Papers

STRING: A Schema-Thinking Robot Agent That Learns from Embodied Experience in a Multiphysics World

Dexterous robots usually learn deformable, contact-rich tasks from teleoperated demonstrations, and the resulting policy works only where the data reached. Robot agents built on large language models need no such data, but they accumulate skills that overfit to the task they were found on. We argue that an agent is all you need for dexterous manipulation if it learns as people do, by abstracting physical schemas from embodied experience instead of collecting skills. We present STRING, a system in which a schema-based robot agent gains this experience in STRING World, a multiphysics engine we built from scratch. STRING World gives each class of material its own solver, from elastic solids and thin shells to fracturing, granular and liquid matter, strings with audio, and air, and simulates them together with the robot in one scene, covering more kinds of matter than simulators such as MuJoCo and Isaac Sim. It returns the physical quantities it computes, such as contact reactions and solver state, to the agent as observables. From one human demonstration, the agent rehearses the task in STRING World and abstracts physical schemas, whose roles, relations, phases and force ranges are predicates over the observables. The schemas and their subgoals carry from simulation to reality, where the robot reproduces the task from a real-time 3D reconstruction of the scene, with no teleoperation data or policy network. On a bimanual dexterous robot, STRING reaches 50.0% average success over ten tasks, from knotting a rope to flying a paper plane with a hair dryer, against 2.5% for the best general-purpose agent given the same demonstration and STRING World. On the four hardest tasks it reaches 43.8%, against 27.5% for the best fine-tuned policy.

en
arXiv AI Papers

OEIS-Equiv: Evaluating Code Reasoning in Large Language Models via Equivalence Proofs

Large language models (LLMs) are increasingly used to turn natural language into code. But does this mean LLMs can reason about code? Existing evaluations can hardly tell, because most use familiar code and check only answers. We therefore turn to code that is valid but unfamiliar. We pair a program found by automated search, written in a Lean 4 domain-specific language, with one that an LLM generated for the same integer sequence. We then ask models to prove the two equivalent. Accordingly, we introduce OEIS-Equiv: 200 such tasks, each with a Lean-verified reference proof. DeepSeek-V4-Pro, which wrote all the LLM-generated programs, proves no pair equivalent, even after reasoning for tens of thousands of tokens per task. No other model proves more than a few. Even on tasks that a single line of automated tactics can prove, most are proved by no model. Thus, for LLMs, writing correct code and reasoning about code are not the same thing.

en
arXiv AI Papers

Constructing Multiscale Pattern Dictionaries for Financial Time Series with a Regularized Procrustes -- DTW Divergence

Financial time series exhibit recurring local shapes that differ in duration and amplitude. We propose normProDTW, a divergence that combines amplitude normalization, dynamic time warping (DTW), vertical flipping, and regularized Procrustes superimposition, and use it to construct, without supervision, a pattern dictionary of observed curves shared across timeframes from 1 to 1,440 one-minute observations. On market series built from FTSE 100 and Nikkei 225 constituents, the dictionary reconstructs an unseen test period more accurately on average than dictionaries based on DTW, Euclidean distance, or a k-Shape-based distance, with greater inter-element dissimilarity, and matches the accuracy of amplitude-normalized DTW with 50 elements using approximately 17--28 elements. Each occurrence records its element, orientation, timeframe, duration, and range, giving an inspectable discrete description of price paths that could be used by language models to generate market commentary.

en
arXiv AI Papers

Dynamic Hybrid Sparse Pruning via Fine-grained Sensitivity Allocation for Large Language Models

The parameter scale of large language models (LLMs) makes compression a prerequisite for deployment. Semi-structured pruning is a practical route, but existing methods decide sparsity at a coarse layer or matrix granularity, ignoring strong intra-matrix sensitivity variation and forcing sub-blocks of different importance into the same hardware pattern. This paper proposes a dynamic hybrid sparse pruning method featuring sensitivity-guided hybrid sparsity (SGHS). Semi-structured pruning is formulated as a sensitivity redistribution problem under a global sparsity constraint. A weight-level sparsity budgeting mechanism estimates matrix-level pruning tolerance from curvature statistics and converts the global target into matrix-specific budgets, and a sub-block pattern selection strategy scores sub-blocks from local saliency and mask-coverage evidence to assign heterogeneous N:M patterns within each matrix. Denser patterns are thus preserved where the model is sensitive without changing the compression target. Experiments on multiple LLMs and benchmarks show consistently lower perplexity degradation and higher zero-shot accuracy than competing post-training pruning approaches.

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

Toryx Stratum: Evidence Selection for Local Multi-Document QA

Multi-document question answering requires finding the relevant evidence and then using it to produce an answer. We evaluate Toryx Stratum (STRATUM), an evidence-selection layer coupled to Toryx-Glimmer, an adapted 30-billion-parameter open-weight large language model (LLM). The central question is whether a selected subset of evidence can improve answer accuracy when all required evidence is already present in the larger context. We test this with a control that keeps the answering model and the questions fixed and changes only the evidence supplied. The control uses development questions that also informed configuration choices, so its results are not held out. Supplying only STRATUM's selected passages (up to ten of roughly 35 to 45 candidates per question) instead of the full candidate set raised exact match (EM) on all three development sets: by 6.0 points on HotpotQA, 3.0 on 2WikiMultiHopQA and 9.0 on MuSiQue. The paired 95% intervals exclude zero for HotpotQA 1.5, 11.0 and MuSiQue 3.0, 15.0 but not for 2WikiMultiHopQA -1.0, 7.5. On 300 held-out questions per benchmark, STRATUM plus Toryx-Glimmer was competitive with five frontier cloud models on HotpotQA and 2Wiki but trailed on MuSiQue. It scored 69.0%, 86.3% and 55.0% EM, respectively, using roughly one-fifth to one-third as many answering-model input tokens as the cloud models. Coverage diagnostics identify a remaining difficulty with longer evidence chains. Answers cite passage identifiers; an exact answer that cites every gold passage is produced on 66.0%, 85.7% and 43.7% of the held-out questions.

en
arXiv AI Papers

Do Time-Series Foundation Models Generalize Across Load? A Leakage-Safe Current-Signature Benchmark for Broken-Rotor-Bar Diagnosis

Time-series foundation models and large language models (LLMs) are increasingly proposed for machine fault diagnosis, but most reported gains come from evaluations in which training and test windows share recordings and operating conditions. We present a leakage-safe benchmark for broken-rotor-bar diagnosis from stator current (motor current signature analysis, MCSA) on a public laboratory dataset (five severities, eight load levels, ten repetitions), in which every recording is assigned to a single split and generalization to unseen loads is tested explicitly. We compare a compact 1D CNN, the MOMENT foundation model (frozen and LoRA-adapted), an LLM fed with textual signal descriptors, and a learned bridge that maps MOMENT tokens into a small LLM (Qwen3-0.6B) answering typed multiple-choice questions. Within the training loads, nearly all methods classify every test recording correctly. Under load interpolation, the frozen foundation model is the bottleneck: the bridge on frozen MOMENT reaches 0.62 recording-level accuracy on the number of broken bars, whereas adapting MOMENT with LoRA raises the bridge to 0.82, statistically indistinguishable from the CNN (0.82; paired bootstrap difference +0.01, 95% CI [-0.04, 0.06]), at about 500 times the inference latency and with slightly worse calibration. Extrapolating from high to low load fails for every method (0.22-0.40). A spectral analysis links this failure to physical observability: the lower sideband at (1-2s)f separates healthy and four-bar rotors by 17 dB at 4 N m but only 2.4 dB at 0.5 N m, where it lies 0.5 Hz from the fundamental. We also specify a complete evaluation protocol for this question, including the experiments still in progress (leave-one-load-out, a slip-aligned classical MCSA baseline, a bridge-versus-rules ablation, paraphrase consistency and per-load calibration), and mark which results are already available.

en
arXiv AI Papers

NestMSQ: Nested Multi-State Quantization for Fast and Accurate LLM Prefill and Decoding

Nested quantization of large language models embeds lower-precision models in the bits of a higher-precision one, so one checkpoint serves requests with different latency and accuracy needs without deploying a separate model for each precision. We present NestMSQ (Nested Multi-State Quantization), a post-training quantization (PTQ) method whose INT8 checkpoint provides 4-bit weights for speed and 8-bit weights for accuracy, each with low-bit activations for arithmetic-heavy long prefill (W4A4, W8A8) or with 16-bit activations for bandwidth-heavy low-batch decoding (W4A16, W8A16). The shared checkpoint can switch precision per request and between prefill and decoding without loading another model. During calibration, different weight and activation precisions give the four modes different layer inputs and rounding errors. Compensation-based PTQ offsets rounding errors by adjusting weights still to be quantized. Nested weight precisions already favor different adjustments, while varying activation precision also makes the modes evaluate these errors on different inputs. NestMSQ therefore calibrates each mode on its own inputs and keeps its preferred adjustments separate while choosing each INT8 weight jointly for all modes. Compared with sharing inputs and adjustments, this closes 73% of the W4A4 perplexity gap to a separately quantized model. Across two 8B models, the nested checkpoint stays within 1.3 average-accuracy points of separately quantized models in every mode. For single requests, W4A16 decoding after a W4A4 prefill keeps W4A4 speed and matches W4A16 accuracy on MATH-500. When long-input W4A4 prefill costs accuracy, W8A8 prefill with W4A16 decoding stays within 2.6 points of BF16 on three tasks at 1.96 to 2.61 times its output throughput. This flexibility extends to continuous-batching serving, where precision adapts as the number of parallel requests changes.

en
arXiv AI Papers

CMPQ: Compensatory Quantization via Input-Aware Hessian Damping

As large language models (LLMs) scale, post-training weight quantization (PTQ) has become a standard tool for deploying them on commodity hardware with little loss in quality. However, existing quantization solvers such as GPTQ calibrate each weight matrix against a corrupted signal: the calibration input observed at any deep layer is the output of the cumulative quantized chain, not a clean full-precision reference. We propose CMPQ (Compensatory Quantization), which reframes the corruption as evidence about which input directions have become unreliable and tells the solver to stop spending its compensation budget on them. CMPQ measures the divergence between the quantized and full-precision input and uses it to reshape the curvature that GPTQ already relies on, redirecting compensation onto weights attached to clean input subspaces and cutting the propagation path of upstream noise. On the Qwen3 family at three sizes (4B / 8B / 14B), CMPQ improves over GPTQ and is competitive with GPTAQ at 3-bit; at 2-bit, where GPTQ and AWQ collapse to near-random accuracy, it outperforms all baselines.

en
arXiv AI Papers

TIDEmark: Joint Token Watermarking for Diffusion Language Models via Multi-Marginal Optimal Transport

Watermarks for autoregressive language models are typically applied one token at a time. Diffusion language models (DLMs) generate text in parallel by successively updating multiple token positions. Most existing DLM watermarks focus on side-information generation, leaving the other watermarking components similar to their autoregressive counterparts. In this work, we leverage the parallel nature of DLMs to jointly watermark multiple tokens. By jointly watermarking token blocks, we improve detection without increasing the watermark's distortion. To do that, we introduce TIDEmark (Transport-based Interaction for Distortion-free Embedding of watermarks), which leverages multi-marginal optimal transport. TIDEmark is a distortion-free watermark whose score function builds on intra-block token interactions. TIDEmark offer a computationally tractable joint watermark by solving an entropic MOT over sparse computational graphs that encode token interactions in the block. Consequently, TIDEmark's computational complexity scales linearly with the DLM's block size. We demonstrate TIDEmark's superior performance in several generation tasks, such as summarization, question answering, and code generation. For example, on Multi-News, TIDEmark attains up to 89%-99% TPR@5% while keeping ROUGE-L within 0.6 points of the unwatermarked baseline, while on LCC it reaches up to 82%-92% TPR@5% while maintaining higher code similarity. Code: https://github.com/omerlux/TIDEmark.

en
arXiv AI Papers

Right Domain, Wrong Code: Benchmarking LLMs on Multilingual Hierarchical Code Assignment

Can large language models reproduce the fine-grained distinctions of an established coding scheme? We introduce ManifestoBench, a multilingual benchmark derived from the Comparative Manifesto Project (CMP), with 150,000 code-stratified, human-coded quasi-sentences from 513 election manifestos in 48 countries, 32 document languages, and 56 codes nested in seven policy domains. We evaluate eight API models across four families. Four cost-efficient models achieve 21.1-34.3% exact-code accuracy and 38.4-57.0% domain accuracy. On a paired 30,000-instance subset, four stronger models achieve 30.9-48.4% exact-code accuracy and 53.1-65.4% domain accuracy. For the four cost-efficient models, predicting the domain before the code improves exact accuracy by 0.8-8.6 percentage points; supplying the gold domain and restricting the candidate set yields 50.2-55.4% exact accuracy. Reasoning gains vary by model. A training-screened ManifestoBERTa reference reaches 51.9% on a separate paired subset. Taken together, these results show that broad-domain recognition can mask substantial error in the final code. This distinction is especially consequential when the label space is fixed by an external institution: the model must reproduce the scheme as it stands. ManifestoBench therefore releases hierarchy-aware metrics, paired diagnostic conditions, prompts, and reproducible evaluation code.

en
arXiv AI Papers

When Local Guarantees Do Not Compose: Orchestrating Agentic Workflows under Shared Resource Constraints

Agentic systems answer a request by composing separately built components, and a guarantee that holds for each component need not hold for their composition when the components draw on a shared, uncertain resource. We study this problem in travel planning, where an itinerary planner, a budget planner and a packing system are each sound alone but together spend one budget. On 2,728 requests over 88 trips, running them in sequence breaks a shared limit for 20.7% of the budgeted requests that have a feasible plan. Frontier language models orchestrating the same capabilities exceed the money limit in 15-30% of cases, even with a verifier that rechecks plans on the agent's own cost scenarios; certifying their plans on fresh scenarios removes these overruns but leaves a valid plan for only 32-41% of the requests that have one. We report on an orchestrator that composes the three capabilities unchanged. A slack gate estimates from one joint cost model whether a shared resource is at risk, only the components that draw on such a resource are solved jointly, and every released plan is certified on cost scenarios independent of the gate's sample. The orchestrator releases no plan that an independent re-simulation rejects, returns a plan wherever an exhaustive search over the same components finds one (mean utility gap 0.0067), and needs about half as many component calls as always solving jointly. Building it taught us four lessons: the margin on a shared resource must be computed on the joint total; a plan selected on a sample appears safer on that sample than it is, so that 22% of releases fail without certification; certification corrects sampling error but not model error; and the check that decides whether to coordinate must itself be cheap.

en
arXiv AI Papers

Average-Case Lower Bounds For Sparse-Attention LLMs (Or: Why Open-Source LLMs Are Falling Behind?)

Since DeepSeek-V3.2 introduced DeepSeek Sparse Attention (DSA) in September~2025, dynamic Top-k sparse attention has swept across the open-weight LLM ecosystem (DeepSeek through V4.1, GLM, MiniMax, Qwen, Hunyuan, and Kimi) for its long-context efficiency. Yet since mid-2026, open-source frontier progress has visibly plateaued, opening a widening capability gap behind leading closed-source models. We show that sparse attention imposes a fundamental representational bottleneck. We formulate a general model of multi-layer dynamic Top-k sparse attention, dubbed the Sparse Transformer, allowing arbitrary scoring and hidden-state updates (subsuming DSA, blockwise indexers, sliding-window hybrids, softmax attention, etc). On Andreev's function over n uniformly random bits (which is computable with 100\% accuracy by a 2-layer Full Attention Transformer of dimension O(n)), we prove an unconditional average-case lower bound for sparse attention. In particular, for any constant depth L 2, polylogarithmic hidden-state bit capacity, and O(1) indexers per layer, no L-layer Sparse Transformer achieves accuracy better than {1}{2} + n^{-Ω(1)} even at sparsity k = n^α for any constant α< {1}{L-1}. Technically, our proof combines Andreev's random-restriction compression framework with a Top-k Switching Lemma generalizing Håstad's Switching Lemma and a final-layer constant-key pruning argument.

en
arXiv AI Papers

A multi-domain physical AI agent for operating energy systems

Energy infrastructure is operated to achieve human objectives, but each objective must be expressed through physical commands specific to each system, and the operating knowledge that determines those commands is built separately for each system. Here we investigate a language-model-based multi-domain physical AI agent that learns from simulated and measured operating records to generate numerical commands together with physical explanations from human-readable states and objectives. One model without domain-specific modules operates across transient nuclear-reactor kinetics, Rankine-cycle turbine operation and a physical hydraulic-electric generator. It matches separately trained models, with mean absolute errors of 0.75 MW and 0.49 MW on reactor and turbine simulations and 0.62 mW on the first hardware request after each setpoint change. The same model controls the physical generator for 455 consecutive requests over 53.6 min with a tracking mean absolute error of 0.41 mW and no parameter updates, and sustained hardware operation is also achieved with a second language-model backbone. Each proposed command arrives with a learned physical rationale that an operator can review. Comparisons with the pretrained backbones show that joint training preserves the separation between domains while changing the representations within each domain. These results establish that operating capabilities governed by different physics can be acquired, explained and examined within one language model.

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