Aspects of the disclosure provide methods, apparatuses, and non-transitory computer-readable storage mediums for video encoding/decoding. An apparatus includes processing circuitry that decodes prediction information for a current block in a current picture that is a part of a coded video sequence. The processing circuitry determines prediction samples of the current block based on a first linear transform of reference samples of the current block. One or more parameters of the first linear transform are determined based on one of the prediction information and one or more parameters of a second linear transform associated with another block in the coded video sequence. The processing circuitry reconstructs the current block based on the prediction samples.