# Cross-Prompt Reuse of Entity-Replacement Responses

개체 치환 응답의 프롬프트 간 재사용

Jinkun Chen, Xuemin Yu, Sijia Han, Vlado Keselj · arXiv · 2026년 10월 30일

- **연구 문제** 한 질문에서 기록한 엔티티 치환 응답이 다른 질문의 응답을 얼마나 재현하는지, 그리고 그 재현이 각 질문의 관계에 특정한 부분까지 담는지를 답합니다.
- **연구 방법** 은닉 재사용은 목표 질문의 은닉 상태에 소스의 50% 깊이 변화를 더해 남은 층을 계산하고, 직접 재사용은 소스의 출력 변화를 목표 점수에 더합니다. 두 경로의 예측을 답변 대조의 부호 있는 변화와 비교합니다.
- **주요 결과** 평문 형식의 원본 코호트에서 다른 관계 소스의 은닉 재사용은 Qwen과 Llama의 무변화 오차를 45–51% 제거합니다. 그러나 작은 평문 체크포인트에서는 관계 선택적 오차를 안정적으로 줄이지 못합니다. Gemma는 BOS 토큰을 복원하면 58–69%를 제거하며, 목표 관계 소스의 우위는 대부분 좁아집니다.

## 기록된 응답은 다른 질문으로 얼마나 옮겨지는가

조향 벡터와 기능 벡터는 기록한 활성화 변화를 다른 프롬프트에 다시 적용하는 방식으로 연구되어 왔습니다. 그러나 답이 바뀌었다는 사실만으로는 수신 질문의 응답이 얼마나 재현되었는지 알 수 없습니다. 엔티티 치환은 이 기준을 측정 가능하게 만듭니다. 수신 질문 안의 엔티티를 바꾸어 목표 질문을 만들면, 그 목표의 실제 응답과 전이된 응답을 직접 비교할 수 있습니다.

이 연구는 두 가지를 묻습니다. 한 질문에서 기록한 응답이 다른 질문의 응답을 얼마나 충실히 재현하는지, 그리고 그 전이가 각 질문이 묻는 관계에 특정한 부분도 재현하는지입니다. 예를 들어 SLIB를 JDeveloper로 바꾸면 개발자 질문에서는 Oracle Corporation의 로그 확률이, 프로그래밍 언어 질문에서는 Java의 로그 확률이 함께 움직입니다. 두 답변 집합은 서로 반대 순서로 점수화됩니다.

전체 재현은 목표 자신의 부호 있는 대조 변화를 전이된 예측이 얼마나 설명하는지로 잽니다. 예측의 오차는 변화를 예측하지 않는 0 예측의 평균 오차와 비교하며, 두 평균 오차의 차이를 기준 오차로 나눈 비율이 제거율이 됩니다.

## 두 재사용 경로와 답변 대조의 계산

은닉 재사용은 목표 질문의 은닉 상태에 두 소스의 50% 깊이 변화를 더한 뒤 남은 층을 계산합니다. 직접 재사용은 같은 소스와 같은 가중치를 쓰되, 소스의 출력 변화를 목표의 출력 점수에 더합니다. 소스의 변화는 \\\\(\\\\Delta\_{s,e}=H\_\\\\ell(s,e)-H\_\\\\ell(s,a)\\\\)로 정의되며, 원래 엔티티 a를 치환 엔티티 e로 바꾼 입력의 차이입니다. 두 소스의 예측은 \\\\(\\\\widehat{\\\\Delta}\_{t,e}=\\\\sum\_{s\\\\in S} w\_s W^{s\\\\to t}\\\\Delta\_{s,e}\\\\)로 합쳐집니다. 가중치 w\_s는 미편집 최종 은닉 상태 사이의 정규화된 역제곱 거리이고, W는 접미 위치를 목표 행에 대응시키는 행렬입니다.

답변 대조는 관계별 완전 답변 집합의 로그 확률 질량 차이입니다. \\\\(M\_x(A)=\\\\log\\\\sum\_{y\\\\in A}p(y\\\\mid x)\\\\)로 그룹 점수를 구하고, \\\\(c\_x=M\_x(A\_T)-M\_x(A\_O)\\\\)로 대조를 정의합니다. 관측된 치환 변화는 \\\\(\\\\delta c=c\_{t,e}-c\_{t,a}\\\\)이고 예측 오차는 \\\\(E\_{ans}=\|\\\\hat{\\\\delta c}-\\\\delta c\|\\\\)입니다. 이 식은 예측이 관측된 부호 있는 변화에 얼마나 가까운지를 재며, 답변이 맞는지를 재지는 않습니다.

