CoolFace
Modelpublic

my420254/hipro-lora-smp2020

sourceHugging Faceapache-2.0updated 3mo agoView on Hugging Face
0likes
Model Card

HiPro-LoRA — SMP2020

Adaptive Hierarchical State Pooling + Tail-aware Prototype Memory Bank for low-resource sentiment classification.

Model Details

ItemValue
Base modelhfl/chinese-macbert-base
LoRA rank16
LoRA alpha32
Num labels6
Labelshappy, angry, sad, fear, surprise, neutral
Test Macro-F171.48%
Test Accuracy71.33%

Usage

python
import torch
from transformers import AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("hfl/chinese-macbert-base")
# Load model architecture first, then load state dict
model.load_state_dict(torch.load("model.pt", map_location="cpu"))
model.eval()

Architecture

  • AHSP: Learnable layer-wise attention + gated pooling over transformer hidden states
  • TPMB: Per-class memory bank with tail-aware contrastive prototype regularization
  • LoRA: Low-rank adaptation on query/value projection matrices

Citation

If you use this model, please cite the HiPro-LoRA paper.