Manifund foxManifund
Home
Login
About
People
Orgs
Categories
Newsletter
HomeAboutPeopleCategoriesLoginCreate

Grant Agreement

COMPLETE

All grant recipients are required to agree to the terms and conditions outlined here before receiving funds.

1Background

1.1 Manifold for Charity, 1621 E 6th Street Unit 1440, Austin, TX 78702, United States, a registered 501(c)3-nonprofit with EIN 88-3668801 (the “Charity”).

1.2 Kunvar Thaman (the “Recipient”)

1.3 Based on the information provided to Manifold for Charity, this grant is to be used exclusively for the following purposes in accordance with the terms and conditions of this letter, unless otherwise approved in advance [in writing] by Manifold for Charity: "Exploring feature interactions in transformer LLMs through sparse autoencoders" (the “Project”).

1.4 The start date for your grant will be December 1st, 2023 (the “Commencement Date”) and will run for the duration (the “Grant Period”) until the Recipient marks the Project as complete (the “Expiry Date”).

2Purpose and Use of Grant

2.1 The Grant is conditional on the satisfactory use of the money and on compliance with the terms of this Agreement.

2.2 The Recipient shall not make any substantive change to the Project without the Charity’s prior written agreement.

2.3 Should any part of the Grant remain unspent at the end of the Grant Period, the Recipient shall ensure that the unspent money is returned to the Charity.

3Prohibited Uses

3.1 The Recipient shall not use the Grant:

(a) Otherwise than for the purposes which fall within the charitable purposes of the Recipient, or to undertake an activity for any purpose other than a religious, charitable, scientific, literary, educational, or other purpose specified in Section 170(c)(2)(B) of the Internal Revenue Code (“IRC”).

(b) To attempt to influence legislation, within the meaning of Section 501(c)(3) of the IRC.

(c) To participate or intervene in any political campaign on behalf of or in opposition to any candidate for public office, to induce or encourage violations of law or public policy, to cause any private inurement or improper private benefit to occur, or to take any other action inconsistent with Section 501(c)(3) of the IRC.

4Monitoring and Reporting

4.1 The Recipient is responsible for ensuring that the purposes for which the Grant is given are being met throughout the Grant Period and that the terms of this letter are being adhered to.

4.2 Upon the Charity’s request, the Recipient shall share a progress report every 6 months from the Commencement Date and shall share a final report upon the Expiry Date. If applicable, the Recipient shall receive instructions for submitting the report before it is due.

5Payment, Withholding, and Recovery of the Grant

5.1 The Charity may at its discretion withhold or suspend payment of the Grant and/or require repayment of all or part of the Grant and/or terminate this Agreement if:

(a) the Recipient uses any of the Grant for purposes other than those for which they have been awarded.

(b) all activities associated with the Project are not run in accordance with all statutory or other regulatory requirements in the country where the Recipient is established and in the country where the Project takes place, and in a manner consistent with the good name and reputation of the Charity.

(c) the Charity reasonably considers that the Recipient has not made satisfactory progress with the delivery of the Project, in which case any repayment shall be no greater than the unspent balance of the grant.

(d) the Recipient provides the Charity with any materially misleading or inaccurate information.

(e) the Recipient ceases to work on the Project for any reason.

(f) the Recipient fails to comply with any of the terms and conditions of this Agreement.

5.2 The Recipient agrees and acknowledges that the Grant is expressed as a maximum sum and is not a guaranteed payment. It shall be paid only to the extent that the Charity has available funds. The Charity does it all it can to keep fees low and foreign exchange rates fair, however, due to the nature of these fees, the amount the Recipient receives may be reduced by bank transfer fees and, for international transfers, also by forex fees.

5.3 The Recipient shall promptly repay to the Charity any money incorrectly paid to it either as a result of an administrative error or otherwise. This includes (without limitation) situations where either an incorrect sum of money has been paid or where Grant money has been paid in error before all conditions attaching to the Grant have been complied with by the Recipient.

5.4 If the Charity exercises its right to terminate pursuant to Section 5.1, then without prejudice to any other rights and remedies of the Charity, the Recipient shall, at the Charity’s sole discretion, return any remaining part of the Grant to the Charity, or any money that has not been used in accordance with Section 2 of this Agreement.

5.5 The Charity will make the payment using the standard payment routes, but the onus is on the Recipient to help the Charity complete the payment if those routes fail, for example, by providing alternative bank accounts or payment methods, subject to the Charity's acceptance.

