PyTorchKR Papers

최신 논문

총 26,098편
태그·기간 등 상세 필터

카테고리 탐색

로그인 후 이 카테고리 구독

arXiv:2611.35415v1cs.CV

Scaling Dataset Distillation to Large Vision-Language Models with Language-Label Mixing

Dataset distillation for pre-trained models seeks a small synthetic set on which a lightweight head fitted on a frozen backbone matches a head fitted on the full training set. Existing methods use one-hot labels, which ignore how classes relate, and remain well below full-data accuracy at one image per class. We distill through large vision-language models (VLMs) such as Qwen3-VL and DeepSeek-VL2, whose language models supply class semantics but which provide neither a global image embedding nor a text embedding aligned with visual features. Our method, Language-Label Mixing Dataset Distillation (LLM-DD), pools the visual tokens at the input of the language model without executing the decoder, and supervises a closed-form ridge adapter with targets that mix language-derived class anchors with orthogonal label codes. We show that language guidance adds no cost to the closed-form solve, which depends on the language model only through a class-level kernel. On ImageNet-100 with one image per class, LLM-DD is within 2.41 points of full-data training, compared with 5.6 points for the strongest prior method. Compared with gradient matching on the encoder parameters of the same VLMs, it is more accurate, up to 21.5x faster, and transfers better to unseen encoders.

arXiv:2611.35407v1cs.LG

MoEXViz: Interactive Visualizations of Sparse Mixture-of-Experts

Sparse Mixture-of-Experts architectures have become a prominent strategy for scaling large language models without proportionally increasing inference cost. By routing each token through a sparse, input-dependent subset of expert subnetworks, these models increase total parameter capacity while limiting active computation. However, their fragmented routing pathways make them difficult to inspect, audit, and debug. We present MoEXViz, an open-source, browser-based visualization platform for analyzing sparse MoE models at the per-token and per-layer levels. MoEXViz separates model execution from visualization through a three-stage pipeline: offline PyTorch extraction, compact JSON serialization, and low-latency browser playback. This design removes the need for live GPU access during interactive analysis while preserving traceability to real model forward passes. MoEXViz supports multiple visualization views, including expert UMAP projections, per-layer expert activation grids, average activation trends, per-domain expert rankings, prompt-level inspection, and animated routing diagrams. The system dynamically derives layouts from model metadata rather than relying on hard-coded expert counts or routing widths. We demonstrate MoEXViz on three architecturally distinct open-weight MoE models: OLMoE-1B-7B, JetMoE-8B, and DeepSeek-MoE-16B. Code is available at https://github.com/Resource-Efficient-AI-Lab/MoEXViz and a live demo is available at https://resource-efficient-ai-lab.github.io/MoEXViz/

arXiv:2611.35400v1cs.LG

Generalization of Sharpness-Aware Minimization with Interpolating Neural Networks

Neural networks often generalize remarkably well even when highly over-parameterized and perfectly interpolating the training data. Sharpness-Aware Minimization (SAM) improves generalization by seeking flat minima via a min-max optimization that minimizes loss in a local neighborhood. Despite empirical results, a rigorous theoretical understanding of SAM in interpolating neural networks remains limited. In this work, we study SAM for binary classification with shallow networks under a self-bounded loss and a neural network realizability assumption, which capture the ability of over-parameterized networks to interpolate while staying close to initialization.Using an algorithmic stability framework, we derive generalization error bounds that avoid the dimension-dependent factors typical of PAC-Bayesian analyses. For the full-batch SAM, we prove that when the network width is sufficiently large, the expected generalization gap is bounded by $O\left(g(1/T)^2/n+1/T\right)$, where $g(\varepsilon)$ is the parameter deviation from the initialization needed to reach training loss $\varepsilon$, which implies the realizability, $n$ is the sample size, and $T$ the number of iterations. Under the additional NTK-separability condition and setting $T=\Theta(n)$, this bound simplifies to $\tilde{O}(1/n)$, hiding polylogarithmic factors. We further apply the analysis to non-interpolating settings, where the bound involves the distance from initialization and the empirical risk of a reference point, and we discuss the analogous results for stochastic SAM and the expected average population loss.Our results provide a stability-based theoretical perspective on SAM's generalization in over-parameterized regimes and show that, with sufficient width, SAM achieves favorable sample-efficient rates while circumventing explicit dependence on the parameter count.

