language: en
license: llama3
tags:
- large_language_model
- finance
- sec_data
- continual_pre_training
- model_merging
datasets:
- SEC_filings
Llama-3-SEC: A Domain-Specific Chat Agent for SEC Data Analysis
Llama-3-SEC is a state-of-the-art domain-specific large language model trained on a vast corpus of SEC (Securities and Exchange Commission) data. Built upon the powerful Meta-Llama-3-70B-Instruct model, Llama-3-SEC has been developed to provide unparalleled insights and analysis capabilities for financial professionals, investors, researchers, and anyone working with SEC filings and related financial data.
Model Details
- Base Model: Meta-Llama-3-70B-Instruct
- Training Data: 70B tokens of SEC filings data, carefully mixed with 1B tokens of general data from Together AI's RedPajama dataset to maintain a balance between domain-specific knowledge and general language understanding
- Training Method: Continual Pre-Training (CPT) using the Megatron-Core framework, followed by model merging with the base model using the state-of-the-art TIES merging technique in the Arcee Mergekit toolkit
- Training Infrastructure: AWS SageMaker HyperPod cluster with 4 nodes, each equipped with 32 H100 GPUs, ensuring efficient and scalable training of this massive language model
Use Cases
Llama-3-SEC is designed to assist with a wide range of tasks related to SEC data analysis, including but not limited to:
- In-depth investment analysis and decision support
- Comprehensive risk management and assessment
- Ensuring regulatory compliance and identifying potential violations
- Studying corporate governance practices and promoting transparency
- Conducting market research and tracking industry trends
The model's deep understanding of SEC filings and related financial data makes it an invaluable tool for anyone working in the financial sector, providing powerful natural language processing capabilities tailored to the specific needs of this domain.
Evaluation
Here's the updated version with smaller images using Markdown:
Evaluation
To ensure the robustness and effectiveness of Llama-3-SEC, the model has undergone rigorous evaluation on both domain-specific and general benchmarks. Key evaluation metrics include:
- Domain-specific perplexity, measuring the model's performance on SEC-related data
- Extractive numerical reasoning tasks, using subsets of TAT-QA and ConvFinQA datasets
- General evaluation metrics, such as BIG-bench, AGIEval, GPT4all, and TruthfulQA, to assess the model's performance on a wide range of tasks
These results demonstrate significant improvements in domain-specific performance while maintaining strong general capabilities, thanks to the use of advanced CPT and model merging techniques.
Training and Inference
Llama-3-SEC has been trained using the llama3 chat template, which allows for efficient and effective fine-tuning of the model on the SEC data. This template ensures that the model maintains its strong conversational abilities while incorporating the domain-specific knowledge acquired during the CPT process.
To run inference with the Llama-3-SEC model using the llama3 chat template, use the following code:
Limitations and Future Work
This release represents the initial checkpoint of the Llama-3-SEC model, trained on 20B tokens of SEC data. Additional checkpoints will be released in the future as training on the full 70B token dataset is completed. Future work will focus on further improvements to the CPT data processing layer, exploration of advanced model merging techniques, and alignment of CPT models with SFT, DPO, and other cutting-edge alignment methods to further enhance the model's performance and reliability.
Usage
To use the Llama-3-SEC model, please refer to the detailed instructions provided in the repository. The model is available for both commercial and non-commercial use under the Llama-3 license. We encourage users to explore the model's capabilities and provide feedback to help us continuously improve its performance and usability.
Citation
If you use this model in your research or applications, please cite:
@misc{Introducing_SEC_Data_Chat_Agent,
title={Introducing the Ultimate SEC Data Chat Agent: Revolutionizing Financial Insights},
author={Shamane Siriwardhana and Luke Mayers and Thomas Gauthier and Jacob Solawetz and Tyler Odenthal and Anneketh Vij and Lucas Atkins and Charles Goddard and Mary MacCarthy and Mark McQuade},
year={2024},
note={Available at: \url{firstname@arcee.ai}},
url={URL after published}
}
For further information or inquiries, please contact the authors at their respective email addresses (firstname@arcee.ai). We look forward to seeing the exciting applications and research that will emerge from the use of Llama-3-SEC in the financial domain.