PyTorchKR Papers

최신 논문

총 1,294편
태그·기간 등 상세 필터

카테고리 탐색

arXiv:2501.02173cs.IR

The Efficiency vs. Accuracy Trade-off: Optimizing RAG-Enhanced LLM Recommender Systems Using Multi-Head Early Exit

대규모 언어 모델(LLM)을 추천 시스템의 클릭률(CTR) 예측에 적용할 때 가장 큰 과제는 높은 예측 성능과 실시간 서비스에 필요한 계산 효율을 동시에 만족시키는 일입니다. 특히 검색 증강 생성(Retrieval-Augmented Generation, RAG)을 결합한 구조는 풍부한 문맥을 활용할 수 있는 대신, 검색 단계와 긴 추론 경로가 추가되면서 응답 지연이 커지는 문제가 두드러집니다. 이러한 배경에서 제안된 OptiRAG-Rec은 효율성과 정확도의 균형을 새롭게 조정하기 위해, 그래프 합성곱 신경망(Graph Convolutional Network, GCN)을 활용한 검색기와 다중 헤드 조기 종료(multi-head early exit) 전략을 하나의 프레임워크로 통합합니다. 이 접근의 핵심은 단순히 모델을 가볍게 만드는 데 있지 않고, 검색 품질을 높여 예측을 더 쉽게 만들고, 동시에 중간 계층에서의 신뢰도 평가를 통해 불필요한 계산을 과감히 줄이는 데 있습니다. 먼저 GCN 기반 검색기는 사용자-아이템 상호작용을 이분 그래프로 표현하고, 다층 message passing을 통해 사용자 표현을 정교하게 갱신합니다. 이렇게 얻은 임베딩을 여러 층에서 평균화한 뒤 유사 사용자 검색에 활용함으로써, 계산 비용이 큰 언어 모델 임베더를 대체하면서도 그래프 구조가 담고 있는 다중 홉 관계와 장기 선호를 효과적으로 보존합니다. 이는 RAG의 검색 병목을 완화하는 동시에, 후속 LLM 예측에 더 신뢰할 수 있는 문맥을 제공한다는 점에서 의미가 큽니다. 이어서 다중 헤드 조기 종료는 트랜스포머의 여러 중간 층에 예측 헤드를 배치하고, 각 헤드가 산출하는 확률 변화와 신뢰도를 실시간으로 점검하여 충분히 안정적이라고 판단되는 시점에서 추론을 멈추도록 설계됩니다. 다시 말해, 쉬운 샘플은 얕은 층에서 빠르게 처리하고, 어려운 샘플만 더 깊은 층으로 보내는 적응형 추론 구조를 구현한 것입니다. 이러한 설계는 추천 시스템의 실사용 환경에서 특히 중요합니다. 클릭률 예측은 단순히 정확도만 높다고 해결되지 않으며, 대기 시간이 길어지면 서비스 품질 자체가 저하되기 때문에, 추론 속도와 모델 신뢰성의 동시 확보가 필수적입니다. 이 논문은 BookCrossing, Amazon 계열, Yelp 등 실제 데이터셋에서 실험을 수행하며, GCN 검색과 조기 종료가 각각의 병목을 줄이는 동시에 서로의 효과를 강화한다는 점을 보여 줍니다. 검색 단계가 더 좋은 입력 맥락을 제공하면 조기 종료가 더 이른 시점에 안정적으로 작동할 수 있고, 그 결과 전체 시스템의 처리량은 증가하면서도 정확도는 유지되거나 오히려 개선됩니다. 결국 이 연구는 RAG 기반 LLM 추천 시스템이 직면한 효율성-정확도 상충을 구조적으로 해소할 수 있음을 제시하며, 실시간 추천 서비스에 적합한 배포 전략의 방향을 제안한다는 점에서 높은 의의를 갖습니다.

arXiv:2406.04374cs.IR

Dynamic Online Recommendation for Two-Sided Market with Bayesian Incentive Compatibility

