PyTorchKR Papers

신규 논문

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

카테고리 탐색

arXiv:2611.31033v1cs.AI

AI-Assisted Auto-formalization for Trustworthy Scientific Computing: Case Studies and Lessons Learned

Agentic AI tools have recently had success in mathematical reasoning. Both general purpose coding agents such as Claude Code and Codex, and specialized mathematics agents such as Aristotle, have been used for formalizing mathematical problems such as Fermat's last theorem, Erd\H{o}s problems and several IMO level math problems. However, much of these efforts are concentrated in the pure mathematics domain, which benefits from relatively self-contained theorem statements, fixed mathematical representation and extensive support in existing formal libraries. Applied mathematics, on the other hand, presents additional challenges because the source may describe a computational procedure or modeling transformation rather than a declarative theorem. In this work, we present a systematic study of AI-assisted auto-formalization for scientific computing (SC), a domain in applied mathematics central to U.S. Department of Energy applications. Through case studies spanning hierarchical abstraction layers in SC software stack, we evaluate not only whether AI agents can complete numerical proofs, but also where and why they fail across the stack. Our primary contribution is a cross-layer taxonomy of failure modes and an analysis of the form of expert feedback required at each layer to recover mathematical soundness. From these observations, we derive a workflow for recurring proof patterns and practical guidance for using AI agents while preserving mathematical soundness. Our results characterize both the practical value and the current limitations of AI-assisted formalization for trustworthy scientific computing.

arXiv:2611.10855v1cs.LG

희소 및 구조적 데이터에 대한 효율적 연산을 위한 함수 합성으로서의 텐서 표현

Representing Tensors as Compositions for Efficient Computation on Sparse and Structured Data

우리는 모든 종류의 텐서와 그 텐서에 대한 연산을 단순한 함수 합성으로 표현하는 새로운 수학적 형식론을 제안한다. 텐서는 인덱스에서 값으로 가는 함수이다. 원소별 연산(예: 활성화 함수)은 값에 적용되는 함수와의 합성이고, 재인덱싱(예: reshape, 전치)은 인덱스에 적용되는 함수와의 합성이며, 리덕션은 각 인덱스를 여러 인덱스로 대응시키는 인덱스 함수 및 리덕션 연산(예: 곱, 합, 최댓값) 모두와의 합성이다. 텐서 스태킹과 결합하면 이러한 합성은 대부분의 흥미로운 텐서 종류(예: 밀집, 불규칙, 모든 종류의 희소 패턴, 행렬 분해)와, 임의 종류의 텐서 사이의 einsum을 포함하여 현대 텐서 연산 프레임워크에서 제공되는 거의 모든 연산의 지연 평가 버전을 표현할 수 있다. 그러면 합성 사이의 항등식을 사용하여 이러한 식을 평가하지 않고도 동등한 식으로 재작성할 수 있다. 예를 들어 두 희소 행렬의 곱은 0이 아닌 값들 사이의 곱만 계산되도록 재작성될 수 있으며, 이는 희소 문제를 밀집 문제로 바꾼다. 이 대수를 텐서 연산 엔진의 중간 표현으로 사용하면 초점이 텐서에 대한 연산(예: 희소 텐서 사이의 einsum)을 정의하는 것에서 인덱스 함수에 대한 대수를 정의하는 것으로 옮겨질 것이다. 이는 코드베이스 복잡도를, 텐서 간 이항 연산의 수 $m$과 텐서 유형의 수 $n$에 대한 $\mathcal{O}(mn^2)$에서, 인덱스 함수 유형의 수 $k$에 대한 $\mathcal{O}(m + k^2)$로 줄일 것이다. 이 대수에 기반한 텐서 연산 프레임워크의 초안 구현이 공개되어 있다.