SearcharxivSearch

arXiv subjects

Lingyun Yang

Publications and source records attributed to Lingyun Yang.

10 recordsLinked to original sources

ServerlessT2I: Efficient Text-to-Image Workflow Serving on a Serverless Platform

Text-to-image (T2I) workflows are increasingly deployed on serverless platforms because users often compose customized workflows and invoke them intermittently. Existing platforms typically deploy each workflow as an opaque GPU function, provisioning, placing, and scaling all constituent models in the workflow together. This monolithic design obscures workflow structure, inflates scaling overhead, forces users to manage low-level GPU coordination, and limits fine-grained fairness in multi-tenant clusters. In this paper, we present ServerlessT2I, a serverless-native system that decomposes a T2I workflow into loosely coupled model functions that can be independently managed and scheduled. By explicitly managing individual model execution, ServerlessT2I enables per-model scaling, declarative workflow composition, transparent GPU-resident communication, and fairness-aware scheduling. To make this decomposition efficient, ServerlessT2I harvests slack GPU memory left idle by compute-bound T2I inference to build a data plane that reduces model loading and data communication overheads. \sys{} further introduces a fair scheduler for multi-tenant serving. Using production traces, ServerlessT2I sustains up to 2$\times$ higher request rates than existing T2I workflow serving systems with the same GPU budget; for a fixed request rate, it saves up to 3$\times$ GPU resources while satisfying service level objectives (SLOs).

cs.DC

Are LLM-Generated GPU Kernels Production-Ready? A Trace-Driven Benchmark and Optimization Agent

Existing GPU kernel generation benchmarks draw problems from synthetic or curated sources that diverge from deployed workloads. We present Atrex-Bench, a benchmark whose 30 operators and 440 shapes are sampled directly from full-cluster production inference traces of compute-limited, memory-rich GPUs. Each problem carries an importance weight derived from its share of observed GPU time, weighted by application card-hours and computed separately for the serving phases in which it runs, together with a per-problem roofline ceiling, so the aggregate score emphasizes the kernels that consume the most serving time. Evaluating six frontier coding agents on Atrex-Bench shows that even the best vanilla model reaches only ${\sim}10\%$ of the hardware roofline on production operators; and correctness alone overstates capability, since much of the apparent pass rate comes from PyTorch fallbacks rather than kernels the model wrote. To close this gap, we co-release Atrex-Kernel-Agent (AKA), a profile-driven kernel-optimization agent that combines iterative measure-revise search, optimization dropout for escaping stalled search contexts, and a layered GPU-optimization knowledge base (298 reference-kernel files and 244 optimization-knowledge documents, plus external upstream reference projects for API/ISA lookup). In a controlled case study, the agent converts zero-FlyDSL fallbacks into real kernels that match or exceed hand-tuned production baselines.

cs.AI

LegoDiffusion: Micro-Serving Text-to-Image Diffusion Workflows

Text-to-image generation executes a diffusion workflow comprising multiple models centered on a base diffusion model. Existing serving systems treat each workflow as an opaque monolith, provisioning, placing, and scaling all constituent models together, which obscures internal dataflow, prevents model sharing, and enforces coarse-grained resource management. In this paper, we make a case for micro-serving diffusion workflows with LegoDiffusion, a system that decomposes a workflow into loosely coupled model-execution nodes that can be independently managed and scheduled. By explicitly managing individual model inference, LegoDiffusion unlocks cluster-scale optimizations, including per-model scaling, model sharing, and adaptive model parallelism. Collectively, LegoDiffusion outperforms existing diffusion workflow serving systems, sustaining up to 3x higher request rates and tolerating up to 8x higher burst traffic.

cs.DC

BuddyMoE: Exploiting Expert Redundancy to Accelerate Memory-Constrained Mixture-of-Experts Inference

Mixture-of-Experts (MoE) architectures scale language models by activating only a subset of specialized expert networks for each input token, thereby reducing the number of floating-point operations. However, the growing size of modern MoE models causes their full parameter sets to exceed GPU memory capacity; for example, Mixtral-8x7B has 45 billion parameters and requires 87 GB of memory even though only 14 billion parameters are used per token. Existing systems alleviate this limitation by offloading inactive experts to CPU memory, but transferring experts across the PCIe interconnect incurs significant latency (about 10 ms). Prefetching heuristics aim to hide this latency by predicting which experts are needed, but prefetch failures introduce significant stalls and amplify inference latency. In the event of a prefetch failure, prior work offers two primary solutions: either fetch the expert on demand, which incurs a long stall due to the PCIe bottleneck, or drop the expert from the computation, which significantly degrades model accuracy. The critical challenge, therefore, is to maintain both high inference speed and model accuracy when prefetching fails.

cs.LG

InstGenIE: Generative Image Editing Made Efficient with Mask-aware Caching and Scheduling

Generative image editing using diffusion models has become a prevalent application in today's AI cloud services. In production environments, image editing typically involves a mask that specifies the regions of an image template to be edited. The use of masks provides direct control over the editing process and introduces sparsity in the model inference. In this paper, we present InstGenIE, a system that efficiently serves image editing requests. The key insight behind InstGenIE is that image editing only modifies the masked regions of image templates while preserving the original content in the unmasked areas. Driven by this insight, InstGenIE judiciously skips redundant computations associated with the unmasked areas by reusing cached intermediate activations from previous inferences. To mitigate the high cache loading overhead, InstGenIE employs a bubble-free pipeline scheme that overlaps computation with cache loading. Additionally, to reduce queuing latency in online serving while improving the GPU utilization, InstGenIE proposes a novel continuous batching strategy for diffusion model serving, allowing newly arrived requests to join the running batch in just one step of denoising computation, without waiting for the entire batch to complete. As heterogeneous masks induce imbalanced loads, InstGenIE also develops a load balancing strategy that takes into account the loads of both computation and cache loading. Collectively, InstGenIE outperforms state-of-the-art diffusion serving systems for image editing, achieving up to 3x higher throughput and reducing average request latency by up to 14.7x while ensuring image quality.

