[논문 리뷰] Panini: Continual Learning in Token Space via Structured Memory
Panini는 더 적은 토큰으로 더 높은 정확도로 질문에 답하기 위해 구조화된 메모리(GSW)를 작성하고 체인 기반 검색(RICR)을 사용하는 비모수적 지속적 학습 프레임워크를 제안한다.
Language models are increasingly used to reason over content they were not trained on, such as new documents, evolving knowledge, and user-specific data. A common approach is retrieval-augmented generation (RAG), which stores verbatim documents externally (as chunks) and retrieves only a relevant subset at inference time for an LLM to reason over. However, this results in inefficient usage of test-time compute (LLM repeatedly reasons over the same documents); moreover, chunk retrieval can inject irrelevant context that increases unsupported generation. We propose a human-like non-parametric continual learning framework, where the base model remains fixed, and learning occurs by integrating each new experience into an external semantic memory state that accumulates and consolidates itself continually. We present Panini, which realizes this by representing documents as Generative Semantic Workspaces (GSW) -- an entity- and event-aware network of question-answer (QA) pairs, sufficient for an LLM to reconstruct the experienced situations and mine latent knowledge via reasoning-grounded inference chains on the network. Given a query, Panini only traverses the continually-updated GSW (not the verbatim documents or chunks), and retrieves the most likely inference chains. Across six QA benchmarks, Panini achieves the highest average performance, 5%-7% higher than other competitive baselines, while using 2-30x fewer answer-context tokens, supports fully open-source pipelines, and reduces unsupported answers on curated unanswerable queries. The results show that efficient and accurate structuring of experiences at write time -- as achieved by the GSW framework -- yields both efficiency and reliability gains at read time. Code is available at https://github.com/roychowdhuryresearch/gsw-memory.
연구 동기 및 목표
- 망각 catastrophic forgetting과 과도한 재학습을 피하기 위해 비모수적 지속 학습을 고무한다.
- 추론을 위한 엔티티, 이벤트, QA 쌍을 인코딩하는 구조화된 메모리 표현(GSW)을 제안한다.
- 추론 기반 답변을 위해 GSW를 순회하는 체인 기반 검색 방법(RICR)을 도입한다.
- 정확도, 효율성 및 응답 거부에 중점을 두고 다중 홉 및 단일 홉 QA 벤치마크에 대해 Panini를 경험적으로 평가한다.
- 읽기 시간에 구조화된 메모리를 작성하는 것이 읽기 시간의 효율성과 신뢰성 이점을 모두 가져다줌을 보여준다.
제안 방법
- 문서당 엔티티 노드, 동사구/이벤트 노드, 이벤트를 엔티티에 연결하는 QA-엣지 쌍으로 구성된 Generative Semantic Workspace(GSW)를 만든다.
- 효율적인 후보 검색을 위한 조밀한(Dense) QA-쌍 인덱스와 희소한(BM25) 엔티티 인덱스의 이중 검색 설정으로 GSW를 인덱싱한다.
- Reasoning Inference Chain Retrieval(RICR)을 적용한다: 질의를 하위 질문으로 분해하고, GSW 간 QA 체인을 통해 빔 탐색을 수행하며, 각 홉 점수의 기하평균으로 체인을 점수화한다.
- 빔 너비 B를 사용하여 체인을 가지치고 다양화하여 다중 추론 경로를 구성하고, 증거를 중복 제거한 후 검색된 QA 체인에서 최종 답을 생성한다.
- 단일-홉 및 다중-홉 작업을 포함한 여섯 개 QA 벤치마크에 대해 평가하고, 청크 기반, 구조 보강, 에이전트적 baselines와 비교한다.

실험 결과
연구 질문
- RQ1고정 기반 모델이 외부 구조화 메모리(GSW)와 함께 재학습 없이 지속 학습을 지원할 수 있는가?
- RQ2구조화된 메모리에 대한 체인 기반 검색이 다중 홉 질문에 대해 정확하고 효율적인 추론을 제공하는가?
- RQ3 Panini가 더 적은 응답-맥락 토큰으로 더 높은 사실적 정확도를 달성하면서 불응 가능성(unanswerable questions)의 신뢰할 수 있는 거부를 가능하게 하는가?
주요 결과
- Panini는 여섯 개의 QA 벤치마크에서 평균 F1이 가장 높으며 강력한 baselines를 능가한다.
- Panini는 경쟁 방법보다 2–30× 더 적은 응답-맥락 토큰을 사용한다.
- Panini는 증거 누락 하에서도 높은 정답 가능성 및 Platinum 분할에서 높은 거부 정확도로 강한 신뢰성을 달성한다.
- Abalation 연구는 Panini의 성능이 GSW/작업 분해 및 모델 선택에 대해 강건함을 보임을 보여준다.
- 오픈 소스 구성은 더 작은 모델에서도 Panini의 이점을 보존한다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.