6Limitation of Liability
The Charity accepts no liability for any consequences, whether direct or indirect, that may come about from the Recipient running the Project, the use of the Grant or from withdrawal of the Grant. The Recipient shall indemnify and hold harmless the Charity, its employees, agents, officers or subcontractors with respect to all claims, demands, actions, costs, expenses, losses, damages and all other liabilities arising from or incurred by reason of the Recipient’s actions and/or omissions in relation to the Project, the non-fulfilment of the Recipient’s obligations under this letter or the Recipient’s obligations to third parties. Subject to the foregoing, the Charity’s liability under this letter is limited to the payment of the Grant.
7Personal taxes
If applicable, the Recipient is responsible to pay when due all local taxes, duties, and other governmental fees, taxes or other governmental charges that may apply to personal income. The Grant shall not be increased in the event of any tax become payable on the Grant money. The Grant may be classified as taxable income. It is up to the Recipient to check with an accountant or tax professional to see whether they need to declare the Grant for tax purposes.
8Federal tax law compliance
Recipient acknowledges that it understands its obligations imposed by this Agreement, including but not limited to those obligations imposed by reference to the IRC. Recipient agrees that if Recipient has any doubts about its obligations under this Agreement, including those incorporated by reference to the IRC, Recipient will promptly contact Charity or its own legal counsel.
9No employment
The making of this Grant does not represent or imply any kind of employment relationship between the Recipient and the Charity.
10Publications; License
Any information contained in publications, studies, or research funded by this Grant shall be made available to the public following such reasonable requirements or procedures as Charity may establish from time to time. Promptly after creation of any publications, studies, or research funded by this Grant, Recipient agrees to grant to Charity an irrevocable, worldwide, nonexclusive, fully-paid up license to publish, in Charity’s discretion, such intellectual property, and to execute promptly any documents and instruments that the Charity may reasonably request in order to effect such license, without further consideration.
11No Agency
Recipient is solely responsible for all activities supported by the Grant funds, the content of any product created with the Grant funds, and the manner in which any such product may be disseminated. This Agreement shall not create any agency relationship, partnership, or joint venture between the parties, and Recipient shall make no such representation to anyone.
12Terrorist Activity
Recipient warrants that it does not support or conduct, directly or indirectly, violence or terrorist activity of any kind.
13Variations
No variation of this Agreement shall be effective unless it is in writing and signed by or on behalf of each party.
14Entire agreement
This Agreement is the entire agreement between the parties, and replaces all previous agreements and understandings between them, relating to its subject matter.
15Governing Law
This Agreement shall be governed by the laws of the State of California applicable to contracts to be performed entirely within the State.
Recipient full nameKunvar Thaman
Recipient signatureKunvar Thaman
DateDecember 7th, 2023
Charity signatory full nameAustin Chen
Charity signatory signatureAustin Chen
DateDecember 7th, 2023
This grant benefits the public by funding: Technical research into better understanding large language models

The project as signed

The project's title and description when this agreement was signed on December 7th, 2023. The project page shows the current version, which its creator may have edited since.

Exploring feature interactions in transformer LLMs through sparse autoencoders

Project summary

Sparse autoencoders (SAEs) are good at extracting distinct, significantly monosemantic features out of transformer language models. An effective dictionary of feature decompositions for a transformer component roughly sketches out the set of features that component has learned.

The goal of this project is to provide a more intuitive and structured way of understanding how features interact and form complex high-level behaviors in transformer language models. To do that, we want to define and explore the feature manifold, understand how features evolve over different transformer components, and how we can use these feature decompositions to find some interesting circuits. 

What are this project's goals and how will you achieve them?

  1. SAE Feature Decomposition for Circuit Search Algorithm Development

    1. A major challenge in using sparse autoencoders for future interpretability work is turning feature decompositions into effective predictive circuits. Existing algorithms, such as ACDC, are based on pruning of computation graphs and not easily scalable to larger models.

    2. Cunningham et al. demonstrate that causal links can be identified by modifying features from an earlier layer and observing the impact on subsequent layer features. 

      1. A promising approach for a circuit search algorithm would be to observe changes in feature activations upon ablating features in a previous layer. We could focus on a subset of the input distribution to simplify the analysis and find more interpretable features. 

      2. For modeling end-to-end behaviors, we would use an unsupervised learning algorithm to learn clusters of features and identify similar ones (i.e. learnfeature manifolds). We would then use a similarity metric (such as cosine similarity) to group features and use ACDC over the resulting feature decompositions.

        1. Further, investigate how feature splitting occurs in the context of these manifolds. Are features divided into smaller manifolds, or do they split within a manifold?

  2. Optimizing feature extraction

    1. Connecting dictionaries learned on different transformer components

      1. How do the learned features evolve over different components of the model?

        1. For example, how do the features learned by the MLPs, with their richer dimensionality, relate to those learned by the attention heads and the residual stream?

      2. What metrics can we develop to better understand and measure these relationships?

      3. What mappings are suitable for connecting dictionaries? Can we use gradient descent to find the connections between two SAEs learned on different components of the transformer model?

    2. What specific properties make a feature more suitable for inclusion in the residual stream?

      1. If a feature is not added to the residual stream at a certain layer (L), can it emerge (if so, under what conditions?) in a subsequent layer (L+k)? 

    3. Can we predict whether and when a model will exhibit end-to-end behaviors by tracking the addition of constituent features to the residual stream at various stages of training?

  3. Efficiency of feature learning in SAEs 

    1. If a model is trained on a dataset D’ which is a subset of a dataset D, do the features it learns form a clear subset of the features learned by the same model trained on the entire dataset D? 

      1. Does the efficiency of feature learning diminish?

      2. Can we train smaller SAEs to find subsets of features?

      3. Analysis of feature quality - are features learned on D’ less or more noisier than features learned over D?

    2. Do features learned by the model on a subset dataset generalize well to the full dataset?

    3. Can we develop better metrics for comparing feature sets?

How will this funding be used?

The main use of the grant will be to acquire the compute resources needed for running the experiments. I would train multiple sparse autoencoders (SAEs) using A100 GPUs for a range of open sourced models, including for fine tuned and base models for comparisons. I would experiment with different SAE architectures, feature evolution, etc. The remaining funding amount would be to provide a modest salary for me, as I am currently funding this out of pocket.

What are the most likely causes and outcomes if this project fails? (premortem)

  1. It’s possible that 

    1. the algorithm for circuit search using feature decompositions does not outperform traditional methods, or does not scale well. 

    2. Navigating the feature manifold requires a lot of computational resources and proves to be difficult.

  2. Project has the potential to attract the attention of capabilities labs.

What other funding are you or your project getting?

  1. None - I am funding this project out of pocket at the moment. That is primarily why I am applying for the grant, because I want to expand the scope of the project which requires additional computational resources.

  2. I want to pursue alignment work (focused on interpretability), full-time, and will be applying for funding for that.