추천 시스템은 온라인 경제에서 사용자를 적절한 제품과 연결하는 핵심 인프라이지만, 새로운 제품 탐색과 사용자의 현재 선호도를 만족시키는 제품 제공 사이의 근본적인 충돌을 해결해야 합니다. 자기중심적인 사용자들은 즉각적인 이익 극대화에 관심이 있기 때문에, 플랫폼이 강요하는 탐색 활동이 자신의 효용을 떨어뜨릴 때 추천을 따르려는 동기를 잃게 됩니다. 본 논문은 온라인으로 샘플링되는 확률적 사용자 특성이 존재하는 현실적 환경에서 베이지안 인센티브 양립성(Bayesian Incentive Compatibility) 제약을 만족하면서도 효율적인 탐색을 가능하게 하는 새로운 메커니즘을 제시합니다. 기존 연구들이 고정된 선형 밴딧(linear bandit) 구조만 다룬 반면, 이 연구는 동적으로 변하는 사용자 공변량의 특성을 직접 활용하여 표준적인 블랙박스 축소 방식보다 향상된 성능을 달성하는 점이 핵심적 차별점입니다. 제안된 RCB(Regret-Controlled Bandits) 알고리즘은 냉시작 탐색 단계와 IPGS(역비례 갭 샘플링 전략)를 통한 추정 및 활용 단계의 두 단계 구조로 이루어져 있습니다. 첫 번째 단계에서는 인센티브 양립성을 유지하면서 최적의 표본을 수집하기 위해, 프로모션 팔의 추천 빈도를 제어하여 사용자의 신뢰를 점진적으로 확보합니다. 두 번째 단계에서는 수집된 표본에 기반하여 포스테리어 갭(posterior gap)에 반비례하는 확률로 탐색을 할당하는 IPGS 전략을 적용하며, 이렇게 수집된 데이터는 린스(LinUCB)나 톰슨 샘플링 같은 임의의 효율적인 오프라인 학습 알고리즘과 결합될 수 있도록 설계되었습니다. 이러한 이중 단계 구조의 강력함은 초기 신뢰 형성과 이후의 효율적인 학습을 명확히 분리함으로써 각 단계의 목표를 독립적으로 최적화할 수 있다는 점에 있습니다. 이론적 분석을 통해, RCB 알고리즘이 팔의 개수 K, 공변량 차원 d, 그리고 시간 범위 T에 대해 O(√KdT)의 서브선형 레그릿을 달성함을 증명했습니다. 동시에 이 논문은 인센티브 양립성을 유지하는 데 필요한 프로모션 빈도 L과 탐색 성능의 계수 사이에 명시적인 트레이드오프 관계가 존재함을 처음으로 특성화했습니다. 구체적으로, 더 강력한 인센티브 보장을 원할수록 프로모션 빈도를 증가시켜야 하는데, 이는 필연적으로 수집되는 탐색 표본의 수를 감소시켜 레그릿을 증가시킨다는 의미입니다. 이러한 정량화된 트레이드오프의 발견은 플랫폼 설계자들이 자신의 인센티브 예산과 학습 성능 목표를 과학적으로 균형지을 수 있는 기초를 제공합니다. 본 연구는 개인화된 와파린 용량 조정 같은 실제 의료 응용을 통해 제안된 방법론의 실무적 타당성을 입증하며, 광범위한 시뮬레이션 실험을 통해 알고리즘의 견고성과 다양한 환경에서의 효과성을 검증했습니다. 특히 플러그인 구조 덕분에 기존의 확립된 선형 밴딧 알고리즘들을 쉽게 통합할 수 있어, 실무에서 즉시 적용할 수 있는 유연성을 갖추고 있습니다.

arXiv:2405.19504cs.DS

MUVERA: Multi-Vector Retrieval via Fixed Dimensional Encodings

신경 임베딩 모델은 정보 검색(IR)에서 핵심적인 역할을 하며, 기존에는 데이터당 하나의 임베딩 벡터를 사용해 최대 내적 탐색(MIPS)으로 빠른 검색을 수행했습니다. 다중 벡터 모델은 각 데이터에 여러 임베딩을 생성해 성능을 크게 향상시켰으나, 계산 비용과 복잡성이 증가하는 단점이 있습니다. MUVERA는 다중 벡터 유사도 검색을 단일 벡터 유사도 검색으로 변환하는 고정 차원 인코딩(FDE)을 도입하여, 기존 MIPS 솔버를 활용하면서도 이론적 근사 보장을 제공합니다. 실험 결과 MUVERA는 기존 방법 대비 후보군 수를 2~5배 줄이면서도 높은 재현율과 90% 낮은 지연 시간을 달성해, 다양한 BEIR 데이터셋에서 우수한 검색 성능을 보였습니다.

