Goto

Collaborating Authors

 Education


Offline Cross-Tokenizer Distillation on a UTF-8 Byte Clock at Zero Teacher VRAM

arXiv.org Artificial Intelligence

Cross-tokenizer knowledge distillation (CTKD) transfers knowledge across incompatible vocabularies, yet logit methods require online teacher GPU memory or large cached logit tables. We study offline hidden-state distillation on a UTF-8 byte clock at 0.00 GiB teacher VRAM and zero inference overhead, comparing discrete boundary alignment (StepAlign, $H=0$) against causal Laplace-Fourier wave smoothing (WaveDistill, $H>0$) across 98 controlled runs plus a 32-byte zero-overlap test split. Distilling three quantized teachers (Llama-3.2-3B, Gemma-4-E4B, DeepSeek-R1-Qwen-14B) into 86.7M GPT-2 (50K) and 54.7M byte-level (260) students yields three findings. First, centered top-64 PCA modes in group-32 INT4 (110 B/tok; 7.05x smaller than INT8-256, 1.76x smaller than uncompressed Top-32 logits) lower 3-seed GPT-2 perplexity from $150.06 \pm 1.08$ (CE-only) to $134.76 \pm 0.40$ (Welch $p = 5.05 \times 10^{-4}$; fresh test $150.42 \to 134.49$, BPB Welch $p = 3.68 \times 10^{-4}$), beating offline ULD, tuned BLD, regularized CE-only, and five non-pretrained controls. Across 3 seeds, a same-tokenizer GPT-2-124M teacher ($137.11 \pm 0.66$) recovers 84.6% of this gain (87%-89% within-batch), while cross-tokenizer Llama-3.2-3B adds $-2.35$ PPL (Welch $p = 0.010$, despite tokenizer mismatch and lower retained PCA variance). Second, within-batch factorization isolates PCA truncation ($256 \to 64$, $-3.09$ PPL) as the accuracy driver while INT4 is lossless ($p = 0.52$). Third, an exact intra-word phase identity and DC mean-cone analysis explain why simpler discrete StepAlign matches or beats continuous wave smoothing without custom CUDA kernels. Code/logs: https://github.com/pavankomireddy/wavedistill


MoTA: Moment-Tilted Attention for Looped Transformers

arXiv.org Artificial Intelligence

Looped Transformers increase the computational depth of language models by repeatedly applying shared layers. However, standard looped Transformers rely on hidden-state updates to guide subsequent attention reads, leaving the next retrieval goal implicit. In this paper, we introduce Moment-Tilted Attention (MoTA), which uses the same attention weights to retrieve content and write a compact target for the next loop. To guide the next read, MoTA uses soft moment matching to move the attention-weighted mean of learned source features toward the target while preserving proximity to the original attention distribution. The resulting update uses source covariance to determine the correction direction and the range of projected source scores to set a closed-form step size. We further establish a descent guarantee for the dual objective. Experiments across four model sizes demonstrate consistent improvements in aggregate pretraining performance over standard looped Transformers. The gains extend to mathematical knowledge after lightweight adaptation, with further improvements in mathematical problem solving, scientific question answering, and analytical reasoning at larger model scales after mathematical midtraining.


CSBench: Evaluating Project-Level System Construction in Computer Science

arXiv.org Artificial Intelligence

While LLM-based coding agents have advanced to repository-scale engineering, existing benchmarks predominantly focus on software maintenance, overlooking the foundational capability of system construction. We introduce CSBench, a benchmark evaluating project-level Spec-to-Code implementation across core computer science domains (e.g., OS, compilers, databases). CSBench features 100 expert-curated tasks from top-tier university assignments within containerized environments. Evaluating 9 state-of-the-art LLMs reveals a stark performance disparity: even the strongest model, GPT-5.2, achieves 94.44% on Machine Learning tasks but only 34.78% on the broad System category. Our analysis highlights persistent challenges in systemic reasoning and construction knowledge. Agents often stop before completing all requirements or fail to use execution feedback to identify and fix underlying problems. These findings motivate CSBench as a testbed for evaluating and improving system construction capabilities, advancing autonomous agents toward deep computer science mastery.


MobileLLM-R2: Advancing On-Device Language Models from Reasoning to Agents

arXiv.org Artificial Intelligence

