Searcharxiv⌕ Search

arXiv · 2609.30497

Unifying In-Memory Data Analytics through Sparse Compilation

Abstract

As modern data analytics workloads become increasingly heterogeneous and hardware-intensive, achieving efficient multi-core performance across diverse applications remains an open challenge. We present Reffine, a compiler-based in-memory analytics engine that delivers high performance across a broad range of data analytics workloads. Reffine introduces a novel intermediate representation (IR), grounded in relational algebra and sparse iteration theory, that provides a unified abstraction for data and computation. This representation enables workload-agnostic, end-to-end optimizations such as operator fusion and automatic parallelization across diverse analytics applications. We further develop a sparse compiler backend that translates Reffine IR into hardware-efficient imperative code, achieving high multi-core performance without domain-specific implementations. On the TPC-H benchmark, Reffine outperforms the in-memory analytical database DuckDB by up to $24.9\times$ and the state-of-the-art compilation-based database Umbra by up to $3.2\times$. Reffine also achieves average speedups of $18.3\times$ and $47.9\times$ over Polars and NetworkX on streaming and graph analytics workloads, respectively. Source code: https://github.com/ampersand-projects/reffine

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Anand Jayarajan, Gennady Pekhimenko. 2026-09-24. Unifying In-Memory Data Analytics through Sparse Compilation. https://searcharxiv.com/abs/2609.30497

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Searcharxiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Joint SLA Admission and Risk Allocation for Cloud Resource Provisioning

Cloud controllers must reserve enough CPU and memory to meet demand without leaving too much capacity idle. Under a shared service-level agreement (SLA), a shortage of CPU or memory (considered as resource) counts toward the same limit. Dividing the allowed shortage risk between them changes how much extra capacity each need. We study this choice when forecast-error histories are short or correlated over time. Our controller compares different approaches to split the allowed shortage risk between resources. For each split, the controller uses historical forecast errors to determine how much extra capacity to reserve. It checks whether the history is enough to support that split and its consistency across different parts of the history. Among the splits that pass, it chooses the one with the lowest combined cost of shortages and idle capacity. Otherwise, the controller continues serving the workload with a calibrated fallback. In our simulation, we set a joint SLA target of sufficient CPU and memory in at least 95% of time slots and used 192 hours of historical forecast errors to structure the controller. Compared with always using fallback, the controller reduced the time slots allocation with either of the resource shortage by 1.04 percentage points on average. This reduction came with a 0.0091 increase in normalized cost from shortages and idle capacity. In the Bitbrains trace, five nonoverlapping test windows did not provide clear evidence of whether shortages increased or decreased. We also examine how execution delays and adjustment limits affect this trade off.

cs.DC↗

Contexture: Runtime Context Eviction for High-Throughput Agent Serving

LLM agents such as Hermes, OpenClaw, and Codex repeatedly resend growing execution histories, increasing shared GPU key-value (KV) cache demand in high-bandwidth memory (HBM). We show that shared KV capacity limits agent-serving throughput. Existing context-reduction methods lack global cache-state visibility, while runtime KV managers lack tool-execution information. Tracing tokens to their originating tool operations reveals that later operations supersede earlier outputs and associated turns, identifying 64% of recorded final-history tokens as removal candidates. We present Contexture, a harness- and model-agnostic architecture for runtime context eviction. Contexture separates the harness's full conversation history from the model's execution context, reducing subsequent requests' KV demand without modifying harness logic or model execution. It combines tool-execution information with global visibility into shared KV pressure and prefix residency: supersession identifies removal candidates, while runtime state determines when removal justifies sacrificing cached computation. This coordination reduces memory demand and decode KV traffic while limiting re-prefill interference with concurrent decoding, without additional model calls or training. Across two models, two harnesses, and two benchmarks, Contexture improves throughput under SLO by 20-73% over the best of no eviction, harness compaction, AgentDiet, and Continuum, and by 7-63% over observation masking in five of eight configurations, and reduces GPU energy per completed session by up to 11%. It also raises throughput under SLO by 23% over LMCache alone on H100. Live-agent experiments show a mean accuracy improvement of 1.4 percentage points over unloaded no eviction, with a worst-case loss of 3.7 points, while observation masking loses 3-28 points.

cs.DC↗

CTRL: Concurrent Training and Rollout for LLM Reinforcement Learning via GPU Co-Residency

Reinforcement learning (RL) post-training of large language models runs two GPU workloads with different hardware demands: rollout decoding, which is dominated by memory access and whose batch shrinks as responses finish, and a dense learner. Current systems either time-share every GPU between them, paying serial phases and switches, or split GPUs into pools whose sizes change only in whole devices. We present CTRL, which makes co-residency a third RL execution layout: every GPU runs a learner rank beside a persistent rollout engine, sharing the device under CUDA MPS. A host-owned learner makes the layout fit: optimizer state stays in host memory, and policy weights stream layer by layer through a bounded GPU window. A publication gate trains each ready batch first and waits only before releasing the next policy, keeping a dropless staleness bound. A step-time bound guides compute-share selection, and a GPU-time ledger explains overlap and sharing costs. On H100, A800, and RTX 4090 GPUs with Qwen3 models, CTRL achieves 1.11-2.24$\times$ the throughput of the stronger of verl's asynchronous baselines across 24 workload settings with the staleness limit set to two, and 1.23$\times$ verl's colocate_async on eight H100 GPUs. With the same learner, co-residency is 1.10-1.26$\times$ faster than time-sharing on all three platforms and 1.10-1.30$\times$ faster than the best measured whole-GPU split on H100 DAPO-Math workloads at 256-528 trajectories per step, on four and eight GPUs.

cs.DC↗