index
Abstract
With the recent success of graph convolutional networks (GCNs), they have been widely applied for recommendation, and achieved impressive performance gains.
The core of GCNs lies in its message passing mechanism to aggregate neighborhood information.
However, we observed that message passing largely slows down the convergence of GCNs during training, especially for large-scale recommender systems, which hinders their wide adoption.
LightGCN makes an early attempt to simplify GCNs for collaborative filtering by omitting feature transformations and nonlinear activations.
In this paper, we take one step further to propose an ultra-simplified formulation of GCNs (dubbed UltraGCN), which skips infinite layers of message passing for efficient recommendation.
Instead of explicit message passing, UltraGCN resorts to directly approximate the limit of infinite-layer graph convolutions via a constraint loss.
Meanwhile, UltraGCN allows for more appropriate edge weight assignments and flexible adjustment of the relative importances among different types of relationships.
This finally yields a simple yet effective UltraGCN model, which is easy to implement and efficient to train.
Experimental results on four benchmark datasets show that UltraGCN not only outperforms the state-of-the-art GCN models but also achieves more than 10x speedup over LightGCN.
GCN, LightGCN
1. Message Passing in GCN[1]
2. Message Passing in LightGCN[2]
โข
GCN์์ ์๋์ ํญ๋ชฉ๋ค์ ์ ๊ฑฐํจ
โฆ
feature transformation(W)
โฆ
nonlinear activation()
โฆ
self-loop connections(I) - ํ์ง๋ง ๊ฐ layer์ ์ถ๋ ฅ์ ๋ชจ๋ ์ฌ์ฉํด final output์ ๋ง๋ฆ์ผ๋ก์จ self-loop์ด ์๋ ๊ฒ๊ณผ ๋์ผํ ํจ๊ณผ๋ฅผ ๊ฐ์ง
3. 2๋ฅผ ํ์ด์ ์ฐ๋ฉดโฆ
โข
์ต์ข
์ ์ผ๋ก๋ ์ ์ dot product๋ก user-item edge๋ฅผ ์์ธกํ๊ฒ ๋ ๊ฒ์ด๋ฏ๋ก, ๋ฅผ ์ ๊ฐํด ๋ณด๋ฉด
4. 3์ ๋ฏ์ด์ ๋ณด๋ฉดโฆ[3]
โข
๋ค ๊ฐ์ง component๋ก ๋ถ๋ฆฌ๋จ
โฆ
target user - target item interaction
โฆ
target item - interacted item
โฆ
target user - interacted user
โฆ
interacted user - interacted item
์ GCN-based model์ ์ธ ๊ฐ์ง Limitations
1. Item-item, User-user interaction factor์ ๋น๋์นญ์ฑ
โข
item-item interaction factor
โฆ
interacted item k์ target item i ๊ฐ์ ๊ฐ์ค์น๊ฐ ๋ค๋ฆ.
โฆ
i: (di + 1)
โฆ
k: sqrt(dk + 1)
โข
user-user interaction factor์์๋ ๋์ผ
2. ์๋ก ๋ค๋ฅธ interaction component์ ๊ฐ์ค์น๋ฅผ ๋ค๋ฅด๊ฒ ์ค ์ ์์
โข
์์ ๋ค ๊ฐ์ง interaction component๋ค์ด ์ต์ข
output์ ์ฃผ๋ ๊ฐ์ค์น๋ฅผ ๋ฐ๊ฟ ์ ์์
โข
๋ ์ด์ด๋ค์ ์๋ค ๋ณด๋ฉด ๋ณ๋ก ์ค์ํ์ง ์์ interaction component๋ค์ด ํฌํจ๋ ์ ์๋๋ฐ, ์ด๋ ํ์ต์ ํจ์จ์ฑ์ ํฌ๊ฒ ์ ํํจ
โข
It is desirable to flexibly adjust relative importances of various relationships.
3. Over-smoothing problem
โข
์ด์์ ์ผ๋ก๋ ๋ ์ด์ด๋ฅผ ๋ ๋ง์ด ์์์๋ก high-order collaborative signal๋ค์ด ๋ฐ์๋์ด ์ฑ๋ฅ์ด ์ฌ๋ผ์ผ ํ๋, ์ค์ LightGCN ๋ฑ์์ ๋ ์ด์ด 2~3๊ฐ๋ง ์์๋ ์ฑ๋ฅ์ด ๋จ์ด์ง๊ธฐ ์์ํจ.
โข
์ด๊ฑด over-smoothing ๋ฌธ์ ์ ๊ธฐ์ธํ๋ ๋ถ๋ถ๋ ์๋๋ฐ, layer์ ๋ง์ด ์์ ์๋ก same-degree๋ฅผ ๊ฐ๋ ๋
ธ๋๋ค์ด ์ ์ ๋์ผํ๊ฒ ์๋ฒ ๋ฉ๋จ
UltraGCN
โข
๊ธฐ์กด GCN๋ค์ user, item ์๋ฒ ๋ฉ๋ค์ l๊ฐ์ message-passing layer์ ํต๊ณผ์์ผ embedding refineํ ํ ์ด๋ค์ dotprodํ๋ค
โข
UltraGCN์ message-passing layer๋ฅผ ์๋ค(=๋ชจ๋ธ ๊ตฌ์กฐ๋ Matrix Factorization๊ณผ ์์ ๋์ผ!). ๋์ ๊ทธ๋ํ ๊ตฌ์กฐ๋ฅผ ๋ฐ์ํ constraint loss๊ฐ loss ํญ์ ์ถ๊ฐ๋๋ค.
โข
constraint loss๋ ์ด๋ป๊ฒ ๋ง๋ค์ด์ง๋? โ message passing์ด ์์ ์ ๋์์ ๋ ์๋ฒ ๋ฉ๋ค ๊ฐ์ ๊ฐ์ง idealํ ๊ด๊ณ๋ค์ ํ์ฌ ์๋ฒ ๋ฉ๋ค์ด ๊ฐ๋๋ก ํ๋ค.
1. User-Item graph์ ๋ฐ์
โข
infinite layer์ ํต๊ณผํ์ฌ message passing์ด ์๋ฒฝํ๊ฒ ์ด๋ฃจ์ด์ก๋ค๋ฉด, ์ ์ ์๋ฒ ๋ฉ์ ์ต์ข
์๋ ด ์ํ๋ ๋ค์๊ณผ ๊ฐ๋ค.
โข
๊ทผ๋ฐ message passing์ ์๋ ๊ด๊ณ๋ฅผ ๊ฐ๋๋ค.
โข
์ 7, 8์ ์ ๋ฆฌํ๋ฉด ์๋์ ๊ฐ๋ค.
โข
์ฆ 9๋ฒ ์์ ์ํ๋ฅผ ๋ง์กฑํ๋ค๋ฉด message passing์ด ์๋ฒฝํ๊ฒ ์ด๋ฃจ์ด์ง ๊ฒ.
โข
9๋ฒ ์์ ์ํ๊ฐ ๋๋๋ก loss๋ฅผ ๊ตฌ์ฑํ์. ์ฆ, 9๋ฒ ์์ ์ข์ฐ ํญ์ด ์ ์ฌํด์ง๋๋ก loss๋ฅผ ๊ตฌ์ฑํ์.
โฆ
Trick: ๊ฐ ์๋ฒ ๋ฉ๋ค์ unit vector๋ก normalizeํ๋ค.
โฆ
๊ทธ๋ฌ๋ฉด ์๋ ์์ด ์ข์ฐ ํญ์ ์ ์ฌ๋์ด๋ค(cosine similarity between and )
โข
์ต์ ํ์์์ ํธ์์ฑ์ ์ํด sigmoid๋ฅผ ์์ฐ๊ณ nll-loss๋ก ์๋์ ๊ฐ์ด ๊ตฌ์ฑํ์๋ค.
โข
๊ทผ๋ฐ 11๋ฒ ์์ over-smoothing ๋ฌธ์ ๋ฅผ ๊ฒช๊ฒ ๋๋ค. ๋ชจ๋ ์ธ , ์์ ๋ํด ์๋ฒ ๋ฉ์ด ๋์ผํด์ง ๋ ๊ทน์๋ฅผ ๊ฐ๊ธฐ ๋๋ฌธ โ negative sampling์ ํตํด ํด๊ฒฐํ์.
โข
์ต์ข
Loss์๋ ์ด๋ป๊ฒ ๋ฐ์?
โฆ
Task loss๋ pairwise BPR vs pointwise BCE๋ก ์ค์ ๋จ
โฆ
์ต์ข
loss๋ task loss + weighted constraint-loss
โช
Note: Lo์ Lc๋ ์์ ๊ตฌ์กฐ๊ฐ ๋์ผํ๊ธด ํ์ง๋ง. Lo์ Lc์ ์ฌ์ฉ๋๋ negative sample์ ๋ค๋ฅผ ์๋ ์์(nsrate=300)
2. Item-Item graph์ ๋ฐ์
1.
Item-Item Co-occurance graph ์์ฑ
2.
User-item graph์์์ ๋๊ฐ์ ๋ฐฉ๋ฒ์ผ๋ก, ๊ทธ๋ํ G์์ ideal state๋ฅผ approximateํ ์ ์๋ loss function์ ์์ฑ
a.
user-item graph์ == item-item graph์
b.
item-item connection์ sparsity๋ฅผ ๋ณด์ฅํ๊ณ ํ์ต ํจ์จ์ ๋๋ฆฌ๊ธฐ ์ํด, item-item graph์์๋ ๊ฐ ์์ดํ
i์ ๋ํด ๊ธฐ์ค ์์ K๊ฐ์ ์ ์ฌ ์์ดํ
๋ง ์ ํํ์ฌ loss์ ๋ํจ(N(i) โ S(i), |S(i)|=K)(ํ์ต์์๋ K=10)
c.
(Lo, Lc์์์ negative sampling์ด ์ด๋ฏธ ์ถฉ๋ถํ over-smoothing์ ๊ทน๋ณตํ๊ฒ ๋์์ฃผ๋ฏ๋ก ์ฌ๊ธฐ์๋ ๊ตณ์ด negative sampling ํ์ง ์์๋ค๊ณ ํจ)
3.
์ต์ข
Loss?
Note) Flexibility
โข
LightGCN์์๋ U-I, I-I interaction์ ๊ฐ์ค์น๋ฅผ ๋ฐ๋ก ์กฐ์ ํ ์ ์์์
โข
UltraGCN์์๋ message passing์ด ์์ด ๊ฐ interaction์ loss function์ ๋ฐ๋ก ๋ฐ์ํ๊ธฐ ๋๋ฌธ์, loss function์์์ ๊ฐ์ค์น๋ฅผ ์กฐ์ ํจ์ผ๋ก์จ ํด๋น interaction์ ์ํฉํธ๋ฅผ ์ ์ฐํ๊ฒ ์กฐ์ ํ ์ ์์
โข
๋ํ U-I, I-I๊ฐ ์๋๋๋ผ๋ ์ฌ๋ฌ Interaction(ex: social graph์์์ u-u, knowledge graph ๋ฑ~)์ loss์ ๋ฐ์ํจ์ผ๋ก์จ ํ์ต์ ๋ฐ์ํ ์ ์์
์ฑ๋ฅ
1. Performance
โข
UltraGCN-base: item-item graph๊ฐ ๋ฐ์๋์ง ์์ ๋ชจ๋ธ
โข
๋ค ๊ฐ์ ๋ฐ์ดํฐ์
์์ ์ผ๊ด์ ์ผ๋ก UltraGCN์ด ๋ค๋ฅธ ๋ชจ๋ธ๋ณด๋ค ์ฐ์ํ ์ฑ๋ฅ์ ๋ณด์. ์์ผ๊น?
1.
U-I, I-I graph์ ๋ถ์ฌํ ๊ฐ์ค์น๋ค์ด ์ ์ ํ๊ณ (thx to flexibility), ๊ฐ์ ๋ฐ๋ผ / top-K๊ฐ i-i graph neighbour์ ์ ํํ๋ ๊ณผ์ ๋์ ๋ถํ์ํ interaction์ด ์ ํํฐ๋ง๋์๋ค.
2.
UltraGCN์ด graph convolution์ ๋ณธ์ง๋ง ํจ์จ์ ์ผ๋ก ์ ์ฌ์ฉํ์ฌ, deep collaborative signal์ ์ ๋ฐ์ํ๋ค.
โข
๋ ๋ค๋ฅธ ์ฅ์ : UltraGCN์ ๋ชจ๋ธ ๊ตฌ์กฐ๋ ๋ณธ์ง์ ์ผ๋ก MF์ ๋์ผํ๊ณ loss๋ง ๋ฐ๋๋ ๊ฒ์ด๋ฏ๋ก, DGCF๊ฐ์ sota MF ๋ชจ๋ธ๋ค์๋ orthogonalํ๊ฒ ์ ์ฉ ๊ฐ๋ฅํ๋ค. ๊ฐ๋ค๋ถ์ด๋ฉด ์ฑ๋ฅ ๋ ์ค๋ฅผ๊ฑธ?
2. Efficiency
โข
Table 3: ์ต๊ณ ์ฑ๋ฅ์ ๋ฌ์ฑํ๊ธฐ๊น์ง ๋ช epoch์ด ๊ฑธ๋ฆฌ๋? epoch๋น ํ์ต ์๊ฐ์? ์ด ํ์ต ์๊ฐ์?
โฆ
MF-BPF์ด ๊ฐ์ฅ ๋น ๋ฅด๊ณ ๊ทธ ๋ค์์ด UltraGCN(ํ์ง๋ง ๋ ๋ชจ๋ธ์ ์ฑ๋ฅ ์ฐจ์ด๋ ๋งค์ฐ ํฌ๋ค).
โข
Table 4: 75 epoch ํ์ต๊น์ง ์ผ๋ง๋ ๊ฑธ๋ฆฌ๊ณ ์ฑ๋ฅ์ ์ด๋ ์ ๋?
โฆ
UltraGCN์ด best
3. Ablation study(Amazon-Book)
โข
U-U ๊ทธ๋ํ๋ ์ ์ ์จ? โ ์จ๋ดค๋๋ฐ ํฌ๊ฒ ์ฑ๋ฅ ์ฐจ์ด ์์ด์
โข
U-I, I-I ๋๋ค ์ฑ๋ฅ์ ์ค์ํ ๊ฒ ๋ง์? โ Yes. ๊ทผ๋ฐ U-I๊ฐ I-I๋ณด๋ค ๋ ์ค์ํ ๋ฏ
โข
I-I graph ๋ฐ์ํ ๋, I-I graph์์์ U-I pair์ loss์ ์ผ๋๋ฐ, I-I graph์์์ I-I pair์ ๋ฐ์ํ๋ ๊ฒ๋ณด๋ค ๊ทธ๊ฒ ๋ซ๋?
โฆ
L_I โ Lโ_I๋ก ๋ฐ๊ฟ์ ์คํํด๋ดค๋๋ฐ, ์ฑ๋ฅ์ด ๋จ์ด์ง
4. ํ๋ผ๋ฏธํฐ ๋ถ์
โข
K
โฆ
K๊ฐ ๋๋ฌด ์์ผ๋ฉด I-I graph๋ฅผ ์ถฉ๋ถํ ํ์ฉํ์ง ๋ชปํ๊ณ , ๋๋ฌด ํฌ๋ฉด noise๊ฐ ๋ง์ด ๋ค์ด์จ๋ค.
โข
, (Amazon-Book)
โข
์ต์ ํ ์์: ๊ฐ๋ง=0์ผ ๋ ๋๋ค ์ต์ ํ โ ๋๋ค ์ต์ ์ผ ๋ ๊ฐ๋ง ์ต์ ํ
โข
๋๋ค, ๊ฐ๋ค์ด ๋๋ฌด ์์ผ๋ฉด ๊ทธ๋ํ ์์๋ฅผ ํ์ต์ ์ถฉ๋ถํ ๋ฐ์ํ์ง ๋ชปํด ์ฑ๋ฅ์ด ๋จ์ด์ง๋ค.
References
[1] Semi-Supervised Classification with Graph Convolution Networks(ICLRโ17)
[2] LightGCN: Simplifying and Powering Graph Convolution network for Recommendation(SIGIRโ20)
โข
์ค์ํ ๊ฒ์ ๋ณธ์ง. ๊ทธ๋ํ ๊ตฌ์กฐ๋ฅผ ์ฌ์ฉํ๋ ์ต์ข
๋ชฉ์ ์ ์ฐ๊ฒฐ๋ ๋
ธ๋ ์๋ฒ ๋ฉ์ ๋น์ทํ๊ฒ ๋ง๋๋ ๊ฒ โ ๊ท์ฐฎ๊ฒ layer ํต๊ณผ์ํค์ง ๋ง๊ณ , loss์์ ์ง์ ํ์ต์ ๋ฐ์































