A method and device for video signal processing are provided. The method includes: an intra prediction mode of a current block is determined, a reference sample for intra prediction of the current block is determined, a predetermined matrix is determined based on the intra prediction mode, and the current block is predicted based on the reference sample and the matrix. The operation of predicting the current block based on the reference sample and the matrix includes a prediction block is generated by applying the matrix to the reference sample.