Amplitude variation with offset (AVO) inversion is a typical ill-posed inverse problem. To obtain a stable and unique solution, regularization techniques relying on mathematical models from prior information are commonly used in conventional AVO inversion methods (hence the name model-driven methods). Due to the difference between prior information and the actual geology, these methods often have difficulty achieving satisfactory accuracy and resolution. We have developed a novel data-driven inversion method for the AVO inversion problem. This method can effectively extract useful knowledge from well-log data, including sparse dictionaries of elastic parameters and sparse representation of subsurface model parameters. Lateral continuity of subsurface geology allows for the approximation of model parameters for a work area using the learned dictionaries. Instead of particular mathematical models, a sparse representation is used to constrain the inverse problem. Because no assumption is made about the model parameters, we consider this a data-driven method. The general process of the algorithm is as follows: (1) using well-log data as the training samples to learn the sparse dictionary of each elastic parameter, (2) imposing a sparse representation constraint on the objective function, making the elastic parameters be sparsely represented over the learned dictionary, and (3) solving the objective function by applying a coordinate-descent algorithm. Tests on several synthetic examples and field data demonstrate that our algorithm is effective in improving the resolution and accuracy of solutions and is adaptable to various geologies.