[draft] feat: PPR v2 โ node specificity (IDF) re-ranking#75
Draft
TaskerJang wants to merge 1 commit into
Draft
[draft] feat: PPR v2 โ node specificity (IDF) re-ranking#75TaskerJang wants to merge 1 commit into
TaskerJang wants to merge 1 commit into
Conversation
raw PPR์ spec(e)=log(1+N/df) ๊ณฑํด generic hub(metric ๋ ธ์ด์ฆ) down-weight. re-ranking ์ธต์ผ๋ก๋ง ์๋(ํ์ฑํ ํ์ฐ ๋ณด์กด), NODE_SPECIFICITY ํ๋๊ทธ ํ ๊ธ. ์ธก์ ์ โ ๋ฐ์ ์ฉ (unmerged).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PPR v1์ faithfulness ํ๋ฝ(97โ84%) ๋ถ๊ฒ์์ ๋๋ฌ๋ metric ๋ ธ์ด์ฆ hub(degree ๋์ "๋งค์ถ์ก 2์กฐโฆ" ๋ฅ๊ฐ PPR ์์ ์ ๋ น โ ๊ณ๊ฐ์ง ์ฒญํฌ ํผ์ ) ์ฒ๋ฐฉ.
๋ฌด์
node specificity ์ฌ๋ญํน: ์ํฐํฐ e ์
spec(e) = log(1 + N/df(e))(df = e ๋ฅผ ์ธ๊ธํ ์ฒญํฌ ์, N = ์ ์ฒด ์ฒญํฌ ์, IDF ๊ณ์ด). raw PPR ์ ๊ทธ๋๋ก ๋๊ณ (ํ์ฑํ ํ์ฐ ๋ณด์กด) re-ranking ์ธต์ผ๋ก๋ง ๊ณฑํ๋ค โeff(e) = pr(e) ยท spec(e). top-15 ์ํฐํฐ ์ ์ + ์ฒญํฌ ์ ์ ํฉ์ฐ ๋ชจ๋ eff ์ฌ์ฉ โ generic hub ๊ฐ ๋์ด์จ ๊ณ๊ฐ์ง ์ฒญํฌ๊ฐ ๋ฐ๋ ค๋๋ค.NODE_SPECIFICITYํ๋๊ทธ๋ก v1(off)/v2(on) ํ ๊ธ_compute_specificity์ถ๊ฐ,_load_entity_graph๊ฐ spec ๋๋ด ์บ์, readout์ด eff ๊ธฐ์คtop_entities์ppr/spec์ง๋จ ํ๋ ๋ ธ์ถ๊ฐ์ค (์ธก์ ๋๊ธฐ)
๊ฒ์ฆ
container mock e2e: hub ์ํฐํฐ PPR 0.103โeff 0.098๋ก ์ต์ , specific 0.224โ0.492๋ก ์์น (entity ๋ญํน ์ญ์ ํ์ธ). ์ค์ธก์
--tag gpt52_e1_ppr_v2๋ก v1(gpt52_e1_ppr, 24๊ฐ 2.25 / faithfulness 84%) ๋๋น ์์ .๋จธ์ง ์กฐ๊ฑด: ์ธก์ ์์ faithfulness ํ๋ณต + AC ๋นํดํ ํ์ธ ์.