第21章推薦システム
21.9.1. 2-Way Factorization Machines21.9.1 2次の因子分解機
Formally, let denote the feature vectors of one sample, and denote the corresponding label which can be real-valued label or class label such as binary class “click/non-click”. The model for a factorization machine of degree two is defined as:
英語のヒント
形式的には、を一つの標本の特徴ベクトル、を対応するラベルとする。ラベルは実数値のラベルでも、「クリック/非クリック」のような二値のクラスラベルでもよい。次数2の因子分解機のモデルは、次のように定義される。
(21.9.1)
where is the global bias; denotes the weights of the i-th variable; represents the feature embeddings; represents the row of ; is the dimensionality of latent factors; is the dot product of two vectors. model the interaction between the and feature. Some feature interactions can be easily understood so they can be designed by experts. However, most other feature interactions are hidden in data and difficult to identify. So modeling feature interactions automatically can greatly reduce the efforts in feature engineering. It is obvious that the first two terms correspond to the linear regression model and the last term is an extension of the matrix factorization model. If the feature represents an item and the feature represents a user, the third term is exactly the dot product between user and item embeddings. It is worth noting that FM can also generalize to higher orders (degree > 2). Nevertheless, the numerical stability might weaken the generalization.
英語のヒント
ここでは全体のバイアス、はi番目の変数の重み、は特徴の埋め込み、はのの行、は潜在因子の次元数、は二つのベクトルの内積を表す。は、との特徴の間の相互作用をモデル化する。いくつかの特徴の相互作用は簡単に理解できるので、専門家が設計できる。しかし、ほかのたいていの特徴の相互作用はデータの中に隠れていて、見つけるのが難しい。そのため、特徴の相互作用を自動的にモデル化すれば、特徴エンジニアリングの手間を大きく減らせる。最初の二つの項が線形回帰のモデルに対応し、最後の項が行列分解のモデルの拡張であることは明らかである。特徴がアイテムを表し、特徴が利用者を表すなら、三番目の項はちょうど利用者とアイテムの埋め込みの内積である。FMはより高い次数(次数 > 2)にも一般化できることに注意しよう。とはいえ、数値的な安定性がこの一般化を弱めるかもしれない。