Goto

Collaborating Authors

 batch


Multi-Axis Max@K Reinforcement Learning for Representative Diversity in Text-to-Image Generation

arXiv.org Artificial Intelligence

Text-to-image (T2I) models produce realistic, prompt-aligned images, but samples for the same prompt often cover only a few visually distinct modes. For person-centric prompts, this lack of diversity can reflect or amplify demographic skew. We formalize representative diversity as target-mode coverage: how well a set of samples covers predefined modes, such as colors or perceived-race categories. We then propose MultiMaxPO, a reinforcement learning post-training method that improves this coverage in diffusion T2I models by optimizing a multi-axis max@K objective. Given one score per mode for each sample, multi-axis max@K takes the maximum over samples for each mode and then sums these maxima. Because only the best sample counts for each mode, another high score on a mode that is already covered adds little, whereas covering a missing mode adds much more. The objective therefore favors sets whose samples cover different modes. We verify this effect on a synthetic Gaussian mixture and on Stable Diffusion 3.5 Medium with pixel-based color rewards, and then apply it to perceived-appearance fairness. On held-out prompts and under three automatic evaluators, MultiMaxPO improves the Fairness Score over the base model by 0.22-0.36 on Stable Diffusion 3.5 Medium and by 0.07-0.19 on FLUX.1-dev, outperforms matched RL baselines, and maintains image quality and text alignment. Code is available at https://github.com/KuOnoda/multi-axis-maxk.


Hybrid Neural Network Training with Two-Dimensional Model-Based Subspace Search

arXiv.org Artificial Intelligence

Training neural networks without derivatives is challenging because full-dimensional quadratic models require a number of coefficients that grows quadratically with the parameter dimension. We investigate 2D-MoSub, which constructs quadratic models in two-dimensional subspaces, as both a standalone optimizer and a complement to Adam. Two hybrid strategies are considered: periodic subspace interventions and an Adam phase followed by derivative-free refinement. In the reported noisy Ackley fitting experiment with 1,341 parameters, standalone 2D-MoSub reaches a lower mean squared error than finite-difference Adam. In a flow-matching experiment with 12,866 parameters, standalone search stagnates, whereas Adam and the hybrids reduce the loss; the available curves do not establish a consistent advantage of the hybrids over Adam. We analyze conditional unbiasedness and noise amplification for fixed-geometry stochastic quadratic models, characterize the limited guarantee provided by exact-loss acceptance, and derive stationarity bounds for randomized and deterministic hybrids with stochastic gradient steps. These bounds do not apply directly to Adam. The analysis also identifies the endpoint regularization needed for the reported flow-matching path and includes the cost of model construction and acceptance checks. Together, the results define conditions under which subspace training can be assessed without equating a small interpolation problem with dimension-independent training cost.


Action-Value Calibration via Continuation Sharing for Long-Horizon Agentic Reinforcement Learning

arXiv.org Artificial Intelligence

Reinforcement learning for long-horizon agents relies on feedback from sequences of interactions, making credit assignment to individual actions difficult. Existing methods such as GiGPO compare actions at shared states to compute relative advantages, but estimate each action's value from a single sampled continuation. The resulting local credit remains sensitive to decisions made later in the trajectory. To address this problem, we propose ConCal (Continuation Calibration), a recursive continuation-value estimator that incorporates continuation evidence already present in a rollout batch. ConCal matches visits from the same task by their incoming state-action-state transitions, combines shared continuation evidence with each visit's own transition estimate, and propagates calibrated values backward to refine earlier action-value estimates. This reduces dependence on individual sampled continuations and mitigates local credit distortions without additional rollouts. Within matched groups, ConCal reduces relative-value error and improves agreement with held-out action orderings compared with estimates from individual continuations. With Qwen2.5-1.5B-Instruct and Qwen2.5-7B-Instruct, ConCal improves mean success rates over GiGPO by 2.87 to 6.78 percentage points on ALFWorld and WebShop. Our code is available at https://github.com/Yingjian-Chen/ConCal.


FluidPD: In-Place Elasticity for SLO-Aware Prefill-Decode Disaggregated LLM Serving

arXiv.org Artificial Intelligence