arXiv:2611.35388v1cs.LG

Token-Level Credit Assignment via In-Context Value Learning

Reinforcement learning has proven extraordinarily effective at fine-tuning large language models to align to human preferences and elicit reasoning capabilities. However, when training policies for long-horizon tasks, a sparse outcome reward provides poor credit assignment, resulting in unstable and inefficient learning. In such settings, value functions are a natural tool for providing token-level training signals and stabilizing learning. Our work addresses how to learn value functions that are powerful enough to perform such token-level credit assignment. Our key insight is that value functions make strong usage of privileged information, which can be provided in-context to base language models. In our approach, we allow the value function access to multiple auxiliary rollouts and their rewards, such that the model can leverage counterfactual futures and semantic structure to produce more meaningful value estimates. We show that value function accuracy scales with the number of in-context rollouts. At sufficient scale, this unlocks accurate per-token advantage estimates: orders of magnitude denser credit assignment than outcome reward alone. These value estimates can then be combined with an off-the-shelf policy improvement method to perform fine-tuning. Empirically, we demonstrate that value functions learned via our approach perform more accurate token-level credit assignment and accordingly result in faster policy improvement. Especially motivating, we find that value functions can be reliably pretrained on offline data, and then later used for rapid adaptation from limited online samples by providing lower variance targets for policy learning.

arXiv:2611.35373v1cs.AI

Customer Segmentation and Purchase Prediction Using Explainable AI

Customer segmentation can reveal differences in observed purchasing behavior without necessarily improving individual-level prediction. We investigate this distinction using a single simulated cohort of 10,000 customer records generated from fitted class-conditional Gaussian mixtures. Four classifiers are evaluated with original predictors, cluster memberships, centroid distances and matched random-anchor distances. Five stratified folds each contain 8,000 training and 2,000 test observations; nested training subsets assess sample-size sensitivity without changing the test partition. Random forest achieves mean AUROC of 0.8500 with original predictors, 0.8528 with centroid distances and 0.8530 with random-anchor distances. Its original-feature AUROC increases from 0.8264 to 0.8500 across the training-size sweep. Three-means yields the highest sampled silhouette (0.5034), while DBSCAN exhibits pronounced sensitivity to neighborhood parameters. Exact finite-background SHAP and a weighted mask-based local surrogate reveal model-specific reliance on spending and purchase history. These findings distinguish descriptive cluster quality from predictive utility and demonstrate the importance of matched nonlinear controls. Conclusions are conditional on the fitted synthetic distribution and do not establish effectiveness in independently observed customers.

arXiv:2611.35357v1cs.LG

Data-Augmented State-Space Modelling for Fertiliser-Aware Decision Support in Precision Agricultural Automation

Accurate prediction of fertiliser-induced nitrous oxide (N2O) emissions is crucial for optimising sustainable fertiliser strategies that reduce greenhouse gas (GHG) emissions while maintaining crop yields. However, most existing studies struggle to effectively capture long-range temporal dependencies with limited agricultural data, and lack integration with agricultural management systems that combine N2O prediction with data management and precision fertilisation. In this work, we present DA-Mamba, a data augmentation-enhanced state space framework for single- and multi-step prediction of fertiliser-induced N2O emissions. The framework captures long-range temporal dynamics and high-order interactions among multivariate agro-environmental variables. On public fertiliser-induced N2O datasets, DA-Mamba achieves state-of-the-art results, improving single-step prediction accuracy by up to 12.0% (RMSE) and 25.8% (MAE) over six baselines, and multi-step forecasting by 2.0% (RMSE) and 4.8% (MAE) over three baselines. We further deploy DA-Mamba as a containerised microservice within ParallelFarm, a precision fertilisation and farm management system, which ingests weather, soil, and management data in real-time to generate optimised fertiliser plans and field-level N2O forecasts. Predictions are continuously refined through ongoing on-farm trials and automated retraining in a closed-loop workflow, with chamber-based measurements from field sites in the United Kingdom supporting external validation and dataset expansion.

arXiv:2611.35347v1cs.LG

