Factorization Machine
A factorization machine is a regression or classification model that adds every pairwise interaction between features, but gives each feature a short latent vector and uses the dot product of two vectors as their interaction weight. Interactions can therefore be estimated even for feature pairs that rarely occur together, as in sparse one-hot data.
팩터라이제이션 머신은 모든 특성 쌍의 상호작용을 더한 회귀 또는 분류 모형으로, 특성마다 짧은 잠재 벡터를 두고 두 벡터의 내적을 상호작용 가중치로 씁니다. 그래서 함께 나타나는 일이 드문 특성 쌍의 상호작용도 추정할 수 있어 원핫 부호화된 희소 자료에 잘 맞습니다.
Do pairwise interactions between my features improve prediction, and which pairs interact most strongly?
특성 사이의 쌍별 상호작용이 예측을 개선하는지, 어떤 쌍이 가장 강하게 상호작용하는지 알고 싶습니다.
The method one-hot codes categorical features and standardises numeric ones, fits the degree-2 factorization machine with squared loss (numeric outcome) or logistic loss (two classes) and L2 penalties by L-BFGS on a training split, and compares held-out error with the same model without the factorised interactions. The strongest pairwise interaction weights are listed.
When to use Factorization Machine
- Your data have many categorical features whose combinations matter, such as user, item and context.
- You want interaction effects without estimating a separate weight for every pair.
- You need a baseline for click or rating prediction on tabular data.
When to use something else
- You only have a user-item rating matrix: use Collaborative Filtering Recommender (Matrix Factorization, Item-Based kNN)
- Interactions are not of interest and you want interpretable coefficients: use Regularised Regression (Ridge, Lasso, ElasticNet)
- Features belong to clearly separate fields whose interactions differ by field: use Field-Aware Factorization Machine
Assumptions and requirements
- Independent rows
- Pairwise interactions are well approximated by low-rank latent vectors
- Numeric outcome or exactly two classes
What the analysis reports
- Held-out RMSE and R squared, or AUC, accuracy, log loss and Brier score
- The same metrics for the model without interactions
- Ranked pairwise interaction weights
- Convergence information
How to report it
A factorization machine of rank [value] was trained on [value] rows; on [value] held-out rows it reached AUC = [value] against [value] for the model without factorised interactions.
Related methods
- Collaborative Filtering Recommender (Matrix Factorization, Item-Based kNN)
- Field-Aware Factorization Machine
- Regularised Regression (Ridge, Lasso, ElasticNet)
- Binary Logistic Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 3 reference tests compare the results with direct computations (formulas, enumeration or simulation).
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 3건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Factorization Machine on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.