arXiv:2610.37570v1cs.LG

LCM-Promo: An LLM-Based Uplift Model for Promotion Allocation

We present LCM-Promo, an LLM-based uplift model for promotion allocation. LCM-Promo is a task-specific Large Commerce Model (LCM): a finetuned LLM trained on transactional commerce data to predict user intent and promotion response. It learns monotonic promotion-response curves from production logs by interpreting single-token outputs as conversion-threshold probabilities, while conditioning on session context such as day and delivery shift. In a production A/B test on churn reactivation, LCM-Promo increased conversion by 1% and reduced promotion cost by 6% relative to the Segment-EMA production baseline.

arXiv:2610.37280v1cs.IR

Modeling Preference Dependencies with Directed Acyclic Graphs for Narrative-Driven Recommendation

Narrative-driven recommendation allows users to express multifaceted needs through free-form text where stated preferences naturally qualify and condition one another. Existing methods typically treat narratives as flat keyword combinations or unconstrained generative queries, failing to capture how complex preferences hierarchically refine and contextualize each other. We propose the Preference Dependency Graph Framework (PDG-F), a narrative-driven recommendation framework centered on explicit preference dependencies. Specifically, PDG-A (PDG-Agent) first parses unstructured requests to organize user preferences and their mutual qualifications into a directed acyclic Preference Dependency Graph (PDG). Through this graph, candidate evidence from the open Web is acquired via directed path retrieval, and final recommendations are determined by topological path ranking. Comprehensive experiments across three diverse domains spanning English and Chinese contexts confirm that PDG-F consistently achieves superior recommendation performance over competitive baselines, open-domain retrieval agents, and frontier language models. Further diagnostic analyses show that our dependency-guided retrieval markedly raises the attainable candidate-pool ceiling, demonstrating the fundamental value of modeling preference dependencies in narrative-driven recommendation.

arXiv:2610.37267v1cs.CV

GradCO: Behavior-Aware Gradient-Conflict Offloading for Text-Based Person Anomaly Search

Text-based Person Anomaly Search (TPAS) retrieves a target pedestrian using natural-language descriptions of appearance and normal or anomalous behavior. Unlike conventional text-based person retrieval, TPAS must preserve identity cues while distinguishing fine-grained behaviors. It presents two challenges: same-identity, different-behavior hard negatives cause gradient conflict during granular alignment, while strong appearance cues can obscure weak behavioral evidence during aggregation. We propose GradCO (behavior-aware Gradient-Conflict Offloading), comprising three complementary components. Behavior-Aware Mixture-of-Experts (B-MoE) forms appearance, normal-behavior, and anomalous-behavior streams whose roles are learned from retrieval objectives without expert-specific semantic labels. Conflict Offload Learning (COL) uses pair-conditioned offload anchors in similarity computation to reduce the conflicting-gradient burden on the main text representations. Hierarchical Intent Alignment (HIA) aggregates expert similarities and features using query-conditioned weights. Experiments on five TPAS/TIPR benchmarks show GradCO significantly surpasses SOTA methods and validate our design.

arXiv:2610.37162v1cs.IR

Coverage Under Contradiction: A Benchmark for Negation-Aware Retrieval

Coverage-evaluation benchmarks quantify whether retrieved evidence covers the different pieces of information needed to satisfy an information need. Existing benchmarks mostly consider factual claims that may already be known to pretrained retrieval components, leaving open whether retrievers find corpus evidence when it contradicts those priors. We study how retrievers behave when their parametric knowledge and the information in a corpus disagree. To do so, we develop a process to augment a nugget-based coverage benchmark with controlled contradictions. For each nugget, we create a negated counterpart and edit its supporting documents to support that negation while preserving the context. Applying this process to CoverageBench, a benchmark measuring information coverage, we create CoverageBench-Negate, spanning six datasets and roughly 63,000 original-edited evidence pairs (one per nugget-document link). We attach rich construction metadata to every pair and additionally provide out-of-family LLM judgments over all pairs and a human audit of a sample. In baseline experiments, BM25 separates original from edited near-twin evidence substantially better than dense retrievers (Qwen3 and Jina), which stay near chance. We release the benchmark on Hugging Face Datasets (nuggets, documents, pairs) together with the construction materials, including the prompts used to create it.