예를 들어 평문 형식의 Qwen 0.5B 원본 코호트에서 영점 예측의 평균 오차는 2.869 nats이고 은닉 재사용은 1.572 nats입니다. 이는 무변화 오차의 45.2%를 제거한 것입니다.

관계 선택적 성분은 \\\\(s=(\\\\delta c\_1+\\\\delta c\_2)/2\\\\), 공유 성분은 \\\\(h=(\\\\delta c\_1-\\\\delta c\_2)/2\\\\)로 나뉩니다. 두 질문이 각자 자기 관계 답변 쪽으로 움직이는 부분과, 두 질문이 함께 움직이는 부분을 분리하는 장치입니다. 단일 구성은 소스의 접미 위치를 선형 보간해 목표 행에 대응시키는 방식과, 변화된 엔티티 span 토큰을 하나씩 복사하는 스팬 정렬 추가로 나뉩니다. 확인 실험의 기본 은닉 구성은 접미 보간입니다.

## 평문 형식과 BOS 복원에서 전체 재현의 범위

Qwen과 Llama는 두 규모 모두 세 사전 지정 비교를 모두 통과합니다. Gemma는 각 규모에서 세 비교 가운데 하나만 통과합니다.

기본 BOS 토큰을 복원하면 Gemma 2B와 9B 모두 세 코호트에서 58–69%를 제거하고 모든 비교를 통과합니다. BOS 토큰은 관측되는 변화의 크기도 키우므로, 평문과 BOS 형식의 제거율은 직접 비교할 수 없습니다.

체크포인트별 채팅 템플릿에서는 열여덟 개의 비교가 모두 통과합니다. 새 개체의 두 번째 평문 코호트에서는 Qwen2.5-7B와 Llama-3.1-8B가 모든 비교를 통과하지만, 작은 체크포인트는 영점 예측 대비 비교를 하나도 통과하지 못합니다.

블록 단위 중앙값은 평문에서 Qwen과 Llama의 무변화 오차를 32–51% 줄이고, BOS를 복원한 Gemma에서는 61–64%를 줄입니다. 답변 큐 시점의 전체 어휘 KL 발산은 편집된 목표에 대해 기준 대비 88–97% 줄어들며, 같은 지표에서 다른 관계 직접 재사용은 44–87%입니다.

## 관계 선택적 재현과 목표 관계 소스의 비교

작은 평문 체크포인트에서 설명적 구간은 선택적 오차 감소가 전혀 양수가 아니게 나타나며, 이 점에서 전체 재현과 관계 선택적 재현이 갈라집니다.

선택적 성분은 7–9B 체크포인트보다 작은 체크포인트에서 분산의 적은 부분을 차지합니다. 상수 양의 예측도 선택적 성분의 부호가 대부분 양수이므로 네 검정을 통과할 수 있습니다. 따라서 통과 자체는 관계 특이성의 증거가 되지 않습니다. 같은 치환의 은닉 재사용은 공유 오차를 34–36%, 선택적 오차를 같은 크기로 줄이지만, 다른 치환의 은닉 재사용은 선택적 오차를 −9에서 5% 범위로만 바꿉니다.

목표 관계 소스로 바꾸면 세 코호트 합산 기준 은닉 재사용의 직접 재사용 대비 차이는 0.55–5.05 nats에서 0.20–0.90 nats로 좁아집니다. 이 결과는 Gemma 평문 형식을 제외하고 나타납니다. 이 잔여 우위는 확인되지 않은 사후 분석이며, 다른 치환 변화도 목표 관계 소스에서는 정확한 치환보다 큰 이득을 보입니다. 이는 한쪽 치환에 대한 특이성 근거가 되지 않습니다.

관계 중립 소스인 Tell me about X와 What do you know about X는 Qwen2.5-7B와 Llama-3.1-8B의 무변화 오차를 39–45% 제거하며, 다른 관계 소스는 세 코호트에서 42–51%를 제거합니다.

## 깊이, 행 위치, 단일 벡터 구성과 동일 내용 통제

디코더 입력(d=0)에서 스팬 정렬 추가는 편집된 목표를 구성상 그대로 재현하며 100%를 제거합니다. 깊이가 올라가면 제거율은 낮아져 d=1/2에서 46–70%가 됩니다. 그림 2는 35개 블록에서 깊이와 행 집합별 제거율을 보여줍니다. 실선은 스팬 정렬 추가이고 점선은 목표 자신의 편집-무편집 차이 패치입니다.

