# One-step regression and classification with crosspoint resistive memory arrays

크로스포인트 저항 메모리 어레이를 이용한 원스텝 회귀 및 분류

Zhong Sun, Giacomo Pedretti, Alessandro Bricalli, Daniele Ielmini · arXiv · 2020년 5월 5일

- **연구 문제** 기존 디지털 컴퓨터는 선형 회귀와 로지스틱 회귀의 가중치를 반복 알고리즘으로 구해 계산 비용이 큽니다.
- **연구 방법** RRAM 크로스포인트 배열을 피드백 구성으로 연결해 데이터 행렬의 의사역행렬 해를 한 단계로 계산합니다.
- **주요 결과** 소규모 선형 회귀와 Boston 주택 데이터, MNIST 2층 신경망의 두 번째 층 학습에서 회로 결과가 해석적 해와 일치하는 정확도를 보였습니다.

## 선형 회귀와 로지스틱 회귀의 계산 비용

선형 회귀는 과도 결정 선형 시스템 Xw = y로 표현되며, 최소제곱 해는 의사역행렬을 이용해 w = X+y 로 구해집니다. 기존 디지털 컴퓨터는 이 해를 반복적인 알고리즘으로 구하므로 데이터 규모가 커질수록 다항 시간 복잡도의 계산이 필요합니다. 이 논문은 이 계산을 메모리 소자 배열 안에서 한 단계로 수행하는 것을 목표로 합니다.

로지스틱 회귀는 분류 작업에 쓰이며, 신경망의 마지막 분류 층으로도 사용됩니다. 논문은 로지스틱 회귀의 가중치 계산도 같은 의사역행렬 문제로 환원할 수 있다고 보고, 이를 같은 회로에서 다루는 범위를 설정합니다.

## 피드백 크로스포인트 회로의 원스텝 해법

제안 회로는 데이터 행렬 X를 두 개의 크로스포인트 배열에 RRAM 전도도로 매핑합니다. 입력 전류 벡터는 레이블 y의 음수에 해당하며, 출력 전압 벡터 v가 가중치 w를 나타냅니다. 두 배열은 연산 증폭기로 이어진 중첩 피드백 루프로 연결되며, 전체가 음의 피드백으로 안정적으로 동작합니다.

