컴퓨트-인-메모리 어텐션: RC로 조절 가능한 온도를 갖춘 시간 영역 아날로그 소프트맥스 회로
Compute-in-Memory Attention: A Time-Domain Analog Softmax Circuit with RC-Tunable Temperature
한국어 초록
소프트맥스(softmax)는 트랜스포머 어텐션의 핵심 연산이지만, 지수 연산과 정규화는 컴퓨트-인-메모리(CIM) 가속기에서 상당한 오버헤드를 유발하며, 특히 아날로그 어텐션 점수를 먼저 디지털 영역으로 변환해야 할 때 그러하다. 본 연구는 GlobalFoundries 22-nm 완전 공핍형 실리콘 온 인슐레이터(FDSOI) 공정으로 구현한, 온도를 조절할 수 있는 아날로그 소프트맥스 회로를 제시하며, 이 회로는 중간 아날로그-디지털 변환 없이 CIM이 생성한 점수 전압에 직접 동작한다. 각 입력 점수는 공유 하강 램프(falling ramp)를 사용해 시간 영역 이벤트로 변환된다. 이에 대응하는 비교기 전이가 RC 감쇠 기준 전압을 샘플링하여 지수 가중치를 생성하고, 이 가중치는 회로 내부의 정규화 단계에서 처리된다. 지수 연산을 위해 트랜지스터의 약반전(weak-inversion) 특성에 의존하는 기존 아날로그 소프트맥스 회로와 달리, 제안하는 구조는 램프 기울기와 RC 시상수를 통해 소프트맥스 응답을 제어하여 프로그래밍 가능한 유효 온도를 구현한다. 128개 원소 구조는 다중 레벨 입력 벡터, 커패시턴스 변동 및 불일치(mismatch), 공정 및 온도 변동, 몬테카를로 분석, 공유 배선 기생 성분을 포함하는 트랜지스터 수준 시뮬레이션과 레이아웃 후 추출(post-layout extracted) 시뮬레이션으로 평가되었다. 공유 전역 램프 회로를 포함한 128개 원소 전체 구현의 면적은 9453.42~$μ\mathrm{m}^{2}$이며, 복제되는 소프트맥스 원소 하나의 면적은 70.2~$μ\mathrm{m}^{2}$이다. 이 회로는 총 전력 13.44~mW에서 242.97-ns의 평가 지연 시간을 달성하였으며, 이는 출력 원소당 25.5~pJ에 해당한다. 128개 원소를 동시에 평가했을 때 이상적인 소프트맥스 응답 대비 RMSE는 24.46~mV이다. 추출된 회로 특성은 MemTorch 기반의 하드웨어 인식 트랜스포머 모델에 추가로 반영되었으며, 제안하는 소프트맥스는 이상적인 소프트맥스 기준선 대비 2.5\% 이내의 검증 손실을 달성한다.
원문 초록
Softmax is a key operation in Transformer attention, but its exponentiation and normalization add significant overhead in compute-in-memory (CIM) accelerators, especially when analog attention scores must first be converted to the digital domain. This work presents a tunable-temperature analog softmax circuit in GlobalFoundries 22-nm fully depleted silicon-on-insulator (FDSOI) technology that operates directly on CIM-generated score voltages without intermediate analog-to-digital conversion. Each input score is converted into a time-domain event using a shared falling ramp. The corresponding comparator transition samples an RC-decaying reference to generate an exponential weight, which is then processed by an in-circuit normalization stage. In contrast to analog softmax circuits that rely on transistor weak-inversion behavior for exponentiation, the proposed architecture controls the softmax response through the ramp slope and RC time constant, enabling programmable effective temperature. The 128-element architecture is evaluated using transistor-level and post-layout extracted simulations, including multi-level input vectors, capacitance variation and mismatch, process and temperature variation, monte carlo analysis, and shared-interconnect parasitics. The complete 128-element implementation occupies 9453.42~$μ\mathrm{m}^{2}$ including the shared global ramp circuitry, while each replicated softmax element occupies 70.2~$μ\mathrm{m}^{2}$. The circuit achieves a 242.97-ns evaluation latency at 13.44~mW total power, corresponding to 25.5~pJ per output element. The simultaneous 128-element evaluation achieves an RMSE of 24.46~mV relative to the ideal softmax response. The extracted circuit characteristics are further incorporated into a MemTorch-based hardware-aware Transformer model, where the proposed softmax achieves a validation loss within 2.5\% of the ideal-softmax baseline.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2609.04266v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.