Skip to main content
QUICK REVIEW

[논문 리뷰] Adapting Feature Attenuation to NLP

Tianshuo Yang, Ryan Rabinowitz|arXiv (Cornell University)|2026. 01. 02.
Topic ModelingComputer Science인용 수 0
한 줄 요약

논문은 COSTARR 특징 약화 OSR 접근을 BERT-base와 GPT-2를 사용한 NLP에 적용하며 176개 arXiv 카테고리에서 평가한다; COSTARR는 MaxLogit이나 MSP를 능가하지 못하고 자유 에너지(free-energy)는 저성능이다.

ABSTRACT

Transformer classifiers such as BERT deliver impressive closed-set accuracy, yet they remain brittle when confronted with inputs from unseen categories--a common scenario for deployed NLP systems. We investigate Open-Set Recognition (OSR) for text by porting the feature attenuation hypothesis from computer vision to transformers and by benchmarking it against state-of-the-art baselines. Concretely, we adapt the COSTARR framework--originally designed for classification in computer vision--to two modest language models (BERT (base) and GPT-2) trained to label 176 arXiv subject areas. Alongside COSTARR, we evaluate Maximum Softmax Probability (MSP), MaxLogit, and the temperature-scaled free-energy score under the OOSA and AUOSCR metrics. Our results show (i) COSTARR extends to NLP without retraining but yields no statistically significant gain over MaxLogit or MSP, and (ii) free-energy lags behind all other scores in this high-class-count setting. The study highlights both the promise and the current limitations of transplanting vision-centric OSR ideas to language models, and points toward the need for larger backbones and task-tailored attenuation strategies.

연구 동기 및 목표

  • NLP에서 개방 집합 인식(OSR)을 동기화하고 보이지 않는 클래스에 대한 모델의 과신을 해결한다.
  • 비전용으로부터 시작된 COSTARR를 트랜스포머 기반의 텍스트 분류기(BERT-base 및 GPT-2)에 이식한다.
  • 대규모 176-class NLP 작업에서 규칙 약화 기반, 로짓 기반, 에너지 기반 OSR 점수를 기준선과 대조한다.
  • 언어 모델에 비전 중심 OSR 아이디어를 전이하는 것의 실용적 효과와 한계를 평가한다.

제안 방법

  • COSTARR를 트랜스포머 분류기에 적합하도록 F(x) 전-약화 특징과 H_j = F(x) ⊙ W_j의 포스트-약화 특징을 추출하고, 결합 COSTARR 점수 S(x) = λ_m(x) · Sim_m(x)를 얻는다.
  • 연결된 특징 C_j(x) = Concat(F(x), H_j)와 코사인 유사도 정규화에 따른 μ_C_j를 사용하여 Sim_j(x)를 계산한다.
  • 로짓의 Global Nearest Neighbor–유사(normalization)와 같은 GNL를 통해 λ_m(x)를 정의하고 미지의 탐지를 위한 S(x)를 선택한다.
  • 176개의 arXiv 주제로 두 개의 경량 모델(BERT-base 및 GPT-2)을 미세조정하고 OOSA 및 AUOSCR로 평가한다.
  • COSTARR를 MSP, MaxLogit, 그리고 온도 스케일된 자유 에너지 점수와 비교하여 베이스라인으로 사용한다.
  • arxiv-abstracts-2021 데이터셋을 사용하되 132개의 알려진 클래스와 44개의 미지의 클래스를 포함하고 테스트 분할은 10%이다.
Figure 1: Logit for class $j$ is formed from a dot product of its weights $W_{j}$ , and the input features $F$ , but the low weighted features are attenuated and hence ignored by this class’s projection. The top color bar shows the weights $W$ for category ’gr-qc’ from BERT (base)’s custom classific
Figure 1: Logit for class $j$ is formed from a dot product of its weights $W_{j}$ , and the input features $F$ , but the low weighted features are attenuated and hence ignored by this class’s projection. The top color bar shows the weights $W$ for category ’gr-qc’ from BERT (base)’s custom classific

실험 결과

연구 질문

  • RQ1COSTARR가 재학습 없이 NLP로 전이되어 탐지 가능한 Open-Set 신호를 제공하는가?
  • RQ2많은 클래스를 가진 NLP 개방형 집합 작업에서 COSTARR가 MSP, MaxLogit 또는 자유 에너지 점수보다 우수한가?
  • RQ3큰 규모의 고-클래스 수 NLP 분류 작업(176개 카테고리)에서 OSR 방법의 성능은 어떤가?
  • RQ4시각 기반 OSR 방법을 언어 모델과 NLP 데이터 세트에 적용하는 데 있어서의 한계는 무엇인가?

주요 결과

  • COSTARR가 추가 학습 없이 NLP로 확장되지만 MaxLogit이나 MSP에 비해 통계적으로 유의미한 이점을 보이지 않는다.
  • 자유 에너지 점수는 이 NLP 작업에서 다른 방법에 비해 저성능이다.
  • OOSA 점수는 CostARR과 MaxLogit에서 유사하게 나타난다( BERT: 0.319 대 0.319; GPT-2: 0.311 대 0.303) 및 MSP는 BERT와 GPT-2에서 약간 다르게 수행한다(둘 다 0.320).
  • 자유 에너지는 OOSA에서 0.172(BERT) 및 0.174(GPT-2), AUOSCR에서 0.167(BERT) 및 0.150(GPT-2)을 달성한다.
  • AUOSCR: COSTARR 0.236(BERT) 및 0.223(GPT-2); MaxLogit 0.233(BERT) 및 0.236(GPT-2); MSP 0.251(BERT) 및 0.250(GPT-2); 자유 에너지 0.167(BERT) 및 0.150(GPT-2).
  • 결과는 작은 모델(BERT-base, GPT-2)과 많은 클래스(176개)가 OSR 방법에 도전하며, 성능이 단순한 베이스라인을 능가하지 못한다는 것을 시사한다.
Figure 2: OOSA at various thresholds for BERT (base).
Figure 2: OOSA at various thresholds for BERT (base).

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.