Prefill-decode (P/D) disaggregation serves the two phases of LLM inference on separate workers, typically with a fixed prefill/decode worker ratio. Real workloads exhibit both short bursts and sustained shifts in the prefill-to-decode demand ratio, so a fixed split can violate latency SLOs while capacity sits idle in the other pool. Autoscaling adds capacity, but it reacts slowly, requires spare GPUs, and does not address short-timescale phase imbalance. We present FluidPD, a P/D-disaggregated serving system with SLO-aware in-place elasticity. FluidToken absorbs transient imbalance by offloading a bounded portion of prefill computation to decode workers that have slack. FluidRole absorbs sustained imbalance by switching running workers between the prefill and decode roles in place, without model reload or engine restart. Both are guided by indices that expose the pressure in each phase before it causes SLO violations. On workloads derived from production Azure traces and ShareGPT conversations with sustained shifts in the prefill-to-decode demand ratio, FluidPD improves overall SLO attainment by up to 47.9 percentage points over the best static P/D split for each load, without additional workers.


Engram: Multi-Stage Memory for Agentic Tuning of Heterogeneous Models

arXiv.org Artificial Intelligence

Large language model (LLM) agents can now tune neural networks, yet without cross-session memory they spend costly trials rediscovering known lessons. Reuse is difficult because production models differ in architecture, training setup and inference budget. We present Engram, a memory system that links past trial outcomes with the hypotheses and rationale behind them and assesses whether this evidence applies to the current model. An online agent curates evidence at the decision points where it is needed: Initial Guidance supplies validated lessons at the start, Session Retrieval supplies related past sessions before each batch of hypotheses is generated, and Trial Candidate Review checks each trial candidate against matching past trials. Between sessions, an offline agent distills validated lessons, making the memory self-improving. On two ads models, Engram reaches the 32-trial result of a no-memory control with 47% fewer trials and also ends with a better model on average.


Grammar-as-a-Drafter: More Tokens per Speculative Decoding Step on Grammar-Constrained Structured Outputs

arXiv.org Artificial Intelligence

Speculative decoding speeds up generation by letting a lightweight drafter propose tokens that the target model verifies in one forward pass. Under structured outputs (JSON schemas, regular expressions, tool-call formats), the drafter works against a constraint it does not know, so its proposals for keys, delimiters, and indentation are often rejected or invalid, even though the grammar engine already knows the next tokens. We present Grammar-as-a-Drafter (GaaD), which makes the grammar a second drafter. Before each verify step, the scheduler merges the drafter's proposal with grammar-forced tokens (out-degree 1 in the grammar automaton) into one draft row of width $K$ (which can exceed the drafter's proposal length $K_M$): matching tokens are promoted to GRAMMAR, the proposal is truncated where it disagrees, and grammar tokens fill the remaining slots. The verify step accepts GRAMMAR drafts without computing their logits, composing with any drafter without adding kernels or compilation on the critical path. Because grammars fix text rather than tokens, accepting canonical GRAMMAR drafts with probability 1 preserves grammar validity but can shift the output distribution relative to grammar-masked decoding. We implement GaaD in vllm-torchtpu and an independent Rust serving runtime, and evaluate it on TPU v7x with MTP, DFlash, and n-gram drafters on a JSON character-profile benchmark. GaaD raises average acceptance length from 2.06 to 5.43 for MTP (Qwen3.5-0.8B; 1.99 to 5.31 on Qwen3.5-35B-A3B), 1.57 to 4.13 for DFlash, and 1.30 to 3.64 for n-gram (Qwen3-4B), decoding 2.66-2.81x faster at batch size 1 and 1.14-1.70x faster at batch size 64. In the Rust runtime, MTP with GaaD is 2.23x faster on Qwen3.5-0.8B and 2.02x on Qwen3.5-397B-A17B-FP8 (1.22-1.69x at high concurrency). Under mixed traffic, GaaD finishes workloads 1.03-1.23x sooner while modestly raising plain-text TPOT.


Language Model Harnesses can be Compositional Generalizers

arXiv.org Artificial Intelligence

