Instruction Learning Paradigms: A Dual Perspective on White-box and Black-box LLMs