arXiv:2610.18616v1cs.CL

Knowledge Graphs as Files: An Agent Harness Where Tool Creation and Tool Use Co-Evolve

Searching text-rich knowledge graphs requires following relations while examining textual evidence. Predefined graph interfaces constrain what evidence agents can access, even when they write code to combine tool calls or process retrieved subgraphs. We propose direct knowledge graph interaction (DKGI), a harness in which language model agents create graph access tools directly over complete node and edge files. The agent writes Python code to follow relations, combine node sets, and select textual evidence, interleaving execution with shell search and file inspection. This lets agents process large node sets in bulk while returning selected text for the model to assess. Execution feedback guides tool creation and revision, while the evolving tools determine what evidence the agent gathers next. On benchmark datasets spanning three domains, training-free DKGI exceeds the strongest published baseline by at least 6.7 Hit@1 points on every graph, even with a minimal harness. Controlled ablations show the benefits of multi-turn programming over shell-only access and predefined graph tools, while trajectories show agents revising code to extend searches or address errors. These findings highlight the value of allowing tool creation and tool use to co-evolve during graph search. Our code and data are available at https://github.com/leopoldwhite/DKGI.

arXiv:2610.18526v1cs.CL

Retrieval Disagreement as a Signal: Diagnosing and Steering Multilingual Dense Embedders

Multilingual dense retrievers place all languages in one shared space so that a question finds relevant documents, regardless of which language they are written in. We show that the same question, asked in different languages, retrieves substantially different documents, and this disagreement is not because of weak language understanding. Each language performs well on its own and ranks candidates consistently with the other languages; divergence appears only when languages share an index. We trace the mechanism: each language keeps its own ranking, but in the shared index, its correct answers are pushed far down, buried under non-relevant documents that are either in the query's own language or in English, depending on the model. We introduce disagreement-guided steering: for each language, we contrast the documents that other languages agree on for a question against those that language retrieves idiosyncratically, and take the difference of their representations as a language-specific direction, added to that language's queries at inference. Against baselines of language-mean removal, subspace removal, and per-language rotation, it most strongly reduces same-language crowding while remaining competitive on recall, trading off against mean removal, which better preserves ranking quality.

arXiv:2610.18354v1cs.AI

Choosing LLMs for Strategic Agent Interactions

Game-theoretic benchmarks claim that large language model (LLM) strategic decision-making varies across game types, interaction structures, and capability dimensions. However, they only evaluate strategic performance across individual fixed models. In parallel, contemporary LLM routers pick models under quality-cost trade-offs, but with no notion of a strategic structure. They do not account for an opponent that might be unknown, and that can adapt over time and shift the feedback signal. To address this, we extend the game-theoretic evaluations and define strategic selection as the meta game layered on top of the base game. In each round, a strategic selector fields an LLM from a portfolio of models to navigate a game payoff matrix that is latent and learned online. We find that the evaluation signal is game-specific, and that extracting a reliable signal requires a much higher number of seed runs $N$ compared to traditional benchmarking setups. Evaluating across 5 games and 10 LLMs, we show a model's strategic competence varies significantly depending on the game setup and the opponent faced. Building on this, we implement a suite of selector methods and find that approaches that rely on query embeddings or LLM self-reflection do not consistently capture the underlying strategic signal. A lightweight multi-armed bandit algorithm performs more reliably across games, though it still falls short of the best fixed model. Finally, we show that simple non-stationary and adversarial bandit variants fail to outperform a stationary bandit baseline, pointing to a gap in how current methods handle a shifting opponent in strategic settings.

arXiv:2610.18308v1cs.CL

SimInter: Evidence-Grounded User Simulation with Interview-Based Profile Enrichment for Conversational Recommender Systems

