Advertising, recommendation, and commercial agents require reusable user understanding, yet implicit user behavior is noisy and fragmented. Lifelong user memory distills this behavior into traceable facts and incrementally aggregates them into structured memory objects. This is a long-horizon, multi-turn decision-making task. Conventional GRPO assigns a shared trajectory-level reward, obscuring individual turns' contributions, carrying over scores from inherited memory, and entangling quality with penalties. We propose KuaFu-Credit, a reward-penalty-decoupled framework for turn-level credit assignment through differencing. Each turn's advantage combines a trajectory-level baseline with separately normalized quality and penalty differences. Counterfactual differencing re-evaluates the previous turn's memory objects using the current turn's input, holding the evaluation input fixed to reduce contamination from inherited memory and noise from changing inputs. A penalty-weight curriculum counteracts collapse to empty memory output, while span credit further refines advantages at the memory-object level. Experiments on an SFT-tuned Qwen3.5-4B model ablate turn-level differencing, dual-axis decoupling, and the curriculum, and compare against ProxMO. The benefits depend strongly on task difficulty: KuaFu-Credit leads on moderately difficult tasks, while its curriculum variant overtakes it on longer tasks. Removing differencing or axis decoupling harms key-information retention on long trajectories. In downstream incremental evaluation, KuaFu-Credit improves over the SFT base model by 1.8 percentage points, rising to 3.0 points with the curriculum; removing axis decoupling instead reduces performance by 0.7 points. These results support structured credit assignment for long-horizon memory construction with dense rewards and no natural stage boundaries.
Machine Learning (ML) strategies have recently been integrated with Data Assimilation (DA) methods to jointly estimate the states and dynamics of a parametric State-Space Model (SSM) from a sequence of observations. In this context, Chen, Sanz-Alonso and Willet [SIAM Journal on Mathematics of Data Science, 9 (2022) pp. 801-833] propose the AD-EnKF framework based on the Ensemble Kalman Filter (EnKF) algorithm in DA with better empirical performance than the Expectation-Maximization (EM) algorithm. However, the EnKF algorithm relies on an inflation hyper-parameter which is sensitive and computationally expensive to tune in practice. We extend the AD-EnKF objective function to jointly estimate the parameters of the dynamical system and the inflation. We first investigate the asymptotic behavior of the objective function as the ensemble size of EnKF tends to infinity using a mean-field approach in Linear-Gaussian systems, and then analyze its global optimal solutions to show the possibility of estimating the states accurately in a simplified setting. Under small ensemble size, we numerically show that our approach can achieve comparable or better state estimation accuracy than the AD-EnKF with hand-tuned inflation in both high-dimensional Linear-Gaussian and non-linear Lorenz 96 systems, while significantly reducing the computational time. Finally, we conduct additional numerical experiments to complement the theoretical results in asymptotic regimes. These results indicate the potential of including the inflation estimation in the data-driven AD-EnKF framework to improve state estimation for larger-scale systems in DA.
Time series segmentation for identifying persistent dynamical regimes is a fundamental problem in complex dynamical systems and nonequilibrium statistical physics. However, existing approaches typically rely on strong structural or distributional assumptions, including prescribed dynamical models, parametric forms of state distributions, and manually prescribed low-dimensional summary statistics for segment separation. These requirements limit their applicability in real-world scenarios involving high-dimensional and non-Gaussian data. To address these challenges, we develop a flow matching-based framework for modeling and segmenting non-stationary and non-Gaussian time series. The proposed model consists of two components. The first is a collection of regime-specific continuous flow models, which provide accurate and scalable representations of state distributions across different regimes without requiring predefined distribution families or manually prescribed statistical summaries. The second is a neural network-based soft assignment function, which, together with the proposed temporal smoothing and balance regularization terms, enables reliable segmentation for time series with persistent structures. The effectiveness and robustness of the proposed method are demonstrated on three benchmarks, including two synthetic non-stationary datasets and a molecular system.
Most explainability methods for molecular property prediction target predictions rather than uncertainty. Techniques for localizing predictive uncertainty to specific substructures remain comparatively underdeveloped, limiting our ability to identify which substructures drive uncertainty and which chemical patterns the model has not learned reliably. We present Molecular Uncertainty Gradients (MUG), a method that distributes a model's epistemic uncertainty, estimated as the variance across ensemble predictions, over the atoms of a molecule. By differentiating this variance with respect to intermediate atom representations, MUG computes signed atom-level contributions that sum exactly to the molecule's predictive variance, up to a fixed constant. These attributions can be aggregated over any group of atoms using a single backward pass. MUG requires no retraining and works with the dropout-based uncertainty estimates already standard in practice. We show that MUG localizes uncertainty to molecular substructures absent from the training data. Across six molecular property prediction benchmarks, MUG is as faithful under occlusion as the best attribution we tested, and its decomposition holds. Crucially, masking the features of its highest-ranked atoms reduces model uncertainty substantially more than masking other fragments. We further demonstrate that MUG's fragment-level uncertainty attributions can guide iterative library design toward compounds with favorable docking scores. Together, these results establish MUG as a complete and faithful approach to localizing predictive uncertainty, with practical applications in uncertainty-guided molecular design.
Due to a growing range of applications, long-context processing and long-form generation with AI are becoming increasingly common, particularly with the transition to agentic workloads. Agents are long-lived, continuously produce and consume streams of tokens, and base their subsequent responses on their entire interaction history; multi-agent systems can further amplify this token volume. Models capable of processing long contexts are therefore increasingly necessary, but training with larger context windows is expensive, so most models are trained with windows of 32K to 256K tokens. Application demands can extend to millions of tokens, which creates a need for training-free context extension. Training-free context extension presents two key challenges: (1) out-of-distribution context embeddings, where unseen context lengths can shift attention distributions away from those seen during training, and (2) computational complexity, since attention's quadratic cost makes processing millions of tokens expensive. We propose PickPack, which addresses both challenges with two composable operators in a single FlashAttention pass: Pack maps every query-key pair to a relative position inside the trained window, and Pick uses the pre-softmax logits to dynamically decide which key blocks to skip. At 50% sparsity, PickPack is more accurate than Pack alone on seven of eight Qwen3 model sizes and context lengths, and up to 1.2x faster. Against the recipes that released Qwen2.5, Qwen3.5, and Qwen3.8 models ship with, it is 1.0-11.0 points more accurate and up to 1.2x faster from 128K to one million tokens, and 11.6 points more accurate at four million tokens, 16x the trained window of Qwen3.5-9B.
Multimodal large language models (MLLMs) are increasingly fine-tuned for domain-specific applications, but such customization makes it challenging to trace the origin and verify the ownership of derivative models. Existing copyright tracking methods typically optimize triggers by adversarially updating the entire model, without considering the heterogeneous functional roles of different layers and parameters. Such global optimization may introduce perturbations unrelated to stable response mechanisms, weakening the association between triggers and transferable model behaviors. We observe that trigger inheritance is closely related to the functional components responsible for ownership-related responses, which provide more stable carriers for provenance information across derivative models. Based on this observation, we propose OriginTrace, a hierarchical trigger learning framework for provenance tracking of derivative MLLMs. OriginTrace first establishes general response awareness at the layer level by measuring each layer's consistent contribution to diverse multimodal responses. It then establishes trigger response awareness at the parameter level through a trigger response-aware score, localizing parameters that respond strongly to trigger inputs within the selected layers. Adversarial trigger optimization is restricted to this hierarchical response-aware subset, encouraging the generated triggers to remain robust to behaviorally relevant model changes after adaptation.Extensive experiments across diverse MLLM architectures and specialized adaptations demonstrate that OriginTrace achieves robust black-box provenance tracking while reducing false activations on unrelated models. Code is at https://github.com/kunzhan/OriginTrace
Classifier accuracy prediction (CAP) is the task of estimating the accuracy that a trained classifier will have on a set of datapoints characterized by dataset shift, i.e., data sampled from a distribution different from the distribution from where the training data originated. We here propose two families of algorithms for CAP under prior probability shift, an important type of dataset shift characteristic of anti-causal learning. The first family uses surrogate quantifiers to guide data resampling, while the second adopts a Bayesian formulation. Importantly, these methods do not merely return a point estimate (i.e., the estimated accuracy of the classifier on the unlabelled data), but also return a measure of their uncertainty in this estimate. We examine the sources of uncertainty represented by each proposed method and discuss the flexibility offered by Bayesian modelling. Experiments on 15 publicly available datasets show that our methods are competitive with strong CAP baselines, with one of our Bayesian variants frequently achieving the best balance between point-estimation accuracy and interval quality.
We study the novel problem of preventing identity leakage of any individual in Multimodal Large Language Models (MLLMs). To enable standardized evaluation in this new setting, we introduce TUTUS, a multimodal benchmark that assesses anonymization along three complementary desiderata: identity suppression, utility preservation, and robustness to malicious inputs. Using TUTUS, we conduct a systematic evaluation of both training-free and post-training alignment strategies for identity anonymization across six MLLMs. We find that popular training-free methods, e.g., face blurring or prompt engineering, are brittle and easily bypassed, despite appearing effective under isolated metrics. We then investigate post-training using the training split of TUTUS: a preference dataset used to align models toward identity anonymization. Extensive analyses on various alignment strategies applied to different components of the model reveal that (i) stronger instruction-following models are more vulnerable to simple prompt-driven jailbreaks; (ii) identity suppression effectiveness and robustness depend critically on where alignment is applied, with vision-encoder tuning providing the best performance trade-offs; (iii) direct preference optimization exhibits smaller average seen-unseen performance gaps than unlearning objectives in the evaluated celebrity setting. Code, artifacts, and data available at https://simonecaldarella.github.io/who-is-in-the-image.
Selecting a probabilistic classifier is difficult when evaluation labels are costly and related observations must be assessed together. We introduce Adaptive Hierarchical Robust Model Selection (A-HRMS), which selects from a fixed model library using Brier risk. It treats related observations as indivisible groups, allows unequal weights within a finite evaluation set, and protects against prespecified changes in the relative importance of biological contexts. Time-uniform confidence bounds support three outputs: all retained models, one fixed model, or a randomized choice among models. Randomization draws one model rather than averaging predictions, and its guarantee controls expected robust regret. At the retrospective tolerance $\epsilon=.05$, where $\epsilon$ is the maximum allowed worst-case excess Brier risk relative to the best library candidate, randomized output reduced mean evaluation from 82.6% to 79.3% of roots in a transposable-element frame and from 80.8% to 75.2% and 84.1% to 79.2% of wells in two RxRx1 replays, with savings in every tested order. The randomized strategy did not consistently improve held-out risk, and simpler acquisition rules were sometimes cheaper. A-HRMS therefore lowers certification cost by changing the permitted output, rather than by universally improving acquisition or prediction.
Cell perturbation response prediction asks how gene expression changes after a genetic or chemical intervention. LLM-based methods cast this task as conditional gene-sequence generation, but destructive transcriptomic profiling yields independently sampled control and perturbed populations without observed cell-level counterfactual pairs. Fixing one randomly sampled, condition-matched response for each control turns an arbitrary correspondence into token-level supervision, introducing pairing bias. We introduce PerturbAlign, a multi-reference learning framework for LLM-based gene-sequence training on unpaired perturbation data. Dynamic Matching adaptively updates supervised fine-tuning targets through confidence-gated balanced matching, while a multi-reference reward evaluates each Group Relative Policy Optimization (GRPO) rollout against multiple condition-matched references. Across sci-Plex3 and LINCS L1000, PerturbAlign improves Kendall correlation by 8.7 percentage points and reduces MMD by 0.074 on average across out-of-distribution (OOD) evaluations relative to Random-pairing SFT. Its multi-reference reward also consistently outperforms its single-reference counterpart. By preserving response multiplicity rather than fixing arbitrary cell-level pairs, PerturbAlign aligns LLM supervision with the set-valued structure of perturbation data.
Geometric graph neural networks are widely applied to molecular systems, typically relying on local neighborhoods and a common message passing scheme across all distances. However, the distinct physical nature of short-range many-body effects and long-range behavior suggests using separate, distance-dependent representations. We propose a hybrid message passing framework combining equivariant local updates with scalar longer-range interactions. We evaluate the approach on molecular energy and force prediction tasks, analyzing the trade-off between accuracy and computational cost across cutoff configurations. Our results show that combining equivariant and scalar updates can achieve accuracy comparable to fully equivariant models while substantially reducing computational cost.
As large language models (LLMs) scale to longer context windows, the quadratic complexity of self-attention creates a severe latency bottleneck during the inference prefill phase. Existing sparse attention methods often struggle to balance computational efficiency with inference accuracy. To address this, we propose Dual-Band Attention (DBA), a training-free, dynamic sparse attention mechanism. DBA employs a lightweight estimator utilizing dual-band sampling and tensor folding to efficiently identify high-importance attention blocks. Furthermore, it introduces a Compact Block Mask (CBM) that reduces block mask storage and guides a hardware-aligned block sparse kernel to skip computation and memory accesses for unselected blocks. Evaluations using Llama-3.1-8B-Instruct demonstrate that DBA achieves a 2.07x whole-model prefill speedup over FlashAttention 2 on an NVIDIA A100 GPU and a 1.82x speedup over FlashAttention 3 on an NVIDIA H20 GPU, both at a context length of 128K tokens. Compared with dense attention, DBA scores 0.5 points lower on RULER on average across six input lengths and 0.23 points higher on LongBench. Additionally, in HunyuanVideo experiments, DBA achieves frame-level similarity scores comparable to those of XAttention, using dense attention outputs as the reference. Overall, DBA provides a practical solution for accelerating long-context LLM prefill.
In-the-wild multimodal depression detection from vlogs is challenged by unreliable and incompatible evidence across modalities. Existing fusion methods typically follow a Fusion-First paradigm, implicitly assuming that available modalities are suitable for direct fusion, which can amplify noisy signals or conflicting cues. Motivated by the multisensory inference mechanism in cognitive neuroscience, which suggests that the brain assesses individual sensory reliability and cross-modal consistency before integration, we propose VeriFuse, a Verify-Before-Fuse framework that evaluates whether cross-modal evidence supports integration before fusion. VeriFuse models modality-specific distributions via Gaussian Evidence Estimation and assesses their consistency through Cross-Modal Compatibility Verification. Based on the verified evidence relation, Adaptive Fusion softly routes between a consensus candidate and a reliability-weighted fallback candidate. Finally, Fusion-State-Aware Prediction leverages the verified fusion state to detect depression. Extensive experiments on D-Vlog and LMVD demonstrate that VeriFuse consistently outperforms state-of-the-art methods, with comprehensive analyses validating the effectiveness and robustness of the proposed Verify-Before-Fuse framework.
Modern machine learning models for financial time series forecasting, e.g. DeepLOB, leverage ad hoc architectures, characterized by strong inductive biases, to achieve state-of-the-art performance. We show that the architectural tailoring can be avoided, with minimal performance losses, by deploying appropriate NAS (Neural Architecture Search) techniques on LSTM (Long Short-Term Memory) models. The result of this novel paradigm is a machine learning framework capable of working on diverse kinds of financial time series data (e.g. top-of-the-book data, full LOB, etc.) without any adjustments. Furthermore, our benchmarking efforts employ the lens of classification-with-rejection, that to the best of the authors' knowledge has not been used before in this context, despite its relevance for it.
Estimating an individual's clinical course requires inferring unobserved findings from incomplete records, forecasting future states, and revising predictions as new results arrive. Language models can unify clinical histories and laboratory panels in one sequence, but calibrating multivariate uncertainty and updating coupled predictions remain central challenges. Here we introduce Poetics, a unified training framework in which a single generative patient model completes missing observations, forecasts subsequent outcomes, and updates predictions as new evidence arrives. Our Trajectory-to-Distribution Training procedure proceeds in three stages: State Pretraining (S-PT) on longitudinal records, scenario output alignment, and outcome-based distribution optimization via group-relative policy optimization (GRPO). In held-out UK Biobank participants, the S-PT checkpoint achieved a 365-day macro AUROC of 0.8315 across diagnosis and medication records, compared with 0.8156 for histogram gradient boosting. On an external MIMIC-IV cohort of 512 patients, the final Poetics model reduced same-visit panel completion CRPS by 0.0570 relative to the scenario-aligned S-PT reference (95% CI, 0.0348 to 0.0805), with 90% prediction interval empirical coverage of 43.78% versus 44.75% for the reference. These results show that a single generative model can unify clinical forecasting, multivariate laboratory estimation, and dynamic evidence updating across care settings.
Overlapping community detection allows a node to belong to several communities, and the additional memberships are expected to convey information that a partition cannot. Whether they do has seldom been tested, since overlapping methods have mostly been compared with one another. This paper compares seven overlapping methods with a partition baseline, Leiden, on the same directed graphs under one protocol for selecting settings, with accuracy measured chiefly by the Omega index. On planted graphs of 1,000 nodes and about 14 arcs per node, only OSLOM outscored the baseline on average over the graphs with planted overlap at low to moderate mixing. Once collapsed to one membership per node, its covers scored below the baseline on the LFR benchmark, so its advantage came entirely from the memberships it added. Yet OSLOM recovered fewer than half of the planted second memberships, and what set its covers apart from the others' was the precision of the overlap they reported, not its amount. The advantage persisted under a second generator but disappeared as overlapping nodes were given four and five memberships. With a third as many arcs per node, the baseline outscored all seven methods. At 50,000 nodes, ego-splitting overtook OSLOM, which was also the slowest method there. On two real directed networks scored against node metadata, the baseline again led under the Omega index. Edge weights lowered the mean accuracy of every method run with and without them, and OSLOM detected less overlap when it read them, even when every edge was given unit weight. An overlapping method should therefore be compared with a partition baseline under the same protocol, and preferred on grounds of accuracy only where it outscores that baseline.
KV cache compression reduces the memory footprint and memory-access overhead of long-context LLM inference while often preserving aggregate inference quality. Most existing methods rely on hand-crafted heuristics, such as accumulated attention scores or fixed positional rules, to estimate token importance and evict low-value tokens. However, our empirical analysis shows that token-level retention decisions can disrupt the continuity of critical evidence, leaving low-redundancy spans incomplete and often fragmented, coinciding with poor exact-recall performance. We refer to this structured failure mode as retention fragmentation and construct Flag-in-Haystack, a diagnostic benchmark over contiguous low-redundancy spans, including UUIDs and Base64 strings, to measure exact recovery after cache eviction. We propose AlignKV, which selects contiguous blocks as the primary retention unit and distills FullKV future-use attention into a lightweight 75,778-parameter block-aligned scorer coupled with fixed-budget structured selection. On Llama-3.1-8B-Instruct at $B = 512$, AlignKV attains 90.6% (116/128) exact span recovery, approaching FullKV's 95.3% (122/128) and far exceeding our matched heuristic control's 14.8% (19/128; SnapKV: 9.4%, 12/128). It also reaches 84.89 on the confirmatory RULER-Test split (vs. 72.22--76.03) and 47.70 on LongBench (vs. 47.67--47.82) against the three prespecified compressed comparators, with no detectable aggregate LongBench difference among the four methods. Ablations show that prompt negative log-likelihood is especially useful to the learned scorer for high-entropy strings such as UUIDs. Distilling future attention instead of using span labels gives its clearest benefit on the broader RULER task mix, not on Flag exact recovery.
Trace reconstruction is a central challenge in DNA data storage, where the original DNA strand is recovered from multiple noisy reads affected by insertions, deletions, and substitutions. Existing methods often rely on restrictive error models, sequential decoding, or locally defined consensus operations, limiting their ability to reconstruct sequences under complex and heterogeneous noise. In this work, we introduce DART, a diffusion and autoregressive framework for DNA trace reconstruction. Our approach represents reconstruction as the reversal of a discrete corruption process conditioned on an unordered set of noisy reads. A diffusion-based component iteratively constructs a global consensus representation, while an autoregressive refinement module models local dependencies and resolves remaining sequence ambiguities. This combination enables the model to jointly exploit evidence across reads while preserving dependencies along the reconstructed strand. We evaluate DART on synthetic sequencing channels and real DNA storage datasets across a range of read coverages and error rates. The results show that DART consistently achieves lower reconstruction error than existing alignment-based and deep-learning baselines, with particularly strong improvements under low-coverage and high-error conditions. These findings demonstrate that combining discrete diffusion with autoregressive refinement provides an effective and robust approach to trace reconstruction for DNA data storage.
The classification of 3D objects remains a foundational challenge in computer vision, traditionally approached through single-modality representations such as native point clouds or view-based 2D projections. However, single-modality approaches possess inherent structural limitations. 3D-only methods, preserve precise spatial geometry, but often struggle with sparse data and high computational cost. Conversely, 2D-only approaches provide rich visual textures and work well with standard neural networks, but lack global depth perception and are highly sensitive to self-occlusion. This report presents a hybrid deep learning framework designed to mitigate these drawbacks by integrating both spatial and visual streams. Our architecture employs a dual-stream design: a PointNet-based branch to extract global spatial features from raw point sets and a Multi-view Convolutional Neural Network (MVCNN) branch, utilizing a pretrained ResNet-18 backbone, to capture visual silhouettes from twelve canonical viewpoints. These features are unified through a late fusion mechanism, creating a comprehensive 1536-dimensional descriptor that represents both the physical form and visual appearance of an object. Evaluated on the ModelNet40 benchmark, the proposed hybrid model achieves a Top-1 Accuracy of 91.05%, demonstrating a significant improvement over single-modality baselines. Further more, the model exhibits strong retrieval stability, evidenced by a mean Average Precision (mAP) of 91.78% that remains consistent across structurally diverse categories. Our results suggest that the fusion of spatial and visual features provides a more resilient representation for 3D understanding, effectively resolving the ambiguities that typically compromise single-modality systems.
Instrument segmentation models, central to computer-assisted surgery, are trained on pixel-level masks drawn by experts. Self-training alleviates this burden by pseudo-labeling video with a teacher trained on these masks and training a student on the enlarged dataset. Such pipelines are typically judged against the teacher, a comparison that grants the student far more training. On the EndoVis-2018 clasper, longer training alone accounts for 71% of one student's advantage, which we call a phantom gain. We introduce the compute-matched control, a supervised model trained on the same masks for as long as teacher and student combined, and pair it with each student over ten seeds with a $\pm$0.02 tie margin in mask average precision (AP). With 150 expert masks, supervised training saturates, as doubling it changes AP by less than 0.01 on Robust-MIS and the clasper. A student given equal compute and 1,200 teacher-labeled frames gains 0.0444 AP on Robust-MIS and 0.0259 on the clasper over its control, and at least 0.0226 and 0.0235 over four stronger controls. A two-by-two design shows that longer training improves a student equivalent to its control more efficiently than new video. The Robust-MIS gains persist on new patients and an unseen surgery type in the official test release. Building on these findings, we introduce PhantomGate, a decision rule that tells a team whether to deploy, retry, keep the teacher or add seeds. With 50 expert masks, PhantomGate holds back a student that underperforms its control in every seed, which the teacher comparison misses.