Dual-encoder branches