Conversational Recommender Systems (CRSs) require reliable user simulators for cost-effective evaluation. LLM-based simulators have made realistic simulation possible but typically condition on profiles derived from explicit ratings, demographics, and static sources capturing surface preferences while omitting implicit behavioral characteristics such as decision-making style, aspect-level preferences, and domain expertise. We propose SimInter, a pipeline that elicits these attributes via synthetic interviews between two LLM agents, grounded in the user's statistical profile and historical conversational evidence. Before profile enrichment, an audit agent explicitly flags potential fabrication and stereotyping at the turn level. We instantiate and evaluate SimInter on movie recommendation. We simulate 300 ReDial users and, on a matched subset of 100 users, compare SimInter with a statistics-only baseline: SimInter significantly increases the diversity of expressed preference aspects (filtered aspect entropy: 1.619 vs. 0.859; paired d = 0.96, Holm-adjusted p < 0.001). This gain persists when the simulator converses with two trained recommenders, KBRD and UniCRS, under two independent evaluation judges (+0.28 to +0.56 nats; all p < 0.001). Human evaluation finds 94.3% of enriched-attribute claims supported or partially supported, while human judgments agree with 95.2% of the auditor's binary filtering decisions on a stratified sample.

arXiv:2610.18126v1cs.AI

Fresh at Decision, Stale at Action: Routing New Information to LLM Decisions Already Made

Freshness shapes an LLM decision at the moment it is made; the action it commits to is latent, carried out later, in a changing world. We therefore introduce a timestamp theory of decision validity and a decision ledger that realises it. Six timestamps define a decision; a freshness ceiling bounds what up-to-date evidence guarantees at action time, placing the remaining risk in information published afterwards. Accuracy then factorises into two capabilities: routing, which delivers that information to affected decisions before their revision deadlines, and temporal judgment, which reads it for the time of action. The ledger is persistent state holding each decision's times, evidence and background knowledge, indexed by watch conditions written at decision time. Controlled decision streams with exact labels confirm four predictions across five LLMs, from 8B to frontier scale: freshness alone yields exactly the accuracy the ceiling predicts; models act on decisive news once it arrives, so accuracy follows routing; the ledger's index sets what routing reaches, and watch conditions reach indirect dependencies at low exposure; and the remaining errors concern when a change takes effect. Freshness makes a decision right when it is made; routing and temporal judgment keep it right when it is carried out.

arXiv:2610.17986v1cs.CV

Web Scale on a Budget: Tail-Aware Retrieval Evaluation

A common practice in instance retrieval is to grow the gallery size to improve a benchmark's discrimination capability. One prominent example is ILIAS, which adds up to 100 million distractor images. The prevailing assumption is that faithful evaluation demands web scale, and that indexing all 100M images through the backbone is the unavoidable price of a comparable number. That price is steep: hundreds of GPU-hours and ~200 GB of descriptors per model, paid again for every method or ablation. We show the web-scale indexing price is largely avoidable: evaluation itself obeys a scaling law. The number of distractors that outrank a positive is Binomial in the gallery size. We define the per-query retrieval hardness, a gallery-scale agnostic quantity that yields a retrieval metric at any scale, and demonstrate it can be derived from a small random sample. The underlying sampled-rank machinery is long established in recommender-system and biometric evaluation, but to our knowledge has never been adapted to visual retrieval. We make the law per-query and estimable, and validate it at true 100M scale on ILIAS and INSTRE, and on the full 759k-distractor Google Landmarks v2 pool. Concretely, within a 5% sample (a flat 20x less indexing), every backbone's tail-aware (EVT) estimate has converged onto the large-scale mAP, to within ~0.01 (mean absolute error 0.005), across five backbones, three benchmarks, and two distractor pools (mAP@1000 at 100M on ILIAS/INSTRE; the official mAP@100 at the full 759k pool on GLDv2); the recommender-systems count baseline over-predicts everywhere (+0.037 to +0.068). This is an order of magnitude better than naively reporting the metric on the same subset (+0.08 to +0.13). We release code and the per-query hardness to facilitate faster, cheaper, and greener retrieval evaluation.

arXiv:2610.17549v1cs.AI

Reference Wording Shapes Retrieval of Robot Task Instructions

