Summary
The paper proposes efficient sketching algorithms designed to address memory constraints in large-scale models. The key idea is to eliminate the multiplication of a dense projection matrix multiplication (large matrix materialization) found in the existing sketching algorithms such as in FJL and FastFood. The authors provide theoretical guarantees for their proposed algorithms: AFFD, AFJL, and QK. They showcase the advantages of these methods in three different contexts: training data attribution, intrinsic dimension estimation, and eigenvalue estimation of the Hessian.
Strengths
- The paper addresses an important topic that is likely to be of interest to the NeurIPS community, with potential applications across various domains.
- The authors provide a well-motivated problem statement, clearly articulating the need for efficient sketching algorithms.
- The results presented are comprehensive and interesting, covering multiple aspects of the proposed algorithms and demonstrating their effectiveness across several use cases.
- While the authors have not provided code with the submission, the appendix contains sufficiently detailed information to enable the reproduction of the results.
Weaknesses
- While the paper is generally well-written, there are several areas that require improvement: a) Some notations are not clearly explained. b) Certain statements lack precision, potentially leading to ambiguity (specific examples are provided in the detailed comments section).
- The authors do not sufficiently address the limitations of the proposed approach. The brief mention in the conclusion does not adequately address the potential drawbacks or constraints of the method (e.g., the limitations of QK).
- The paper would benefit from a more comprehensive comparative analysis, such as the sketching algorithm used in TDA [1, 2].
[1] Park, S. M., Georgiev, K., Ilyas, A., Leclerc, G., & Madry, A. (2023). Trak: Attributing model behavior at scale. arXiv preprint arXiv:2303.14186.
[2] Xia, M., Malladi, S., Gururangan, S., Arora, S., & Chen, D. (2024). Less: Selecting influential data for targeted instruction tuning. arXiv preprint arXiv:2402.04333.
Questions
I have also included suggestions in addition to questions.
- The authors should be more specific when discussing Training Data Attribution (TDA) methods. Rather than using the broad term "TDA," they should explicitly mention that their work focuses on gradient-based TDA methods, such as TracIn [3] and GradDot [4]. TDA is a wide-ranging concept that encompasses various approaches, some of which do not align with the description provided in line 22.
- In the introduction, the authors state that random projections have been implemented using dense matrices for TDA. Several works perform random projections without explicitly materializing dense matrices. The same holds for the experiment section in 5.
- The statement “memory constraints limited their investigation of ID in generative tasks to 500k” in line 98 is unclear. What does ID stand for?
- In line 103, the authors claim that their work makes influence function computations more efficient. Please clarify this point, considering that influence functions typically require inverse Hessian-vector product (IHVP) estimation, which isn't directly addressed in Section 5.1. Is this claim primarily based on improving methods like the Arnoldi iteration?
- In Section 5.1, the conclusion that "layer selection coupled with dense projections faces severe scalability limitations" relative to AFFD, QK, and AFJL is not clear. Consider including tabular results (similar to Table 5) in the main paper to support this claim.
- Do you anticipate any challenges in applying these techniques to even larger language models?
Minor Comments
- Line 129: Replace "D" with "$D$" for consistent mathematical notation.
- Line 150: Clarify that $B$ and $H_D$ now have dimensions $D \times D$.
- Line 172: Specify the relevant section when mentioning "unacceptable early TPU results" for clearer cross-referencing.
- Line 227: Add a period at the end of the sentence.
- In the case of TDA, the rankings between the gradient dot products are important. Are there any reasons why authors do not use the Spearman correlation?
- In line 311, it would be helpful if the authors provided a direct explanation of why explicit sketching provides substation speed up.
- Figure 1 has low resolution, making it difficult to read when printed.
[3] Pruthi, G., Liu, F., Kale, S., & Sundararajan, M. (2020). Estimating training data influence by tracing gradient descent. Advances in Neural Information Processing Systems, 33, 19920-19930.
[4] Charpiat, G., Girard, N., Felardos, L., & Tarabalka, Y. (2019). Input similarity from the neural network perspective. Advances in Neural Information Processing Systems, 32.
Limitations
The paper would benefit from a more comprehensive discussion of limitations.