Transformations of scalar fields under a Lorentz group transformation are generated by differential operators $L_{\mu\nu}=x_\mu\partial_\nu-x_\nu\partial_\mu$.
On the other hand, a representation of a Lie group $G$ and algebra is defined as a homomorphism $\pi: g\in G \rightarrow \pi(g)\in GL(n,\mathbb{C})$ and $\psi: X\in \mathbb{g} \rightarrow \psi(X)\in \mathbb{gl}(n,\mathbb{C} )$, where $GL(n,\mathbb{C})$ denotes the General Linear Matrix group of $n\times n$ complex invertible matrices and $\mathbb{gl}(n,\mathbb{C})$ is its Lie algebra and $G$ is the group in question with $\mathbb{g}$ being its Lie algebra.
So, how can generators of a Lie algebra be represented by differential operators if representations of Lie algebras have the above definition (i.e. mappings to the Lie algebra corresponding to the group of $n\times n$ invertible matrices)?
EDIT: The first part was inspired by the following (from Freedman and Van Proyen's Supergravity, p.14):