中级农民
- 积分
- 102
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2021-1-25
- 最后登录
- 1970-1-1
|
本帖最后由 asdfghjklmbzx 于 2021-1-30 13:11 编辑 -baidu 1point3acres
. ----
### learning important features: DeepLIFT
. 1point3acres- some approaches for identifying input features
- perturbation-based approaches
- perturb one feature, see change of output
- drawback
- computationally expensive (need to try all features)
- susceptible to **saturation problem** in DL: for some functions, change in some input has little effect on output, and may mistakenly assume that this feature is not important
- backpropagation-based approaches
- idea: start with output, assign importance score to layer connected to the output layer, then propagate the importance score all the way back to inputs
- drawback: depends on gradient and may have **vanishing gradient** issue. check 1point3acres for more.
- DeepLIFT
- high-level idea: compute difference of output from **reference point** (basically doing finite difference, not infinitesimal difference) so that importance score can be propagated back
- reference point: depends on domain knowledge (e.g. for MNIST images, define all zeros as reference in input space, then propagate forward to get references for all later layers)
- basics: let $\Delta t$ be diff-from-ref for target neuron $t$, and assign **contribution score** (how? see different rules) of input neuron $x_i$ to be $C_{\Delta x_i\Delta t}$ such that $\sum_i C_{\Delta x_i\Delta t}=\Delta t$. We also define multiplier $$m_{\Delta x_i\Delta t}=\frac{C_{\Delta x_i\Delta t}}{\Delta x_i}$$. With these two definitions, we see that it enables chain rule and backpropagation
$$m_{\Delta x_i\Delta z}=\sum_j m_{\Delta x_i\Delta y_j}m_{\Delta y_j\Delta z}$$
- separation of positive and negative contributions: $\Delta x_i=\Delta x_i^+ + \Delta x_i^-$, which is useful in some cases
- linear rules for assigning contributions scores: for $y=b+\sum_i w_i x_i, \Delta y=\sum_i w_i\Delta x_i$, define $$C_{\Delta x_i^{\pm}\Delta y_i^{+}}=1\{w_i\Delta x_i>0\}w_i\Delta x_i^{\pm}\\C_{\Delta x_i^{\pm}\Delta y_i^{-}}=1\{w_i\Delta x_i<0\}w_i\Delta x_i^{\pm}$$, multiplier can be defined similarly
- nonlinear rules
- rescale rule: assume contribution of $\Delta y^+$ **only comes from $\Delta x^+$**. $$C_{\Delta x^+\Delta y^+}=\frac{\Delta y}{\Delta x}\Delta x^+=\Delta y^+$$, therefore $$m_{\Delta x^{\pm}\Delta y^{\pm}}=\frac{\Delta y}{\Delta x}=m_{\Delta x\Delta y}$$, note that rescale rule fails for some problems. Waral dи,
- RevealCancel rule: $$\Delta y^+=\frac{1}{2}\left(f(x^0+\Delta x^+)-f(x^0)\right)\\+\frac{1}{2}\left(f(x^0+\Delta x^-+\Delta x^+)-f(x^0+\Delta x^-)\right)$$, and we have $$\Delta y=\Delta y^++\Delta y^-=f(x^0+\Delta x^-+\Delta x^+)-f(x^0)$$
. 1point 3acres - possible implementation in PyTorch
- use `hooks` (e.g. [here](https://github.com/pytorch/captu ... e/deep_lift.py#L546)) to override gradient operators, thus support a wide variety of architectures (as is explained in README [here](https://github.com/kundajelab/deeplift))
- ref
- https://www.youtube.com/watch?v= ... 6KPGKML&index=6. 1point 3 acres
- https://arxiv.org/pdf/1704.02685.pdf
### model complexity and bias-variance tradeoff for neural networks
- bias-variance tradeoff for neural networks
- for classical ML models, there is bias-variance tradeoff: as model complexity increases, bias goes down while variance goes up. But for neural networks, **variance does not go up with network width**. This behavior can be explained by its two components: **variance due to optimization** increases in under-parameterized regime and decreases in **over-parameterized regime**, while **variance due to sampling** plateaus and remains constant
- ref
- https://arxiv.org/abs/1810.08591
- https://arxiv.org/abs/2002.11328
- double-descent curve
- classical ML theory fails to explain the generalization properties of neural network models containing millions of parameters (in over-parameterized regime). With these networks with super high complexity, one can often reach a lower error than the minimum of the networks in the **under-parametrized regime**, despite the perfect training accuracy.
- ref
- https://medium.com/@LightOnIO/be ... -curve-18b6d9810e1b ..
|
|