PyTorchKR Papers

업데이트된 논문

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

카테고리 탐색

arXiv:2512.05439v3cs.AI

BEAVER: An Efficient Deterministic LLM Verifier

As large language models (LLMs) transition from research prototypes to production systems, practitioners need reliable ways to verify model outputs before they are deployed. While sampling-based estimates provide an ad-hoc intuition of model behavior, they offer no sound guarantees. We present BEAVER, the first practical framework for computing deterministic, sound bounds on the probability that an LLM's response to a prompt satisfies a property. Given a prompt and an oracle, BEAVER systematically explores the model's output distribution using a *token trie* and a *frontier*, maintaining provably sound bounds at every iteration. We formalize the LLM verification problem, prove that BEAVER's bounds are sound and that its selection strategy Max-$\mu$ is optimal for verification upto any tolerance. On 3 important safety tasks across 5 popular LLMs, BEAVER certifies up to $7.6\times$ more prompts as risky than a sampling-based verifier while using fewer forward passes, and its per-prompt bounds extend to statistical certificates over distributions of prompts.

arXiv:2411.19906v4quant-ph공식 코드 · Papers with Code

A characteristic-graph reduction for deterministic L-system inference with classical and quantum-heuristic solvers

L-systems are widely used to model and simulate biological growth processes, including plant development. Motivated by the broader goal of automating L-system construction, this paper studies the formal deterministic context-free L-system (D0L-system) inference problem in which the input is a finite, noise-free sequence of strings. We introduce the characteristic graph of a string sequence and prove that the existence of a compatible D0L-system is equivalent to the existence of an independent set of a prescribed size in this graph. This gives polynomial reductions from D0L inference to maximum independent set (MIS) and SAT, and hence an exact classical decision route when combined with an exact MIS or SAT solver. We also describe a Quantum Approximate Optimization Algorithm (QAOA)-based quantum heuristic for generating candidate independent sets. This heuristic is not a decision procedure for D0L inference, and failure of the heuristic is inconclusive rather than a certificate of nonexistence. We include computational validation on $22$ generated D0L traces and $8$ negative controls, explicitly incorporate known fixed-identity symbols, and report small statevector QAOA simulations. The quantum component is presented as a proof-of-concept candidate generator, not as a claimed quantum speedup; the immediately useful contribution is the characteristic-graph reduction and the exact classical/SAT decision framework it enables.

arXiv:2408.14443v4cs.LO

Ensemble Logic

Ensemble Logic (EL) is a family of modal logics whose modal parameters are terms with quantified variables. We interpret formulas over metric monoids, that is, commutative monoids equipped with translation-invariant metrics. Displacement evaluates a formula at a translated point, while bounded existence and bounded universality evaluate it at some or every point of a window of prescribed length. Quantification over points and lengths allows the same variable to occur in the parameters of several operators. This provides a common framework for temporal and spatial reasoning in discrete, dense and multi-dimensional settings. Our main result establishes a sharp undecidability boundary for satisfiability over the natural numbers: satisfiability is undecidable already for formulas $\exists N\,\exists n\,\Psi$ in which $\Psi$ is built from the letters of a fixed alphabet by conjunction, disjunction, displacement and bounded universality. We prove this by a reduction from Post's Correspondence Problem. We also present results, in part from companion work, that place this theorem in the general theory of EL. These include an atomic-displacement normal form for covariant windows and composition laws for discrete and dense time. The discrete logic admits an embedding of linear temporal logic, defines the accepting runs of every B\"uchi automaton, and has a sound equational calculus. For the rational logic, we show that every fixed formula can be evaluated in polynomial time on interval models in which atomic propositions are interpreted by finite unions of intervals. Finally, we represent timed words over positions and real time and compare two window geometries; with rectangular windows, two shared lengths yield undecidability on finite timed words.

arXiv:2512.18436v3cs.OS

VeruSAGE-Bench: Rust 시스템 검증을 위한 벤치마크 모음

VeruSAGE-Bench: A Benchmark Suite for Rust System Verification

대규모 언어 모델(LLM)은 코드를 이해하고 개발하는 데 인상적인 능력을 보여 왔다. 그러나 소프트웨어 시스템의 정확성을 엄밀하게 추론하고 형식적으로 증명하는 능력은 여전히 의문으로 남아 있다. 형식 증명 생성을 위한 기존 벤치마크는 기본 자료구조를 활용한 알고리즘 유형 문제 같은 고립된 과제에 초점을 맞춘다. 본 연구에서는 시스템 수준 증명 생성을 위한 새로운 벤치마크 모음 VeruSAGE-Bench를 구축하였으며, 이는 운영체제, 저장 시스템, 메모리 할당기 등을 포괄하는 여덟 개의 오픈소스 Verus 검증 Rust 시스템에서 추출한 849개의 증명 과제로 구성된다. 이 과제들은 기존 벤치마크보다 훨씬 복잡하여, 평균적으로 형식 명세(코드 줄 수 기준)가 20배 이상 많고 훨씬 폭넓은 검증 기법을 요구한다. VeruSAGE-Bench에서 여섯 개의 LLM(o4-mini, GPT-5, Sonnet 4, Sonnet 4.5, Opus 4.5, Qwen3.5)을 평가한 결과, 모델과 에이전트 구성에 따라 성공률과 비용이 크게 달라짐을 보였다. 또한 최고 성능 모델들이 정확성 증명 작성에서 인상적인 능력을 갖추고 있어 신뢰할 수 있는 소프트웨어를 개발하는 새로운 방식에 영감을 줄 수 있음을 보인다. 한편 VeruSAGE-Bench의 일부 어려운 과제는 최고 성능 모델에도 부담을 주어, 긴 추론 시간(가장 어려운 과제에서 1시간 초과, 과제당 평균 15.3분), 높은 토큰 비용(과제당 평균 13.65달러), 증명 실패를 초래하며, 이는 향후 모델과 에이전트의 개선을 이끌 것으로 기대한다. 이는 인간 전문가가 작성한 보조 보조정리를 제거한 더 어려운 무보조정리 버전의 VeruSAGE-Bench에서 특히 두드러지며, 이 경우 최고 성능 모델은 가장 어려운 프로젝트의 과제 중 41%만을 과제당 96달러의 비용으로 증명한다.

arXiv:2610.16473v2cs.LO

차 계층에서 일 카운터 언어의 완전한 $\omega$-거듭제곱 몇 가지

Some complete $\omega$-powers of a one-counter language in the difference hierarchy

두 글자 이상을 갖는 유한 알파벳 $\Sigma$와 자연수 $n,k\geq 1$을 고정한다. $\mathbf{\Pi}^0_k$에 속하는 칸토어 공간 $\Sigma^\omega$의 부분집합 $n$개의 차로 이루어진 클래스를 $D_n(\mathbf{\Pi}^0_k)$로, $D_n(\mathbf{\Pi}^0_k)$에 속하는 집합의 여집합으로 이루어진 클래스를 $D^-_n(\mathbf{\Pi}^0_k)$로 나타낸다. 우리는 임의의 자연수 $n,k\geq 1$에 대하여, 두 글자 이상을 갖는 유한 알파벳 $\Sigma$와, 일 카운터 오토마톤이 받아들이는 $\Sigma$ 위의 유한 언어 $U_{n,k}$가 존재하여 $\omega$-거듭제곱 $$U_{n,k}^\infty:=\{ w_0w_1\cdots\in\Sigma^\omega\mid\forall i\in\omega ~~w_i\in U_{n,k}\}$$이 $D_{2n-1}(\mathbf{\Pi}^0_k)$-완전임을 증명한다. 또한 쌍대 클래스 $D^-_{2n}(\mathbf{\Pi}^0_k)$에 대한 조건부 결과도 증명한다. 일 카운터 오토마톤이 받아들이는 유한 언어 $V_{n,3}$가 존재하여 그 $\omega$-거듭제곱 $V_{n,3}^\infty$가 $D^-_{2n}(\mathbf{\Pi}^0_3)$-완전이라고 가정하면, 임의의 정수 $k > 3$에 대해서도 일 카운터 오토마톤이 받아들이는 유한 언어 $V_{n,k}$가 존재하여 그 $\omega$-거듭제곱 $V_{n,k}^\infty$가 $D^-_{2n}(\mathbf{\Pi}^0_k)$-완전이 된다. 마지막으로 유리 $\mathbf{\Delta}^0_2$ 오메가 거듭제곱의 Wadge 차수에 관한 또 다른 조건부 결과를 추가하며, 이는 [FGL26]의 최근 결과를 보완한다.

arXiv:2602.12300v2cs.FL

유한 상태 방법을 위한 빠르고 일반적인 자동 미분

Fast and General Automatic Differentiation for Finite-State Methods

우리는 자동 미분 소프트웨어에 벡터-야코비안 곱의 사용자 정의 구현을 통합하기 위한, 우리가 "사상 트릭(morphism-trick)"이라고 명명한 새로운 방법을 제안하며, 이는 세미링 기반의 폭넓은 계산에 적용할 수 있다. 우리의 접근법은 동적 계획법 알고리즘의 역전파 단계를 세미링에 구애받지 않으면서 효율적으로 구현할 수 있게 한다. 유한 상태 방법의 특수한 경우에 대해, 우리는 유한 상태 오토마톤의 모든 경로 가중치의 $\oplus$-합을 계산하고 미분하는 알고리즘을 소개한다. 결과는 사용자의 최소한의 노력만으로, 우리의 새로운 라이브러리가 유한 상태 오토마톤의 가중치에 대한 함수의 기울기를 최첨단 자동 미분 시스템보다 수 배 자릿수 더 빠르게 계산할 수 있음을 보여준다. 구현은 관대한 라이선스로 배포되는 오픈소스 라이브러리를 통해 제공된다.

arXiv:2602.07473v3cs.AI

사후 결정적 POMDP의 도달 가능성 값 근사

Approximating the Reachability Value of Posterior-Deterministic POMDPs

본 논문은 사후 결정적(posterior-deterministic) POMDP를 도입하고, 이 부류의 POMDP에 대해 주어진 상태 집합에 도달할 최대 확률을 임의의 정밀도로 근사할 수 있음을 보인다. POMDP는 현재 상태, 취한 행동, 받은 관측으로부터 다음 상태를 유일하게 결정할 수 있을 때 사후 결정적이다. 특히 현재 상태가 알려지면 그 상태는 영원히 알려진 채로 유지된다. 이 부류에는 예를 들어 환경에 대한 사전 분포를 갖춘 다중 환경 MDP, 준결정적(quasi-deterministic) POMDP, 그리고 고전적인 Tiger POMDP(Kaelbling et al. 1998)의 에피소드 버전이 포함된다.

arXiv:2611.01825v2cs.FL

자연어 규칙의 범위 문법: 논리적 동치를 기준으로 한 해석의 계수와 열거

The Scope Grammar of Natural-Language Rules: Counting and Enumerating Readings modulo Logical Equivalence

사람을 위해 작성된 규칙은 원자 조건과 접속사는 정하지만 접속사를 어떻게 묶을지는 열어 두며, 각 묶음 방식은 자동 형式화기가 해소하거나 드러내야 하는 서로 다른 논리적 해석이 된다. 우리는 범위 문법(scope grammar)을 연구한다. 이는 의도적으로 모호한 문맥 자유 문법으로, 그 유도 트리는 접속사 골격의 해석에 해당하며 논리적 동치에 의한 몫집합이 후속 단계에서 중요하다. 이항 접속사 $k$개를 가진 골격은 $k$번째 카탈랑 수인 $C_k$개의 유도 트리를 갖지만, 논리적으로 구별되는 해석은 훨씬 적다. 양의, 반복 없는 단편에 대해 우리는 이 간극을 정확히 규명한다. 단일 읽기 정규형의 유일성을 통해 실현 가능한 정규형을 최소 공통 조상으로 특성화하고, 연산자 단어에 대한 두 레이블 점화식으로 그 수를 세며, 원자 11개까지의 전수 열거로 검증한다. 이 수는 뒤집기와 $\wedge/\vee$ 쌍대성에 대해 불변이다. 골격이 모호한 것은 $\wedge$와 $\vee$를 모두 사용하는 경우와 동치이며 이는 한 번의 순회로 판별할 수 있다. 또한 클래스의 수는 적어도 $2^{\lfloor n/3\rfloor}$이다. 원자 15개까지는 교대 패턴이 최악의 경우이며, 그 수는 3차 생성 함수를 가지고 3-슈뢰더 수열(OEIS A137842)이며, 밑 $\varphi^{5/2}\approx3.330$으로 증가하여 카탈랑 밑 4보다 작다. 우리는 최대성을 증분에 대한 부등식으로 환원하고 원자 16개까지 검증하며, 국소 교환 논증으로는 이를 증명할 수 없는 이유를 설명한다. 또한 부정, 예외, 배경 공리를 다루는데, 여기서도 정규형의 유일성은 동치를 결정하지만 계수는 미해결이다.

arXiv:2610.30168v2cs.FL

유한 검증 가능 분할: 유한 상태 검증기를 갖춘 모든 토크나이저에 대한 결정 가능성

Finitely Verifiable Segmentation: Decidability for Every Tokenizer with a Finite-State Verifier

분할 정책은 각 바이트 문자열에 최대 하나의 토큰 분할을 할당한다. 표시된 문자열, 즉 바이트와 경계 비트의 쌍에 대한 유한 오토마톤이 해당 정책 자신의 분할만을 정확히 받아들일 때, 이를 유한 검증 가능하다고 한다. 이 오토마톤은 제안된 분할을 판정하며 분할을 계산할 필요는 없다. 본 논문은 주어진 검증기로부터 네 가지 질문, 즉 윈도가 토큰 경계를 보증하는가, 경계 간격이 유계인가, 마스크가 생성이 막다른 길에 이르는 것을 막을 수 있는가, 두 정책이 동치인가에 대한 구성적 결정 절차를 제시한다. 뒤의 세 가지는 각각 한정성(limitedness), 공접근성(co-accessibility), 단일값 변환기의 동치성을 특수화한 것이다. 첫째는 부호 이론의 동기화 절단을 정제한 것이며, 나머지 둘은 보증된 절단 또는 목록의 절단이 각 조각을 독립적으로 스캔할 수 있게 하는지를 묻는다. 이 클래스는 온라인 스캔 가능 정책과 정규 정의역을 갖는 정책 사이에 엄밀히 위치하며, 온라인 스캔 가능성은 Choffrut의 정리를 통해 다항 시간에 결정 가능하다. 표시는 길이를 보존하므로 이 클래스는 정확히 유리적(rational) 분할 정책이며, 이는 제한이 아니라 정규형이다. 이 클래스는 레이블이 있는 단계에 대한 합성, 정규 스키마로의 제한, 문자 클래스 변화 지점에서의 분할, 리터럴 정책의 바이트 폴백 합집합이라는 네 가지 파이프라인 연산에 대해 닫혀 있다. 각 합성물은 여섯 가지 결정 절차를 상속하며, 증명서는 네 가지 법칙에 따라 단계 사이에서 전달된다. 유리적, 단일 방향(unifilar), 거의 확실하게 정지하는 유한 상태 소스 하에서 가중 절의 각 질량은 정확한 유리수이며, 기대 길이가 양수인 경우 각 비율도 그러하다. 최대 길이 일치(maximal-munch) 어휘 분석, 정준 바이트 쌍 인코딩, 2모드 WordPiece가 이 인터페이스를 구현하며, munch 라이브러리는 여섯 가지 결정 절차를 모두 구현한다. 모든 정리에는 실행 가능한 검사가 딸려 있고, 보고된 모든 통계는 프로그램 자체의 출력이다.