Recent advances in agentic models are expanding the role of language models from reasoning and responding to interacting with applications and acting on behalf of users. Bringing this transition to on-device intelligence requires developing reliable agentic capabilities within stringent memory and computational budgets. Existing work, however, either develops proprietary construction recipes for large-scale models or optimizes post-training in isolation, leaving the end-to-end training of small agentic models poorly understood. We show that downstream agentic performance is strongly conditioned on the capabilities and behavioral support established during pre-training; post-training sharpens what the base model can already express, but does not reliably recover what it cannot. We recursively optimize pre-training and mid-training data mixtures through influence-based selection and performance feedback, introducing synthetic cross-domain bridge data to mitigate capability competition. We identify sampling lift as an early indicator of post-training potential and develop a readiness predictor to anticipate diminishing returns from pre-training. During post-training, joint supervision accommodates the distinct reasoning patterns of single-turn deliberation and multi-turn agentic interaction. We further identify structural and trajectory distribution alignment during SFT as critical to effective on-policy distillation, motivating chat protocol adaptation and teacher rewriting from both initial prompts and student-induced intermediate states. Together, these findings establish an end-to-end training recipe for compact agentic models. Trained from scratch with only 1.2T pre-training tokens, our 2.5B model achieves the best performance on AIME'24, LiveCodeBench, and other tasks among evaluated models up to 7.3B parameters, with a substantial 15.3-percentage-point lead on SWE-Bench Verified.


Rethinking On-Policy Distillation in Diffusion Models: Phenomenology and Insights

arXiv.org Artificial Intelligence

On-policy distillation combines diffusion specialists into one student by supervising the student's own denoising trajectories. Yet its transfer mechanisms remain unclear. We study on-policy distillation across text-to-image generation, image editing, and multi-image composition through controlled comparisons and trajectory interventions. Transfer is selective, and neither teacher scores nor teacher resemblance consistently tracks student task gains. Sparse methods lead at equal training time whereas dense methods lead at equal condition exposure, with query count per trajectory explaining 83.0% of the equal-data lead. Early high-noise steps capture 80.2% of the final edit direction in image editing, whereas 5.75x wider late solver steps favor low-noise supervision in generation. Narrow single-route reinforcement learning without cross-route regularization increases teacher target scores by up to 28.2% yet reduces student held-out editing by up to 42.5%, whereas joint reinforcement learning preserves a broader task profile with online rewards. Grounded in these mechanisms, we propose PrefixOPD, an efficient on-policy distillation method that aligns supervision with task-specific trajectory dynamics. PrefixOPD pairs low-noise generation queries with step-1 prefix editing rollouts and initialization-referenced target extrapolation, skipping 81.8% of editing forwards while preserving the full-rollout stop-gradient update. Over full-rollout distillation, PrefixOPD reduces active training time by 44.5% while improving text-to-image generation by 3.7%, overall eight-route editing by 9.3%, and the three-route editing diagnostic suite by 15.5%, and outperforms equal-compute baselines by up to 17.4% across backbones and mixtures, surpassing equal-data extrapolation at nearly half the cost.


A Consistency Principle for Federated Learning

arXiv.org Artificial Intelligence

Two clients can start from the same model and still contribute updates that, once averaged, point away from a stationary point of the global loss. This observation motivates a broader view of consistency in federated learning. We call a local computation consistent with a specified global operation to the extent that it preserves the update, objective or constraint that the operation is meant to implement. Drawing on the related literature, we use this principle to examine client trajectories, adaptive directions, sharpness perturbations, primal--dual updates and decentralized mixing. A common notation distinguishes bias in an aggregated direction from sampling variance, and relates each case to the stationarity, stability or margin bound available for it. A controlled quadratic experiment isolates the bias introduced by local scaling. Published vision experiments illustrate both improvements and settings in which a smaller discrepancy accompanies lower accuracy. These examples suggest which client states to retain, which deviations to measure and how to weigh a correction against its communication cost.


Learning Programs as Neural Networks for Generalization and Reuse

arXiv.org Artificial Intelligence

We investigate knowledge acquisition through human-like logical reasoning by learning executable computations from examples and retaining them for later use. Generalization is sought through acquiring a program that expresses the rule behind the examples. Neural NP4G represents programs as networks of computational nodes and directed connections, jointly learns their structure and numerical parameters, and accumulates acquired programs as reusable automatically defined functions (ADFs). We assume access to a detector that checks candidate behavior and guides acceptance or correction. We evaluate this approach on relational reasoning tasks with known specifications, where faithful logical extraction and equivalence checking prove that each accepted circuit implements its target on every input in the declared domain under real arithmetic. In a 160-run detector comparison, feeding the exact detectors' counterexamples back into training increased verified acquisition on both edge reversal and edge symmetrization. In the main experiment, selecting the first program verified by the equivalence oracle among ten seeds per task yielded one library covering all fourteen tasks. With the selected dependencies held fixed for downstream tasks, acquisition succeeded in 74/100 primary and 22/40 auxiliary attempts. The learned circuit for reachability within six edges composed two previously acquired relations, for paths of at most two and at most four edges, in the opposite order from the target formula. We proved that this circuit computes the target reachability relation on every finite graph in the declared domain.