![Figure 2: Answer-error reduction relative to zero prediction over 35 blocks, default encoding. Solid: span-aligned addition, with other-relation sources unless…](https://refivu.com/papers/dd7ad0f4-bb97-4655-bef3-9c339ccbc0a6/figures/figure-2b4b31cea946f831503e4dc645a1b2e7.png?thumb=512)

**Figure 2** : Answer-error reduction relative to zero prediction over 35 blocks, default encoding. Solid: span-aligned addition, with other-relation sources unless labelled target-relation; dashed: target-own edited-minus-clean patches, except the horizontal line, other-relation direct reuse; the legend gives row coverage. Vertical: the confirmatory interface; the curves use span-aligned addition, not the suffix interpolation of Table 2. The terminal interface d= 1 precedes final normalization. Appendix E gives numerical summaries and row definitions, and explains why Qwen2.5-7B uses its saved plain-format scan.

[원문](https://arxiv.org/abs/2611.00352v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jinkun Chen, Xuemin Yu, Sijia Han, Vlado Keselj · Cross-Prompt Reuse of Entity-Replacement Responses · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

d=1/2에서 목표 자신의 엔티티 행과 엔티티 이후 행 변화를 따로 이어 예측 대조 변화로 더하면 무변화 오차의 49–69%를 제거하지만, 두 행을 함께 패치하면 편집을 재현합니다. 행 효과는 가산적이지 않습니다. 다른 관계 응답의 엔티티 행만 옮긴 경우는 목표 자신의 엔티티 행 패치보다 다소 적게 제거하며, 목표 관계 소스의 전체 행 변화는 엔티티 행만 쓴 경우보다 더 많이 제거합니다.

단일 벡터의 방송형 구성은 여섯 체크포인트 모두에서 영점 예측보다 평균 오차가 큽니다. 스팬 정렬 추가는 이 방송형 벡터를 95–99개 블록에서 이깁니다. 스팬 정렬 추가는 접미 보간 대비 평균 오차를 0.12–0.28 nats 낮춥니다. 이 차이는 설명적 결과입니다. 조정된 90개 단일 벡터 가운데 최선의 구성을 기준으로 하면 스팬 정렬 추가는 여섯 체크포인트 중 다섯 곳에서 더 낮은 오차를 보이며, 223개 검정의 풀링 보정에서는 네 곳이 유지됩니다.

같은 관계 중립 엔티티 행 변화를 두 질문에 동일하게 주입하면 99개 블록 가운데 60–83개에서 선택적 오차를 낮춥니다. 동일한 무작위 변화와 다른 치환의 중립 변화는 선택적 오차를 최대 0.22 nats 낮추는 데 그치며, 중립 변화는 여섯 체크포인트 모두에서 두 대조군보다 낫습니다.

## 적용 범위와 해석의 한계

관계 라벨과 질문 표현이 함께 변하므로, 이 설계는 의미적 관계와 표현 차이를 분리하지 못합니다. 새 개체 실험은 대체로 익숙한 관계와 템플릿 계열 안에서 이루어지며, 등길이 토큰 span 치환이 적용 조건입니다.

확인 실험은 50% 깊이의 한 인터페이스에서 이루어집니다. 깊이 스캔은 설명적 결과이며, Qwen2.5-7B의 재실행은 일관성 검사를 통과하지 못해 저장된 평문 기록을 사용했습니다.

후보 점수 기반 평가는 완전 답변 문자열만 채점하며 별칭과 형식 차이를 포함하지 않습니다. 답변 큐의 다음 토큰 분포와 탐욕적 생성은 별개의 측정입니다. 질문과 큐 하나로 캡처한 응답을 쓴 탐욕적 생성은 편집된 목표의 답변 문자열을 5–23%에서만 재현합니다. 따라서 후보 점수 재현은 자기회귀 생성의 정확도로 바로 이어지지 않습니다.

## 논문 정보

- **저자**: Jinkun Chen, Xuemin Yu, Sijia Han, Vlado Keselj
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 10월 30일
- **등록일**: 2026년 11월 7일
- **수정일**: 2026년 10월 30일
- **버전**: v1
- **arXiv**: 2611.00352
- **분류**: cs.CL · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

With model weights fixed, we measure how much of an entity-replacement response transfers between English factual questions, beyond whether answers change. We add the hidden-state change from two source questions to a target question about the same entity, comparing the predicted log-probability shift between two relations' published answers, given known answer prefixes, with the measured one. Hidden reuse injects the aligned change at 50% depth before the target's remaining layers; direct reuse adds source output-score changes. With other-relation sources, hidden reuse removes 45% and 49% of no-change error on 0.5-1B Qwen and Llama. Gemma-2-2B removes 22% and passes one of three comparisons in plain text without its default beginning-of-sequence (BOS) token. A later protocol restoring it yields 58-68%, passing every comparison on three cohorts. Larger checkpoints, chat format and new entities show replication and format- or cohort-dependent failures. On small plain-format checkpoints, other-relation hidden reuse mainly reproduces the shift both relations' questions share, without reliably lowering relation-selective error. With target-relation sources, hidden reuse's post hoc advantage over direct reuse is 0.2-0.9 nats outside chat format, unconfirmed and not replacement-specific. The same relation-neutral change at both questions' entity tokens lowers relation-selective error more than random or other-replacement changes, indicating receiving-question dependence.

## 원문 인용

Jinkun Chen, Xuemin Yu, Sijia Han, Vlado Keselj (2026). Cross-Prompt Reuse of Entity-Replacement Responses. arXiv:2611.00352v1. https://arxiv.org/abs/2611.00352v1

**BibTeX**

```
@misc{chen2026cross,
  title = {{Cross-Prompt Reuse of Entity-Replacement Responses}},
  author = {Jinkun Chen and Xuemin Yu and Sijia Han and Vlado Keselj},
  year = {2026},
  eprint = {2611.00352},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.00352v1}
}
```

## 이 논문의 용어

- [Holm correction](https://refivu.com/terms/9901890e77ae-holm-correction)
- [zsRE](https://refivu.com/terms/474ed9786ab5-zsre)

## 다른 논문 해설

- [Less Loss, Fixed Weights: Logit Corrections for Forgetting](https://refivu.com/papers/649ff1e1-ace5-4747-824d-2e27b753ed3b-less-loss-fixed-weights-logit-corrections-for-forgetting.md)
- [Label-Wording Augmentation in a Typed-Decision Encoder: Gains on Unfamiliar Words, Not on Abbreviations or Codes](https://refivu.com/papers/1c257e71-ba83-40f7-8af7-34d11d860a5b-label-wording-augmentation-in-a-typed-decision-encoder.md)
- [Polarity Classification with Multitask Learning Syntax Augmentation](https://refivu.com/papers/42c940fd-3b8f-4d71-84c3-99bb63a89492-polarity-classification-with-multitask-learning-syntax.md)
- [SimXAI: A Simple Drop-in Layer Increases Interaction Quality and Understanding in Conversational XAI](https://refivu.com/papers/aee88693-dcb0-436b-9f2c-50c5d7d6d337-simxai-a-simple-drop-in-layer-increases-interaction.md)
- [Personas Are Not People: Identity as State, Not Attribute](https://refivu.com/papers/9138858c-ab78-4e20-ae09-ef713b23e52d-personas-are-not-people-identity-as-state-not.md)
- [CORE: Coarse-to-Fine Search with Context Management for Deep Research](https://refivu.com/papers/87b167da-c0eb-41e0-8faf-5641918f7377-core-coarse-to-fine-search-with-context-management.md)
- [SIEVE: Preserving Cross-Image Evidence via Depth-Aware Token Compression](https://refivu.com/papers/83316c7f-11b3-40f3-9c27-b228d2f1541b-sieve-preserving-cross-image-evidence-via-depth-aware.md)
- [ACCT: Asymmetric Cross-LLM Context Transfer](https://refivu.com/papers/89f80623-80c2-4c6c-8a1f-c713dd80f97a-acct-asymmetric-cross-llm-context-transfer.md)
- [WASABI: Wasserstein Sampling via Bridge Interpolants](https://refivu.com/papers/84b674fb-878d-49cf-807c-fa181997db99-wasabi-wasserstein-sampling-via-bridge-interpolants.md)
- [Optimistic Gradient Algorithms with Randomized Coordinate and Variance Reduction Strategies for Composite Inclusions](https://refivu.com/papers/91e1a695-0034-4cf9-a3cc-8d1bd592b4c2-optimistic-gradient-algorithms-with-randomized-coordinate.md)
- [One Waveform, Two Stories: Benchmarking Speech-Acoustic Conflict in Audio-Language Models](https://refivu.com/papers/a4e4a3ed-b511-4c72-8ca6-aae0762f7be0-one-waveform-two-stories-benchmarking-speech-acoustic.md)
- [Beyond Semantic IDs: Atomic Creator Tokens for Large-Scale Generative Recommendation](https://refivu.com/papers/44a6a90f-59dd-43e6-bf12-355fedd97307-beyond-semantic-ids-atomic-creator-tokens-for-large.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/dd7ad0f4-bb97-4655-bef3-9c339ccbc0a6-cross-prompt-reuse-of-entity-replacement-responses)