Dynamic Duos for Reliable Test-Time Adaptation: Two Models are Better than One

Test-time adaptation (TTA) updates a model on unlabeled test data to improve accuracy under distribution shift. However, a major obstacle to deploying TTA is that it can also reduce accuracy, and most TTA methods give no signal of failure. We show how to adapt Asymmetric Duos, which pair a larger model with a smaller model, for more reliable adaptation with minimal overhead. We find that a Duo is already more robust than its members even without adaptation. Adapting both members of the Duo can raise accuracy further, but one model can collapse while the other stays accurate, and the Duo's fixed combination keeps trusting both. We propose Dynamic Duos, which replace the Duo's fixed combination with a gate that re-weights the members on every batch using a label-free reliability estimate. We extend gating to resetting by using the same estimate to restore a collapsed member to its source weights while its partner keeps adapting. Dynamic Duos are compatible with any TTA update rule. On ImageNet-C with Tent, Dynamic Duos help most where adaptation fails: they gain $5.5$ points over a fixed combination for a Duo whose small member collapses. Where adaptation succeeds, Independent Dynamic Duos stay within $0.2$ points of the fixed combination on every corruption. On continual ImageNet-C, Dynamic Duos that Reset outperform or match scheduled resets and other baselines on all settings we evaluate.

arXiv:2611.35333v1cs.CL

What Survives the Reset: Induction Circuits in Natural-Language Pre-Pretraining

Pre-pretraining on synthetic data, such as formal languages, has been reported to improve the data efficiency of subsequent language model training, but what transfers, and for how long, is poorly understood. We address this by dissecting one clear transfer early in pretraining: even when embeddings, LM head and tokenizer are reset between stages, natural-language pre-pretraining, and to a lesser degree part-of-speech sequences, gives a much larger advantage over random initialization than the formal language Shuffle-Dyck. We show that this advantage is carried by a transferred induction circuit. After 30M words of pretraining, grafting only this circuit into a random model recovers ~80% of the full gain, re-drawing it in the pre-pretrained model removes almost all of it, and a hand-built circuit with no language-specific information recovers all of it. The advantage fades as the baseline forms its own circuit, and by 300M words of pretraining the best Shuffle-Dyck donor is the better prior. Our results provide a clear case of transferred computation, show that pre-pretraining benefits can vanish with longer pretraining, and suggest that understanding the mechanisms pre-pretraining instills may be necessary to predict benefit type and duration.

arXiv:2611.35326v1stat.ML

Selective Inference for Shapley-Based Feature Selection in Nonlinear Regression Models: A Loss-Reduction Approach

Shapley-value-based approaches evaluate feature importance by aggregating contributions across different subsets of features, providing a flexible framework for capturing nonlinear relationships and feature interactions. However, features selected based on high importance scores are not necessarily statistically significant, and valid inference must account for the data-dependent selection process. In this paper, we propose a selective inference (SI) method for Shapley-based feature selection, focusing on the contributions of individual features to reducing regression loss. Our approach uses nonparametric basis-function regression to quantify nonlinear feature effects and aggregates their contributions across feature subsets using Shapley weights. By expressing the resulting importance scores as quadratic forms in the response, we characterize the feature-selection event through quadratic inequalities and derive exact conditional tests based on a truncated chi distribution. Specifically, we consider an $L_2$-regularized radial basis function (RBF) network with fixed basis functions. Under the standard SI setting of a fixed design and independent Gaussian noise with known variance, our method guarantees exact finite-sample control of the conditional type I error rate. We evaluate its empirical performance through synthetic simulations and applications to benchmark datasets.

arXiv:2611.35314v1cs.CV

ZenAttention: 4-bit Attention Directly on a Quantized KV Cache for Streaming Video Diffusion