Expert-Guided Bayesian Optimization for Sustainable Protein Design

arXiv.org Artificial Intelligence

Agentic laboratories give LLM agents control of experiments, alongside scientific tools such as optimizers and code execution. How should such systems choose the next experiment? We study whether an LLM agent should propose experiments directly, delegate them to Bayesian optimization (BO), or select the design space itself and delegate refinement. We formalize the third option as Expert-Guided Bayesian Optimization (EGBO), in which an expert (e.g., an LLM or a human) selects a low-dimensional subspace for BO and may adaptively expand it over time. We decompose EGBO's suboptimality into a selection gap and an optimization gap, and characterize the coverage-dimension tradeoff governing when expert guidance helps. To support in silico prototyping before costly laboratory work, we introduce FormulateBench, a suite of 24 sustainable protein formulation tasks. In batched experiments that mirror our laboratory deployment, EGBO outperforms conventional BO. The strongest LLMs match EGBO without noise but underperform it under noise, even when told the noise level. When deployed to optimize two plant-based dairy products, EGBO improves utility, as assessed by a trained human panel, by 29% and 26% in 10 batched iterations each. In a comparison with a professional food scientist given the same time budget, EGBO reached a best observed utility of 0.992, vs. 0.850 for the food scientist.


Where You Backpropagate Matters: Token Hypothesis for Memory-Efficient Fine-Tuning

arXiv.org Artificial Intelligence

Fine-tuning large transformers routes gradients through every token position, paying the cost in activation memory that scales linearly with sequence length and dominates the GPU budget. Existing efficient methods reduce the parameter side (low-rank adapters, prefix tuning, weight-decomposed updates) but leave the activation footprint untouched. We present the Token Hypothesis, a memory-efficient fine-tuning procedure motivated by a Neural Tangent Kernel analysis of how fine-tuning signal is distributed across token positions. We prove that every position is a low-dimensional capacity bottleneck whose width does not grow with the model, that positions with aligned hidden-state geometry are interchangeable in bidirectional models, and that causal positions form a monotone capacity chain in which later positions strictly dominate earlier ones. The analysis yields an assumption-qualified criterion for how many positions are needed and which ones, using quantities computable from forward passes alone: in bidirectional models, small arbitrary subsets are predicted to suffice when position-wise kernels are aligned, while in causal models, later positions are predicted to carry the richest fine-tuning signal. The resulting procedure backpropagates through only a small subset of positions while running the full forward pass over the rest. Empirically, it matches or exceeds full-sequence fine-tuning in nearly all settings across six task families (commonsense reasoning, mathematical reasoning, visual question answering, video question answering, GLUE, and image classification) and five backbones spanning bidirectional and causal architectures. It substantially reduces activation memory, yielding up to about 19% lower total GPU memory (about 31 GB) on visual question answering while exceeding full-sequence accuracy, and composes cleanly with LoRA and DoRA.


Large-Language Models Validate the Cognitive Reflection Test

arXiv.org Artificial Intelligence

The Cognitive Reflection Test (CRT) measures the disposition to override a compelling but wrong intuitive answer, yet in humans reflection is a latent trait: no design can assign a person to be reflective, so numeracy, motivation, and prior exposure entangle every score. We administered the updated eight-item CRT (Meyer et al., 2024) to 136 open-weight large language models (LLMs) under two conditions: intuition, in which the model answered in a single pass with reasoning switched off, and reason, in which the same model first generates reasoning tokens. We excluded 23 models showing textual signs of recognizing the items. Across the 113 analyzed models, reasoning raised mean accuracy from .832 to .987 and cut the intuitive-lure rate (the published most common error) from .090 to .003, reproducing in direction the human first-exposure-to-second-chance effect in Meyer et al.'s (2024) data (accuracy .335 to .490, lure .458 to .146), without the error feedback the human procedure provides. The effect never reversed across 39 organizations, several reasoning implementations, and widely varying model sizes. A ceiling effect appeared in 46 models (perfect in both conditions), suggesting that, on these items, many LLMs' non-deliberative responses already exceed human reflective performance. Among the 67 below-ceiling models, the accuracy gain was +.261. The replication converts cognitive reflection from a latent between-person trait into a within-agent manipulation (with added computation), suggests dual-process organization is not specific to the human substrate, and motivates the hypothesis that human System 2 is System 1 iterated through a serial, language-based loop.