Skip to content

feat: add InterFormer model for heterogeneous interaction learning in CTR prediction#210

Open
xiaoxiaoxiaotao wants to merge 3 commits intodatawhalechina:mainfrom
xiaoxiaoxiaotao:feature/add-interformer-model
Open

feat: add InterFormer model for heterogeneous interaction learning in CTR prediction#210
xiaoxiaoxiaotao wants to merge 3 commits intodatawhalechina:mainfrom
xiaoxiaoxiaotao:feature/add-interformer-model

Conversation

@xiaoxiaoxiaotao
Copy link
Copy Markdown

Description

This PR adds the implementation of the InterFormer model proposed in the paper InterFormer: Effective Heterogeneous Interaction Learning for Click-Through Rate Prediction (available at https://arxiv.org/abs/2411.09852).

What's Changed

New Files

  • torch_rechub/models/ranking/interformer.py - Core implementation of the InterFormer model

Modified Files

  • torch_rechub/models/ranking/__init__.py - Add InterFormer export
  • examples/ranking/run_amazon_electronics.py - Add runtime support for the InterFormer model
  • examples/ranking/README.md - Update related documentation

Testing Instructions

Run the example with the following commands:

cd examples/ranking
python run_amazon_electronics.py --model_name interformer

Related Issues

None

References

Implement InterFormer model from paper:
- InterFormer: Effective Heterogeneous Interaction Learning for CTR Prediction
- Paper: https://arxiv.org/abs/2411.09852

Key components:
- Gating: self-gating mechanism for selective information aggregation
- PFFN: personalized feed-forward network for context-aware sequence modeling
- PMA: pooling by multi-head attention for sequence summarization
- CrossArch: cross architecture for bidirectional information flow
- InteractionArch: behavior-aware non-sequence embedding learning
- SequenceArch: context-aware sequence embedding learning with RoPE
- Update run_amazon_electronics.py to support --model_name interformer
- Update README.md to document InterFormer usage and test results table
@github-actions github-actions bot added enhancement New feature or request | 新功能 model New model or model improvement | 模型相关 labels Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request | 新功能 model New model or model improvement | 模型相关

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant