paper-with-me

홈 › Papers

Hydra: Efficient, Correct Code Generation via Checkpoint-and-Rollback Support

2026-05-14 · Alexander Du, Jianjun Ou, Danyang Zhuo, Matthew Lentz arxiv

Large language models are increasingly used for code generation, but many generated programs fail to compile, a prerequisite for further correctness checks such as unit tests. Existing solutions for repairing static errors are costly in both latency and token consumption. Post-hoc repair delays error detection until generation completes and commonly regenerates large regions of previously valid code. Constrained semantic decoding checks after each token, incurring per-token overhead while limiting repair to the current token even when the root cause lies earlier. We present Hydra, a system for efficient recovery from static errors during code generation. Hydra allows checking to proceed asynchronously with generation, avoiding checker overhead when the generated code is semantically correct. In addition, it provides checkpoint-and-rollback support for targeted repair, avoiding regeneration and rechecking of valid prefixes. We retrofit the Clang C/C++ compiler to support Hydra with modest modifications. Paired with a token-efficient repair strategy, Hydra reduces latency by up to 71% and token consumption by up to 70% relative to post-hoc repair on C/C++ code generation tasks that encounter static errors.

📄 PDF Abstract BibTeX arXiv:2605.15238

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generation

Similar Papers 제목 키워드 기반

DeltaBox: Scaling Stateful AI Agents with Millisecond-Level Sandbox Checkpoint/Rollback

2026-05-21 · Yunpeng Dong, Jingkai He, Shiqi Liu, Yuze Hou 외 arxiv

LLM-powered AI agents require high-frequency state exploration (e.g., test-time tree search and reinforcement learning), relying on rapid checkpoint and rollback (C/R) of the complete sandbox state, including files and p…

Reinforcement Learning

Crab: A Semantics-Aware Checkpoint/Restore Runtime for Agent Sandboxes

2026-04-30 · Tianyuan Wu, Chaokun Chang, Lunxi Cao, Wei Gao 외 arxiv

Autonomous agents act through sandboxed containers and microVMs whose state spans filesystems, processes, and runtime artifacts. Checkpoint and restore (C/R) of this state is needed for fault tolerance, spot execution, R…

DART: Semantic Recoverability for Structured Tool Agents

2026-05-22 · Ke Yang, Panpan Li, Zonghan Wu, Kejin Xu 외 arxiv

When a structured tool agent fails mid-execution, the runtime faces a dilemma: replaying the entire task is safe but wasteful, while restoring from a local checkpoint is efficient but can leave committed downstream work …

Rollback-Free Stable Brick Structures Generation

2026-05-07 · Chenhui Xu, Ziyue Bai, Fuxun Yu, Heng Huang 외 arxiv

While autoregressive models have advanced 3D generation, creating physically stable brick structures remains a challenge due to the strict requirements of gravity and interconnectivity. Existing approaches rely on extern…

Reinforcement LearningCollision Avoidance3D Generation

Awakening the Hydra: Stabilizing Multi-Concept Backdoor Injection in Text-to-Image Diffusion Models

2026-05-19 · Kai Wang, Jiale Zhang, Chengcheng Zhu, Chuang Ma 외 arxiv

Text-to-image diffusion models are increasingly developed through open-source reuse and repeated downstream fine-tuning, where reused checkpoints are difficult to verify and thus more susceptible to hidden backdoor behav…