Green’s Dictionary of Slang

pencil head n.

[-head sfx (1)]

an extremely diligent student.

[US]R. Price Ladies’ Man (1985) 209: I was afraid I’d wind up sitting in a classroom with a lot of pencil-heads.