Identifying a robot task from a short instruction is sensitive to which descriptions are available for retrieval. We investigate this effect in the natural-language instructions included with the RLBench manipulation benchmark. We extract 296 fixed descriptions from 62 publicly available task files and compare five training-free lexical rankers over 80 random choices of one indexed description per task. Exact strings assigned to conflicting task labels are excluded from the primary score. Character n-gram TF-IDF achieves 61.3% mean top-1 accuracy on the resulting held-out instructions, compared with 55.6% for BM25 and 54.9% for word TF-IDF. Across gallery choices, character TF-IDF ranges from 55.2% to 66.8%; its 5th-95th percentile range is 56.9%-64.8%. Adding a second indexed description improves character TF-IDF by 7.0 percentage points on matched queries. These results quantify the influence of reference wording and representation choice on instruction-to-task retrieval under a consistent evaluation protocol.

arXiv:2610.17243v1cs.CL

From Conceptual EneMonIE to an Executable Backend: A Modular Architecture for Energy Information Extractionand Grounded Question Answering

The original EneMonIE proposal describes a Web-based semantic system for continuously monitoring energy trends through targeted information extraction from heterogeneous online media. This article presents EneMonIE-Backend, an implementation-derived redesign that converts that conceptual pipeline into a modular, executable, and application-independent backend. The architecture separates five concerns: data sources, acquisition and normalization, semantic processing, knowledge organization, and persistent storage. It operationalizes configurable connectors for RSS feeds, URL collections, arXiv, social-media JSON files, and open-data CSV files; it also introduces question-driven Web search and scraping. Relevant documents pass through energy categorization, named entity recognition, temporal and event extraction, source sensitive sentiment analysis, and extractive summarization. The resulting semantic representations support entity co-occurrence graphs, cross-document interlinking, cluster-level information fusion, and relational persistence in SQLite. Three grounded question-answering paths are exposed at the backend level: live Web evidence, the stored corpus, and selected configured resources. Answer generation uses a language model when configured and otherwise falls back to deterministic extractive output. Unlike the original proposal, the presented architecture deliberately excludes the user-interface and server-side application layers, allowing the semantic core to be embedded in different applications. A deterministic smoke validation confirms relevance filtering, persistence, clustering, evidence retrieval, and document deletion. The work provides a reproducible architectural basis for future evaluation on larger multilingual energy corpora.

arXiv:2610.16940v1cs.LG

KNN Implementation Details Can Dramatically Change Performance: An Example from Cover Trees

Nearest neighbor search algorithms are widely used and have a long history, but we find that key implementation details are seldom reviewed in articles about them. These details can materially impact performance, and thus change the conclusions one makes about a given algorithm's superiority. In this article, we highlight these impacts by reviewing the Cover Tree as an example, producing RustKNN, a unified Rust implementation of three construction variants of the Cover Tree with three query modes. Our analysis reveals: (1) the optimal query strategy depends on $k$ and on the dataset (single-tree search is fastest at $k{=}1$ on three of our four largest datasets, while dual-tree search is fastest at $k{\ge}5$ on the three largest), and choosing the wrong query mode can cost up to a $7.5\times$ factor in runtime; (2) the cover tree base parameter, set to 2 in theory and 1.3 in practice, is not a safe default for dual-tree search: 1.3 is optimal on only one of seven datasets, and on covtype it is $1.6\times$ slower than the optimum; (3) among five micro-optimizations, only early-exit distance computation has a consistent effect, and that effect grows with dimension (none at $d{=}32$, $1.31\times$ at $d{=}54$, and $1.49\times$ at $d{=}784$); and (4) all-nearest-neighbor and held-out benchmarks yield different implementation rankings. All main timing tables report medians over 20 independent allocations with bootstrap 95% confidence intervals. RustKNN is open source at https://github.com/CrowdStrike/RustKNN.

arXiv:2610.16925v1cs.LG

Comparing GenAI to Machine Learning and Manual Review for eDiscovery