![Figure 1: Linear regression circuit and experiments. (A) Schematic illustration of the crosspoint circuit](https://refivu.com/papers/3d9de6a9-144e-4dd9-bf46-2e45035031ef/figures/figure-a6ede97e59f8e7f6367e40ca3d7fa842.png?thumb=512)

**Fig. 1** . Linear regression circuit and experiments. (A) Schematic illustration of the crosspoint circuit

[원문](https://arxiv.org/abs/2005.01988v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zhong Sun, Giacomo Pedretti, Alessandro Bricalli, Daniele Ielmini · One-step regression and classification with crosspoint resistive memory arrays · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.

회로의 정상 상태에서는 GX^T(GX v + i) = 0이 성립하고, 이로부터 v = -(GX^T GX)^(-1) GX^T i가 얻어집니다. 이는 의사역행렬 해 w = X+y와 같은 형태이므로, 회로 출력이 최소제곱 가중치가 됩니다. 원문은 이 해가 한 번의 계산 단계에서 얻어진다고 설명합니다.

## 로지스틱 회귀의 이진화와 환원

로지스틱 회귀에서는 레이블 벡터 y를 역시그모이드 기반 로짓 변환으로 합 벡터 s로 바꾸면 문제가 선형 회귀로 환원됩니다. 논문은 단순화를 위해 뉴런 함수를 계단 함수로 가정하고, 레이블에 따라 s\_i를 a 또는 1-a 같은 값으로 이진화합니다. 여기서 a는 출력 전압을 조절하는 양의 상수이며, 실험에서는 a=0.2를 사용했습니다.

이진화된 합 벡터가 회로의 입력 전류로 들어가면, 같은 회로에서 가중치 w가 구해집니다. 얻은 결정 경계는 s = w0 + w1x1 + w2x2 = 0이며, s≥0 영역이 클래스 1, s\<0 영역이 클래스 0에 해당합니다.

![Figure 2: Logistic regression experiments. (A) Illustration of a logistic regression model, consisting of the](https://refivu.com/papers/3d9de6a9-144e-4dd9-bf46-2e45035031ef/figures/figure-6a02cc94b90388eabf7eb1b85e9b31d6.png?thumb=512)

**Fig. 2** . Logistic regression experiments. (A) Illustration of a logistic regression model, consisting of the

[원문](https://arxiv.org/abs/2005.01988v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zhong Sun, Giacomo Pedretti, Alessandro Bricalli, Daniele Ielmini · One-step regression and classification with crosspoint resistive memory arrays · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.

## 선형 회귀 검증: 소규모 회로와 Boston 주택 데이터

소규모 실험에서 6개 데이터 점의 선형 회귀를 회로로 풀었고, 가중치 w0와 w1의 상대 오차는 각각 -4.86%와 0.82%로 보고됩니다. 같은 회로에서 새 입력 x\*에 대한 예측도 해석적 예측보다 약 1% 작은 값으로 얻어졌습니다.

규모 확장 실험에서는 Boston 주택 데이터의 506채 중 333채를 학습에, 나머지를 테스트에 사용했습니다. RRAM 값은 8비트 정밀도로 가정한 SPICE 시뮬레이션에서 가중치의 상대 오차가 ±1% 이내로 유지된다고 보고됩니다. 학습 세트의 표준편차 P는 4,733$, 해석 해는 4,732$로 나타났고, 테스트 세트에서는 4,779$와 4,769$로 보고됩니다. 이 결과는 SPICE로 시뮬레이션한 특정 조건에서의 관찰입니다.

## MNIST 2층 신경망의 두 번째 층 학습

신경망 실험에서는 첫 층 가중치 W(1)를 -0.5에서 0.5 사이에서 무작위로 설정하고, 은닉층 출력 X = f(TW(1))을 만듭니다. 두 번째 층 가중치 W(2)만 회로에서 의사역행렬 방식으로 계산합니다. 이 실험은 3,000개의 학습 샘플과 14×14로 축소한 이미지를 사용하며, 출력 10개 뉴런의 가중치를 각각 한 단계씩 계산합니다.

회로로 얻은 W(2)를 500개의 숫자에 적용하면 정확도는 94.2%로 해석적 의사역행렬 해와 같습니다. 전체 테스트 세트 10,000개에서는 회로 가중치가 92.15%, 해석 해가 92.14%입니다. 이 결과는 첫 층을 고정하고 두 번째 층만 학습한 설정의 결과입니다.

## 장치 변동, 배선 저항, 전류 한계

RRAM 장치의 전도도 이산화와 확률적 변동을 32개 준위 모델로 확인했을 때, Boston 데이터의 회귀와 예측은 모든 설정에서 정확하게 유지된다고 보고됩니다. 기생 배선 저항을 65 nm ITRS 파라미터로 넣은 경우에도 예측 표준편차는 4,809$로, 이상 값 4,769$와 차이가 있지만 강건하다고 저자들은 해석합니다.

다만 회로 규모가 커질수록 회로 유지에 더 큰 전류가 필요하며, 이는 연산 증폭기의 능력에 의해 제한될 수 있습니다. 논문은 낮은 전도도 구현이나 새로운 소자 개념으로 이 전류를 줄일 수 있다고 제안합니다. 에너지 효율 45.3 TOPS/W는 MNIST 학습 시뮬레이션에서 보고된 값입니다.

## 논문 정보

- **저자**: Zhong Sun, Giacomo Pedretti, Alessandro Bricalli, Daniele Ielmini
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2020년 5월 5일
- **등록일**: 2026년 11월 6일
- **수정일**: 2020년 5월 5일
- **버전**: v1
- **arXiv**: 2005.01988
- **DOI**: 10.1126/sciadv.aay2378
- **분류**: cs.LG · cs.ET · stat.ML
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2005.01988v1) · [원문 PDF ↗](https://arxiv.org/pdf/2005.01988v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Machine learning has been getting a large attention in the recent years, as a tool to process big data generated by ubiquitous sensors in our daily life. High speed, low energy computing machines are in demand to enable real-time artificial intelligence at the edge, i.e., without the support of a remote frame server in the cloud. Such requirements challenge the complementary metal-oxide-semiconductor (CMOS) technology, which is limited by the Moore's law approaching its end and the communication bottleneck in conventional computing architecture. Novel computing concepts, architectures and devices are thus strongly needed to accelerate data-intensive applications. Here we show a crosspoint resistive memory circuit with feedback configuration can execute linear regression and logistic regression in just one step by computing the pseudoinverse matrix of the data within the memory. The most elementary learning operation, that is the regression of a sequence of data and the classification of a set of data, can thus be executed in one single computational step by the novel technology. One-step learning is further supported by simulations of the prediction of the cost of a house in Boston and the training of a 2-layer neural network for MNIST digit recognition. The results are all obtained in one computational step, thanks to the physical, parallel, and analog computing within the crosspoint array.

## 원문 인용

Zhong Sun, Giacomo Pedretti, Alessandro Bricalli, Daniele Ielmini (2020). One-step regression and classification with crosspoint resistive memory arrays. arXiv:2005.01988v1. https://doi.org/10.1126/sciadv.aay2378

**BibTeX**

```
@article{sun2020step,
  title = {{One-step regression and classification with crosspoint resistive memory arrays}},
  author = {Zhong Sun and Giacomo Pedretti and Alessandro Bricalli and Daniele Ielmini},
  year = {2020},
  eprint = {2005.01988},
  archivePrefix = {arXiv},
  doi = {10.1126/sciadv.aay2378},
  url = {https://arxiv.org/abs/2005.01988v1}
}
```

## 다른 논문 해설

- [Predictive Modeling of ICU Healthcare-Associated Infections from Imbalanced Data. Using Ensembles and a Clustering-Based Undersampling Approach](https://refivu.com/papers/e7aec497-f033-4be0-bf84-d708340481ca-predictive-modeling-of-icu-healthcare-associated-infections.md)
- [A Perspective on Explainable Artificial Intelligence Methods: SHAP and LIME](https://refivu.com/papers/419ea828-55f0-4840-8bb1-a99a036efbe5-a-perspective-on-explainable-artificial-intelligence-methods.md)
- [A Survey of Deep Active Learning](https://refivu.com/papers/62f7e270-6bf3-4b97-b8d0-8d787c66cbf0-a-survey-of-deep-active-learning.md)
- [Towards Private Learning on Decentralized Graphs with Local Differential Privacy](https://refivu.com/papers/2ab64b92-e4bd-4105-b5c0-9a19a579c476-towards-private-learning-on-decentralized-graphs-with-local.md)
- [Learning with Multiclass AUC: Theory and Algorithms](https://refivu.com/papers/db960d59-4bb9-447a-ae68-d586d88d60ef-learning-with-multiclass-auc-theory-and-algorithms.md)
- [Scallop: A Language for Neurosymbolic Programming](https://refivu.com/papers/083c94cd-b288-47df-bf01-8ef7bbd73a0d-scallop-a-language-for-neurosymbolic-programming.md)
- [CapsField: Light Field-based Face and Expression Recognition in the Wild using Capsule Routing](https://refivu.com/papers/244ff41b-3664-4bfa-82b2-90f0f3306a49-capsfield-light-field-based-face-and-expression-recognition.md)
- [Enhanced method for reinforcement learning based dynamic obstacle avoidance by assessment of collision risk](https://refivu.com/papers/05edb2eb-271e-4bc5-b977-a68ad4b558b4-enhanced-method-for-reinforcement-learning-based-dynamic.md)
- [Towards AI-Assisted Synthesis of Verified Dafny Methods](https://refivu.com/papers/b53bae8b-b94e-41ac-b574-dd240789964f-towards-ai-assisted-synthesis-of-verified-dafny-methods.md)
- [IGAF: Incremental Guided Attention Fusion for Depth Super-Resolution](https://refivu.com/papers/c3907fb2-60bc-485f-bde9-49ad813a21a7-igaf-incremental-guided-attention-fusion-for-depth-super.md)
- [Spectral Bias and Task-Model Alignment Explain Generalization in Kernel Regression and Infinitely Wide Neural Networks](https://refivu.com/papers/0dfeefcb-6d9e-459c-9bec-7d099df6b4b6-spectral-bias-and-task-model-alignment-explain.md)
- [A multi-fidelity neural network surrogate sampling method for uncertainty quantification](https://refivu.com/papers/ae729c94-7aaf-422a-bfdc-1d54bb4ef3ce-a-multi-fidelity-neural-network-surrogate-sampling-method.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/3d9de6a9-144e-4dd9-bf46-2e45035031ef-one-step-regression-and-classification-with-crosspoint)
