PyTorchKR Papers

“Code Generation”

총 469편
태그·기간 등 상세 필터

카테고리 탐색

arXiv:2611.41580v1cs.AI

OmniMemBench: Towards Scalable Evaluation of Long-Term Omni-Modal Agent Memory

Multimodal agents that interact with users over days or months must remember not only what was said, but also what was shown, heard, and played. Current memory benchmarks offer limited modality coverage and often rely on aggregate scores that conflate retrieval and answer-generation errors. We introduce OmniMemBench, a long-term memory benchmark of multi-session dialogues that interleave images, audio, and video, with 103 characters and 6,655 QAs across eight task types and four context tiers. An anti-leakage pipeline filters out questions that a text-only model can answer from the dialogue alone. Two LLM-judged retrieval metrics, Clue Coverage and Entry Relevance, score the retrieved content rather than entry IDs, so RAG and memory systems can be diagnosed on the same scale. Injecting unrelated distractor sessions scales the context from 128K to 1M tokens while keeping the evidence and answers fixed. We evaluate 13 pipeline configurations and seven full-context models with GLM-5.2 as the judge, and validate its answer and retrieval scores against independent human annotations. The strongest full-context models score highest overall, while simple retrieval remains better at single-hop fact lookup. Converting media to captions works better than indexing raw media in all four methods that support both, yet case studies show that captions can drop perceptual details, raw-media retrieval can miss the required entry, and the QA model can misread correctly retrieved media. Retrieving more entries improves QA, whereas a larger model for memory construction brings no consistent gain. OmniMemBench provides a common testbed for studying how multimodal agents retain, retrieve, and use past information. The evaluation code (https://github.com/jshmshijh/OmniMemBench) and benchmark dataset (https://huggingface.co/datasets/jshmsjh/OmniMemBench) are publicly available.

arXiv:2611.33042v1cs.CV

Spectrify: Framework for Hyperspectral Image Generation Using Computer Graphics

Hyperspectral images (HSIs) record the full spectrum of light at every pixel, so projecting an HSI through a camera's spectral sensitivities gives that camera's RAW image, and one HSI can supply training data for hyperspectral reconstruction and camera-pipeline methods. Real HSIs, however, are slow and expensive to capture, and the largest datasets hold only about 1,000 images. High-level vision commonly replaces scarce real data with images rendered from 3D scenes. Low-level tasks, however, need physically correct spectra, which requires spectral rendering with a measured spectrum for every material in a scene, and existing spectral renderings cover only a handful of scenes, mostly with a simplified image formation model. We present Spectrify, a framework that converts 3D scene datasets into HSIs, together with a library of reflectance spectra labeled by material and compiled from close-range hyperspectral datasets and spectrophotometer measurements. In Spectrify, spectra follow the material: each object receives a physically based optical model and measured reflectance spectra or optical constants from its material category, each lamp an emission spectrum of its type and the sky a modeled daylight spectrum, and Mitsuba 3 path-traces the full light transport of each scene per wavelength. We show that a hyperspectral reconstruction network trained only on our synthetic HSIs generalizes to unseen real datasets better than networks trained on the largest real HSI datasets on most test sets, and that assigning spectra by material category instead of by color alone improves this transfer on every test set. RAW images projected from our HSIs are also useful training data for color constancy, performing on par with existing synthetic RAW generators. We release the 4,500 rendered HSIs, the code of Spectrify and its material-labeled reflectance library.

arXiv:2611.29431v1cs.CV

HorizonFlow: Few-Step Video Distillation in 600 Iterations

Distribution matching distillation (DMD) enables fast video generation by distilling a multi-step teacher into a few-step student. However, DMD-based methods often suffer from unnatural motion and costly training. We trace these limitations to the DMD gradient, which jointly optimizes appearance, layout, and motion without distinguishing their learning dynamics. Its static component, which carries appearance and layout, has a much higher signal-to-noise ratio than its motion component. As a result, per-frame quality converges within a few hundred iterations, whereas motion lags far behind. Beyond being noisy, the gradient also lacks two signals. (1) Video VAEs encode several frames into one latent frame (four in Wan2.1), and the gradient provides little guidance for spreading motion over these frames, causing periodic stutter. (2) DMD does not constrain the final sampling step to preserve the layout set by earlier steps, so objects merge and drift once the video moves. We propose HorizonFlow, which decouples the correction of motion from that of layout. It keeps the DMD loss and only shifts its regression target, with one training-only correction in the motion component and one in the orthogonal layout component. Chunk Evenness addresses (1) by spreading the motion of each latent chunk evenly over its frames, and Semantic Commitment addresses (2) by anchoring the coarse layout to the teacher's completion of the student's last step. In only 600 iterations, HorizonFlow distills Wan2.1-T2V-1.3B into a 4-step model using 8.4k training samples, 4.6-304$\times$ fewer than prior work. On VBench, HorizonFlow outperforms all released few-step Wan2.1-T2V-1.3B models. The same recipe transfers to Cosmos-Predict2.5-2B, where our student outperforms NVIDIA's distilled model. Code: https://github.com/XIANGLONGGUO/HorizonFlow-repo

arXiv:2612.00825v1cs.AI

How Does Soft Context Compression Adapt to New Knowledge? Test-Time Refinement on Top of Supervised Training

Retrieval-augmented generation is particularly important when answering questions that require up-to-date or previously unseen information. Soft context compression represents each retrieved passage with a small set of vectors and can approach raw-passage performance on standard Wikipedia QA benchmarks. However, it remains unclear how well these compressors handle new information and unfamiliar sources. We evaluate compressors on three kinds of new information, namely knowledge updates, newly emerging real-world events, and unfamiliar web sources. Across these settings, compression loses the entities a correct answer needs, and the published PISCO trails its raw-passage reader by 22--28 percentage points, while xRAG shows gaps exceeding 50 points. We compare three approaches to closing this gap, namely additional training on familiar data, supervised training on labeled examples from new data, and test-time refinement. The latter performs a few gradient steps on each passage's stored vectors using the original generator's reconstruction loss, requiring neither labels nor updates to the generator. Increasing familiar-data training by four times improves new-data scores by 6--12 points. Supervised training on new data continues to improve with additional labels, up to 20k questions, while refinement adds a further 2.1--6.8 points at every training scale; training on 1k new-data questions and refining matches training on 5--10k. Wherever compression leaves a gap, refinement recovers about a fifth of it, on familiar and new data alike, and most of this gain traces to the answer's tokens, whose reconstruction gradient is aligned with the reader's QA gradient. Finally, applying refinement to the published PISCO, xRAG, and ICAE recovers 17--57% of the gap on every new-information test set. We release the four test sets we built and our code.

arXiv:2611.31736v1cs.AI

Reproducing History Is Not Enough: Intervention-Level Assurance for LLM-Generated Simulators

Large language models can now write simulation programs of operational processes and workflows. These programs can be reused to answer what-if questions on new records and policies. However, a program that reproduces recorded history can still give wrong answers to what-if questions; requested changes may be applied wrongly, or they may be applied to records other than the ones the question is about, or the program may stop being valid once its policy is revised. Current checks return a pass-or-fail verdict for the whole program, which says little about whether any single answer can be trusted. We propose Vouch, a library that judges whether an answer from a generated simulator can be trusted for the change being asked about. Each what-if question is turned into a structured change, which is checked against the program and the current records. The library also keeps a record of the kinds of change each program has passed or failed, and repeats the relevant tests whenever the program is reused. We apply it to three program-generation platforms, with programs built by five language models, across four domains: manufacturing, IT operations, and pharmacy and loan-application workflows, using independently checked reference answers. Our baselines are the platforms' own checks where such checks exist, an LLM-as-a-judge, and a ReAct agent that can run the program. We measure how many correct answers are trusted, how many are wrongly rejected, how many wrong answers are accepted, and what the checking costs. On programs written by Haiku and Sonnet in one platform, Vouch removes 97.6% of the wrong answers, while still trusting 80.1% of all answers. At equal coverage, it accepts fewer wrong answers than LLM judges built on Claude Haiku. We disclose code and results for reproducibility.

arXiv:2611.00785v1cs.CL

CheXPoT: VLM이 생성한 영상의학 보고서의 사후 시각적 검증 및 교정

CheXPoT: Post-Hoc Visual Verification and Correction of VLM-Generated Radiology Reports

비전-언어 모델(VLM)은 흉부 X선 영상 보고서 생성에서 가능성을 보였으나, 영상에 근거하지 않은 환각 소견 때문에 도입이 제한되어 있다. 이러한 환각을 교정하고 보고서의 전반적인 품질을 개선하는 일은 여전히 중요한 과제이다. 기존 연구는 강화학습, 선호 최적화 또는 사고 연쇄 지도를 통해 모델을 개선하는 방식으로 이 문제를 다루었으나, 상당한 연산 비용이 드는 경우가 많았다. 이러한 격차를 해소하기 위해 본 논문은 생성된 각 소견을 영상 특징에 대해 검증하고 근거를 찾을 수 없는 소견을 제거하는 프로그램 사고(PoT) 프레임워크인 CheXPoT를 제안한다. CheXPoT는 RadGraph와 LLM으로 생성된 보고서를 술어로 분해하고, 이 술어를 DenseNet-121과 Grad-CAM 시각적 증거 표에 대해 근거화하며, PoT 검증 코드를 실행한 뒤, 뒷받침되지 않는 술어를 제거한 후 보고서를 다시 작성한다. 4,145장 규모의 홀드아웃 분할에서 CheXPoT는 CheXpert 14개 클래스 중 8개에서 정밀도가, 5개에서 F1이 통계적으로 유의하게 향상되었으며, 두 지표 모두 유의한 감소는 없었다. CheXPoT는 마이크로 평균 정밀도를 19.2%(MedGemma-4B)에서 46.8%(MedGemma-4B + CheXPoT)로, 마이크로 평균 F1을 23.0%에서 49.4%로 높였으며, 이는 각각 27.6%p와 26.4%p의 절대 향상이다. 또한 다른 VLM 보고서 생성기에도 CheXPoT를 시험하였다. LLaVA-Med에서는 마이크로 평균 정밀도를 4.5%에서 17.7%로, 마이크로 평균 F1을 6.3%에서 19.4%로 높였다. MAIRA-2에서는 마이크로 평균 정밀도를 15.6%에서 42.1%로, 마이크로 평균 F1을 21.0%에서 45.3%로 높였다. 이러한 결과는 저비용의 사후 시각적 검증이 생성된 보고서의 근거 없는 소견을 교정함으로써 VLM의 신뢰성을 개선할 수 있음을 시사한다. CheXPoT는 VLM이 생성한 영상의학 보고서를 검증하고 근거 없는 소견을 줄이는 도구의 토대를 마련한다. 이러한 혁신은 의학 분야에서 VLM 도구에 대한 신뢰와 도입을 높이는 데 기여할 수 있다.

arXiv:2611.35314v1cs.CV

ZenAttention: 4-bit Attention Directly on a Quantized KV Cache for Streaming Video Diffusion

In long-video generation, streaming video diffusion models spend up to 58% of denoising time attending to a key-value (KV) cache of past frames at every step. Keeping both the cache and the attention computation in 4-bit precision would save substantial memory and time, yet existing methods achieve only one of the two: FP4 attention requantizes a bf16 cache at every call and loses 4-28% of high-frequency latent detail in streaming rollouts, whereas 4-bit KV caches dequantize back to bf16 before attention. We trace the quality drop of 4-bit attention on a cache to two causes: FP4 attention error is systematically biased and fed back through the cache, amplifying single-chunk loss roughly 3x on Self-Forcing; and the newest cached frame requires more precise attention scores than older history. ZenAttention addresses each cause with one component -- closed-form bias corrections costing one fused multiply-add per score and an 8-bit tier for the newest frame -- and computes attention directly on a write-once NVFP4 KV cache. ZenAttention is fast: 628 effective TOPS on an RTX 5090 (1.45x SageAttention2++), 2.6-3.5x faster self-attention than bf16 (1.23-1.50x SageAttention2++, faster than 8-bit and 4-bit SageAttention), and up to 1.89x faster denoising than bf16 (1.84x over LongLive 2.0's 4-bit release); general: one kernel runs without retraining across eight streaming video and world models (1.3B-5B); small: KV-cache memory drops by two-thirds (33-35% of bf16); and faithful: latent detail stays within 0.7% of bf16 across all eight models (vs. 4-28% lost by SageAttention3), while VBench matches bf16 on Self-Forcing (946 prompts) and LongLive-2.0-5B (VBench-Long). Code: https://github.com/wrencanfly/ZenAttention

arXiv:2612.06134v1cs.AI

StageGate-RSI: Stage-Decoupled Attribution and Statistically Gated Recursive Self-Improvement for Agentic Vulnerability Discovery

Autonomous vulnerability discovery agents powered by large language models (LLMs) hold promise for auditing production codebases, yet enabling them to recursively self-improve (RSI) from their own execution trajectories faces three obstacles: (i) historical benchmark contamination that leaks ground-truth labels or inverts pre/post-fix polarity; (ii) a post-fix specificity collapse, where end-to-end agents achieve high pre-fix recall (74.84%-76.96%) but near-random post-fix specificity (39.22%-43.12%); and (iii) high-variance stochastic optimization, where a 14%-15% per-sample trajectory flip rate causes naive reflective evolution to overfit validation noise or trade recall for specificity. We introduce StageGate-RSI, a framework for evaluating and recursively self-improving such agents. First, we construct two zero-leakage paired benchmarks (PairVuln-Multi, 203 commit pairs; PairVuln-Single, 1,241 commit pairs) via a five-stage automated curation pipeline. Second, we decouple Stage-1 hypothesis generation from Stage-2 agentic verification using Teacher-Forced Hypothesis Cards. Third, we design a seven-slot RSI outer loop featuring four-quadrant contrastive pair reflection and a pre-registered multi-gate statistical defense protocol. Stage-decoupled attribution reveals that 56.9% of end-to-end post-fix false positives on PairVuln-Single stem from Stage-1 post-fix topic shift; pre-fix hypothesis forcing lifts post-fix specificity by 32.36 percentage points to 75.48% and paired accuracy by 14.25 points to 73.23%. Under location-only cards, about 70% of Stage-2 post-fix false alarms pivot to unrelated secondary code smells. Finally, our gated RSI outer loop neutralizes the Winner's Curse and threshold shifts, achieving a confirmed 2.26 percentage point search gain and a 1.83 point held-out validation gain (6.67 points specificity) via section-bounded base rubric evolution.

arXiv:2611.35270v1cs.DC

How Are Multi-Adapter LLM Serving Systems Evaluated? An Empirical Study of Baselines, Workloads and Artifacts in 62 Multi-LoRA Serving Papers

Low-rank adapters turn one base model into thousands of cheap task- or user-specific variants, and serving those variants concurrently on shared accelerators (multi-LoRA serving) has become its own systems problem. This paper is an empirical study of how the systems proposed for it since 2022 are evaluated. We code 62 systems against a fixed 25-field schema in two passes, audit their repositories, and ask what each was compared against, at what scale, on what workload, and whether it can be obtained. Four findings stand out. First, the baseline called "vLLM" in 27 papers is at least five different things: the engine's native multi-adapter path (17 papers), adapter weights merged into the model (6), the bare backbone (3), an inference engine beside a separate fine-tuning framework (3), and the authors' own model-swapping baseline (1); three papers run two of these. Throughput gains reported over "vLLM" range from a few percent to 57.9x and, because the baselines differ, cannot be ordered. Second, among the 47 systems that state it, the median main experiment uses 20 adapters; ten report some run with 1,000 or more. Third, we found no public request trace of language-model serving that carries adapter identifiers; the one public production dataset we found that records adapter use is for an image-generation service and gives only the number of adapters per request. Fourth, we could inspect a repository or artifact for 24 of 62 systems; the most-used research baseline has not changed since January 2024 and is archived. A census of 7,051 public LoRA adapters of seven base models gives a median rank of 16 and shows 1% of adapters receiving 30% of downloads. We release the coded corpus and the census and close with what a shared benchmark for this area must fix.