Keeling et al. [Keeling2026Generative] report on a case study recently conducted by Redgrave LLP in which they assert that Relativity's Generative AI Review tool (aiR) achieved 88% recall while Relativity Assisted Learning (RAL), its machine-learning tool, achieved 64% recall. These results are not comparable because the methods employed have different objectives, because of inter-assessor disagreement, and because they represent different recall-precision and cost-benefit trade-offs. Our analysis of the Redgrave data indicates that, when these differences are taken into account, aiR and manual review are comparable. Furthermore, established machine-learning models employing Continuous Active Learning (CAL) show state-of-the-art effectiveness, and superior efficiency, when trained only on a sample of 2,000 first-pass-reviewer responsiveness determinations.

arXiv:2610.16862v1cs.CV

From Volpiano to Pixels: 30,000 Lines of OMR Ground Truth for Medieval Chant

Optical music recognition (OMR) for medieval chant lacks training data linking manuscript images to musical symbols across notational families. Using existing Volpiano transcriptions from the Cantus Database, we created 30,567 image-target pairs from ten sources in eleven exports, including 339 verse fragments. Their target sequences contain 1,952,143 tokens. The pipeline locates staff systems, infers clefs and maps known pitches to staff positions. Six detector families handle the different layouts and notations. Where heuristics failed, two small U-Nets learned staff lines and clef letters from manual annotations. Reviews of sampled export lines found zero to four pitch or clef errors, but used different error definitions and do not provide a uniform audit of the corpus. A CRNN trained from scratch achieved a symbol error rate of 9.6 % on 3,086 test lines. The earlier model, trained mainly on Austrian sources of the 15th and 16th centuries, scored 45.3 %. In three separate training runs, each excluding one manuscript, error rates on the excluded manuscript were 21.5-31.0 %. Model-assisted alignment recovered a further 2,686 lines.

arXiv:2610.16761v1cs.AI

Separating Prompt Harmfulness from Interaction Safety via Partial Generation

LLM-based information systems need safety guardrails. Most guardrails classify the prompt alone. If the prompt looks harmful, the system rejects it before any answer is generated. This is costly. Many rejected prompts would have received a safe response. Users lose help they should have received from the information system. This cost grows as conversational and generative search becomes common. Prompt-level labels treat harm as a property of the query. But harm depends on what the model actually writes. Existing input-output guards do look at responses. But they judge a finished response, so the decision comes after full generation. However, we observe that safety of model interaction with the input prompt can be inferred early with only partial output. So the system can start generating, watch the partial response, and stop only if it turns harmful. We test this idea in three steps. First, we build a dataset of 41,944 prompt-response pairs with seven open weights LLMs from three families: Llama, Gemma, and Qwen. Second, we show that prompt harmfulness and interaction safety differ. Prompt labels and response labels agree on only 50.46\% of items (Cohen's $κ$ = 0.06). Of the prompts that make any model respond harmfully, only 3.5\% do so for all seven LLMs. Third, we show that partial responses carry most of the signal. Fine-tuned classifiers predict response-level harm well (best AUPRC 0.885, F1 0.807). About one third of the response tokens recover almost full-response AUPRC.

arXiv:2610.16689v1cs.CL

EHR-Bench: A Chinese Multi-Task Benchmark for Recruitment AI

Recruitment applications span diverse operations, from drafting job descriptions and interpreting queries to organizing profiles, assessing fit, and recommending candidates and jobs. Systematic LLM evaluation therefore requires task coverage that reflects this range of business needs. We introduce EHR-Bench, an open Chinese benchmark comprising twelve tasks across six capability families and five recruitment scenarios. The tasks cover generation, extraction, classification, retrieval, semantic similarity, and reciprocal ranking within one evaluation framework. An internal recruitment dataset guides task definitions, the occupation taxonomy and sampling targets, output requirements, and scoring protocols. Following these specifications, we construct 8,336 task instances from public materials and controlled augmentation, with source-aware expert review and documented provenance. We evaluate twelve LLMs through task-level, capability-level, and aggregate comparisons. Closely ranked models exhibit distinct task strengths, and performance varies across input sources, reference evidence, and candidate pools. Five shared models retain the same observed Overall ordering on a private operational reference, with variation in capability and task correspondence. EHR-Bench provides a reproducible foundation for systematic model assessment, task-specific model selection, and further research on LLMs for recruitment. The project repository is available at https://github.com/EhrBench/EHR-Bench.