In long-video generation, streaming video diffusion models spend up to 58% of denoising time attending to a key-value (KV) cache of past frames at every step. Keeping both the cache and the attention computation in 4-bit precision would save substantial memory and time, yet existing methods achieve only one of the two: FP4 attention requantizes a bf16 cache at every call and loses 4-28% of high-frequency latent detail in streaming rollouts, whereas 4-bit KV caches dequantize back to bf16 before attention. We trace the quality drop of 4-bit attention on a cache to two causes: FP4 attention error is systematically biased and fed back through the cache, amplifying single-chunk loss roughly 3x on Self-Forcing; and the newest cached frame requires more precise attention scores than older history. ZenAttention addresses each cause with one component -- closed-form bias corrections costing one fused multiply-add per score and an 8-bit tier for the newest frame -- and computes attention directly on a write-once NVFP4 KV cache. ZenAttention is fast: 628 effective TOPS on an RTX 5090 (1.45x SageAttention2++), 2.6-3.5x faster self-attention than bf16 (1.23-1.50x SageAttention2++, faster than 8-bit and 4-bit SageAttention), and up to 1.89x faster denoising than bf16 (1.84x over LongLive 2.0's 4-bit release); general: one kernel runs without retraining across eight streaming video and world models (1.3B-5B); small: KV-cache memory drops by two-thirds (33-35% of bf16); and faithful: latent detail stays within 0.7% of bf16 across all eight models (vs. 4-28% lost by SageAttention3), while VBench matches bf16 on Self-Forcing (946 prompts) and LongLive-2.0-5B (VBench-Long). Code: https://github.com/wrencanfly/ZenAttention

arXiv:2611.35308v1cs.AI

StrikeTwice: Reusable Graph Representations for Path Prediction

Graph-path learning predicts properties of ordered paths in shared graphs, with applications in network routing and biology. We advocate caching graph representations to amortize encoding costs across path queries. We introduce the Edge-Vertex Transformer (EVT), a graph encoder coupling vertex and pair states through configurable interactions, with direction-aware triangular attention to compose pairwise relations. For graph-path learning, we introduce StrikeTwice, which connects reusable graph encodings to path processors by ordered selection of vertex and pair states, preserving path order and repeated visits. Our main theoretical contribution is relative universality for EVT and for StrikeTwice with EVT at both stages. On compact domains, EVT uniformly approximates exactly the continuous vertex- and pair-level predictions determined by stable bidirectional two-dimensional folklore Weisfeiler-Leman (2-FWL) colors, and StrikeTwice exactly those for path occurrences and their ordered pairs determined by graph size, path length and the ordered table of pair colors along the path. For each target and accuracy, one parameter set serves all admissible graph and path sizes. For stable 2-FWL profiles, jointly reading each vertex's relations to all path positions strictly increases distinguishability over ordered selection, and marking path positions before graph encoding strictly increases it further. We then build a benchmarking suite combining controlled synthetic tasks, ThorAxe-Combo, a curated splicing benchmark, and temporal routing measurements from RIPE Atlas. Through ablations and real-data comparisons, we examine how the graph encoder, path processor and query interface affect predictive performance at finite capacity and training budget. We also measure computational costs and the savings from cache reuse, including the initial encoding cost.

arXiv:2611.35304v1cs.LG

Reward-Guided Survival Data Generation

The sharing of tabular survival data is restricted by privacy regulations. While synthetic data generation offers a promising alternative, existing methods frequently fail to simultaneously preserve long-term survival dynamics and patient privacy. We introduce SurvTabGen, a novel generative framework tailored specifically for survival data synthesis. Unlike prior multi-stage approaches, SurvTabGen jointly models covariates, event indicators, and survival time within a unified structurally aware generator. We first extract causal relationships among covariates via causal discovery. The generation then follows a dependency-aware sequence: event outcomes are conditioned on covariates, and survival times are conditioned on both covariates and events. Crucially, the generator is trained with a reinforcement learning-based survival-aware objective. By using the Integrated Absolute Difference (IAD) between real and synthetic survival curves as a reward signal, the model directly optimizes for macroscopic temporal fidelity. Extensive evaluations against 10 SOTA baselines across seven diverse real-world datasets demonstrate the superiority of SurvTabGen. Our results demonstrate that SurvTabGen provides a highly effective solution for generating high-fidelity, privacy-preserving synthetic cohorts that excel in survival preservation and data quality.

arXiv:2611.35298v1cs.LG

Learning Sparse Finite Element Operators on Graphs

Finite element methods (FEM) inherently induce graph structures that provide a natural interface to message passing. We show that the principal operations of FEM admit a common graph interpretation: local element interactions define messages, assembly becomes routing and aggregation, and sparse operator application and iterative solution can be realized through message passing on a mesh-induced graph. Building on this observation, we introduce GranFEM, a graph-native framework that supports both classical numerical FEM simulations and physics-consistent neural operator learning within the same representation. For static PDEs, we demonstrate that GranFEM is numerically equivalent to conventional FEM while reducing parts of the solution pipeline cost. More importantly, this graph-native representation enables a hybrid operator-learning formulation for time-dependent problems, in which FEM-derived discrete operators define the graph connectivity and physics-consistent baseline dynamics, while learning is restricted to local corrections of their edge interactions. In these settings, GranFEM achieves accurate long-horizon rollouts and strong in- and out-of-distribution accuracy across three time-dependent PDE benchmarks, whilst, as shown for the wave equation, the learned operator transfers without fine-tuning across fine mesh resolutions and domain transformations, attaining substantial inference speedups over numerical simulation at large scale.

arXiv:2611.35280v1cs.LG

Flat oceans: vast convex invariance at the end of training

Flatness plays a central role in neural network optimization, Bayesian inference and generalization, yet commonly used characterizations are numerically delicate and limited to local approximations. We discover and characterize flat oceans: large, high-dimensional convex regions in parameter space within which a network's outputs on a given dataset remain exactly or approximately constant. Our analysis starts from an exact decomposition of the non-linear terms in the network response into a polynomial capturing cross-layer interactions and an activation-dependent residual. Differently from prior work, we approach the question of functional invariance constructively. We design procedures to describe flat oceans around any parameter which run in polynomial-time and use simple linear algebra. Our construction is precise and works across several architectures and activation functions. Experiments show that large invariant spaces emerge and persist during training, with sampled directions remaining approximately invariant far beyond generic parameter directions.

arXiv:2611.35277v1cs.LG

Guiding LLMs at Inference Time via Bregman Tilting

We study inference-time guidance for large language models (LLMs) in iterative problem solving, where the LLM generates an attempt, receives text feedback from the environment, and tries again. While input prompting, which puts prior attempts and feedback in context, is a standard approach, it gives no control over how the LLM uses the feedback in its next attempt. Thus, we introduce Bregman tilting, which complements any input-prompting approach by directly modifying the LLM's next-token distribution. At each decoding step, it scores each token by its change in log-probability when the feedback is added to a prompt that contains the prior attempt, and updates the distribution via a mirror ascent step on the expected score, regularized by a Tsallis-entropy-based family of Bregman divergences indexed by $\alpha \in [0,1]$. At $\alpha = 1$ this recovers the exponential tilt of prior methods, while $\alpha < 1$ changes the divergence geometry to discount the influence of unlikely tokens under input prompting. The resulting update damps each token's tilt by its input-prompting likelihood, and it locally improves the true correctness probability whenever the score positively covaries with correctness under the input-prompting distribution sharpened to a lower temperature. Experiments on coding and math show that Bregman tilting outperforms input prompting in every setting, while $\alpha = 0$ performs best, beating the exponential tilt at $\alpha = 1$ and highlighting the value of our framework as a whole.

arXiv:2611.35265v1cs.LG

From Confidence Scores to Decision Consequences: A Decision-Theoretic Approach to Communicating Uncertainty for Atrial-Fibrillation Detection

While deep learning models have significant potential to improve treatment outcomes, the risk of poor performance on previously unseen data hinders their deployment in practical settings. Uncertainty quantification (UQ) in deep learning may provide an indication of the trustworthiness of model predictions. However, the practical utility of uncertainties for detecting outputs that may negatively impact clinical workflows is often unclear given common UQ evaluation frameworks do not convey the consequences of acting on a model prediction. We investigate decision-theoretic uncertainty as a mechanism for communicating the consequences of using a model's atrial fibrillation classification prediction. Rather than treating confidence scores as an indicator of accuracy, we express Venn-Abers recalibrated confidence scores as expected costs under a toy decision-cost model inspired by screening pathways for wearable devices. We then evaluate when this decision-theoretic representation supports prediction filtering, how its utility changes with asymmetric error costs, and whether its relationship with realised decision-cost remains reliable under synthetic noise-induced domain shift. Cost-aware filtering generally achieved lower realised decision cost at higher retain fractions when the costs of false-positive and false-negative decisions were highly asymmetric; however, its benefit varies with shift severity. This work supports a distinction between communicating predictive doubt from decision consequences.

arXiv:2611.35262v1cs.CV

UltraEdit: Text-Guided Editing with Adaptive Coupling

Making substantial structural changes while preserving subject identity and surrounding content remains challenging in text-guided editing. We analyze this trade-off through two aspects of flow-based editing: the editing start time, and the source reference path with its associated target update. Through theoretical analysis and controlled experiments, we examine how these choices affect structural editing and source preservation, and how their effects differ across regions. These findings motivate UltraEdit, a training-free, inversion-free editor combining spatially adaptive coupling with source anchoring. Inside an attention-selected region, we initialize the source and target inputs as pure noise and use an SDE reference path with a matching posterior update. Outside, we start later and use fresh reference noise with Euler updates. On SPRITE, our benchmark of 491 mostly structural edits, UltraEdit achieves 78.0% edit success, compared with 50.1% for FlowEdit. It also achieves 53.05% video editing accuracy on FiVE-Bench, exceeding the results reported by the benchmark for other editors. Beyond images and video, we present that the same update rule enables audio, speech, and 3D editing without retraining.

arXiv:2611.35253v1cs.LG

Understanding Sparse Autoencoder Dictionary Size for Unlearning and Mechanistic Interpretability in LLMs

Machine unlearning aims to remove targeted knowledge from language models while preserving retained capabilities. This paper studies how sparse autoencoder (SAE) design choices of dictionary size and layer placement affect SAE-guided unlearning and mechanistic interpretability. With task of ficticious unlearning for LLMs (TOFU) as our benchmark, we train SAEs across layers and dictionary sizes from 4K to 64K for GPT-2 Small, Medium, Large, and Llama 3.2 1B, then suppress features most specific to forget examples during inference. Results show that dictionary size has a scale-dependent effect: larger dictionaries substantially improve forget-retain selectivity in larger models, but provide little or no benefit for smaller models. This pattern aligns with interpretability measurements, where larger dictionaries reduce feature overlap in large models. Layer choice also affects unlearning, but no consistent cross-model pattern arises.

arXiv:2611.35248v1cs.LG

Post-Hoc Critic Comparison and Adaptive Routing via Split-Point Analysis for Offline Reinforcement Learning

Critics are central to policy extraction in offline reinforcement learning, especially in IQL-style methods, whose performance is sensitive to the implicit maximization behavior induced by the critic. In this work, we investigate the post-hoc diagnosis of a bank of pretrained critics. Building on the generalized IQL perspective that policy extraction is governed by the critic-induced advantage field, we introduce split-point analysis (SPA) to characterize critic residual structures in terms of selectivity and structural credibility. Using a lightweight neural module built on top of each critic, SPA provides diagnostic signals for critic comparison, ranking, and adaptive state-dependent routing. We further develop a multi-critic aggregation strategy based on this proxy, which integrates seamlessly with existing IQL-style pipelines. Experiments across diverse offline RL tasks show that the proposed proxy provides an effective critic-comparison signal and the aggregation improves downstream policy performance for IQL-style instantiations under a unified protocol.

arXiv:2611.35245v1cs.LG

Inference-Time Weak-to-Strong Transfer for Efficient Distillation

Weak-to-strong on-policy distillation can improve larger language models using guidance from smaller teachers, but identifying useful guidance often requires repeated student training. We study inference-time weak-to-strong transfer to evaluate candidate guidance through student responses before updating model parameters. Using the closed-form policy of a KL-regularized distillation objective, we apply weak-teacher guidance directly during generation with frozen models. Its performance follows the trends of trained Direct-OPD students across teacher checkpoints, enabling efficient comparison of supervision sources. We then develop inference-time-guided rejection fine-tuning (IT-RFT), which uses verified responses from this policy to train a student that subsequently runs on its own. Across math, code, and instruction following, IT-RFT achieves competitive or higher performance than OPD baselines while requiring up to $7.3\times$ fewer GPU-hours in mixed-domain distillation. The same weak teachers transfer across student scales, and their student-conditioned responses yield stronger fine-tuning results than responses generated directly by more capable models.