Modern language models (LMs) are post-trained and deployed as agents inside a "harness", but standard harness designs accumulate context that the neural network is forced to generalize to, making training for long-horizon tasks expensive and time-consuming. We study an alternative emerging path: training inherently neurosymbolic LM harnesses, which externalize and manage context programmatically to compose existing LM capabilities. We hypothesize that training around these harnesses can offer a better return on compute by enabling compositional generalization, as they can learn to decompose complex problems so that every observation their neural LM receives is locally in-distribution, even when the full task is novel. We find that harnesses like the Recursive Language Model (RLM) learn such decompositions readily under reinforcement learning post-training: (1) we demonstrate that training only on short tasks can generalize to tasks 2-64$\times$ longer while the base neural LM improves less, and (2) training on one domain transfers to novel domains that share latent structure. On messier, complex tasks, we find that we can target individual LLM calls within a harness by generating and training on easier, synthetically generated surrogate environments with fake tool / sub-calls, a technique we call surrogate harness training. From this finding, we train RLM-27B on synthetic data, and show it improves Qwen3.8-27B in the same RLM harness on a hard suite of long-context tasks like CTC-Bench and ExpertLongBench by 26.9% on average while using $\sim$2$\times$ fewer tokens at inference time. Finally, we show that harnesses can compose over these newly learned decompositions using recursive sub-harness calls.


Muon Sublates the Edge of Stability in LLM Pretraining: What Persists and What Changes

arXiv.org Artificial Intelligence

Muon is increasingly used for language-model pretraining, yet its large-step dynamics are not captured by the classical edge-of-stability (EoS) picture of gradient descent (GD). We study stochastic (no-momentum) Muon through theoretical analysis, controlled networks, and language models from 22M to 1B parameters, distinguishing three diagnostics: generalized sharpness, loss balance, and update alignment. We theoretically and empirically demonstrate that loss balance differs from its generalized sharpness and cannot determine update alignment across various learning rates in 130M pre-training as well as 1B runs. Besides, our experiments also show that increasing the batch size encourages update alignment towards to total reversal. Furthermore, checkpoint interventions in the 22M and 130M models show that increasing the learning rate can initially raise the loss but a lower validation loss at the end of the prescribed warmup-stable-decay continuation. These results support a split EoS picture: generalized-sharpness saturation persists in the measured runs, but loss balance and update geometry require separate characterization, allowing for learning-rate schedules design. The source code for reproducing the experiments can be found in https://github.com/cyzebra/Muon-Sublates-the-Edge-of-Stability-in-LLM-Pretraining.


Competing at Every Price Point with Agentic Evolution over a Menu of LLMs

arXiv.org Artificial Intelligence

Consider a firm that surveys its competition for a particular agentic task and seeks to offer superior accuracy at every price point. A firm that Pareto-dominated its competitors would leave no rational customer a reason to buy elsewhere. This paper shows a path to this kind of capability by evolving multi-LLM Python agents from training pools of at most 100 examples. Given a priced menu of nine LLM endpoints; brief documentation of the task, objective, and API; a simple seed agent; and an operator-chosen per-problem cost target--usually set at an incumbent's own price--RoboPhD, an evolutionary meta-agent, evolves complete agent programs that attack the public frontiers of two semantically dissimilar tasks point by point: DS-1000 (execution-checked code generation) and PaperFindingBench (LLM-judged scientific document retrieval). On public leaderboards for each task, the evolved agents hold every Pareto-frontier slot on PaperFindingBench and all but one on DS-1000, including Pareto domination of both the top-scoring and the lowest-cost competing points.


LeJEPA Features Are Not Isotropic, and Should Not Be

arXiv.org Artificial Intelligence

The SIGReg term in LeJEPA regularizes features to have an isotropic Gaussian distribution. Our first result is to show that this regularizer, in practice, cannot achieve its goal. We design a modified regularizer to enforce the objective better. This leads to slightly improved performance. For example, on ImageNet-100, our modified regularizer reaches the final accuracy of SIGReg in 1.3$\times$ fewer epochs. Our second result argues that self-supervised encoders should not have isotropic Gaussian features. We show that the alignment term in LeJEPA conflicts with SIGReg, because it couples the magnitude of the features with their directions. In contrast, isotropic Gaussian features would entail independent magnitude and directions. Features obtained with LeJEPA are, in fact, not isotropic. So LeJEPA has two issues. Its regularizer is weak, and the isotropic Gaussian target is too strict. Our third result is about reformulating the isotropic Gaussian regularizer to enforce only the marginal distributions of the magnitude and direction, without enforcing independence. This leads to a simple regularization term, PolarReg, that can be optimized reliably across many different datasets, batch sizes and embedding dimensions without any hyper-parameter changes. On ImageNet-1k, our technique matches the accuracy of LeJEPA and its variants in 4.7$\times$ fewer epochs. It improves the final accuracy by 1.8 points.