cs.DC

SwiftDiffusion: Efficient Diffusion Model Serving with Add-on Modules

Text-to-image (T2I) generation using diffusion models has become a blockbuster service in today's AI cloud. A production T2I service typically involves a serving workflow where a base diffusion model is augmented with various "add-on" modules, notably ControlNet and LoRA, to enhance image generation control. Compared to serving the base model alone, these add-on modules introduce significant loading and computational overhead, resulting in increased latency. In this paper, we present SwiftDiffusion, a system that efficiently serves a T2I workflow through a holistic approach. SwiftDiffusion decouples ControNet from the base model and deploys it as a separate, independently scaled service on dedicated GPUs, enabling ControlNet caching, parallelization, and sharing. To mitigate the high loading overhead of LoRA serving, SwiftDiffusion employs a bounded asynchronous LoRA loading (BAL) technique, allowing LoRA loading to overlap with the initial base model execution by up to k steps without compromising image quality. Furthermore, SwiftDiffusion optimizes base model execution with a novel latent parallelism technique. Collectively, these designs enable SwiftDiffusion to outperform the state-of-the-art T2I serving systems, achieving up to 7.8x latency reduction and 1.6x throughput improvement in serving SDXL models on H800 GPUs, without sacrificing image quality.

cs.DC

Conditional Image Prior for Uncertainty Quantification in Full Waveform Inversion

Full Waveform Inversion (FWI) is a technique employed to attain a high resolution subsurface velocity model. However, FWI results are effected by the limited illumination of the model domain and the quality of that illumination, which is related to the quality of the data. Additionally, the high computational cost of FWI, compounded by the high dimensional nature of the model space, complicates the evaluation of model uncertainties. Recent work on applying neural networks to represent the velocity model for FWI demonstrated the network's ability to capture the salient features of the velocity model. The question we ask here is how reliable are these features in representing the observed data contribution within the model space (the posterior distribution). To address this question, we propose leveraging a conditional Convolutional Neural Network (CNN) as image prior to quantify the neural network uncertainties. Specifically, we add to the deep image prior concept a conditional channel, enabling the generation of various models corresponding to the specified condition. We initially train the conditional CNN to learn (store) samples from the prior distribution given by Gaussian Random Fields (GRF) based perturbations of the current velocity model. Subsequently, we use FWI to update the CNN model representation of the priors so that it can generate samples from the posterior distribution. These samples can be used to measure the approximate mean and standard deviation of the posterior distribution, as well as draw samples representing the posterior distribution. We demonstrate the effectiveness of the proposed approach on the Marmousi model and in a field data application.

physics.geo-ph

Characterization and control of linear coupling using turn-by-turn beam position monitor data in storage rings

We introduce a new application of measuring symplectic generators to characterize and control the linear betatron coupling in storage rings. From synchronized and consecutive BPM (Beam Position Monitor) turn-by-turn (TbT) readings, symplectic Lie generators describing the coupled linear dynamics are extracted. Four plane-crossing terms in the generators directly characterize the coupling between the horizontal and the vertical planes. Coupling control can be accomplished by utilizing the dependency of these plane-crossing terms on skew quadrupoles. The method has been successfully demonstrated to reduce the vertical effective emittance down to the diffraction limit in the newly constructed National Synchrotron Light Source II (NSLS-II) storage ring. This method can be automatized to realize linear coupling feedback control with negligible disturbance on machine operation.

physics.acc-ph

Optimize Nonlinear Beam Dynamical System with Square Matrix Method

Nonlinear dynamics has an important role when designing modern synchrotron lattices. In this letter, we introduce a new method of using a square matrix to analyze periodic nonlinear dynamical systems [1, 2]. Applying the method to the National Synchrotron Light Source II storage ring lattice has helped to mitigate the chaotic motion within its dynamic aperture. For a given dynamical system, the vector space of a square matrix can be separated into different low dimension invariant subspaces according to their eigenvalues. When Jordan decomposition is applied to one of the eigenspaces, it yields a set of accurate action-angle variables. The distortion of the new action-angle variables provides a measure of the nonlinearity. Our studies show that the common convention of confining the tune-shift with amplitude to avoid the crossing of resonance lines may not be absolutely necessary. We demonstrate that the third order resonance can be almost perfectly compensated with this technique. The method itself is general, and could be applied to other nonlinear systems.

nlin.CD

Shadow of a dressed black hole and determination of spin and viewing angle

Shadows of black holes surrounded by an optically thin emitting medium have been extensively discussed in the literature. The Hioki-Maeda algorithm is a simple recipe to characterize the shape of these shadows and determine the parameters of the system. Here we extend their idea to the case of a dressed black hole, namely a black hole surrounded by a geometrically thin and optically thick accretion disk. While the boundary of the shadow of black holes surrounded by an optically thin emitting medium corresponds to the apparent photon capture sphere, that of dressed black holes corresponds to the apparent image of the innermost stable circular orbit. Even in this case, we can characterize the shape of the shadow and infer the black hole spin and viewing angle. The shape and the size of the shadow of a dressed black hole are strongly affected by the black hole spin and inclination angle. Despite that, it seems that we cannot extract any additional information from it. Here we study the possibility of testing the Kerr metric. Even with the full knowledge of the boundary of the shadow, those of Kerr and non-Kerr black holes are very similar and it is eventually very difficult to distinguish the two cases.

astro-ph.HE