랜덤 트랜스포머 프롬프팅을 통한 무학습 범용 근사
Training-Free Universal Approximation by Prompting Random Transformers
한국어 초록
트랜스포머(transformer)를 프롬프팅하는 것은 얼마나 표현력이 뛰어날까요? 이 질문에 답하는 것은 트랜스포머 모델에서 프롬프팅, 아키텍처, 사전학습의 역할을 분리하고, 태스크별 동작이 모델 가중치에 저장되어야 하는지 아니면 추론(inference) 시점에 프롬프트(prompt)를 통해 유도될 수 있는지를 판단하는 데 중요합니다. 본 연구에서는 근사 이론적 관점에서 사전학습이 선택 사항임을 보여줍니다. 즉, 학습되지 않은 무작위 가중치를 가진 단일 층(layer) 소프트맥스(softmax) 어텐션(attention) 네트워크도 적절한 소프트 프롬프트로 유도될 경우 콤팩트 다양체(compact manifold) 상의 임의의 횔더(Hölder) 함수를 근사할 수 있습니다. 소프트맥스 어텐션과 커널(kernel) 방법 간의 연결성에 착안하여, 본 연구는 고정된 트랜스포머가 고전적인 나다라야-왓슨(Nadaraya-Watson) 커널 추정기를 모방하도록 어텐션 로짓을 가우시안 커널 지수에 일치시키는 선형 시스템의 해로서 명시적인 소프트 프롬프트(쿼리와 무관하게 타깃 함수당 하나의 프롬프트)를 구축합니다. 이러한 구축은 가중치에 대한 온건한 계수(rank) 조건만을 요구하며, 가우시안 초기화(initialization) 하에서 이 조건이 거의 확실히 성립함을 보입니다. 프롬프트가 적용된 네트워크는 커널 회귀의 이론적 보장을 이어받아 고유 차원에 의존하는 미니맥스 최적 속도를 갖는 범용 근사 정리를 도출합니다. 나아가 프롬프팅 비용을 정량화하여 구축된 소프트 프롬프트 토큰의 노름(norm), 프롬프트 길이, 은닉 차원 간의 트레이드오프를 밝힙니다. 수치 실험을 통해 이러한 구축 방식과 예측된 수렴 속도를 검증합니다.
원문 초록
How expressive is prompting a transformer? Answering this question is important for separating the roles of prompting, architecture, and pretraining in transformer models, and for determining whether task-specific behavior must be stored in model weights or can instead be induced at inference time through the prompt. We show, in an approximation-theoretic sense, that pretraining is optional: a single-layer softmax attention network with random, untrained weights can approximate any Hölder function on a compact manifold when steered by an appropriate soft prompt. Guided by the connection between softmax attention and kernel methods, we construct explicit soft prompts (a prompt per target function, independent of the query) as solutions to linear systems matching attention logits to Gaussian kernel exponents, under which the frozen transformer emulates the classical Nadaraya-Watson kernel estimator. The construction requires only a mild rank condition on the weights, which we show holds almost surely under Gaussian initialization. The prompted network inherits the theoretical guarantees of kernel regression, leading to universal approximation theorems with minimax-optimal rates that depend on the intrinsic dimension. We further quantify the cost of prompting, exposing a tradeoff between the norm of the constructed soft prompt tokens, prompt length, and hidden dimension. Numerical experiments corroborate the constructions and predicted rates.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.09558v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.