Deep Learning
SPIN: Shadow Predictive Indexer for Sparse Attention
Fu, Yao, Chang, Jiahan, Li, Yueying, Zhao, Ritchie, Long, Bryce, Kamani, Mohammad Mahdi, Jain, Samkit, Raman, Rahul, Safavi, Tara, Gupta, Shreya, Fashi, Parsa Ashrafi, Lee, Minseok, Demouth, Julien, Rouhani, Bita Darvish
Indexer-based sparse attention reduces the cost of core attention by passing only a fixed, small number of important tokens to it. However, the indexer must still score the entire KV cache at every decoding step. This scoring overhead becomes a major bottleneck as the context length grows. We propose SPIN (Shadow Predictive Indexer) to reduce this indexer overhead. SPIN uses lightweight, history-based prediction to identify important KV blocks, avoiding the need to score the full KV cache at every decoding step. SPIN keeps the score history fresh with random exploration and allocates the block budget across layers by their measured miss rates. SPIN treats KV blocks and speculative decoding as first-class design and implementation considerations. Across extensive evaluations on long-context and agentic benchmarks, SPIN achieves 30-40% sparsity while preserving task quality. With larger exploration shares and per-layer block budgets, SPIN keeps task quality on the especially difficult MRCRv2 benchmark close to baseline at 50-57% effective block sparsity. In end-to-end vLLM serving, SPIN improves output throughput by up to 13.9% and reduces median inter-token latency by up to 13.6%.
Component Replacement in LLM Agents: A Critical Scoping Review of Task Benefit and Attribution
Zhang, Shuyang, Chang, Jianshuo
Background: Choosing an agent controller and deciding which component to improve require different evidence. A replacement can change both the decision rule and what the agent can do after that decision. Objectives: We ask what existing replacement comparisons establish about task benefit and about attribution to local decision quality. Methods: This critical scoping review maps 348 studies and applies a five-step interpretation procedure to 94 comparison and diagnostic records from 42 studies, reading every inconsistent record against its source. Eight purposively selected cases illustrate the procedure. Results: The records comprise 33 executed task-outcome contrasts, 49 comparisons with restricted endpoints, and 12 diagnostic summaries. Only 14 task contrasts report contrast-level uncertainty, and the response policy is documented as retained in nine, all rule replacements from four studies; none of the 12 necessity-decision records executes a task contrast. Source checks distinguish whole-plan correctness, correct skill loading, and choice accuracy conditional on presentation from completed workflows. In Outcome Monitors, a count-matched timing placebo detects no timing effect (+0.88 points, 95% CI -4.39 to 6.14), so the source evidence attributes the detectable package gain to recovery content; detector selection at a fixed warning quota remains untested. Conclusions: The analysis separates evidence that can inform adoption from evidence that supports component development. Recovery and disruption, intervention timing, and downstream consumption organize three candidate mechanisms, and eight conditional reporting items specify the comparisons needed to distinguish the remaining explanations.
Matryoshka Hash Representations for Model-Aware Compact Semantic Retrieval
Retrieval-augmented generation (RAG) depends on dense retrieval: each document is stored as a learned vector, and queries are answered by nearest-neighbor search. Keeping one full-precision vector per document dominates index cost at corpus scale, so systems replace each vector with a short code of a few bytes (quantization). Standard quantizers such as product quantization (PQ) pick the code that best reconstructs the original vector, but reconstruction is only a proxy for retrieval: at a few bytes per document, a model-aware code trained on the retriever's ranking signal uses the budget better. A single code is even more useful if its short prefixes are each directly searchable, letting a deployment set its efficiency-quality operating point without re-encoding the corpus. But training all prefixes under one objective makes the early bits a compromise across budgets: short codes improve while the full-width code degrades. Binary codes sharpen the conflict, since a gradient step either flips a stored bit or leaves it unchanged. We introduce Matryoshka Hash Representations (MHR), a two-stage procedure that separates full-width training from prefix organization. MHR first learns a longer binary code, then freezes the model and trains zero-initialized residual code adaptors for directly searchable prefixes. Documents are stored at one bit per coordinate, queries keep continuous logits as in PQ, and search runs on FAISS FastScan. Trained on MS MARCO and zero-shot transferred to seven BEIR datasets, one MHR code reaches 0.502 NDCG@10 at 16 bytes and 0.556 at 32 bytes, against 0.404 and 0.524 for the best compact baselines; the gains hold across training seeds, on all 13 public BEIR datasets, and against off-the-shelf binary Matryoshka embeddings with stronger backbones. The same code also helps shortlist candidates for reranking and prune low-storage graph indexes such as LEANN.
Machine-Learned Compact Subspace Generation for Quantum Selected Configuration Interaction within Density Matrix Embedding Framework
Patra, Ashish Kumar, V., Anurag K. S., Bhat, Ruchika, P., Sai Shankar, Maitra, Rahul, G, Jaiganesh
Sample-based Quantum Diagonalization (SQD), an extension of Quantum Selected Configuration Interaction (QSCI), has emerged as a promising hybrid quantum-classical paradigm for computing molecular ground state energies. By leveraging quantum sampling instead of variational optimization, QSCI avoids barren plateaus and enables direct reconstruction of correlated electronic wavefunctions. However, existing configuration recovery techniques primarily enforce symmetry constraints without guaranteeing optimal selection of the most physically relevant configurations, often leading to unnecessarily large subspaces and increased classical diagonalization costs. In this work, we introduce a machine-learned compact subspace generation protocol based on Restricted Boltzmann Machines (RBMs), termed QSCI-RBM, and integrate it within the Density Matrix Embedding Theory (DMET) framework. All quantum sampling underlying this work was performed extensively on IBM Heron-generation hardware, spanning three distinct processors: IBMHeron R1 (ibm torino) and IBMHeron R2 (ibm fez) for two small-molecule validation systems, and IBMHeron R3 (ibm boston) for a third, larger small-molecule validation system as well as the full protein-ligand embedding calculations. The RBM is trained directly on these hardware-sampled configurations to learn the underlying probability distribution of dominant determinants, enabling the targeted generation of high-probability configurations without recourse to perturbative seeding. Validated first on three small-molecule benchmarks of increasing active-space size, we then apply this framework to the simulation of a protein-ligand complex involving the inhibitor Carmofur bound to the SARS-CoV-2 main protease (Mpro), fragmented into ten DMET impurities, with both DMET-QSCI-RBM and a DMET-SQD baseline reaching full chemical-potential self-consistency within the same four µ-iterations. At the converged chemical potential, DMET-QSCI-RBM achieves an energy within 0.05mHa of the DMET-FCI reference while accessing only 0.22% of the symmetry-preserving configuration space (or symmetry space) on average, an order-of-magnitude tighter accuracy than DMET-SQD (0.55mHa) achieved while accessing 33.0% of the subspace on average, leading to a 153-fold reduction in subspace size at converged chemical potentials. These findings establish that RBM-assisted subspace expansion produces significantly more compact, hardware-derived determinant spaces while preserving or exceeding the physical accuracy of standard configuration-recovery-based QSCI, thereby reducing classical computational overhead and enabling the scalable quantum embedding simulation of complex biological systems entirely on real quantum hardware.
GraphEvoResearcher: A Cost-Matched Mechanism Analysis of Explicit Reasoning Graphs in Training-Free Self-Reflection
Liu, Suxing, Min, Byungwon, Zheng, Zhijian, Wang, Jiahao
Training-free self-reflective protocols (generate, critique, revise) improve LLM reasoning but operate on a flat token stream: revisions cannot identify which prior step is unreliable, and stopping cannot exploit structural convergence. We introduce GraphEvoResearcher, a training-free protocol that lifts EvoResearcher's self-reflective meta-reward onto an explicit reasoning graph whose nodes are intermediate conclusions and whose typed edges encode support, contradict, and depends_on, with a graph-aware reward over correctness, efficiency, reflection, diversity, and structural signals. On deepseek-chat over GSM8K, MATH, and BBH (n=50 each), the protocol reaches 98%, 92%, and 82% in about two calls per question. Gains are significant against single-shot decoding on GSM8K and MATH and against flat reflection only on MATH; against cost-matched self-consistency the protocol is competitive, not dominant. A paired mechanism ablation over a shared response cache then shows what the graph contributes: holding model outputs fixed, neither the structural stop rule nor contradiction-driven repair changes which item is answered correctly, so the gains come from the forced second pass rather than from the structural reward. The ablation exposes the reason: the answer step never reads the edges it builds. We fix this with an edge-consulting arbitration step, which repairs one BBH item and fires on only 4% of questions, locating the binding constraint in how often construction declares conflicts. Testing the implied prediction on HotpotQA (n=100) falsifies it: the trigger rate does not rise with mul
Learning by Doing: Autonomously Compiling and Curating Agent Skills from Verified Traces
Chalef, Daniel, Evans, Peter, Paliychuk, Pavlo, Patel, Mehul, Rasmussen, Preston, Ryan, Jack
Memory systems for production LLM agents mostly store semantic memory (facts about users and domains) or episodic memory (earlier interactions). Research systems such as Trace2Skill, WikiSkill, and SkillRevise learn procedures from agent runs, package them as Skills, and evaluate them on benchmarks. We describe Zep Agent Skills, a production service that gives deployed agents this procedural memory. The service uses only verified attempts as evidence, cites the supporting events for each field of a Skill, and governs the admission and distribution of each Skill version. The service records each task attempt as a Trace with ordered events, an outcome, and a verification strength. A compiler with separate Reflector and Curator roles turns verified Traces into versioned Skills. Scans and admission gates control which candidates become active, and verified use outcomes change the search rank of each Skill. The Agent Skills format is an open standard that Anthropic originated and donated to the Agentic AI Foundation, so any host of the format can load a compiled Skill. Agents retrieve Skills through lexical search with progressive disclosure, over an API or MCP. We evaluate Zep Agent Skills on $τ^3$-bench banking, AppWorld, and EnterpriseOps-Gym. Skills compiled from the Traces of a teacher model increase the pass rate of three weaker executor models on the same tasks, at every reasoning effort, by 4.5 to 18.8 points. Most of the gain is on the tasks that the teacher solved. On ALFWorld, Skills compiled from the runs of a small model give a gain similar to or larger than the gain that prior work reports for continuous fine-tuning, with no training.
The Hardness of Estimating Cross-Entropy Risk for Language Models
Language models, once pretrained, are routinely assessed by the holdout method, which estimates their per-token cross-entropy risk---a quantity that may be finite or infinite. We prove possibility and impossibility theorems that characterize the hardness of this estimation problem. The estimand depends on two objects: the unknown data distribution $p$ and the distribution $q$ induced by the language model under study. Our ignorance of $p$ is empirical, whereas our ignorance of $q$, or at least of its tail, is mathematical; so the parameter space {\em should} range over pairs $(p,q)$---a product space---to fully capture our ignorance. {\em Negative results}: no estimator is pointwise consistent, even when the parameter space is restricted to full-support models and to data distributions whose expected text length is below a fixed bound; worse, every estimator fails on a dense set of pairs. {\em Positive results}: the holdout estimator becomes pointwise consistent when the models are further restricted to Transformers or, architecture-neutrally, to full-support models with a finite context window; and, where no such design is in place, it still consistently estimates the risk capped at any fixed threshold, which suffices for screening candidate models in practice. {\em Lesson}: designs such as the Transformer architecture and finite context windows, although adopted for computational or engineering reasons, pay a {\em statistical dividend}: they suffice to make pointwise consistency possible---a dividend visible only in how they turn a negative result into positive ones.
Reading the News: Adapting Large Language Models to Swedish Journalism Through Continued Pre-Training
Borggren, Lukas, Kunz, Jenny, Kuhlmann, Marco
Large language models are increasingly capable in general, but their utility can remain modest in niche or understudied areas. One approach to address this limitation is to specialise existing models through additional training on target-domain corpora. In this work, we investigate such continued pre-training for adapting large language models to Swedish journalism, using a high-quality dataset that we curate from millions of news articles. To evaluate the adaptation efficacy, we also construct a novel domain-specific benchmark that covers six editorial tasks. Through full and parameter-efficient fine-tuning across two model sizes, we find that continued pre-training yields benefits in the target domain, but only when paired with experience replay to mitigate forgetting. We observe consistent enhancements in the models' generation quality and factual knowledge, but not their proficiency in discriminative tasks. Exploring a training-free method to facilitate instruction following, we see further improvements, but exclusively for models trained with low-rank adaptation. Crucially, we demonstrate the importance of targeted evaluation in the adaptation process, as an existing Swedish benchmark largely fails to capture the models' in-domain performance gains.
Rubric-Based Assessment of Student Reports Using Small Language Models
Kafle, Sandesh Kumar, Vykopal, Jan, Švábenský, Valdemar
Language models can analyze and assess student texts using predefined rubrics and deliver structured feedback, reducing instructors' workload. However, existing solutions often rely on external services that are resource-intensive, costly, and raise privacy concerns, making them unsuitable for constrained environments. This study evaluates an automated assessment pipeline with three key aims: design for low-resource environments, privacy, and focus on a novel context in cybersecurity education. The pipeline integrates lightweight language models for textual evaluation and a vision-language model for image interpretation. Responses from 105 students were collected over two semesters of an undergraduate course during a cybersecurity exercise on incident response. Results across different hardware configurations show that small models in low-resource environments can achieve up to 97% accuracy in text-only and up to 94% in rich-text assessments. This rivals or even outperforms a large model while adding the benefits of locally hosted assessment. Our solution can help educators and practitioners who need grading assistance without replacing human oversight, especially in environments where cloud-based solutions may be impractical. This study contributes an open-source, locally deployable AI-assisted scoring pipeline that runs on affordable hardware and can be extended to various types of student reports in computing education. As a result, it makes automated assessment accessible to a broad range of educators and institutions.
Para-Gaussian Approximations of Random Deep Neural Networks
It is known that randomly initialized neural networks have Gaussian behaviour in the $n\to \infty$ limit. Unfortunately, this approximation can be poor for finite $n$ and gets worse as one goes deeper into the network. In this work, we develop a more accurate approximation that is \emph{slightly} non-Gaussian, which we call the para-Gaussian distribution and is constructed from the Hermite polynomials. We show how this para-Gaussian approximation can lead to a practical recursive method to approximate the deeper layers of the network. Finally, we apply this theory to linear neural networks (where things can be solved exactly) and to ReLU neural networks (where things can be approximated).